Add onPipMediaOrientationUpdate to controls api.

This commit is contained in:
Timo K
2026-06-01 16:12:57 +02:00
parent 72b0d12d7c
commit a6fc710d8c
4 changed files with 38 additions and 5 deletions

View File

@@ -32,7 +32,9 @@ export function observeRtpStreamStats$(
> {
return combineLatest([
observeTrackReference$(participant, source),
interval(1000).pipe(startWith(0)),
// The update frequency is high because we use this value to update the PiP oreintation and the fit/fill video tile props based on that
// We want it to be responsive. For just the debug tools 1s would be sufficient.
interval(350).pipe(startWith(0)),
]).pipe(
switchMap(async ([trackReference]) => {
const track = trackReference?.publication?.track;