forked from platypush/platypush
[media] Media played from live streams should be at least 5MB before playback starts.
This commit is contained in:
parent
54a6b34a64
commit
83d21d3f04
1 changed files with 2 additions and 2 deletions
|
@ -121,8 +121,8 @@ class YoutubeMediaResource(PopenMediaResource):
|
|||
)
|
||||
break
|
||||
|
||||
# The file must exist and be at least 1MB in size
|
||||
if os.path.exists(file) and os.path.getsize(file) > 1024 * 1024:
|
||||
# The file must exist and be at least 5MB in size
|
||||
if os.path.exists(file) and os.path.getsize(file) > 5 * 1024 * 1024:
|
||||
self._logger.info('Download started, process PID: %s', self.proc.pid)
|
||||
break
|
||||
|
||||
|
|
Loading…
Reference in a new issue