Show
Ignore:
Timestamp:
02/23/10 16:48:16 (2 years ago)
Author:
gbooker
Message:

Made DVD Player stop if it's not playing for 5 minutes.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/PlayerFramework/CommonMediaPlayer/Classes/CMPPlayerManager.m

    r1159 r1163  
    131131                [players addObjectsFromArray:genericPlayers]; 
    132132 
    133         NSLog(@"List of players is %@", players); 
     133        //NSLog(@"List of players is %@", players); 
    134134        NSEnumerator *playerEnum = [players objectEnumerator]; 
    135135        Class playerClass; 
     
    139139                player = [[playerClass alloc] init]; 
    140140                 
    141                 NSLog(@"Testing %@", player); 
     141                //NSLog(@"Testing %@", player); 
    142142                BOOL canPlay = [player canPlay:path withError:nil]; 
    143                 NSLog(@"can play is %d", canPlay); 
     143                //NSLog(@"can play is %d", canPlay); 
    144144                if(canPlay) 
    145145                { 
    146146                        CMPBaseMediaAsset *asset = [[CMPBaseMediaAsset alloc] initWithMediaURL:[NSURL fileURLWithPath:path]]; 
    147147                        canPlay &= [player setMedia:asset error:nil]; 
    148                         NSLog(@"Set asset is %d", canPlay); 
     148                        //NSLog(@"Set asset is %d", canPlay); 
    149149                        [asset release]; 
    150150                } 
    151151                if(canPlay) 
    152152                { 
    153                         NSLog(@"Using Player"); 
     153                        //NSLog(@"Using Player"); 
    154154                        [player retain]; 
    155155                        break; 
     
    180180        } 
    181181         
    182         NSLog(@"Controllers is %@", goodControllers); 
     182        //NSLog(@"Controllers is %@", goodControllers); 
    183183         
    184184        //XXX Prefs