2018-05-12, 03:42
I'm trying to make a JSON call to start playback of a movie from a user provided position but it doesn't seem to be working. It starts the movie from start. I want this to happen regardless of whether the movie has been previously watched or has a resume set. Here are the two calls I've tried, I've also tried some other calls in between, but didn't note them down, needless to say they didn't work either.
// **** This starts movie from the beginning
{ params: { item: { movieid : <id> },
options : { resume: { position: <currentPosition>, total: <totalSeconds>) } }
},
jsonrpc: '2.0',
method: 'Player.Open',
id: 1 };
// ******** This gives an error
{ params: { item: { movieid : <id> },
options : { resume: { hours: 0, minutes : 0, seconds: <timeinSeconds> }
}
},
jsonrpc: '2.0',
method: 'Player.Open',
id: 1 };
Please advice if this is even possible or do I need to do Play and then Seek to position.
// **** This starts movie from the beginning
{ params: { item: { movieid : <id> },
options : { resume: { position: <currentPosition>, total: <totalSeconds>) } }
},
jsonrpc: '2.0',
method: 'Player.Open',
id: 1 };
// ******** This gives an error
{ params: { item: { movieid : <id> },
options : { resume: { hours: 0, minutes : 0, seconds: <timeinSeconds> }
}
},
jsonrpc: '2.0',
method: 'Player.Open',
id: 1 };
Please advice if this is even possible or do I need to do Play and then Seek to position.