You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
angular.module('myApp',['mediaPlayer'])
.controller('MyController', function ($scope) {
$scope.playerName.on('error', function (evt) {
// Tell someone a song cannot be loaded.
});
})
This event is not caught but pause/play are.
How can I solve this issue?
It seems that it is the file not found error which is not caught. Maybe encapsulate the $elDom.load() in a try catch and fire an event when fail?
Thank you.
The text was updated successfully, but these errors were encountered:
Hi,
I try to catch the 'error' event according to http://www.w3schools.com/tags/ref_av_dom.asp if a track could not be loaded.
I implemented the following:
This event is not caught but pause/play are.
How can I solve this issue?
It seems that it is the file not found error which is not caught. Maybe encapsulate the $elDom.load() in a try catch and fire an event when fail?
Thank you.
The text was updated successfully, but these errors were encountered: