hello there.. how i play video from byte? is it possible?
this my code
byte[] mybyte = new byte(somefile.length);
playvideo(mybyte);
private void playvideo(byte[] myvideo) {
try {
// create temp file that will hold byte array
File tempmp4 = File.createTempFile("myvid", "mp4",
getCacheDir());
tempmp4 .deleteOnExit();
FileOutputStream fos = new FileOutputStream(tempmp4 );
fos.write(myvideo);
fos.close();
//im stuck here for show video from byte
FileInputStream fis = new FileInputStream(tempmp4 );
} catch (IOException ex) {
ex.printStackTrace();
}
}
best regards raldes :)
--
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-developers/1ecfd45e-af36-4354-addd-9632acccf139%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.