Hello,
I am working on a addon where I have a video stream (hockey game) that has metadata about where certain events (period starts, goals, etc...) take place in the video stream.
I would like to add a series of Bookmarks for these events to help navigate the video stream. I couldn't find a Python API to create the booksmarks, nor a JSON RPC one...
Is there that I just wasn't able to find? Or, are Bookmarks the incorrect solution
Thanks!
Marc
there's a
CreateBookmark
action available in Kodi (
https://kodi.wiki/view/Action_IDs)
if i'm not mistaken, you should be able to trigger it from python like this:
python:
xbmc.executebuiltin('Action(CreateBookmark)')
(2021-02-12, 10:48)ronie Wrote: [ -> ]there's a CreateBookmark
action available in Kodi (https://kodi.wiki/view/Action_IDs)
if i'm not mistaken, you should be able to trigger it from python like this:
python:
xbmc.executebuiltin('Action(CreateBookmark)')
Thanks! That will create it "at the current playback position"... I'd like to create the bookmarks in advance, as I know where they will be in the stream.
To use the CreateBookmark action, I would need to seek in the stream to all the points i want to add, then reset the stream back to it's original position?
Marc
(2021-02-12, 18:40)mrawji Wrote: [ -> ] (2021-02-12, 10:48)ronie Wrote: [ -> ]there's a CreateBookmark
action available in Kodi (https://kodi.wiki/view/Action_IDs)
if i'm not mistaken, you should be able to trigger it from python like this:
python:
xbmc.executebuiltin('Action(CreateBookmark)')
Thanks! That will create it "at the current playback position"... I'd like to create the bookmarks in advance, as I know where they will be in the stream.
To use the CreateBookmark action, I would need to seek in the stream to all the points i want to add, then reset the stream back to it's original position?
Marc
One more thing... I'd love to be able to name the bookmark (like "Start of Period 1")... I
If there's direct DB access, I can probably do that too..., but that would be much messier...