Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[htsp v27] implement server based playcount and playposition #308

Merged
merged 3 commits into from Jun 4, 2017

Conversation

Glenn-1990
Copy link
Contributor

It's been a while, tvheadend 4.2 is out and it includes improved playstatus support.

Kodi master does have an issue that needs to be fixed as well before this code will work as expected.
xbmc/xbmc#12226

The big advantage:
Start watching a recording in the living room and resume watching in the bedroom etc.

@ksooo

Copy link
Member

@ksooo ksooo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor stuff.

int CTvheadend::GetPlayPosition ( const PVR_RECORDING &rec )
{
if (m_conn.GetProtocol() < 27)
return PVR_ERROR_NOT_IMPLEMENTED;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the API documentation, this line should read return -1;.

return it->second.GetPlayPosition();
}

return PVR_ERROR_INVALID_PARAMETERS;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the API documentation, this line should read return -1;.

@ksooo
Copy link
Member

ksooo commented Jun 3, 2017

@Glenn-1990 do you think it would be a good idea to let the user choose (addon settings) whether server-side playcount/Position shall be used?

Also, version bump and changelog is missing.

@Glenn-1990
Copy link
Contributor Author

@ksooo Addressed your comments.

I also added an advanced setting in case users don't like the new behaviour.

@ksooo
Copy link
Member

ksooo commented Jun 4, 2017

Nice. Thank you very much for this contribution.

@ksooo ksooo merged commit b35daf8 into kodi-pvr:master Jun 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants