Skip to content

Commit 7075ca3

Browse files
committed
Updated popcorn plugin to use 2.5.0
1 parent eef9658 commit 7075ca3

File tree

1 file changed

+34
-9
lines changed

1 file changed

+34
-9
lines changed

popcorn/player/popcorn.jplayer.js

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
* http://opensource.org/licenses/MIT
88
*
99
* Author: Mark J Panaghiston
10-
* Version: 1.1.1
11-
* Date: 5th June 2013
10+
* Version: 1.1.2
11+
* Date: 7th November 2013
1212
*
1313
* For Popcorn Version: 1.3
14-
* For jPlayer Version: 2.4.0
15-
* Requires: jQuery 1.3.2+
14+
* For jPlayer Version: 2.5.0
15+
* Requires: jQuery 1.7+
1616
* Note: jQuery dependancy cannot be removed since jPlayer 2 is a jQuery plugin. Use of jQuery will be kept to a minimum.
1717
*/
1818

@@ -22,14 +22,14 @@
2222

2323
(function(Popcorn) {
2424

25-
var JQUERY_SCRIPT = 'http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js', // Used if jQuery not already present.
26-
JPLAYER_SCRIPT = 'http://www.jplayer.org/2.4.0/js/jquery.jplayer.min.js', // Used if jPlayer not already present.
27-
JPLAYER_SWFPATH = 'http://www.jplayer.org/2.4.0/js/Jplayer.swf', // Used if not specified in jPlayer options via SRC Object.
25+
var JQUERY_SCRIPT = '//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js', // Used if jQuery not already present.
26+
JPLAYER_SCRIPT = '//www.jplayer.org/2.5.0/js/jquery.jplayer.min.js', // Used if jPlayer not already present.
27+
JPLAYER_SWFPATH = '//www.jplayer.org/2.5.0/js/Jplayer.swf', // Used if not specified in jPlayer options via SRC Object.
2828
SOLUTION = 'html,flash', // The default solution option.
2929
DEBUG = false, // Decided to leave the debugging option and console output in for the time being. Overhead is trivial.
3030
jQueryDownloading = false, // Flag to stop multiple instances from each pulling in jQuery, thus corrupting it.
3131
jPlayerDownloading = false, // Flag to stop multiple instances from each pulling in jPlayer, thus corrupting it.
32-
format = { // Duplicate of jPlayer 2.4.0 object, to avoid always requiring jQuery and jPlayer to be loaded before performing the _canPlayType() test.
32+
format = { // Duplicate of jPlayer 2.5.0 object, to avoid always requiring jQuery and jPlayer to be loaded before performing the _canPlayType() test.
3333
mp3: {
3434
codec: 'audio/mpeg; codecs="mp3"',
3535
flashCanPlay: true,
@@ -40,8 +40,23 @@
4040
flashCanPlay: true,
4141
media: 'audio'
4242
},
43+
m3u8a: { // AAC / MP4 / Apple HLS
44+
codec: 'application/vnd.apple.mpegurl; codecs="mp4a.40.2"',
45+
flashCanPlay: false,
46+
media: 'audio'
47+
},
48+
m3ua: { // M3U
49+
codec: 'audio/mpegurl',
50+
flashCanPlay: false,
51+
media: 'audio'
52+
},
4353
oga: { // OGG
44-
codec: 'audio/ogg; codecs="vorbis"',
54+
codec: 'audio/ogg; codecs="vorbis, opus"',
55+
flashCanPlay: false,
56+
media: 'audio'
57+
},
58+
flac: { // FLAC
59+
codec: 'audio/x-flac',
4560
flashCanPlay: false,
4661
media: 'audio'
4762
},
@@ -70,6 +85,16 @@
7085
flashCanPlay: true,
7186
media: 'video'
7287
},
88+
m3u8v: { // H.264 / AAC / MP4 / Apple HLS
89+
codec: 'application/vnd.apple.mpegurl; codecs="avc1.42E01E, mp4a.40.2"',
90+
flashCanPlay: false,
91+
media: 'video'
92+
},
93+
m3uv: { // M3U
94+
codec: 'audio/mpegurl',
95+
flashCanPlay: false,
96+
media: 'video'
97+
},
7398
ogv: { // OGG
7499
codec: 'video/ogg; codecs="theora, vorbis"',
75100
flashCanPlay: false,

0 commit comments

Comments
 (0)