< prev index next >

modules/media/src/main/native/jfxmedia/platform/osx/OSXMediaPlayer.mm

Print this page
rev 9888 : 8145602: Remove QTKit based media player
Summary: Removed obsolete QTKit based code, updated AVFoundation code to use a later SDK
Reviewed-by: almatvee

*** 64,86 **** } + (BOOL) initPlayerPlatform { BOOL enableAVF = YES; - BOOL enableQTK = YES; // Check environment to see if platforms are enabled char *value = getenv("JFXMEDIA_AVF"); if (value ? strncasecmp(value, "yes", 3) != 0 : NO) { enableAVF = NO; } - value = getenv("JFXMEDIA_QTKIT"); - if (value ? strncasecmp(value, "yes", 3) != 0 : NO) { - enableQTK = NO; - } - // Determine if we can use OSX native player libs, without linking directly Class klass; if (enableAVF) { klass = objc_getClass("AVFMediaPlayer"); --- 64,80 ----
*** 92,114 **** } } } } - if (enableQTK) { - klass = objc_getClass("QTKMediaPlayer"); - if (klass) { - // And make sure it conforms to the OSXPlayerProtocol - if ([klass conformsToProtocol:@protocol(OSXPlayerProtocol)]) { - if ([klass respondsToSelector:@selector(playerAvailable)] ? [klass playerAvailable] : YES) { - gMediaPlayerClass = klass; - return YES; - } - } - } - } - return NO; } - (id) init { --- 86,95 ----
< prev index next >