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.

the url for the video is 
https://api.twilio.com/2010-04-01/Accounts/AC5c869939f6863233a73ac697207c3697/Messages/MMf01fb40e39c41feafbc0967590f161e8/Media/MEbd3e3d9a0c2be95e01de341889e8cfbb

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


-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/eef4166a-316e-4f69-9f14-1c9f97c838fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to