Textureview not displaying the video, only sound is audible with(version 1.5.1.1)

VLC for Android and Chrome OS specific usage questions
Rupak.samant
New Cone
New Cone
Posts: 1
Joined: 13 Aug 2015 09:31

Textureview not displaying the video, only sound is audible with(version 1.5.1.1)

Postby Rupak.samant » 13 Aug 2015 11:02

Hello All,

Trying to play a video using TextureView with source code (version 1.5.1.1) but the video is not getting displayed.

To use Textureview, Chnaged the SurfaceVIew variable to TextureView and fixed all the compilation error of VideoPlayerActivity(vlc-android).

Is there anything else also need to be changed to play the video in TextureView.

And also found that the AWindow#attachTextureView() throws IllegalArument Exception.
Reason : The TextureView.SurfaceTextureListener#onSurfaceTextureAvailable() is not getting called back due to which the SurfaceTexture is null.

Regards,
--RupaK
Last edited by Rupak.samant on 13 Aug 2015 13:01, edited 1 time in total.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Textureview not displaying the video, only sound is audible with(version 1.5.1.1)

Postby Jean-Baptiste Kempf » 30 Oct 2015 19:39

Please share logs.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

xrddd
New Cone
New Cone
Posts: 9
Joined: 03 Jun 2019 06:13

Re: Textureview not displaying the video, only sound is audible with(version 1.5.1.1)

Postby xrddd » 09 Aug 2019 09:14

hi RupaK, you can try this:
yourTextureView.setSurfaceTextureListener(this);
...
public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {
final IVLCVout vout = getPlayer().getVLCVout();
vout.setVideoView(yourTextureView);
vout.attachViews();

Media m = new Media(mLibVLC, someUri);
mMediaPlayer.setMedia(m);
m.release();
mMediaPlayer.play();
}


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 14 guests