Ignore:
Timestamp:
01/20/10 19:46:39 (3 years ago)
Author:
pablo
Message:

This branch allows the user to seek through a paused video, with the time updating every second or so.

Location:
branches/pausedseek
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/pausedseek/src/com/longtailvideo/jwplayer/parsers/MediaParser.as

    r540 r804  
    2222                 **/ 
    2323                public static function parseGroup(obj:XML, itm:Object):Object { 
     24                        var ytp:Boolean = false; 
     25 
    2426                        for each (var i:XML in obj.children()) { 
    2527                                if (i.namespace().prefix == MediaParser.PREFIX) { 
     
    3739                                                        if (i.children().length() > 0) { 
    3840                                                                itm = MediaParser.parseGroup(i, itm); 
     41                                                        } 
     42                                                        if (i.@width && i.@bitrate) { 
     43                                                                if (!itm.levels) { 
     44                                                                        itm.levels = new Array(); 
     45                                                                } 
     46                                                                itm.levels.push({ 
     47                                                                        width:i.@width.toString(), 
     48                                                                        bitrate:i.@bitrate.toString(), 
     49                                                                        file:i.@url.toString() 
     50                                                                }); 
    3951                                                        } 
    4052                                                        break; 
     
    5668                                                case 'player': 
    5769                                                        if (i.@url.indexOf('youtube.com') > 0) { 
    58                                                                 var ytp:Boolean = true; 
     70                                                                ytp = true; 
    5971                                                                itm['file'] = i.@url.toString(); 
    6072                                                        } 
Note: See TracChangeset for help on using the changeset viewer.