Open towerz opened 8 years ago
And. When player.play
is calling after CONTAINER_LOADEDMETADATA event, it works correctly.
player.play();
player.listenToOnce(
player.core.getCurrentContainer(),
Clappr.Events.CONTAINER_LOADEDMETADATA,
function () { player.pause() }
);
If I do what @mikeevstropov uses, I get this:
The play() request was interrupted by a call to pause()
I try to load an m3u8, wait for metadata and then immediately pause and seek to 0
@iongion this issue is a chrome related and known issue https://bugs.chromium.org/p/chromium/issues/detail?id=593273
When discussing some details on how to detect whether FlasHLS is enabled for a given source, @mikeevstropov discovered that calling
player.play(); player.pause()
doesn't work correctly.I tried checking on http://cdn.clappr.io and the playback seemingly tries to pause before loading the source, instead of delaying it. I ran the following code:
And instead of interacting, I ran the following on the console:
Note that the expected behavior is that the playback would be in the PAUSED or PAUSED_BUFFERING state.