-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add correct support of audio element #2494
Add correct support of audio element #2494
Conversation
This seems like a bit of a hack to me. Additionally, there doesn't seem to be a similar option if I want the player to ignore audio when playing in a video element. #2490 admits that the issue is caused when trying to hack round another problem. Further it looks like if you want to preload and attach a media element later, dash.js still preload all the video? Ultimately, IMO, the top level application should only be passing audio-only manifests to the player when it knows the media element is of type audio. That said, if this is a problem we want to solve in the general case, perhaps it would be better to have an explicit configuration option to ignore streams of a particular MIME type? |
Hi @bbcrddave , there is many points that attempt to be fix with this PR. First of all, I think we do agree together to add tests on the type of element that is used by SetElement. The video element is able to play both audio and video, so, according to me, it is not useful to have same behavior than with the audio element. You're right, in preload use case, we don't know if the element will be an audio or a video so, we can't filter correctly. So, indeed, a configuration option could be interesting to add.... Nico |
For clarity, I meant the application controlling dash.js should know what the element type is, and only select appropriate content to be presented, rather than dash.js making the decision. That application is more likely to be aware of the context of the page, and so could either configure dash.js appropriately, or only select appropriate content. In the past (#1309) we have removed code detecting the object type since it would break, for example, the use case where vendors create an Anyway, I don't feel that strongly - was just making the case for an alternative solution 😄 |
@nicosang , @bbcrddave |
04ec702
to
1728a7a
Compare
…io. Other choices are not good.
…ll SetElement after test on element.
…t video scheduler.
1728a7a
to
fd5769f
Compare
Hi,
this PR has to solve issue #2490. Unit tests have been also updated by adding checking of element type.
@VincentFTS, could you, please, take a look at this PR?
Many thanks,
Nico