VLC web interface

*nix specific usage questions
Bigeasy600
New Cone
New Cone
Posts: 5
Joined: 10 May 2012 14:27

VLC web interface

Postby Bigeasy600 » 10 May 2012 14:48

Greetings,

I recently(3 months ago) created an Ubuntu media center from a freebee computer(long live linux!), and installed VLC on it. I used the web interface on it flawlessly for a few months, controlling my media center via my android phone and android tabled through an app called VLC Direct. Everything worked perfectly. That is until I updated my Ubuntu distribution to 12.04.

I believe that when I did the upgrade, it also upgraded my vlc to 2.0.x. Now everything VLC related has been shot to hell.

Initially, the automatic connection wizard would not work for any device. After some tinkering, I was able to connect my tablet to the interface, but my phone still cannot find the interface. I can however, access the interface from web browsers on other computers on my network.

My vlc/http/.hosts file:

Code: Select all

# # Access-list for VLC HTTP interface # $Id$ # # localhost ::1 127.0.0.1 # link-local addresses fe80::/64 # private addresses fc00::/7 fec0::/10 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 169.254.0.0/16 # The world (uncommenting these 2 lines is not quite safe) #::/0 #0.0.0.0/0
My /usr/share/vlc/lua/http/.hosts (They should be identical)

Code: Select all

# # Access-list for VLC HTTP interface # $Id$ # # localhost ::1 127.0.0.1 # link-local addresses fe80::/64 # private addresses fc00::/7 fec0::/10 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 169.254.0.0/16 # The world (uncommenting these 2 lines is not quite safe) #::/0 #0.0.0.0/0
I will admit I have never used the web interface from a browser, everything had been done through the android devices.

This is where the behavior gets odd. With my android tablet connected, I can see all of my media files. I have added some files for testing purposes and they do show up in all the correct spots. However, when I click to play them, nothing happens. I cannot stream anything either -BUT- I can adjust the volume of VLC through the tablet as well as from a browser on the local network. From a browser, I cannot access or see any of my files. Communication is taking place, but it seems like something was broken in the upgrade.

Any advice on how to get this fixed would be greatly appreciated. I can still play media no problem, but for remote control I have to use a Virtual desktop connection which is...clumsy...at best. VLC Direct provided a much more graceful and intuitive way to remote control the media center.

Thank you

Bigeasy600
New Cone
New Cone
Posts: 5
Joined: 10 May 2012 14:27

Re: VLC web interface

Postby Bigeasy600 » 12 May 2012 19:28

If no one has any ideas, can someone tell me how to downgrade back to the previous version that was working correctly?

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

Re: VLC web interface

Postby Rémi Denis-Courmont » 12 May 2012 22:19

Whatever remote control application on your phone is probably not compatible with VLC 2.0. Please check with the vendor.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Bigeasy600
New Cone
New Cone
Posts: 5
Joined: 10 May 2012 14:27

Re: VLC web interface

Postby Bigeasy600 » 13 May 2012 00:57

Whatever remote control application on your phone is probably not compatible with VLC 2.0. Please check with the vendor.
Nope

http://vlcdirect.blogspot.com/2011/05/v ... acion.html

VLC Direct is compatible with vlc 2.0.*

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

Re: VLC web interface

Postby Rémi Denis-Courmont » 13 May 2012 09:18

VLC 2.0 was released in December 2011 and that article is from May 2011.

And anyway, if you can use the web interface from a normal browser, the web interface works. This proves the bug is in the remote control.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Bigeasy600
New Cone
New Cone
Posts: 5
Joined: 10 May 2012 14:27

Re: VLC web interface

Postby Bigeasy600 » 13 May 2012 14:41

The web interface from the browser also does not work. All I can seem to do is adjust the volume.

krageon
New Cone
New Cone
Posts: 4
Joined: 01 Feb 2012 17:31

Re: VLC web interface

Postby krageon » 15 May 2012 20:05

I can confirm that after an upgrade to 12.04 the web interface is completely broken. No file listing, no seeking, no currently playing (not even after refresh). The only thing that does work is adjusting the volume.

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

Re: VLC web interface

Postby Rémi Denis-Courmont » 15 May 2012 21:52

Yeah. Not sure if this is a bug in the Debian packaging or in VLC itself though. The same VLC 2.0 works fine if I compile it manually on Linux.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

krageon
New Cone
New Cone
Posts: 4
Joined: 01 Feb 2012 17:31

Re: VLC web interface

Postby krageon » 16 May 2012 19:53

I tried the same thing in windows (eg opening the web interface and checking to browse for files), and I can say that at the very least none of the js/common.js file is getting parsed (identical errors on windows (7) and linux (Xubuntu 12.04), both VLC versions are 2.0.1). When opening the browse dialog, multiple errors pertaining to this file are shown (about the functions therein not existing). I've tried to look through the file, but I can't find what's wrong with it.

Edit: I fixed it. There was a slight problem in common.js

the new code is here: http://pastebin.com/ZjBbKHFU

The problem was line 73, which changed from this

Code: Select all

var icon = type == "dir" && name == '..' ? 'Back-48.png' : (type == 'dir' ? "Folder-48.png" : ($.inArray(ext, video_types) != -1 ? "Video-48.png" : ($.inArray(ext, audio_types) != -1 ? "Audio-48.png" : ($.inArray(ext, playlist_types) != -1 ? "Other-48.png")));
into this

Code: Select all

var icon = type == "dir" && name == '..' ? 'Back-48.png' : (type == 'dir' ? "Folder-48.png" : ($.inArray(ext, video_types) != -1 ? "Video-48.png" : ($.inArray(ext, audio_types) != -1 ? "Audio-48.png" : "Other-48.png")));
As you can see it was a pretty trivial fix, but I'm still pretty proud of myself right now :D

Bigeasy600
New Cone
New Cone
Posts: 5
Joined: 10 May 2012 14:27

Re: VLC web interface

Postby Bigeasy600 » 17 May 2012 18:05

I replaced the code in common.js, but the interface has stayed exactly the same for me. I still can only manage to adjust the volume :(

quiknic
New Cone
New Cone
Posts: 1
Joined: 19 May 2012 11:55

Re: VLC web interface

Postby quiknic » 19 May 2012 12:03

Krageon's fix worked for me: debian testing amd64. Thank you very much!

krageon
New Cone
New Cone
Posts: 4
Joined: 01 Feb 2012 17:31

Re: VLC web interface

Postby krageon » 20 May 2012 16:41

Krageon's fix worked for me: debian testing amd64. Thank you very much!
That's good to hear :) No problem.
I replaced the code in common.js, but the interface has stayed exactly the same for me. I still can only manage to adjust the volume :(
Hrmm... That's quite odd, but without access to the interface that you use it will be hard to see if I can fix it - I can try to have a look if you can get me a copy of your VLC web interface.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 4 guests