I am trying to integrate a YouTube player in my app.
I have learnt so far that I have to use native integration where I program the player integration separately for Android and for iOS (etc.).
For the Android part, I started to put the JAR of the YouTubePlayer API from Google into my native source directory. The CD1 builder correctly produces an APK, but I am not able to get it running.
The reason is, that the YouTubePlayer API needs the YouTubePlayerView embedded in a YouTubeBaseActivity (a class extending the Android Activity class).
And here is the problem: When I get the YouTubePlayerView out of the native part of my implementation, I am not able to build a YouTubeBaseActivity on the non-native side of my app. Is there a possibility to trick around that thing?
As I expect the answer to be "no, unfortunately not": What "workaround" would be the best, most neat, technically most robust to achieve an embedding of YouTube videos in CD1? I need to programmatically change videos being shown, without the native playlist functionality of the YouTube API.
I do developping in this context:
NetBeans
OS X (10.9.3)