ChandimaPrabath commited on
Commit
7f5bee5
·
verified ·
1 Parent(s): b72a643

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -69,7 +69,7 @@ async def serve_video(file_path: str, request: Request):
69
 
70
  async with aiofiles.open(file_path, 'rb') as f:
71
  await f.seek(start)
72
- chunk_size = 8192 # Read in 8KB chunks
73
  data = bytearray()
74
 
75
  while start <= (end or file_size - 1):
 
69
 
70
  async with aiofiles.open(file_path, 'rb') as f:
71
  await f.seek(start)
72
+ chunk_size = 8388608 # Read in 8MB chunks
73
  data = bytearray()
74
 
75
  while start <= (end or file_size - 1):