colthreepv / colthreepv/angular-media-player

event bind method does not working

Open
#81 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

I have added below code in controller but it does not works
TypeError: Cannot read property 'on' of undefined

I also tried mediaPlayer insteadof playerName
please suugest playerName comes from, (it seems it's undefined)
$scope.playerName.on( 'load', function( evt ) {
// Tell someone a song is gonna get loaded.
console.log( evt );
} );

Contributor guide

No contributing guide indexed for this repository

Research direction

No file or test is named; start by reproducing the controller snippet with the AngularJS directive around the audio or video player. Trace how the directive exposes the player reference and compare it with the documented event-binding entry point; done means the undefined-reference error is explained and a verified binding path is identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
angularjs, javascript
Domain
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.