Changeset 5458
- Timestamp:
- 04/17/08 21:14:57 (1 month ago)
- Files:
-
- Spiral/trunk/SPMovieController.h (modified) (3 diffs)
- Spiral/trunk/SPMovieController.m (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
Spiral/trunk/SPMovieController.h
r5130 r5458 150 150 - (void)playWhenTracksAreLoaded; 151 151 - (BOOL)isPlaying; 152 - (void)stepForward; 153 - (void)stepBackward; 152 154 - (void)stop; 153 155 - (void)invalidate; … … 155 157 - (void)stopFullscreen; 156 158 - (BOOL)isInFullscreen; 159 - (void)orderFrontFullscreenHUDWindow; 157 160 - (void)resumePlaying; 158 161 - (float)rate; … … 160 163 - (void)cycleSubtitleTracksForwards:(BOOL)forwards; 161 164 - (void)cycleAspectRatiosForwards:(BOOL)forwards; 165 - (void)flashCurrentTime; 162 166 - (BOOL)openNext; 163 167 - (BOOL)openNextAndStartPlaying:(BOOL)startPlaying; Spiral/trunk/SPMovieController.m
r5250 r5458 37 37 @interface SPMovieController(Private) 38 38 39 - (void)_flashCurrentTime;40 39 - (void)_flashOverlayString:(NSString *)string; 41 40 - (void)_flashOverlayString:(NSString *)string hold:(BOOL)hold; … … 57 56 58 57 @implementation SPMovieController(Private) 59 60 - (void)_flashCurrentTime {61 [self _flashOverlayString:[NSSWF:NSLS(@"%@/%@", @"Current time overlay"),62 [[self class] shortStringForTimeInterval:[self currentTime]],63 [[self class] shortStringForTimeInterval:[self duration]]]];64 }65 66 67 58 68 59 - (void)_flashOverlayString:(NSString *)string { … … 631 622 [self setCurrentTime:[self currentTime] + [[self class] skipTimeIntervalForKey:key]]; 632 623 633 [self _flashCurrentTime];624 [self flashCurrentTime]; 634 625 break; 635 626 … … 637 628 [self setCurrentTime:0.0]; 638 629 639 [self _flashCurrentTime];630 [self flashCurrentTime]; 640 631 break; 641 632 … … 643 634 [self setCurrentTime:[self duration]]; 644 635 645 [self _flashCurrentTime];636 [self flashCurrentTime]; 646 637 break; 647 638 … … 671 662 672 663 case 't': 673 [self _flashCurrentTime];664 [self flashCurrentTime]; 674 665 break; 675 666 } … … 1134 1125 1135 1126 1127 - (void)stepForward { 1128 [_movie stepForward]; 1129 } 1130 1131 1132 1133 - (void)stepBackward { 1134 [_movie stepBackward]; 1135 1136 } 1137 1138 1139 1136 1140 - (void)stop { 1137 1141 [_movie stop]; … … 1168 1172 - (BOOL)isInFullscreen { 1169 1173 return (_fullscreenWindow != NULL); 1174 } 1175 1176 1177 1178 - (void)orderFrontFullscreenHUDWindow { 1179 [_fullscreenWindow orderFrontHUDWindow]; 1170 1180 } 1171 1181 … … 1241 1251 count = [[self audioTracks] count]; 1242 1252 1243 if( [[self audioTracks] count] > 1) {1253 if(count > 0) { 1244 1254 audioTrack = [self audioTrack]; 1245 1255 … … 1275 1285 if(forwards) { 1276 1286 if(subtitleTrack == count) 1277 subtitleTrack = 1;1287 subtitleTrack = 0; 1278 1288 else 1279 1289 subtitleTrack++; 1280 1290 } else { 1281 if(subtitleTrack <= 1)1291 if(subtitleTrack <= 0) 1282 1292 subtitleTrack = count; 1283 1293 else … … 1319 1329 1320 1330 1331 - (void)flashCurrentTime { 1332 [self _flashOverlayString:[NSSWF:NSLS(@"%@/%@", @"Current time overlay"), 1333 [[self class] shortStringForTimeInterval:[self currentTime]], 1334 [[self class] shortStringForTimeInterval:[self duration]]]]; 1335 } 1336 1337 1338 1321 1339 - (BOOL)openPrevious { 1322 1340 SPPlaylistFile *file, *previousFile;
