Page 1 of 1

Get a snapshot into a byte array

Posted: 20 Jun 2014 17:26
by HSilva
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..

Re: Get a snapshot into a byte array

Posted: 09 Jul 2014 03:24
by Jean-Baptiste Kempf
You should look at the thumbnailer file from VLC on Android, in the jni folder.