Comments (5)
The short answer: probably not at the moment
I've been reading and googling and reading, and I don't quite understand what I've read, but just for reference...
- There is a way of having external audio to locally stored files, by giving them similar names. (Does not work with STRM files, I've tried)
https://forum.kodi.tv/showthread.php?tid=221881
-
The youtube addon has been (and still is from time to time) suffering from the same issue as you mentioned, but it has mostly been resolved by using Mpeg DASH (see top comments in link).
jdf76/plugin.video.youtube#440 -
DASH requires InputStream.Adaptive to be installed. InputStream.Adaptive is activated when a video has the property inputstream.adaptive.manifest_type. The property get set by an addon when it creates a list of playable videos.
https://github.com/peak3d/inputstream.adaptive -
It is possible to set those properties inside a STRM file tho.
https://forum.kodi.tv/showthread.php?tid=346141 -
Seems like it's not possible to send them over a JSON-RPC request :(
xbmc/inputstream.adaptive#227 -
Just read them...? I don't know what I'm looking at.
https://kodi.wiki/view/JSON-RPC_API/v12#Item.CustomProperties
from send-to-kodi.
Thank you for the research. I've quickly read all these links and I have no idea too if it's possible. For me the "workaround" is to just ssh to kodi box (osmc@rpi3), youtube-dl the video and then play it by kodi GUI. Probably a step forward but still local at kodi might be a script that youtube-dl best quality(it would merge 2 files) followed by jsonrpc of downloaded file, simple. Anyway I usually get some youtube videos to play for children and your script is helpful with that.
OK, if it is really not supported by json-rpc, and there is no other remote possibility then it might be possible to ssh to kodi prepare strm file with both links from youtube-dl and play it somehow with InputStream.Adaptive. I don't feel like trying to do that ;)
I don't expect the feature to be supported by kodi in near future (1-5 years). It's not the rocket science but I feel kodi have other priorities.
from send-to-kodi.
Good suggestions, well, hacks. I've got one too:
Instead of using ssh one could have a companion addon for Kodi that takes some path like addon://sendtokodi/play?url=some_url and starts mpeg dash playback (or perhaps even uses youtube-dl on the Kodi machine to lookup the address). Wouldn't be surprised if it already exists. Anyhow I have no intention to develop such an addon, as the point of this script is that it's very simple and requires nothing but standard stuff (and I have no idea how dash works).
Here's another suggestion:
This script should already be able to stream a local media file to Kodi using netcat. I don't know if this actually works, maybe you can test it out? Then one could let youtube-dl download the file, and then stream it to Kodi... It will take longer, but it works...
from send-to-kodi.
I've tried once to play local video (downloaded from first mp4 link at https://www.learningcontainer.com/mp4-sample-video-files-download/). There was a typical success json-rpc confirmation but video doesn't start to play, no visual reaction at kodi.
We could close this issue anyway.
from send-to-kodi.
Oh wow, what a mess. But I wanted to get that local file sharing going again (Kodi is evil)...
Good thing is it was easy adding DASH support after that. The new version can download stuff for you too.
from send-to-kodi.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from send-to-kodi.