summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
authorTeddy Wing2013-11-09 22:56:45 -0500
committerTeddy Wing2013-11-09 22:57:28 -0500
commitecd0c361b79cf590ad87a26b03f8c01de20b0864 (patch)
tree8c826532cc32b0dab0231a3bc6755954df1c5f0e /assets
parentc414b1c3b4e3d09a6cce3febb08e430b762e444a (diff)
downloadclip-play-ecd0c361b79cf590ad87a26b03f8c01de20b0864.tar.bz2
Trying to get video duration but it's not working
Tested the player.html file and apparently the buttons don't seem to work any more either. Will continue getting the clip positions to save in the model once we get it working again.
Diffstat (limited to 'assets')
-rw-r--r--assets/js/views/sample.js6
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);
+ });
});
},