Skip to content

Commit 38fc9eb

Browse files
committed
Add performance issue
1 parent 69a992f commit 38fc9eb

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

src/main_thread/init/multi_thread_content_initializer.ts

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff 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, {

0 commit comments

Comments
 (0)