fHDHR_NewsON/fHDHR/device/tuners/stream/__init__.py
deathbybandaid 8c5cd7371f first commit
2020-11-27 15:27:23 -05:00

23 lines
644 B
Python

from .direct_stream import Direct_Stream
from .ffmpeg_stream import FFMPEG_Stream
from .vlc_stream import VLC_Stream
class Stream():
def __init__(self, fhdhr, stream_args, tuner):
self.fhdhr = fhdhr
self.stream_args = stream_args
if stream_args["method"] == "ffmpeg":
self.method = FFMPEG_Stream(fhdhr, stream_args, tuner)
if stream_args["method"] == "vlc":
self.method = VLC_Stream(fhdhr, stream_args, tuner)
elif stream_args["method"] == "direct":
self.method = Direct_Stream(fhdhr, stream_args, tuner)
def get(self):
return self.method.get()