Page 1 of 1

Is it possible to play a stream non-fullscreen in android?

Posted: 20 Sep 2014 07:36
by ZartPARZ
Hi,

I have a question regarding android app development with VLC.

I have a task to develop an app to play a stream from an encoder. The encoder output stream as udp multicast streams which not support by build-in library so I try to use VLC as the video player.

My app was built on top of the VLC code. It contain a channel list on the right side and a video preview on the left. If user click on the channel list, the video should start playing in a preview box. And if player click on the same channel again the video will play in fullscreen mode.

So far I have successfully play streams in full screen by using intent. However, I was unable to play stream in non-fullscreen preview box.

So, is it possible to play a stream non-fullscreen in android using VLC code? I have read about starting app as dialog/widget but not success yet.

Thank you.
Zart

Re: Is it possible to play a stream non-fullscreen in androi

Posted: 22 Sep 2014 08:32
by wcoder
Hi,

With some effort it's possible...

Personnaly i do it with NDK in C++ using a minimalist java boostrap :
1 - Write a custom video out module to extract raw frame in my case YUV (h264 source).
2 - Inject each component on OpenGL texture (3 textures)
3 - Display it with a shader that convert it to RGB.
4 - Display the texture (2 triangles).

WCdr

Note : It's work on Linux & Window too with the same C++ code...

Re: Is it possible to play a stream non-fullscreen in androi

Posted: 22 Sep 2014 08:36
by RSATom

Re: Is it possible to play a stream non-fullscreen in androi

Posted: 22 Sep 2014 20:16
by ZartPARZ
Thank you. I will have a look and report back later.

Zart