Sorry if this is a dumb question, but as I can’t seem to get to the API / dev documentation - does anyone have any info on the EpisodeObject (and really, the overall object hierarchy)? I’m really trying to figure out how to set viewOffset and lastViewedAt, to be able to start playback at a defined position.
The Framework speaks metadata items only, however, and it’s in the server’s purview to set things like view offsets and last viewed. At the moment those are not supported at all for channel (plug-in) content, though that may be changing in the near future. Hope this helps.
OK, more digging / coding - I understand the answer above much better now (i.e. what is available in Episode), and also I got the following error message trying to set view_offset,
FrameworkException: The ‘view_offset’ attribute is inaccessible from model interfaces.
All makes complete sense. Hopefully as you say changes are coming, as it would be nice to be able to resume playback.
BTW, where did you get the details above from (for Episode)? I fear from the server source code, so it may not be available (for this or other objects) … :(.
@rkmorris said:
Dang! I want the channel to be able to resume playback (from where it was stopped) - seems like that’s not possible right now. Hope it’s coming soon.
I’m not 100% sure on this, but some channels resume playback of a video just fine. I have a feeling that this has to do with how the web server (where the video is streaming from) is configured.
@rkmorris said:
BTW, where did you get the details above from (for Episode)? I fear from the server source code, so it may not be available (for this or other objects) … :(.
That piece of code came from a file within the Framework bundle, which is part of the Plex Media Server. On Mac you can look inside the .app file and browse to Contents/Resources/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Models/Metadata/tv_models.pym I don’t know how to do this in Windows, sorry!
Found this in Windows also, thanks for the pointer! Trying to find information now on Video Objects - I can’t seem to find this in the Framework, but I may just be missing it. Will keep digging.
Any more thoughts on this? I really would like to be able to sync Plex and NextPVR, but to do that Plex needs to make some of this interface available (like view_offset)?