Changeset 923
- Timestamp:
- 04/07/10 18:01:00 (3 years ago)
- Location:
- trunk/html5
- Files:
-
- 5 edited
-
index.html (modified) (1 diff)
-
src/jquery.jwplayerUtils.js (modified) (1 diff)
-
src/jquery.jwplayerUtilsParsersDOMElementParser.js (modified) (1 diff)
-
src/jquery.jwplayerUtilsParsersDOMMediaElementParser.js (modified) (1 diff)
-
src/jquery.jwplayerView.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/html5/index.html
r920 r923 49 49 50 50 51 <h4>Test 3: Using multiple sources</h4> 52 <video 53 id="player1" 54 class="jwplayer" 55 width="480" 56 height="270" 57 poster="http://developer.longtailvideo.com/player/testing/files/bunny.jpg" 58 > 59 <source src='http://developer.longtailvideo.com/player/testing/files/bunny.mp4' type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'> 60 <source src='http://developer.longtailvideo.com/player/testing/files/bunny.ogv' type='video/ogg; codecs="theora, vorbis"'> 61 </video> 62 51 63 52 64 </body> -
trunk/html5/src/jquery.jwplayerUtils.js
r921 r923 107 107 108 108 109 $.fn.log = function (msg) { 110 console.log("%s: %o", msg, this); 109 $.fn.log = function (msg, obj) { 110 try { 111 console.log("%s: %o", msg, obj); 112 } catch (err) { 113 } 111 114 return this; 112 115 }; -
trunk/html5/src/jquery.jwplayerUtilsParsersDOMElementParser.js
r921 r923 32 32 for (var attribute in attributes) { 33 33 if (attribute != "length") { 34 configuration[attributes[attribute]] = $(domElement).attr(attribute); 34 var value = $(domElement).attr(attribute); 35 if (!(value == "" || value == undefined)) { 36 configuration[attributes[attribute]] = $(domElement).attr(attribute); 37 } 35 38 } 36 39 } -
trunk/html5/src/jquery.jwplayerUtilsParsersDOMMediaElementParser.js
r921 r923 26 26 var sources = []; 27 27 $("source",domElement).each(function() { 28 sources[sources.length] = $.fn.jwplayerUtilsParsersDOMSourceElementParser.parse( domElement);28 sources[sources.length] = $.fn.jwplayerUtilsParsersDOMSourceElementParser.parse(this); 29 29 }); 30 30 var configuration = $.fn.jwplayerUtilsParsersDOMElementParser.parse(domElement, attributes); 31 if (configuration['file'] != undefined) { 32 sources[0] = {'file':configuration['file']}; 33 } 31 34 configuration['sources'] = sources; 32 35 return configuration; -
trunk/html5/src/jquery.jwplayerView.js
r921 r923 13 13 /** Embeds a Flash Player at the specified location in the DOM. **/ 14 14 $.fn.jwplayerView.embedFlash = function(domElement, model) { 15 $.fn.log($.fn.jwplayerUtils.dump(model));16 15 if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) { 17 16 $(domElement).replaceWith("<embed " + … … 24 23 "allowfullscreen='true' " + 25 24 "allowscriptaccess='always' " + 26 "flashvars='file=" + model. file + "&image=" + model.image + "' " +25 "flashvars='file=" + model.sources[0].file + "&image=" + model.image + "' " + 27 26 "/>" 28 27 ); … … 33 32 "<param name='allowscriptaccess' value='always'>" + 34 33 "<param name='wmode' value='transparent'>" + 35 "<param name='flashvars' value='file=" + model. file + "&image=" + model.image + "'>" +34 "<param name='flashvars' value='file=" + model.sources[0].file + "&image=" + model.image + "'>" + 36 35 "</object>" 37 36 );
Note: See TracChangeset
for help on using the changeset viewer.
