Changeset 1879
- Timestamp:
- 07/01/11 11:01:19 (23 months ago)
- Location:
- branches/sharing
- Files:
-
- 12 added
- 7 edited
- 1 moved
-
assets/copy.png (added)
-
assets/icon.png (added)
-
assets/input.png (added)
-
build/build.xml (modified) (1 diff)
-
build/encode-images.py (modified) (1 diff)
-
libs (added)
-
libs/jwplayer-5-classes.xml (added)
-
libs/jwplayer-5-lib.swc (added)
-
sharing.js (added)
-
sharing.swf (added)
-
src/as (added)
-
src/as/Sharing.as (added)
-
src/js (added)
-
src/js/sharing.js (moved) (moved from branches/sharing/src/sharing.js) (3 diffs)
-
test/basic.html (modified) (1 diff)
-
test/flash.html (added)
-
test/iframe.html (modified) (1 diff)
-
test/index.html (modified) (1 diff)
-
test/modes.html (modified) (1 diff)
-
test/playlist.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/sharing/build/build.xml
r1827 r1879 1 <project name="Plugin" default="build JS">1 <project name="Plugin" default="buildAS"> 2 2 3 <target name="buildJS" depends="buildAS"> 3 4 <target name="buildJS"> 4 5 <java jar="yuicompressor.jar" fork="true"> 5 <arg line="'../src/ sharing.js'"/>6 <arg line="'../src/js/sharing.js'"/> 6 7 <arg line="-o '../sharing.js'"/> 7 8 </java> 8 <echo message="Minified javascript." />9 9 <exec executable="python"> 10 10 <arg file="encode-images.py" /> 11 11 <arg file="../sharing.js" /> 12 <arg file="../ src/assets/" />12 <arg file="../assets/" /> 13 13 </exec> 14 <echo message="Encoded images to base64." /> 14 <echo message="Compiled JS plugin." /> 15 </target> 16 17 <target name="buildAS" depends="buildJS"> 18 <exec executable="/Developer/SDKs/flex_sdk_4/bin/mxmlc" dir="../"> 19 <arg line="src/as/Sharing.as" /> 20 <arg line="-o sharing.swf" /> 21 <arg line="-sp src/as" /> 22 <arg line="-library-path+=libs" /> 23 <arg line="-load-externs=libs/jwplayer-5-classes.xml" /> 24 <arg line="-static-link-runtime-shared-libraries=true" /> 25 <arg line="-use-network=false" /> 26 <arg line="-optimize=true" /> 27 <arg line="-incremental=false" /> 28 </exec> 29 <echo message="Compiled SWF plugin." /> 15 30 </target> 16 31 -
branches/sharing/build/encode-images.py
r1827 r1879 17 17 } 18 18 for ext in extensions: 19 regex = re.compile(' url\((\.*\/*)([a-zA-Z0-9-_/]+)\.%s\)' % ext)19 regex = re.compile('(\.*\/*)([a-zA-Z0-9-_/]+)\.%s' % ext) 20 20 matches = regex.finditer(css) 21 21 if matches: -
branches/sharing/src/js/sharing.js
r1878 r1879 112 112 /** Set dock buttons when player is ready. **/ 113 113 function _setup() { 114 if(_player.getRenderingMode() == 'flash') { return; } 114 115 _player.getPlugin("dock").setButton('share',show,'../assets/share.png'); 115 116 _div.onclick = _hide; … … 152 153 /** Reposition elements upon a resize. **/ 153 154 this.resize = function(width,height) { 155 if(_player.getRenderingMode() == 'flash') { return; } 154 156 _style(_div,{ 155 157 backgroundImage: 'url(../assets/sheet.png)', … … 181 183 182 184 /** Register the plugin with JW Player. **/ 183 jwplayer().registerPlugin('sharing', template );185 jwplayer().registerPlugin('sharing', template,'./sharing.swf'); 184 186 185 187 -
branches/sharing/test/basic.html
r1878 r1879 27 27 }; 28 28 if(codelink) { 29 options.plugins = { '../s rc/sharing.js': {29 options.plugins = { '../sharing.js': { 30 30 code: '<iframe src="http://content.bitsontherun.com/previews/bkaovAYt-V7MoJd7l" width="480" height="270" frameborder="0" scrolling="auto"></iframe>', 31 31 link: 'http://www.bigbuckbunny.org/' 32 32 }}; 33 33 } else { 34 options.plugins = { '../s rc/sharing.js': {} };34 options.plugins = { '../sharing.js': {} }; 35 35 } 36 36 jwplayer("container").setup(options); -
branches/sharing/test/iframe.html
r1878 r1879 18 18 image: 'http://content.bitsontherun.com/thumbs/bkaovAYt-480.jpg', 19 19 flashplayer: 'assets/jwplayer.swf', 20 plugins: { '../s rc/sharing.js': {} },20 plugins: { '../sharing.js': {} }, 21 21 height: 180, 22 22 width: 320 -
branches/sharing/test/index.html
r1878 r1879 20 20 <li><a href="playlist.html">Sharing in Playlist</a></li> 21 21 <li><a href="iframed.html">Within an iFrame</a></li> 22 <li><a href="flash.html">Standalone Flash</a></li> 22 23 </ul> 23 24 -
branches/sharing/test/modes.html
r1878 r1879 25 25 image: 'http://content.bitsontherun.com/thumbs/bkaovAYt-480.jpg', 26 26 height: 294, 27 plugins: {'../s rc/sharing.js': {27 plugins: {'../sharing.js': { 28 28 code: '<iframe src="http://content.bitsontherun.com/previews/bkaovAYt-V7MoJd7l" width="480" height="270" frameborder="0" scrolling="auto"></iframe>', 29 29 link: 'http://www.bigbuckbunny.org/' -
branches/sharing/test/playlist.html
r1878 r1879 23 23 'playlist.position': 'right', 24 24 'playlist.size': 320, 25 plugins: { '../s rc/sharing.js': {} },25 plugins: { '../sharing.js': {} }, 26 26 width: 720 27 27 };
Note: See TracChangeset
for help on using the changeset viewer.
