Playback no resume
#1
Hello all,

I'm trying to play a movie from the beginning via the json rpc.

I have tried to "reset" the resume position first like this:

Code:
    {
        "params": {
            "movieid": 123,
            "resume": {
            "position": 0
            }
        },
        "jsonrpc": "2.0",
        "id": "setResumePoint",
        "method": "VideoLibrary.SetMovieDetails"
    }


I have also tried to play the title with the resume option specified:

Code:
    {
            "jsonrpc": "2.0",
            "id": "1",
            "method": "Player.Open",
            "params": {
                "item": {
                    "movieid": 123
                },
                "options": {
                    "resume": 0.0
                }
            }
        }

No matter which way I try, the server returns ok, but doesn't play from the beginning. It always prompts via the UI, asking if I want to resume or play from the beginning.

Is there anyway I can by pass the modal confirmation and start a movie from the beginning using json rpc?
Reply
#2
yikes. I hope this is some kind of corner case or misunderstanding.
I'm still working on the audio library portion of my app, but having to go back to the UI to dismiss modals like this is a deal breaker
Reply
#3
bumping for interest
Reply
#4
If you do not set the resume at all then the playback start at the start Wink

Sometimes simple solution are well simple Smile

Anyway the resume at 0 that trigger a dialog is certainly a problem that should be addressed by Montellese since locking GUI from a remote action is not wanted.

But normal use of the API should not trigger this.
Reply
#5
Yea i started down this rabbit hole by simply playing a movie by id, like this:

Code:
        {
            "jsonrpc": "2.0",
            "id": "1",
            "method": "Player.Open",
            "params": {
                "item": {
                    "movieid": 1162
                }
        }

Which works if the movie was unwatched. If I stopped the movie halfway prior (i.e. resumable) I get that modal dialog. Can anyone confirm this too? Is this just me, possibly caused by an addon?
Reply
#6
This is just you with probably an addon Smile
Reply
#7
Tested it myself and I have absolutely no issues playing a movie from the very beginning independent of whether the movie has a resume point or not.
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply

Logout Mark Read Team Forum Stats Members Help
Playback no resume0