File tree Expand file tree Collapse file tree
custom_components/webrtc/www Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,13 +52,15 @@ export class DigitalPTZ {
5252 if ( o . touch_drag_pan ) h . push ( startTouchDragPan ( gestureParam ) ) ;
5353 if ( o . touch_pinch_zoom ) h . push ( startTouchPinchZoom ( gestureParam ) ) ;
5454 this . videoEl . addEventListener ( "loadedmetadata" , this . recomputeRects ) ;
55+ this . videoEl . addEventListener ( "loadeddata" , this . recomputeRects ) ;
5556 this . resizeObserver = new ResizeObserver ( this . recomputeRects ) ;
5657 this . resizeObserver . observe ( this . containerEl ) ;
5758 this . recomputeRects ( ) ;
5859 }
5960 destroy ( ) {
6061 for ( const off of this . offHandles ) off ( ) ;
6162 this . videoEl . removeEventListener ( "loadedmetadata" , this . recomputeRects ) ;
63+ this . videoEl . removeEventListener ( "loadeddata" , this . recomputeRects ) ;
6264 this . resizeObserver . unobserve ( this . containerEl ) ;
6365 }
6466}
You can’t perform that action at this time.
0 commit comments