We have moved to a new Sailfish OS Forum. Please start new discussions there.
2

VLC remote for sailfishOS [answered]

asked 2014-01-04 19:43:19 +0200

Mariusmssj gravatar image

updated 2014-01-06 01:11:35 +0200

Hey guys, Was wondering if anyone is making a VLC remote for SailfishOS???

I wanted to make a simple remote myself but I honestly got no idea where to start. I know I need to make a connection to VLC host server but I got no idea how I would do that. But If anyone is working on it and made a start I would happily help out.

Happy to inform that I got a first build now. Which can be downloaded >>here<<

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by molan
close date 2014-09-21 22:06:44.945085

2 Answers

Sort by » oldest newest most voted
1

answered 2014-01-05 01:21:51 +0200

koudi gravatar image

Vlc uses simple http requests to control player. First you need to enable web interface in vlc and set password in settings. Then you can open your browser on address localhost:8080 where is simple remote app. If you use firefox/chrome use developer console to see sent requests. Maybe there is proper documentation for this, but I can't find it right now. Looking at that communication should give you general idea how to start.

edit flag offensive delete publish link more

Comments

So my first part would be making a Qt client to connect to the VLC server and from there on just send commands to control the player itself?

Would this do? http://qt-project.org/doc/qt-5.0/qtnetwork/fortuneclient.html

Mariusmssj ( 2014-01-05 01:24:07 +0200 )edit

Well, this would probably do, but it seems too low level and unnecessarely complicated. All you need are http requests. There is no need to "connect" to server as it is just http. Just send request with command and read results. Vlc returms xml with current state (like 'playing' and position)

koudi ( 2014-01-05 01:39:47 +0200 )edit

so something like this? I'm really sorry for asking noob questions but I am still learning QML and the rest but I want to develop as I really enjoy it. Would something like this work? http://stackoverflow.com/questions/8790609/https-post-get-with-qml-qt

Mariusmssj ( 2014-01-05 01:45:24 +0200 )edit

No need to apologize, we all started somehow :). Yes, link you posted looks like what you need. You might also check http://git.videolan.org/?p=vlc.git;a=blob_plain;f=share/lua/http/requests/README.txt;hb=HEAD for some more details about used requests.

koudi ( 2014-01-05 02:13:13 +0200 )edit

To avoid blocking the the UI it may be a good idea to send the requests in a WorkerScript

Tanghus ( 2014-01-05 03:26:14 +0200 )edit
1

answered 2014-01-05 16:15:12 +0200

Mariusmssj gravatar image

Ok guys I got it working :) I will try and get this app finished in coming days most likely will submit to the harbour before the weekend. Thanks for the help

edit flag offensive delete publish link more

Comments

would you like feedback/reports etc. posted here or on tmo? Limiting it to one location would be good (and I find here makes more sense). Anyway 1) kudos for getting started and 2) sadly I haven't been able to make it connect (but neither have I with the Android app)

bennypr0fane ( 2014-01-13 19:16:38 +0200 )edit

Which ever your comfortable with. OK what seems to be issue? what system are you running? If you open your browser and in the address bar type in http://localhost:8080/ what do you see?

Mariusmssj ( 2014-01-14 00:17:47 +0200 )edit

Question tools

Follow
3 followers

Stats

Asked: 2014-01-04 19:43:19 +0200

Seen: 640 times

Last updated: Jan 06 '14