Skip to content
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

Adding data to media object and displaying them during current track #63

Open
benlooi opened this issue Oct 7, 2014 · 1 comment
Open

Comments

@benlooi
Copy link

benlooi commented Oct 7, 2014

Wow. This is a great piece of work. Much simpler than JPlayer!

I'm trying to include other items to the playlist, like track image, artiste name , etc to show during currentPlay.
[{src: "path/to/songfile.mp3", .... , img:"path/to/image", artistname:"nameofArtist"}]
so that the image and artist name is displayed in a div with the play bar below it. How do you reference the item in directives or html tags?

@benlooi
Copy link
Author

benlooi commented Oct 7, 2014

Hi...tried to understand the source. there is a mediaElement object. Tried to do a {{mediaElement.src}} after the tags in the HTML but I don't think it works that way.
mediaElement is populated by sourceElement. Tried an ng-bind too. No luck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant