Permalink
Browse files

fixed video using wrong path

  • Loading branch information...
1 parent cd51960 commit 2bfb9c459a8fcbbada5b58713f0f19a4de6776e6 @ericmatthys ericmatthys committed May 9, 2012
@@ -75,7 +75,7 @@ define(
success: function (response) {
var m3u8_rel = response.replace(/[\s\S]+(session.+?\.m3u8)[\s\S]+/, '$1');
session_id = m3u8_rel.split('/')[1];
- var m3u8 = baseURL + m3u8_rel + '?X-Plex-Token=' + token;
+ var m3u8 = baseURL + m3u8_rel;
$el.attr('src', m3u8);
},
@@ -18,15 +18,17 @@ define(
var VideoPlayerView = BaseView.extend({
id: 'video-player',
tagName: 'section',
- className: 'content animated-fast scaleIn',
+ className: 'content fixed-width animated-fast scaleIn',
player: undefined,
render: function () {
this.$el.html(tpl(this.model.toJSON()));
+ console.log(this.model);
+
// Start transcoding the video
- Transcoder.video(this.model.get('key'), this.$('video'));
+ Transcoder.video(this.model.get('Media').Part.key, this.$('video'));
return this;
}
Oops, something went wrong.

0 comments on commit 2bfb9c4

Please sign in to comment.