vidformer 0.6.2__tar.gz → 0.6.3__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vidformer
3
- Version: 0.6.2
3
+ Version: 0.6.3
4
4
  Summary: A Python library for creating and viewing videos with vidformer.
5
5
  Author-email: Dominik Winecki <dominikwinecki@gmail.com>
6
6
  Requires-Python: >=3.8
@@ -1,5 +1,5 @@
1
1
  """A Python library for creating and viewing videos with vidformer."""
2
2
 
3
- __version__ = "0.6.2"
3
+ __version__ = "0.6.3"
4
4
 
5
5
  from .vf import *
@@ -388,7 +388,7 @@ class YrdenServer:
388
388
  A yrden server is the main API for local use of vidformer.
389
389
  """
390
390
 
391
- def __init__(self, domain=None, port=None, bin=None):
391
+ def __init__(self, domain=None, port=None, bin=None, hls_prefix=None):
392
392
  """
393
393
  Connect to a Yrden server
394
394
 
@@ -413,6 +413,12 @@ class YrdenServer:
413
413
  # We need to print the URL in the notebook
414
414
  # This is a trick to get VS Code to forward the port
415
415
  cmd += ["--print-url"]
416
+
417
+ if hls_prefix is not None:
418
+ if not type(hls_prefix) == str:
419
+ raise Exception("hls_prefix must be a string")
420
+ cmd += ["--hls-prefix", hls_prefix]
421
+
416
422
  self._proc = subprocess.Popen(cmd)
417
423
 
418
424
  version = _check_hls_link_exists(f"http://{self._domain}:{self._port}/")
File without changes
File without changes
File without changes