Solved
Audio Auto Play
Hello,
I am looking for code to make the Audio start playing automatically upon the loading of a new view.
Avinash
Hello,
I am looking for code to make the Audio start playing automatically upon the loading of a new view.
Avinash
Hello Avinash,
The solution is :
$scope.$on('$ionicView.afterEnter', function(){
// Anything you can think of
twx.app.fn.triggerWidgetService('audio-1', 'play');
})
When View will be finished to be loaded, this event is triggered and we run Service Play of Audio Widget named audio-1.
Best regards,
Samuel
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.