Changeset 1428555
- Timestamp:
- 06/01/2016 06:59:31 PM (10 years ago)
- Location:
- ooyala-video-browser/trunk
- Files:
-
- 2 edited
-
ooyala.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ooyala-video-browser/trunk/ooyala.php
r1423439 r1428555 6 6 Author: ooyala 7 7 Author URI: http://oomphinc.com/ 8 Version: 2. 2.08 Version: 2.3.0 9 9 */ 10 10 … … 1151 1151 <script> 1152 1152 var ooyalaplayers = ooyalaplayers || []; 1153 1153 1154 OO.ready(function() { 1154 ooyalaplayers.push(OO.Player.create.apply(OO.Player, <?php echo wp_json_encode( $params ); ?>)); 1155 var op = typeof window.ooyalaParameters === 'function' ? window.ooyalaParameters : function(params) { return params; }; 1156 ooyalaplayers.push(OO.Player.create.apply(OO.Player, op(<?php echo wp_json_encode( $params ); ?>))); 1155 1157 }); 1156 1158 </script> … … 1168 1170 $params[] = $js_params; 1169 1171 } 1170 printf( 'window[%1$s].ready(function() { ooyalaplayers.push(window[%1$s].Player.create.apply(this, %2$s)); });', wp_json_encode( $player ), wp_json_encode( $params ) );1172 printf( 'window[%1$s].ready(function() { var op = typeof window.ooyalaParameters === \'function\' ? window.ooyalaParameters : function(params) { return params; }; ooyalaplayers.push(window[%1$s].Player.create.apply(this, op(%2$s))); });', wp_json_encode( $player ), wp_json_encode( $params ) ); 1171 1173 ?> 1172 1174 </script> -
ooyala-video-browser/trunk/readme.txt
r1423439 r1428555 4 4 Requires at least: 3.9 5 5 Tested up to: 4.5.0 6 Stable tag: 2. 2.06 Stable tag: 2.3.0 7 7 License: GPLv2 or later 8 8 … … 41 41 42 42 == Changelog == 43 44 = 2.3.0 = 45 * Allow JavaScript player parameters to be modified by an 'ooyalaParameters' function defined in the global JavaSvcript namespace. 43 46 44 47 = 2.2.0 =
Note: See TracChangeset
for help on using the changeset viewer.