Intent of this page is to interact directly with angular-media-player from your browser.
Just open your favourite browser console and type:
var angularmp = angular.element(document.querySelector('audio')).scope().mediaPlayer;
var angularpl = angular.element(document.querySelector('audio')).scope().mediaPlaylist;
You've just accessed the mediaPlayer
and its playlist.
Push an element to the playlist with:
angularpl.push({ src: '<srchere>', type: '<typehere>'});
mediaPlayer = {
playing: [[ mediaPlayer.playing ]]
currentTrack: [[ mediaPlayer.currentTrack ]]
tracks: [[ mediaPlayer.tracks ]]
volume: [[ mediaPlayer.volume ]]
formatDuration: [[ mediaPlayer.formatDuration ]]
duration: [[ mediaPlayer.duration ]]
currentTime: [[ mediaPlayer.currentTime ]]
formatTime: [[ mediaPlayer.formatTime ]]
loadPercent: [[ mediaPlayer.loadPercent ]]
};
browser: [[ browser ]]