Page 1 of 1

LibVLC not play Youtube videos while lua scrips is working

Posted: 26 Feb 2018 20:17
by kaiv
Hello,

Try to use LibVLC in my Android app. VlC play all needed formats, but while trying to play url from Youtube in debug information I see that LibVLC found lua script, found direct url of the Youtube video but video not playing. In the same time all other videos are playng good using my app.
Program found libvlc stream: Path and Name and Artist but not play video using this link. Why..?
Can you please help me find what I do wrong?

Thank everyone for help.

=== Log from android studio: ============

D/VLC: [0000007311ff2390/2d97] http stream: in PING (0x06) frame of 8 bytes, flags 0x00, global
D/VLC: [0000007311ff2390/2d97] http stream: out (priority) PING (0x06) frame of 8 bytes, flags 0x01, global
D/VLC: [0000007311ff2b10/2daa] libvlc stream: end of stream
D/VLC: [0000007311ff3290/2d73] libvlc stream: Path: https://r1---sn-xuu-afve.googlevideo.co ... its=0&mv=m
D/VLC: [0000007311ff3290/2d73] libvlc stream: Name: Samsung Galaxy S9 / S9+ Official Video
D/VLC: [0000007311ff3290/2d73] libvlc stream: Artist: Cavaleria.ro
D/VLC: [0000007311ff3290/2d73] libvlc stream: Description: Samsung Galaxy S9 & S9+ Official Video - business video
D/VLC: [0000007311ff3290/2d73] libvlc stream: ArtURL: https://i.ytimg.com/vi/gxXiK2jJJAk/maxresdefault.jpg
D/VLC: [000000731af20c90/2d73] libvlc input: EOF reached
I/System.out: https://www.youtube.com/watch?v=gxXiK2jJJAk

==========================================================================

Re: LibVLC not play Youtube videos while lua scrips is working

Posted: 27 Feb 2018 18:31
by Jean-Baptiste Kempf
Please test 3.0.1

Re: LibVLC not play Youtube videos while lua scrips is working

Posted: 27 Feb 2018 18:52
by kaiv
Thank you for your answer.
I just compile libvlc using latest sources 4 day ago, this was 3.0.1 version unfortunatelly.

Re: LibVLC not play Youtube videos while lua scrips is working

Posted: 27 Feb 2018 19:43
by RĂ©mi Denis-Courmont
Looks like using a player instead of a list player?

Re: LibVLC not play Youtube videos while lua scrips is working

Posted: 27 Feb 2018 20:06
by kaiv
I use defautl libvlc.MediaPlayer, see code(other videos are playign successfully):

org.videolan.libvlc.MediaPlayer mMediaPlayer = null;
if (mMediaPlayer == null)
mMediaPlayer = new org.videolan.libvlc.MediaPlayer(mLibVLC);
holder = videoSurface.getHolder();
final IVLCVout vout = mMediaPlayer.getVLCVout();
vout.setVideoView(videoSurface);
vout.attachViews();
Media m = new Media(mLibVLC, currentVideoUrl);
mMediaPlayer.setMedia(m);
mMediaPlayer.play();