While answers suggesting re-rendering in some way may solve your problem, if you have access to the player's API, it would be nice to see if the video stops stopping in your view's willDestroyElement to fix it.
In addition, you may have your video player, which is a component of Ember, which provides good configuration, shutdown and update:
App.VideoPlayerComponent = Ember.Component.extend({ source: null, // used in the template using that component isPlayerReady: false, // used to know internally if the player is ready setupPlayer: (function(){ // somehow setup the video player if needed // (if Flash player for example, make the flash detection and whatever) // once ready, trigger our `videoPlayerReady` event this.set('isPlayerReady', true); this.trigger('videoPlayerReady'); }).on('didInsertElement'), updatePlayerSource: (function(){ // start playing if we have a source and our player is ready if ( this.get('isPlayerReady') && this.get('source') ) { // replace with the correct js to start the video this.$('.class-of-player').videoPlay(this.get('source')); } }).observes('source').on('videoPlayerReady'), teardownSource: (function(){ // stop playing if our player is ready since our source is going to change if ( this.get('source') && this.get('isPlayerReady') ) { // replace with the correct js to stop the player this.$('.class-of-player').videoStop(); } }).observesBefore('source'), teardownPlayer: (function(){ // teardown the player somehow (do the opposite of what is setup in `setupPlayer`) // then register that our player isn't ready this.set('isPlayerReady', false); }).on('willDestroyElement') });
This will allow you to make sure that everything is correctly configured and worked correctly, and since this is a component that you can reuse, it will be very easy to have a backup copy for a flash player, for example. Then, no matter what you do and correct things related to the player, he will be in this component, and you just need to replace part of your template with a player:
{{video-player source=ctrl.videoUrl}}
Huafu source share