Posts: 21
Joined: Nov 2020
Reputation:
0
gzpr
Junior Member
Posts: 21
2023-01-23, 11:50
(This post was last modified: 2023-01-23, 19:48 by gzpr. Edited 1 time in total.)
How feasible would this be? As far as I know, the resume data is stored in kodi's database when using the default player, right? How hard would it be to pass off the resume timestamp from the kodi's db to an external player and vice versa?
Posts: 3,514
Joined: Jan 2023
Reputation:
330
the resume data stored in kodis database is only there when the internal player is used, kodi isnt able to see the timestamp of an external player as its an external process so it wont save a restore point
if you can work out every possible external player, work with their developers to establish a 2-way rpc communication that updates x times per second to report back to kodi where a specific video playback timestamp is
then its completely feasible
otherwise it doesnt sound so feasible or really "simple" at all
Posts: 10,659
Joined: Oct 2011
Reputation:
657
jjd-uk
Team-Kodi Member
Posts: 10,659
Don't believe it's possible in any universal way as there is no standard way to pass such information between players.
Posts: 3,514
Joined: Jan 2023
Reputation:
330
in that limited use case, maybe you can put a bash script in between?
kodi starts the script which can lookup a last resume state then start mpv via commandline with the timestamp, when mpv exits it can save the time to wherever the script will find it next time
Posts: 21
Joined: Nov 2020
Reputation:
0
gzpr
Junior Member
Posts: 21
Well, this isn't really necessary, since mpv already does this on its own already (resuming the video at the point one exited the player), but what I really want is to pass this resume data to the kodi database.
Posts: 21
Joined: Nov 2020
Reputation:
0
gzpr
Junior Member
Posts: 21
2023-01-25, 00:39
(This post was last modified: 2023-01-25, 00:40 by gzpr. Edited 1 time in total.)
Well, nothing's really inherently wrong with the default kodi player I'm sure it's perfectly fine for most users, but mpv is simply my preferred media player since it's just so extremely customizable and extendable in functionality via various scripts.