question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

jsonrpc method to open a video

See original GitHub issue

Feature request

I’m submitting a proposal to …

  • new feature
  • change an existing feature

Describe your request

With the youtube plugin it is possible to browse youtube on a remote device (phone, web browser etc.) and to send to kodi a request to watch the current video with it. This is done with extensions like send-to-kodi or the Kore app on android (thanks to a jsonrpc method). Would it be possible to have the same with netflix and this plugin?

Describe the use case

I have kodi set up on a TV, however it is way easier to browse netflix on my phone or a laptop. Hence this will bring the two together and have an experience a bit similar to what a chromecast provides.

Development tips

This is the kind of request used for youtube (from here):

curl \
	${user:+--user "$user:$pass"} \
	-X POST \
	-H "Content-Type: application/json" \
	-d '{"jsonrpc":"2.0","method":"Player.Open","params":{"item":{"file":"plugin://plugin.video.youtube/?action=play_video&videoid=dQw4w9WgXcQ"}},"id":1}' \
	http://$host:$port/jsonrpc

PS: Sorry if this feature already exist, and if so, what would be an example of POST request to send to kodi to have this?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Nanosebcommented, Mar 4, 2020

Sure I understand, will ping them and see their respond.

For Android, ok that’s a shame but I understand. If I ever go into android dev, I might try to make a minimal app that does just this, it looks like a good first project.

Anyway, thanks for your time and for considering it, I’ll create issues on some browser app pages and see what they reply.

0reactions
CastagnaITcommented, Apr 6, 2020

all right, thanks for given a response

Read more comments on GitHub >

github_iconTop Results From Across the Web

Give your JSON-RPC API wings - Zane Starr, Ships - YouTube
OpenRPC allows developers to describe JSON-RPC APIs in an easy language agnostic way that's compliant with the JSON-RPC 2.0 specification.
Read more >
How to send video title using JSON RPC API Player.Open
I want to open a remote video using Player.Open. How do I send the video title? I have seen this posted in the...
Read more >
JSON-RPC API/Examples - Official Kodi Wiki
Commands to control the players in Kodi will only work if that player is currently in use. {"jsonrpc": "2.0", "method": "Player.GetActivePlayers ...
Read more >
JSON-RPC
JSON-RPC. A light weight remote procedure call protocol. It is designed to be simple!
Read more >
JSON command to start youtube video - Kodi
Can someone help correct it please? http://192.168.1.52:8080/jsonrpc?request='{"jsonrpc":"2.0","id":"1","method":"Player.Open" ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found