LibVLC not play Youtube videos while lua scrips is working

This forum is about all development around libVLC.
kaiv
New Cone
New Cone
Posts: 3
Joined: 26 Feb 2018 19:55

LibVLC not play Youtube videos while lua scrips is working

Postby kaiv » 26 Feb 2018 20:17

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

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

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: LibVLC not play Youtube videos while lua scrips is working

Postby Jean-Baptiste Kempf » 27 Feb 2018 18:31

Please test 3.0.1
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.

kaiv
New Cone
New Cone
Posts: 3
Joined: 26 Feb 2018 19:55

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

Postby kaiv » 27 Feb 2018 18:52

Thank you for your answer.
I just compile libvlc using latest sources 4 day ago, this was 3.0.1 version unfortunatelly.

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 27 Feb 2018 19:43

Looks like using a player instead of a list player?
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

kaiv
New Cone
New Cone
Posts: 3
Joined: 26 Feb 2018 19:55

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

Postby kaiv » 27 Feb 2018 20:06

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();


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 19 guests