how can i create a video thumbnail

12 views
Skip to first unread message

Alberto

unread,
Oct 11, 2017, 8:42:11 PM10/11/17
to CodenameOne Discussions
If you are experiencing an issue please mention the full platform your issue applies to:
IDE: NetBeans/Eclipse/IDEA
Desktop OS
Simulator
Device

Hi, I'm doing an application that shows videos from a URL but I have problems creating a previous image of the video, I need to add an image of the video before it can be reproduced, how can I do it? I use InputStream and MediaPlayer to display the videos.

Shai Almog

unread,
Oct 12, 2017, 12:13:41 AM10/12/17
to CodenameOne Discussions
Hi,
Native API's to capture a video frame are flaky at best although they have improved in recent years. However, we don't currently have an API to do that due to that historic problem. 
Ideally if your URL is online you can generate a thumbnail in the server like youtube does and then just use that as a URL. You can also use a native interface to extract a frame or file an RFE for us to add support for that (although that will probably take a while as our workload is huge).
Reply all
Reply to author
Forward
0 new messages