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

Weird player behaviour when switching PVR channels #255

Open
Mr-Groch opened this issue Nov 12, 2019 · 2 comments
Open

Weird player behaviour when switching PVR channels #255

Mr-Groch opened this issue Nov 12, 2019 · 2 comments

Comments

@Mr-Groch
Copy link

When I'm watching some PVR channel, and next I will send kodiPlayChannelByName command, channel will switch, but player will behave weird. There will be no current channel name, no epg info, no DVR possibilities (look at screenshot)

screenshot001

I have added to helper.js Kodi.Player.Stop action before new channel open action, and problem is gone.

My workaround look like this:

            let channelFound = searchResult[0];

            Kodi.Player.Stop({ playerid: VIDEO_PLAYER }) // eslint-disable-line new-cap

            console.log(`Found PVR channel ${channelFound.label} - ${channelFound.channelnumber} (${channelFound.channelid})`);
            return Kodi.Player.Open({ // eslint-disable-line new-cap
                item: {
                    channelid: channelFound.channelid
                }
            });
@keydon
Copy link
Collaborator

keydon commented Nov 13, 2019

Hmm I cannot evaluate your workaround properly, since I am not able to use kodis PVR feature.
Would you say the "zapping" experience still ok with your fix?
And no matter if we adopt your fix or not, I would recommend you reporting that behaivour to the kodi guys, since this seems either to be a bug in kodi itself or the PVR-Plugin.

@Mr-Groch
Copy link
Author

Mr-Groch commented Nov 13, 2019

"Zapping" works fine with my workaround. Earlier, Kodi has been able even to crash after few channel changes with that weird player behaviour. I realize that my workaround is not a clean solution - before each channel change, you can see a short blink of last displayed Kodi view, but I don't know any other workaround.

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

No branches or pull requests

2 participants