Note that in order to add a feature to play videos continuously in the same video element, we'll need to notify mux:
// Example of changing the source of a video element
// Should happen before emitting the videochange event
var myVideo = document.querySelector('#myVideo');
myVideo.src = 'nextVideo.mp4';
if (typeof mux !== 'undefined') {
mux.emit('#myVideo', 'videochange', {
video_id: 'abc345',
video_title: 'My Other Great Video',
video_series: 'Weekly Great Videos',
...
});
}
Had to downgrade dashjs version for Mux.
Note that in order to add a feature to play videos continuously in the same video element, we'll need to notify mux:
I only hooked up video ID and name, but there are more metadata supported by Mux: https://docs.mux.com/docs/metadata
Also, they mentioned tracking users with cookies: https://docs.mux.com/docs/web-integration-guide