Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
Allow to read audio/video from io.Reader
Browse files Browse the repository at this point in the history
  • Loading branch information
nmorenor committed Apr 1, 2023
1 parent ab2f7da commit 278c5dd
Show file tree
Hide file tree
Showing 5 changed files with 635 additions and 7 deletions.
17 changes: 17 additions & 0 deletions examples/player-stream/bundle.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import os, fileinput, shutil

bundleDirPath = os.path.abspath("bundle")
os.makedirs(bundleDirPath, exist_ok=True)

for dllInfo in fileinput.input():
dllInfo = dllInfo.strip()
dllInfoParts = dllInfo.split(sep=" ")
dllName = dllInfoParts[0]
dllPath = dllInfoParts[2]
dllBundlePath = os.path.join(bundleDirPath, dllName)

if dllPath.startswith("/mingw64/bin"):
dllPath = os.path.join("C:/msys64", dllPath[1:])
shutil.copyfile(dllPath, dllBundlePath)

shutil.copyfile("player.exe", "bundle/player.exe")
Binary file added examples/player-stream/demo.mkv
Binary file not shown.
Binary file added examples/player-stream/demo.mp4
Binary file not shown.
Loading

0 comments on commit 278c5dd

Please sign in to comment.