Skip to content Skip to sidebar Skip to footer

Angular On Video Load Event

I'm still trying to understand angular... Basically, I have an html5 video and I want to listen to the onloadeddata event (http://www.w3schools.com/jsref/event_onloadeddata.asp). T

Solution 1:

Figured it out! Looks like I need to use:

$element[0].addEventListener(...)

Instead of:

$element.addEventListener(...)

Solution 2:

$element.on('loadeddata', function (event) {
   var width = $element[0].videoWidth;
}

'loadeddata' works for me 'loadedData' does not

Post a Comment for "Angular On Video Load Event"