Merge pull request #1322 from samwiseg00/fix/buffering_state_activity

Fix client buffering identification in certain scenarios
This commit is contained in:
JonnyWong16 2018-10-09 20:45:57 -07:00 committed by GitHub
commit a88047eb9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -275,13 +275,13 @@ class ActivityHandler(object):
elif this_state == 'stopped':
self.on_stop()
elif this_state == 'buffering':
self.on_buffer()
elif this_state == 'paused':
# Update the session last_paused timestamp
self.on_pause(still_paused=True)
if this_state == 'buffering':
self.on_buffer()
if this_transcode_key != last_transcode_key and this_state != 'buffering':
self.on_change()