StartOffset when playing a Video with Inputsream Adaptive
#1
Hi all,

i am using Inputstream Adaptive to play a Video, i've set the Duration in the MPD file and i am able to play it and to seek _manually_ in the video to the time i want to.
But is it possible to start the Video at a specific time like 600 seconds (10 Minutes)? I tried:

Code:
    listitem.setProperty('TotalTime', '1200.0')
    listitem.setProperty('StartOffset', '200.0')

According to: https://xbmc.github.io/docs.kodi.tv/mast...53667e7d81
But that doesn't seem to work.
Thanks for any hint on this!
Reply
#2
Sorry, nevermind, i found a solution myelf. (I always try to lookup things myself in the Wiki/Docs before writing here, but sometimes i'm stuck...)
For anyone needing this once, here is what worked out for me:

Code:
        info_tag = listitem.getVideoInfoTag()
        info_tag.setResumePoint(int(start_seconds), float(duration))
        info_tag.addVideoStream(xbmc.VideoStreamDetail(duration=int(duration)))
        info_tag.setDuration(int(duration))

Where start_seconds is the time in seconds the stream should start, and duration its total time in seconds.
Reply

Logout Mark Read Team Forum Stats Members Help
StartOffset when playing a Video with Inputsream Adaptive0