-
Notifications
You must be signed in to change notification settings - Fork 33
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
Runtime Properties #21
Comments
Hi @howardkitto, glad to see it's helpful. To get a reference to runtime properties you can listen for the
For more information, check out this section of the README. Let me know if that helps/solves your problem! |
Thanks so much, this helps a lot however I can't figure out how to get at the hls runtime data or even find any examples! |
@howardkitto are you using this? If so you_should_ be able to access the hls data like so (although I haven't tested using hls data myself):
|
Yes that's exactly what I tried first of all but I get: e.data.vid: undefined |
Looks like I had a typo there, it shouldn't be e.data.vid but data.vid! I'll pudeste the docs! |
Looks like if you copied the code the e.dva.vid is just the comment, are you getting a non null value for the data.vid variable? |
Hey Lonny I'm pretty new to Angular, so some of this is black magic to me! In Test A
and I console logs this: data.vid: Player {player: Player, options_: Object, id_: "vjs_video_3", All good. In Test B I have this:
and when the page loads I get this... TypeError: Cannot read property 'segmentXhrTime' of undefined and this when I load the video: data.vid: undefined But the video plays with no problem My guess is that I need to listen for some other event to fire, like when Thanks so much for your help so far! Howard On 13 December 2015 at 17:37, Lonny Gomes notifications@github.com wrote:
|
@howardkitto Out of curiosity, is this only an issue when used with the directive? If so I wonder if there is an issue with how the video.js hls plugin is getting initialized. |
This directive is great! It saved me so much time.
I need to log information about HLS playback quality. What is the best way for me to display the video.js runtime properties for example player.hls.segmentXhrTime, player.hls.bandwidth, player.hls.bytesReceived while the video is playing?
Huge thanks
The text was updated successfully, but these errors were encountered: