Get a snapshot into a byte array

This forum is about all development around libVLC.
HSilva
New Cone
New Cone
Posts: 2
Joined: 19 Jun 2014 13:48

Get a snapshot into a byte array

Postby HSilva » 20 Jun 2014 17:26

Hi, so i manage to get myapp working, after a long night sleep and with my battery full , i followed this page http://www.helyar.net/2009/libvlc-media-player-in-c/, and read it very slowly..
i manage to understand the basic, and manage to get the snapshot function working..
this function saves the snapshot on the disk, and what i did was fecth the file from disk and transform it into a byte array...not the best way, but i works..
but now i want to get it working without saving the file to the disk.

so how can i get the snapshot into a byte array?

i did some searching, and i found users trying to do it using mediacontrol, others trying to implement the callback..

What is the better way?

this is going to be activate on a button click, ie , when the user press a button i want to take a photo, and displayed it on a picture box...

could you kindly tell me what do i need to do..not the exact code,because by copying the code i wont understand how it works, and i wont be able to resolve/find the next problem..

just some pointers..

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Get a snapshot into a byte array

Postby Jean-Baptiste Kempf » 09 Jul 2014 03:24

You should look at the thumbnailer file from VLC on Android, in the jni folder.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 11 guests