Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DASH Stream (webm) not working with VideoJS #7267

Closed
agmorpheus opened this issue Jun 10, 2021 · 6 comments
Closed

DASH Stream (webm) not working with VideoJS #7267

agmorpheus opened this issue Jun 10, 2021 · 6 comments
Labels
outdated Things closed automatically by stalebot

Comments

@agmorpheus
Copy link

Description

Hello, for a help application that is based on the Chromium Embedded Framework (CEF) I want to use videojs. By default the CEF is not playing h.264 encoded video. So I want to use webm encoded videos. Playing single webm files with videojs is no problem but I can not play dashed webm streams.
Please help me to get this dash stream working with videojs. The dash files are created via ffmpeg.

Steps to reproduce

I have created a fiddle without any additional dash scripts: https://jsfiddle.net/agmorpheus/pdegsch3/3/
Videojs is displaying an error: Playback cannot continue. No available working or supported playlists. (Playing HLS streams works perfectly)

I also created a fiddle with dash.js and videjs-dash.js file: https://jsfiddle.net/agmorpheus/pdegsch3/4/
Video is playing for a second and then stops.
A lot of buffer errors are shown in the console

Results

Expected

I expect that videojs plays the dash stream.
When I use the dash.js script without videojs the dash stream works.
What I also expect, if the dash stream is not working or supported by videojs, then if should play a fallback source. The fiddle example has a fallback source and it is not played.

Actual

see Steps to reproduce

Error output

see fiddle examples

Additional Information

versions

videojs

latest

browsers

Chrome

OSes

Win10

plugins

no plugins

@welcome
Copy link

welcome bot commented Jun 10, 2021

👋 Thanks for opening your first issue here! 👋

If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.

@gkatsev
Copy link
Member

gkatsev commented Jun 24, 2021

Unfortunately, looks like jsfiddle won't work anymore. Their CSP on their results pane forbids workers and blob urls.
you're actually in luck. We recently (finally) added a new option retryOnError which handles this.
I've copied your example to codepen and added the option and I can see it choosing a different source and playing back: https://codepen.io/gkatsev/pen/wvJVJwa?editors=1011

@agmorpheus
Copy link
Author

Thank you for this hint. The new option is good but it only mask the main problem. Why is the dash stream not playing? The stream plays well when only the Dash.js file is used. Combined with videojs it is not.

@gkatsev
Copy link
Member

gkatsev commented Jun 24, 2021

Totally forgot that part of the question. Unfortunately, we don't support webm segments in dash right now. All our code depends on inspecting mp4 and adding webm likely isn't trivial. If you prefer DASH playback and DASH.js works for you, you can add it into Video.js with https://github.com/videojs/videojs-contrib-dash

@stale
Copy link

stale bot commented Jan 9, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the outdated Things closed automatically by stalebot label Jan 9, 2022
@stale stale bot closed this as completed Apr 30, 2022
@unixfox
Copy link

unixfox commented Apr 30, 2022

Can this be reopened? It's not working

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated Things closed automatically by stalebot
Projects
None yet
Development

No branches or pull requests

3 participants