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

This forum is about all development around libVLC.
ZartPARZ
New Cone
New Cone
Posts: 5
Joined: 20 Sep 2014 06:54

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

Postby ZartPARZ » 20 Sep 2014 07:36

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

wcoder
Blank Cone
Blank Cone
Posts: 26
Joined: 30 Mar 2014 12:56

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

Postby wcoder » 22 Sep 2014 08:32

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...
Last edited by wcoder on 22 Sep 2014 08:48, edited 1 time in total.

RSATom
Big Cone-huna
Big Cone-huna
Posts: 513
Joined: 24 Nov 2011 06:55
Operating System: Windows/Linux/OsX
Location: Russia, Tomsk

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

Postby RSATom » 22 Sep 2014 08:36


ZartPARZ
New Cone
New Cone
Posts: 5
Joined: 20 Sep 2014 06:54

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

Postby ZartPARZ » 22 Sep 2014 20:16

Thank you. I will have a look and report back later.

Zart


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 3 guests