equal
deleted
inserted
replaced
|
1 IriSP.mediaplayer = function(options) { |
|
2 |
|
3 var directory = new IriSP.Model.Directory(), |
|
4 content = directory.remoteSource({ |
|
5 url: IriSP.endpoints.content + options.id, |
|
6 serializer: IriSP.serializers.content |
|
7 }), |
|
8 apidirectory = new IriSP.Model.Directory(); |
|
9 |
|
10 content.onLoad(function() { |
|
11 |
|
12 IriSP.mashupcore(content, new IriSP.Model.Mashup(false, content)); |
|
13 |
|
14 var media = content.getMedias()[0]; |
|
15 |
|
16 content.trigger("set-current", media); |
|
17 |
|
18 $(".info-title a").text(media.title); |
|
19 $(".title-video-wrap .title-video").text(media.title); |
|
20 $(".info-duration td").text(media.duration.toString()); |
|
21 $(".info-description td").text(media.description); |
|
22 $(".info-tags td").text(media.keywords); |
|
23 |
|
24 }); |
|
25 } |