mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
validate: Launcher: Add support for the dash protocol
And make sure that the HTTP server is started if it is needed to serve some HLS or DASH streams
This commit is contained in:
parent
631db75718
commit
8e1997d820
2 changed files with 6 additions and 3 deletions
|
@ -52,9 +52,11 @@ AUDIO_ONLY_FILE_TRANSCODING_RATIO = 5
|
|||
"""
|
||||
Some info about protocols and how to handle them
|
||||
"""
|
||||
GST_VALIDATE_CAPS_TO_PROTOCOL = [("application/x-hls", Protocols.HLS)]
|
||||
GST_VALIDATE_CAPS_TO_PROTOCOL = [("application/x-hls", Protocols.HLS),
|
||||
("application/dash+xml", Protocols.DASH)]
|
||||
GST_VALIDATE_PROTOCOL_TIMEOUTS = {Protocols.HTTP: 120,
|
||||
Protocols.HLS: 240}
|
||||
Protocols.HLS: 240,
|
||||
Protocols.DASH: 240}
|
||||
|
||||
|
||||
class GstValidateMediaCheckTestsGenerator(GstValidateTestsGenerator):
|
||||
|
@ -553,7 +555,7 @@ not been tested and explicitely activated if you set use --wanted-tests ALL""")
|
|||
protocol = test.media_descriptor.get_protocol()
|
||||
uri = test.media_descriptor.get_uri()
|
||||
|
||||
if protocol == Protocols.HTTP and \
|
||||
if protocol in [Protocols.HTTP, Protocols.HLS, Protocols.DASH] and \
|
||||
"127.0.0.1:%s" % (self.options.http_server_port) in uri:
|
||||
return True
|
||||
return False
|
||||
|
|
|
@ -49,6 +49,7 @@ class Protocols(object):
|
|||
HTTP = "http"
|
||||
FILE = "file"
|
||||
HLS = "hls"
|
||||
DASH = "dash"
|
||||
|
||||
|
||||
class Colors(object):
|
||||
|
|
Loading…
Reference in a new issue