3gpp Video Playback from URL

14 views
Skip to first unread message

Wade Girard

unread,
Aug 29, 2017, 1:22:04 PM8/29/17
to CodenameOne Discussions
If you are experiencing an issue please mention the full platform your issue applies to:
IDE: Eclipse
Desktop OS: Mac
Simulator: iPhone
Device: iPhone 6s IOS

I am doing a chat app. I am trying to add support for videos.


Container container = new Container(new BorderLayout());


Media video = com.codename1.media.MediaManager.createMedia(url, true); // url is the url above

video.setNativePlayerMode(true);

MediaPlayer mp = new MediaPlayer(video);

// place the media player in the container

container.add(BorderLayout.CENTER, mp);


Component component = Container.encloseIn(new FlowLayout(Container.RIGHT), container);


When I make a debug build and put this on my iPhone, I just get a black box where I would expect the video player to be. In the simulator I get playback controls, but no video either.


What am I doing incorrectly?


Thanks


Shai Almog

unread,
Aug 29, 2017, 11:36:17 PM8/29/17
to CodenameOne Discussions
Reply all
Reply to author
Forward
0 new messages