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

Print this page
rev 7591 : RT-38074: [macosx] Separate QTKit platform code from core media code so it can be removed for MAS
Reviewed-by:

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -22,17 +22,18 @@
  * or visit www.oracle.com if you need additional information or have any
  * questions.
  */
 
 #import "com_sun_media_jfxmediaimpl_platform_osx_OSXPlatform.h"
+#import "OSXMediaPlayer.h"
 
 /*
  * Class:     com_sun_media_jfxmediaimpl_platform_osx_OSXPlatform
  * Method:    osxPlatformInit
  * Signature: ()V
  */
 JNIEXPORT void JNICALL Java_com_sun_media_jfxmediaimpl_platform_osx_OSXPlatform_osxPlatformInit
     (JNIEnv *env, jclass klass)
 {
-    // http://javafx-jira.kenai.com/browse/RT-27041
-    // TODO: choose between QTKit and AVFoundation (if 10.8+)
+    // Tell OSXMediaPlayer to initialize itself
+    [OSXMediaPlayer initPlayerPlatform];
 }