diff options
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/js/views/sample.js | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/assets/js/views/sample.js b/assets/js/views/sample.js index 8b08b68..e8bfc97 100644 --- a/assets/js/views/sample.js +++ b/assets/js/views/sample.js @@ -23,6 +23,12 @@ ClipPlay.Views.Sample = Marionette.ItemView.extend({  			var player = new OP.Player(iframe[0]);  			that.model.set('player', player);  			that.model.set('iframe', iframe); +			 +			// Trying to get the duration but this returns 0 for some reason  +			// on the YouTube video I'm testing with +			player.getDuration(function(value) { +				that.model.set('duration', value); +			});  		});  	}, | 
