-
Notifications
You must be signed in to change notification settings - Fork 428
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
cuechange event not being triggered on audio only HLS streams #130
Comments
mjneil commented on Sep 12, 2017, 6:42 PM UTC: Looks like metadata cues are not being added to the track in an audio only case. Comment in contrib-media-sources |
nomayonnaise commented on Sep 13, 2017, 9:16 AM UTC: Thanks mjneil for pointing me in the right direction. |
jamesjieye commented on Mar 24, 2018, 3:41 PM UTC: mjneil, I've created a pull request on videojs-contrib-media-source which fixes this issue. Could you merge the PR? Thanks, |
uraspaz88 commented on Apr 20, 2018, 1:05 PM UTC: I don't think the merge has been done yet but I can confirm that the issue is still present. I'm using videojs-6.8.0, and videojs-contrib-hls-5.14.1. Something I noticed in my cross-browser/device testing was that Safari on OSX/iOS does fire the cuechange event with audio-only HLS streams, possibly due to Apple's native HLS support, but other browsers/devices fail to fire the cuechange event for audio-only HLS streams. Related, the native HLS support built into Edge and Android seems to have an issue where the addtrack event doesn't fire when the initial ID3 info is received. In this case, using the hls.overrideNative option is a decent work-around. I'm a github noob, so if I can provide other info, let me know. |
jamesjieye commented on Apr 20, 2018, 1:10 PM UTC: uraspaz88, the pull request is still open videojs/videojs-contrib-media-sources#172. The current workaround is to change the library in I've sent request to mjneil but no reply yet. |
Looks like we are avoiding adding ID3 cues from audio streams https://github.com/videojs/http-streaming/blob/master/src/mse/virtual-source-buffer.js#L482 as mux.js already handles the parsing of AAC for ID3 tags: We might want to port over this PR from contrib-media-sources(after testing): |
Hello @ldayananda and @mparisi76. I'm writing to you because we have a video player that uses Video.js as a rendering engine, and we are currently experiencing this exact same problem (Cue points are no triggering I followed this issue around and I can see that there's some merged code for it already (#334). I have prepared a testing environment for you: This page has links to Do you think you can have a look? The actual streams are here:
Thanks a lot! Matias |
Hey! We've detected some video files in a comment on this issue. If you'd like to permanently archive these videos and tie them to this project, a maintainer of the project can reply to this issue with the following commands:
|
As things currently stand (code has changed a lot since the original issue), I think this is because this expects the http-streaming/src/segment-loader.js Lines 1875 to 1877 in afb1ff7
However that value defaults to http-streaming/src/source-updater.js Lines 337 to 339 in afb1ff7
Setting that default to |
Hi @mister-ben, thank you very much for your reply. I could create a PR with this change if you think it would be helpful. I briefly checked the repository and from my really limited understanding, videoTimestampOffset would never return null unless explicitly set by calling videoTimestampOffset(null) correct? Is it safe to assume that changing null to 0 in that ternary would fix this issue? |
nomayonnaise commented on Sep 12, 2017, 10:04 AM UTC:
Description
The cuechange eventListener is not being triggered for audio only HLS streams when using this plug-in. The audio only stream contains 3 10 second .ts segments with AAC audio 64kb/s. This happens with a real live HLS stream as well.
Here are 2 examples with 3 ts segments
With audio only - cuechange event is not triggered
http://jsfiddle.net/8f05vyb2/
With video and audio - cuechange event is triggered
http://jsfiddle.net/p228339u/4/
Sources
With audio only
http://li720-23.members.linode.com/hls/audio.m3u8
With video and audio
http://li720-23.members.linode.com/hls/video.m3u8
Steps to reproduce
Explain in detail the exact steps necessary to reproduce the issue.
Results
Expected
cuechange triggered, input value is updated
Error output
There is no error output, cuechange event not triggered.
Additional Information
This only happens with audio only .ts segments. .ts segments with video and audio work correctly. This example only has 3 10 seconds .ts segments so the player will stop after 30 seconds.
videojs-contrib-hls version
what version of videojs-contrib-hls does this occur with?
videojs-contrib-hls 5.10.1
videojs version
what version of videojs does this occur with?
video.js 6.2.8
Browsers
what browsers are affected? please include browser and version for each
Google Chrome 60.0.3112.113
Platforms
what platforms are affected? please include operating system and version or device and version for each
Windows 7,8.1,10, OSX/MacOs
Other Plugins
are any other videojs plugins being used on the page? If so, please list them with version below.
None
Other JavaScript
are you using any other javascript libraries or frameworks on the page? if so please list them below.
None
This issue was moved by forbesjo from videojs/videojs-contrib-hls#1255.
The text was updated successfully, but these errors were encountered: