Broken YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi)
#44
Hey DaLanik

Thanks for the option to disable for PVR. I had already implemented that in a quite similar way that you did in v2.1. Looking at the Kodi documentation, I found two conditions that could probably be useful:
  • Player.HasDuration boolean Returns true if Media isn't a true stream
  • Player.Caching boolean Returns true if the player is current re-caching data (internet based video playback).

The first one should allow to disable for live streams. The other one could be used with onPlayBackPaused to check if the stream is buffering and not actually paused (haven't tried it though). If that doesn't work, maybe you could use Player.PauseEnabled or Player.ProgressCache.

Lastly, what is the reason for "else: intDuration = 60"? I've noticed that, watching live streams, it will trigger the bulbs even if I have the option to disable for short videos enabled. VideoPlayer.Duration returns no value but 60 is still larger than what I have set for short videos (15 minutes in my case).
Reply


Messages In This Thread
RE: YeeMee - (Control Yeelight Smart Bulb from Kodi) - by Sheik - 2017-05-13, 17:50
Logout Mark Read Team Forum Stats Members Help
YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi)2