Allow bounded playback to buffer ahead of the browser
This commit is contained in:
@@ -53,10 +53,10 @@ class PlaybackCacheTests(unittest.TestCase):
|
||||
self.assertEqual((fresh/'source.mp4').read_bytes(),b'active')
|
||||
self.assertEqual(unrelated.read_text(),'keep')
|
||||
|
||||
def test_local_converter_is_paced_and_has_no_credentials(self):
|
||||
def test_local_converter_can_buffer_ahead_and_has_no_credentials(self):
|
||||
with patch('playback.shutil.which', return_value='ffmpeg'), patch('playback.os.access', return_value=False):
|
||||
cmd=playback.command('/tmp/private/source.mp4', '', 300)
|
||||
self.assertIn('-readrate', cmd)
|
||||
self.assertNotIn('-readrate', cmd)
|
||||
self.assertNotIn('-headers', cmd)
|
||||
self.assertIn('libx264', cmd)
|
||||
self.assertEqual(cmd[cmd.index('-threads')+1], '1')
|
||||
|
||||
Reference in New Issue
Block a user