Changeset 739


Ignore:
Timestamp:
12/10/09 05:41:27 (3 years ago)
Author:
jeroen
Message:

slight playlist JS fix and slight enlargement of the Netstream.Stop buffersize for HTTP streaming

Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • testing/settings.js

    r720 r739  
    443443                61: { 
    444444                        title:'Snapshot plugin', 
    445                         file:'http://content.bitsontherun.com/videos/6RCvPeUn-329.mp4', 
    446                         image:'http://content.bitsontherun.com/thumbs/6RCvPeUn.jpg', 
     445                        file:'../../testing/files/bunny.mp4', 
    447446                        height:260, 
    448447                        width:600, 
    449448                        plugins:'snapshot', 
    450                         'snapshot.script':'http://demo.bitsontherun.com/snapshot/update.php', 
    451                         'snapshot.bitmap':false 
     449                        'snapshot.script':'files/snapshot.php' 
    452450                }, 
    453451                62: { 
  • trunk/as3/com/jeroenwijering/models/HTTPModel.as

    r708 r739  
    272272                } 
    273273                var bfr:Number = stream.bufferLength/stream.bufferTime; 
    274                 if(bfr < 0.5 && pos < item['duration']-5 && model.config['state'] != ModelStates.BUFFERING) { 
     274                if(bfr < 0.5 && pos < item['duration'] - 10 && model.config['state'] != ModelStates.BUFFERING) { 
    275275                        model.sendEvent(ModelEvent.STATE,{newstate:ModelStates.BUFFERING}); 
    276276                } else if (bfr > 1 && model.config['state'] != ModelStates.PLAYING) { 
  • trunk/as3/com/jeroenwijering/plugins/Playlist.as

    r450 r739  
    152152                        buttons[idx].c['back'].transform.colorTransform = back; 
    153153                } 
    154                 buttons[idx].c.gotoAndStop('active'); 
     154                try { buttons[idx].c.gotoAndStop('active'); } catch (err:Error) {} 
    155155                if(!isNaN(active)) { 
    156156                        if(front) { 
Note: See TracChangeset for help on using the changeset viewer.