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

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -