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

Implement API function GetStreamTimes & PVR Addon API 5.8.0 #346

Merged
merged 1 commit into from
Dec 28, 2017

Conversation

ksooo
Copy link
Member

@ksooo ksooo commented Dec 21, 2017

Implement API function GetStreamTimes (for tv/radion steam, recordings can be added later - currentyl tvh does not give access to recording times).

Remove implementation of deprecated API functions GetBufferTime(Start|End), GetPlayingTime, POsition(Recorded|Live)Stream, MoveChannel.

Add support for PVR_CHANNEL_GROUP_MEMBER::iSubChannelNumber"

Details: xbmc/xbmc#13228

times->startTime = m_startTime;
times->ptsStart = 0;
times->ptsBegin = static_cast<int64_t>(static_cast<double>(m_timeshiftStatus.start / 1000000)) * DVD_TIME_BASE;
times->ptsEnd = static_cast<int64_t>(static_cast<double>(m_timeshiftStatus.end / 1000000)) * DVD_TIME_BASE;
Copy link
Contributor

Choose a reason for hiding this comment

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

Remember the "Note: start/end mismatch is not a bug. tvh uses inversed naming logic here!" comment

Copy link
Member Author

Choose a reason for hiding this comment

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

TBH, I never understood this. As a matter of fact, it's working now - it's carefully runtime tested. Too lazy to think through this, tbh. I take it like I observed it.

Copy link
Contributor

Choose a reason for hiding this comment

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

If it works then it's all good, it could be that the hack we had in place is some old stuff that is no longer relevant in newer tvheadend versions.

PVR Addon API 5.8.0: Remove implementation of deprecated API functions GetBufferTime(Start|End), GetPlayingTime, Position(Recorded|Live)Stream, MoveChannel.
PVR Addon API 5.8.0: Add support for PVR_CHANNEL_GROUP_MEMBER::iSubChannelNumber"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants