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
To the best of my knowledge and of reading the source, there is no event to tell when all audio files in a playlist have completed.
I know the playlist can be updated on the fly, so that this event could be fired multiple times, but I think it could be really useful.
Since there's no way to tell when a single audio file is done, the :pause event is used for both, I've done the following to tell when my playlist is over.
Do you have any suggestions on how I could improve this or the source code itself?
$scope.$watch("audio1.currentTrack", function(currentTrackNumber) {
if (!$scope.audio1) return;
if (currentTrackNumber == $scope.audio1.tracks) {
var deregister = $scope.$on("narrationPlayer:pause", function(scope, currentlyPlaying) {
if (!currentlyPlaying) {
//allPlayedEvent()
deregister();
}
});
}
});
The text was updated successfully, but these errors were encountered:
Will be done in next release, there will be a property called ended, it will be set to true then an audio element is completed and there is NOT a next in line
To the best of my knowledge and of reading the source, there is no event to tell when all audio files in a playlist have completed.
I know the playlist can be updated on the fly, so that this event could be fired multiple times, but I think it could be really useful.
Since there's no way to tell when a single audio file is done, the :pause event is used for both, I've done the following to tell when my playlist is over.
Do you have any suggestions on how I could improve this or the source code itself?
The text was updated successfully, but these errors were encountered: