Merge pull request #1322 from samwiseg00/fix/buffering_state_activity
Fix client buffering identification in certain scenarios
This commit is contained in:
@@ -275,13 +275,13 @@ class ActivityHandler(object):
|
|||||||
elif this_state == 'stopped':
|
elif this_state == 'stopped':
|
||||||
self.on_stop()
|
self.on_stop()
|
||||||
|
|
||||||
elif this_state == 'buffering':
|
|
||||||
self.on_buffer()
|
|
||||||
|
|
||||||
elif this_state == 'paused':
|
elif this_state == 'paused':
|
||||||
# Update the session last_paused timestamp
|
# Update the session last_paused timestamp
|
||||||
self.on_pause(still_paused=True)
|
self.on_pause(still_paused=True)
|
||||||
|
|
||||||
|
if this_state == 'buffering':
|
||||||
|
self.on_buffer()
|
||||||
|
|
||||||
if this_transcode_key != last_transcode_key and this_state != 'buffering':
|
if this_transcode_key != last_transcode_key and this_state != 'buffering':
|
||||||
self.on_change()
|
self.on_change()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user