Quantcast
Channel: Android Mode - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 941

video with P3

$
0
0

with P2, w or without Eclipse I can show video, using standard android code.

with P3, trying to answer on this forum i have tried my usual snippet code:: does not work now.

So i have tried a lot of solutions and finally got the video file to be found (not so easy...)

&& make the video sound appeared... what a luck:: but not image.

so (as i know that i am in a fragment and PApplet is only an object)

--- try to create another fragment (child, innested)

--- result is : activity destroyed, why, i don't know, i have done that with android and innested fragments does not destroy the activity...

---so another solution was: get SurfaceView and set MediaPlayer instance to this one

--- so another solution was:: creating new SurfaceView on runtime...

----ALWAYS the same: sound but not any image (and in some case, nothing, not any error, not any image, nothing)

i have also tried with videoView, with this.getView(), and so on

nothing works!!! -

For better i can see the video for 1 second ( so i know that video is playing) but the processing surface goes upon

So my question is very simple:: how to make video with P3??? (and real devices)


Viewing all articles
Browse latest Browse all 941

Trending Articles