colthreepv / colthreepv/angular-media-player

Error event not caught

Open
#78 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
228
Forks
69
PR merge metrics
No merged PRs in 30d

Description

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:

```
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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the mediaPlayer event handling and the $elDom.load() entry point mentioned in the report. Reproduce a missing-track failure and inspect whether the underlying error reaches the player; done means the expected error event is observable for an unavailable file.

Written by the indexing model from the issue text.

Assessment

Tech stack
angularjs, javascript
Domain
audio-video-rtc, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.