File tree Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -1709,18 +1709,20 @@ export default class MultiThreadContentInitializer extends ContentInitializer {
17091709 const sentInitialObservation = objectAssign ( initialObservation , {
17101710 position : initialObservation . position . serialize ( ) ,
17111711 } ) ;
1712- sendMessage ( this . _settings . worker , {
1713- type : MainThreadMessageType . StartPreparedContent ,
1714- contentId,
1715- value : {
1716- initialTime,
1717- initialObservation : sentInitialObservation ,
1718- drmSystemId : drmInitStatus . drmSystemId ,
1719- enableFastSwitching,
1720- onCodecSwitch,
1721- } ,
1722- } ) ;
1723-
1712+ // XXX TODO: remove that: it's just to check that performance checks work as expected
1713+ setTimeout ( ( ) => {
1714+ sendMessage ( this . _settings . worker , {
1715+ type : MainThreadMessageType . StartPreparedContent ,
1716+ contentId,
1717+ value : {
1718+ initialTime,
1719+ initialObservation : sentInitialObservation ,
1720+ drmSystemId : drmInitStatus . drmSystemId ,
1721+ enableFastSwitching,
1722+ onCodecSwitch,
1723+ } ,
1724+ } ) ;
1725+ } , 20 ) ;
17241726 corePlaybackObserver . listen (
17251727 ( obs ) => {
17261728 sendMessage ( this . _settings . worker , {
You can’t perform that action at this time.
0 commit comments