angularjs - Azure Media Player not playing video in Angular JS on revisit the view -
i have consumed azure media player in angularjs application , able view video. on revisit same view video tag present, not playing video, audio playing in background.
i using ui-router routing.
thanks in advance quick help.
here angular js code view video
var myoptions = { "nativecontrolsfortouch": false, controls: true, autoplay: false, width: "640", height: "400", } var myplayer = amp("azuremediaplayer", myoptions); myplayer.src([ { "src": "//amssamples.streaming.mediaservices.windows.net/91492735-c523-432b-ba01- faba6c2206a2/azuremediaservicespromo.ism/manifest", "type": "application/vnd.ms-sstr+xml" } ]); amp("azuremediaplayer").ready(function(){ var myplayer = this; myplayer.play(); }); **html tag** <video id="azuremediaplayer" class="azuremediaplayer amp-default-skin amp- big-play-centered" tabindex="0"></video>
Comments
Post a Comment