equal
deleted
inserted
replaced
261 this.$.find(".Ldt-AnnotationsList-Play").click(function() { |
261 this.$.find(".Ldt-AnnotationsList-Play").click(function() { |
262 var _el = IriSP.jQuery(this), |
262 var _el = IriSP.jQuery(this), |
263 _audiofile = _el.attr("data-audio").replace(_this.rtmp_streamer,""); |
263 _audiofile = _el.attr("data-audio").replace(_this.rtmp_streamer,""); |
264 _el.text(_this.l10n.now_playing); |
264 _el.text(_this.l10n.now_playing); |
265 _this.jwplayer.load({ |
265 _this.jwplayer.load({ |
266 file: _audiofile, |
266 file: _audiofile |
267 streamer: _this.rtmp_streamer |
|
268 }); |
267 }); |
269 _this.jwplayer.play(true); |
268 _this.jwplayer.play(true); |
270 _this.media.pause(); |
269 _this.media.pause(); |
271 _this.jw_paused_media = true; |
270 _this.jw_paused_media = true; |
272 }); |
271 }); |
304 var _tmpId = "jwplayer-" + IriSP.Model.getUID(); |
303 var _tmpId = "jwplayer-" + IriSP.Model.getUID(); |
305 this.$.find(".Ldt-AnnotationsList-Audio").attr("id", _tmpId); |
304 this.$.find(".Ldt-AnnotationsList-Audio").attr("id", _tmpId); |
306 this.jwplayer = jwplayer(_tmpId); |
305 this.jwplayer = jwplayer(_tmpId); |
307 this.jwplayer.setup({ |
306 this.jwplayer.setup({ |
308 flashplayer: IriSP.getLib("jwPlayerSWF"), |
307 flashplayer: IriSP.getLib("jwPlayerSWF"), |
|
308 fallback: false, |
309 width: 1, |
309 width: 1, |
310 height: 1, |
310 height: 1, |
311 provider: "rtmp", |
|
312 events: { |
311 events: { |
313 onIdle: function() { |
312 onIdle: function() { |
314 if (_this.jw_paused_media) { |
313 if (_this.jw_paused_media) { |
315 _this.jw_paused_media = false; |
314 _this.jw_paused_media = false; |
316 _this.media.play(); |
315 _this.media.play(); |