You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would love to see the functionality of being able to send a URL directly to the player or add to queue. This is currently possible using a firefox extension called KodiControl (https://github.com/LendoK/kodi-control) but it would be great to have this functionality in the web interface so it is not browser dependent.
I know it is also possible to do this via a VBScript or CURL script via the JSON protocol, but again these are OS dependent. The ability to Remotely edit a playlist might also be a way to accomplish this. Currently a blank playlist can be created but no URL's can be added.
Context
Many playable streams can be found online and without this feature, one has to either find an addon for a specific site, or download the stream first to play on Kodi. With this capability, any stream that can be discovered, could be played directly.
Possible Implementation
I once had a VBscript working on an older version of Windows that would do this, but it no longer works on Windows 10
Set objXmlHttpMain = CreateObject("Msxml2.ServerXMLHTTP")
on error resume next
objXmlHttpMain.open "POST",KODI_URL, False
objXmlHttpMain.setRequestHeader "Content-Type", "application/json"
Feature suggestion
I would love to see the functionality of being able to send a URL directly to the player or add to queue. This is currently possible using a firefox extension called KodiControl (https://github.com/LendoK/kodi-control) but it would be great to have this functionality in the web interface so it is not browser dependent.
I know it is also possible to do this via a VBScript or CURL script via the JSON protocol, but again these are OS dependent. The ability to Remotely edit a playlist might also be a way to accomplish this. Currently a blank playlist can be created but no URL's can be added.
Context
Many playable streams can be found online and without this feature, one has to either find an addon for a specific site, or download the stream first to play on Kodi. With this capability, any stream that can be discovered, could be played directly.
Possible Implementation
I once had a VBscript working on an older version of Windows that would do this, but it no longer works on Windows 10
Dim objXmlHttpMain , KODI_URL , URLofVideo
KODI_URL = "http://192.168.1.xxx:8080/jsonrpc" 'KODI URL
URLofVideo = Wscript.Arguments.Item(0)
strJSONToSend = "{""jsonrpc"":""2.0"",""method"":""Player.Open"",""params"":{""item"":{""file"":""" & URLofVideo & """}}}"
Set objXmlHttpMain = CreateObject("Msxml2.ServerXMLHTTP")
on error resume next
objXmlHttpMain.open "POST",KODI_URL, False
objXmlHttpMain.setRequestHeader "Content-Type", "application/json"
objXmlHttpMain.send strJSONToSend
set objJSONDoc = nothing
set objResult = nothing
CURL command:
curl.exe -i -X POST -d {"jsonrpc":"2.0","method":"Player.Open","params":{"item":{"file":"""%~1"""}}} -H "Content-Type: application/json" http://192.168.1.xxx/jsonrpc
Python code:
import urllib2,json,sys
fileURL = sys.argv[1]
KodiURL = 'http://192.168.1.xxx/jsonrpc'
postdata = {"jsonrpc":"2.0","method":"Player.Open","params":{"item":{"file":(fileURL)}}}
req = urllib2.Request(KodiURL)
req.add_header('Content-Type','application/json')
data = json.dumps(postdata)
response = urllib2.urlopen(req,data)
Additional context, screenshots or links
Here are some relevant links or screenshots:
Note: Team Kodi will consider this item however we will not make any promises if it will be included.
The text was updated successfully, but these errors were encountered: