@@ -982,6 +982,7 @@ def __init__(self, uri, stream_info, media, base_uri):
982982 hdcp_level = stream_info .get ("hdcp_level" ),
983983 pathway_id = stream_info .get ("pathway_id" ),
984984 stable_variant_id = stream_info .get ("stable_variant_id" ),
985+ req_video_layout = stream_info .get ("req_video_layout" )
985986 )
986987 self .media = []
987988 for media_type in ("audio" , "video" , "subtitles" ):
@@ -1047,6 +1048,7 @@ def __init__(self, base_uri, uri, iframe_stream_info):
10471048 frame_rate = None ,
10481049 pathway_id = iframe_stream_info .get ("pathway_id" ),
10491050 stable_variant_id = iframe_stream_info .get ("stable_variant_id" ),
1051+ req_video_layout = None ,
10501052 )
10511053
10521054 def __str__ (self ):
@@ -1107,6 +1109,7 @@ class StreamInfo:
11071109 hdcp_level = None
11081110 pathway_id = None
11091111 stable_variant_id = None
1112+ req_video_layout = None
11101113
11111114 def __init__ (self , ** kwargs ):
11121115 self .bandwidth = kwargs .get ("bandwidth" )
@@ -1123,6 +1126,7 @@ def __init__(self, **kwargs):
11231126 self .hdcp_level = kwargs .get ("hdcp_level" )
11241127 self .pathway_id = kwargs .get ("pathway_id" )
11251128 self .stable_variant_id = kwargs .get ("stable_variant_id" )
1129+ self .req_video_layout = kwargs .get ("req_video_layout" )
11261130
11271131 def __str__ (self ):
11281132 stream_inf = []
@@ -1152,6 +1156,8 @@ def __str__(self):
11521156 stream_inf .append ("PATHWAY-ID=" + quoted (self .pathway_id ))
11531157 if self .stable_variant_id is not None :
11541158 stream_inf .append ("STABLE-VARIANT-ID=" + quoted (self .stable_variant_id ))
1159+ if self .req_video_layout is not None :
1160+ stream_inf .append ("REQ-VIDEO_LAYOUT=" + quoted (self .req_video_layout ))
11551161 return "," .join (stream_inf )
11561162
11571163
0 commit comments