Changeset 394
- Timestamp:
- 10/04/09 13:16:52 (4 years ago)
- Files:
-
- 10 edited
-
plugins/infobox/com/jeroenwijering/plugins/InfoBox.as (modified) (3 diffs)
-
plugins/infobox/infobox.swf (modified) (previous)
-
plugins/infobox/infobox.xml (modified) (1 diff)
-
testing/files/bitrates.xml (modified) (4 diffs)
-
testing/index.html (modified) (1 diff)
-
trunk/as3/com/jeroenwijering/models/RTMPModel.as (modified) (4 diffs)
-
trunk/as3/com/jeroenwijering/player/Model.as (modified) (1 diff)
-
trunk/as3/com/jeroenwijering/player/Player.as (modified) (1 diff)
-
trunk/as3/com/jeroenwijering/utils/NetClient.as (modified) (1 diff)
-
trunk/as3/player.swf (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
-
plugins/infobox/com/jeroenwijering/plugins/InfoBox.as
r332 r394 18 18 private var back:Sprite; 19 19 /** Default colors. **/ 20 private var colors:Array = new Array('FFFFFF','000000' ,'000000');20 private var colors:Array = new Array('FFFFFF','000000'); 21 21 /** Reference to the graphics. **/ 22 22 public var config:Object = { 23 color:undefined, 23 24 size:85, 24 25 position:'bottom' … … 47 48 addChild(back); 48 49 title = new TextField(); 49 title.defaultTextFormat = new TextFormat("_sans",13,uint('0x'+colors[ 2]),true);50 title.defaultTextFormat = new TextFormat("_sans",13,uint('0x'+colors[1]),true); 50 51 title.x = title.y = 5; 51 52 addChild(title); … … 73 74 if(view.config['backcolor']) { colors[0] = view.config['backcolor']; } 74 75 if(view.config['frontcolor']) { colors[1] = colors[2] = view.config['frontcolor']; } 75 if( view.config['lightcolor']) { colors[2] = view.config['lightcolor']; }76 if(config['color']) { colors[1] = config['color']; } 76 77 view.addControllerListener(ControllerEvent.PLAYLIST,itemHandler); 77 78 view.addControllerListener(ControllerEvent.ITEM,itemHandler); -
plugins/infobox/infobox.xml
r314 r394 19 19 <flashvars> 20 20 <flashvar> 21 <name>color</name> 22 <default /> 23 <description> 24 Color of the texts in the box. By default, the 'frontcolor' parameter of the player is used. 25 Set this flashvar to override the 'frontcolor'. 26 </description> 27 </flashvar> 28 <flashvar> 21 29 <name>position</name> 22 30 <default>bottom</default> -
testing/files/bitrates.xml
r390 r394 9 9 <description>When bitrate switching a progressive download, the only actual switch is done on startup.</description> 10 10 <media:group> 11 <media:content bitrate="1 500" width="1080" url="http://content.bitsontherun.com/videos/8Juv1MVa-67727.mp4" />12 <media:content bitrate="1 100" width="720" url="http://content.bitsontherun.com/videos/8Juv1MVa-485.mp4" />13 <media:content bitrate=" 700" width="480" url="http://content.bitsontherun.com/videos/8Juv1MVa-484.mp4" />11 <media:content bitrate="1600" width="1080" url="http://content.bitsontherun.com/videos/8Juv1MVa-67727.mp4" /> 12 <media:content bitrate="1200" width="720" url="http://content.bitsontherun.com/videos/8Juv1MVa-485.mp4" /> 13 <media:content bitrate="800" width="480" url="http://content.bitsontherun.com/videos/8Juv1MVa-484.mp4" /> 14 14 <media:content bitrate="400" width="320" url="http://content.bitsontherun.com/videos/8Juv1MVa-483.mp4" /> 15 15 <media:thumbnail url="http://content.bitsontherun.com/thumbs/8Juv1MVa-480.jpg" /> … … 20 20 <title>HTTP streaming</title> 21 21 <description>Bitrate switching for HTTP streaming is done on startup and with every seek and fullscreen switch.</description> 22 <media:content bitrate="1 500" width="1080" url="http://content.bitsontherun.com/videos/8Juv1MVa-67727.mp4" />23 <media:content bitrate="1 100" width="720" url="http://content.bitsontherun.com/videos/8Juv1MVa-485.mp4" />24 <media:content bitrate=" 700" width="480" url="http://content.bitsontherun.com/videos/8Juv1MVa-484.mp4" />22 <media:content bitrate="1600" width="1080" url="http://content.bitsontherun.com/videos/8Juv1MVa-67727.mp4" /> 23 <media:content bitrate="1200" width="720" url="http://content.bitsontherun.com/videos/8Juv1MVa-485.mp4" /> 24 <media:content bitrate="800" width="480" url="http://content.bitsontherun.com/videos/8Juv1MVa-484.mp4" /> 25 25 <media:content bitrate="400" width="320" url="http://content.bitsontherun.com/videos/8Juv1MVa-483.mp4" /> 26 26 <media:thumbnail url="http://content.bitsontherun.com/thumbs/8Juv1MVa-480.jpg" /> … … 30 30 31 31 <item> 32 <title>RTMP streaming </title>32 <title>RTMP streaming (Wowza)</title> 33 33 <description>Bitrate switching for RTMP streaming is done on startup and with every seek and fullscreen switch.</description> 34 34 <media:group> 35 <media:content bitrate="1500" width="1080" url="videos/8Juv1MVa-67727.mp4" /> 36 <media:content bitrate="1100" width="720" url="videos/8Juv1MVa-485.mp4" /> 37 <media:content bitrate="700" width="480" url="videos/8Juv1MVa-484.mp4" /> 35 <media:content bitrate="1600" width="1080" url="vdoxadmin/jeroen/8Juv1MVa-67727.mp4" /> 36 <media:content bitrate="1200" width="720" url="vdoxadmin/jeroen/8Juv1MVa-485.mp4" /> 37 <media:content bitrate="800" width="480" url="vdoxadmin/jeroen/8Juv1MVa-484.mp4" /> 38 <media:content bitrate="400" width="320" url="vdoxadmin/jeroen/8Juv1MVa-483.mp4" /> 39 <media:thumbnail url="http://content.bitsontherun.com/thumbs/8Juv1MVa-480.jpg" /> 40 </media:group> 41 <jwplayer:type>rtmp</jwplayer:type> 42 <jwplayer:streamer>rtmp://fl9.maelstrom.jet-stream.nl:80/vod/</jwplayer:streamer> 43 </item> 44 45 <item> 46 <title>RTMP streaming (FMS)</title> 47 <description>When an FMS 3.5 server is detected, bitrate switching is also continously done while watching the video.</description> 48 <media:group> 49 <media:content bitrate="1600" width="1080" url="videos/8Juv1MVa-67727.mp4" /> 50 <media:content bitrate="1200" width="720" url="videos/8Juv1MVa-485.mp4" /> 51 <media:content bitrate="800" width="480" url="videos/8Juv1MVa-484.mp4" /> 38 52 <media:content bitrate="400" width="320" url="videos/8Juv1MVa-483.mp4" /> 39 53 <media:thumbnail url="http://content.bitsontherun.com/thumbs/8Juv1MVa-480.jpg" /> … … 43 57 </item> 44 58 45 <item>46 <title>RTMP streaming (fixed GOP)</title>47 <description>Bitrate switching for RTMP, optimized for dynamic streaming.</description>48 <media:group>49 <media:content bitrate="1500" width="1280" url="videos/bunny_1280.mp4" />50 <media:content bitrate="800" width="720" url="videos/bunny_720.mp4" />51 <media:content bitrate="500" width="480" url="videos/bunny_480.mp4" />52 <media:content bitrate="350" width="320" url="videos/bunny_320.mp4" />53 <media:thumbnail url="http://content.bitsontherun.com/thumbs/nPripu9l-480.jpg" />54 </media:group>55 <jwplayer:type>rtmp</jwplayer:type>56 <jwplayer:streamer>rtmp://fms.12E5.edgecastcdn.net/0012E5</jwplayer:streamer>57 </item>58 59 59 </channel> 60 60 </rss> -
testing/index.html
r390 r394 423 423 <label>repeat</label> 424 424 <input type="text" name="repeat" /> 425 <label>rtmp.dynamic</label>426 <input type="text" name="rtmp.dynamic" />427 425 <label>shuffle</label> 428 426 <input type="text" name="shuffle" /> -
trunk/as3/com/jeroenwijering/models/RTMPModel.as
r390 r394 100 100 /** Bandwidth checking for dynamic streaming. **/ 101 101 private function getBandwidth():void { 102 model.config['bandwidth'] = Math.round(stream.info.maxBytesPerSecond*8/1024); 102 try { 103 model.config['bandwidth'] = Math.round(stream.info.maxBytesPerSecond*8/1024); 104 } catch(err:Error) { 105 clearInterval(bwinterval); 106 } 103 107 if(getLevel() != model.config['level']) { 104 108 swap(); … … 195 199 stop(); 196 200 } 197 if(dat.type == 'bandwidth') { 198 if(dat.bandwidth > 50) { 199 model.config['bandwidth'] = dat.bandwidth; 200 } 201 if(item['levels'] && !streaming) { 202 setStream(); 203 } 201 if(dat.type == 'bandwidth' && dat.bandwidth > 50) { 202 model.config['bandwidth'] = dat.bandwidth; 204 203 } 205 204 if(dat.code == 'NetStream.Play.TransitionComplete') { … … 287 286 if(dynamics) { 288 287 bwinterval = setInterval(getBandwidth,2000); 289 } else { 288 } else { 290 289 bwinterval = setInterval(getBW,20000); 291 290 } … … 318 317 TEA.decrypt(evt.info.secureToken,model.config['token'])); 319 318 } 320 checkDynamic(evt.info.data.version);319 if(evt.info.data) { checkDynamic(evt.info.data.version); } 321 320 if(model.config['rtmp.subscribe']) { 322 321 subscribe = setInterval(doSubscribe,1000,getID(item['file'])); 323 322 return; 324 } else if(item['levels']) {325 if(dynamics) {326 setStream();327 } else {328 connection.call("checkBandwidth",null);329 }330 323 } else { 331 324 setStream(); 332 connection.call("getStreamLength",new Responder(streamlengthHandler),getID(item['file'])); 325 if(!item['levels']) { 326 connection.call("getStreamLength",new Responder(streamlengthHandler),getID(item['file'])); 327 } 333 328 } 334 329 break; -
trunk/as3/com/jeroenwijering/player/Model.as
r388 r394 167 167 public function sendEvent(typ:String,dat:Object):void { 168 168 if(typ == ModelEvent.STATE) { 169 if(dat.newstate == config['state']) { return; } 169 170 dat['oldstate'] = config['state']; 170 171 config['state'] = dat.newstate; -
trunk/as3/com/jeroenwijering/player/Player.as
r391 r394 75 75 id:undefined, 76 76 plugins:undefined, 77 version:'4.6.39 0'77 version:'4.6.394' 78 78 }; 79 79 /** Reference to all stage graphics. **/ -
trunk/as3/com/jeroenwijering/utils/NetClient.as
r374 r394 28 28 dat['type'] = typ; 29 29 var out:Object = new Object(); 30 for (var i:Object in dat) { 30 for (var i:Object in dat) { 31 31 out[i] = dat[i]; 32 32 }
Note: See TracChangeset
for help on using the changeset viewer.
