You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Link to playable MPD file: Instructions to create one are below.
Dash.js version: 4.7.4
Browser name/version: Chrome/122.0.6261.112
OS name/version: Sonoma 14.2.1
Steps to reproduce
I used ffmpeg 6.1 with the command line "ffmpeg -i bbb.mp4 -c:v copy -an -use_timeline 1 -use_template 1 -f dash demo.mpd" where bbb.mp4 is a version of Blenders Big Buck Bunny to create an MPEG Dash version of it.
Below the first <Period id="0".... > line and above the <AdaptationSet id="0"....> line.
Then you can use a pretty stock html page similar to:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script src="https://cdn.dashjs.org/latest/dash.all.min.js"></script>
<style>
video {
width: 480px;
height: 360px;
}
</style>
</head>
<body>
<video controls="true"></video>
<script class="code">
function init() {
var video,
player,
url = "./demo.mpd";
video = document.querySelector('video');
player = dashjs.MediaPlayer().create();
player.on("urn:my:custom", handleCustomEvent);
player.initialize(video, url, false);
}
function handleCustomEvent(e) {
console.log(e.event.messageData)
}
document.addEventListener('DOMContentLoaded', function () {
init();
});
</script>
</body>
</html>
to play the resulting content. The video plays fine, the events on the other hand are only delivered to the listener once.
Reproducible 100% of the time.
Observed behavior
The events added to the MPD are received once and only once by the registered listeners. Load the html page, start playback and you can see in the console:
The first time the playback passes the specified presentation times. Use the scrubber bar to go back before the events again and the events are never delivered again.
Console output
See above.
Expected behavior
Every time the presentation time for an MPD defined event is at the playpoint, the event should be passed to the registered listeners.
The text was updated successfully, but these errors were encountered:
Environment
Steps to reproduce
I used ffmpeg 6.1 with the command line "ffmpeg -i bbb.mp4 -c:v copy -an -use_timeline 1 -use_template 1 -f dash demo.mpd" where bbb.mp4 is a version of Blenders Big Buck Bunny to create an MPEG Dash version of it.
Then I modified the resulting MPD and added:
Below the first
<Period id="0".... >
line and above the<AdaptationSet id="0"....>
line.Then you can use a pretty stock html page similar to:
to play the resulting content. The video plays fine, the events on the other hand are only delivered to the listener once.
Reproducible 100% of the time.
Observed behavior
The events added to the MPD are received once and only once by the registered listeners. Load the html page, start playback and you can see in the console:
Custom event 1 index.html:32
Custom event 2 index.html:32
Custom event 3 index.thml:32
The first time the playback passes the specified presentation times. Use the scrubber bar to go back before the events again and the events are never delivered again.
Console output
See above.
Expected behavior
Every time the presentation time for an MPD defined event is at the playpoint, the event should be passed to the registered listeners.
The text was updated successfully, but these errors were encountered: