/AWS1/IF_MDX=>ADDFLOWMEDIASTREAMS()¶
About AddFlowMediaStreams¶
Adds media streams to an existing flow. After you add a media stream to a flow, you can associate it with a source and/or an output that uses the ST 2110 JPEG XS or CDI protocol.
Method Signature¶
METHODS /AWS1/IF_MDX~ADDFLOWMEDIASTREAMS
IMPORTING
!IV_FLOWARN TYPE /AWS1/MDXFLOWARN OPTIONAL
!IT_MEDIASTREAMS TYPE /AWS1/CL_MDXADDMEDIASTREAMREQ=>TT___LISTOFADDMEDIASTREAMREQ OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mdxaddflowmediastrm01
RAISING
/AWS1/CX_MDXBADREQUESTEX
/AWS1/CX_MDXFORBIDDENEXCEPTION
/AWS1/CX_MDXINTERNALSERVERER00
/AWS1/CX_MDXNOTFOUNDEXCEPTION
/AWS1/CX_MDXSERVICEUNAVAILEX
/AWS1/CX_MDXTOOMANYREQUESTSEX
/AWS1/CX_MDXCLIENTEXC
/AWS1/CX_MDXSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_flowarn TYPE /AWS1/MDXFLOWARN /AWS1/MDXFLOWARN¶
The Amazon Resource Name (ARN) of the flow.
it_mediastreams TYPE /AWS1/CL_MDXADDMEDIASTREAMREQ=>TT___LISTOFADDMEDIASTREAMREQ TT___LISTOFADDMEDIASTREAMREQ¶
The media streams that you want to add to the flow.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_mdxaddflowmediastrm01 /AWS1/CL_MDXADDFLOWMEDIASTRM01¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->addflowmediastreams(
it_mediastreams = VALUE /aws1/cl_mdxaddmediastreamreq=>tt___listofaddmediastreamreq(
(
new /aws1/cl_mdxaddmediastreamreq(
io_attributes = new /aws1/cl_mdxmediastrmattrsreq(
io_fmtp = new /aws1/cl_mdxfmtprequest(
iv_channelorder = |string|
iv_colorimetry = |string|
iv_exactframerate = |string|
iv_par = |string|
iv_range = |string|
iv_scanmode = |string|
iv_tcs = |string|
)
iv_lang = |string|
)
it_mediastreamtags = VALUE /aws1/cl_mdx__mapofstring_w=>tt___mapofstring(
(
VALUE /aws1/cl_mdx__mapofstring_w=>ts___mapofstring_maprow(
key = |string|
value = new /aws1/cl_mdx__mapofstring_w( |string| )
)
)
)
iv_clockrate = 123
iv_description = |string|
iv_mediastreamid = 123
iv_mediastreamname = |string|
iv_mediastreamtype = |string|
iv_videoformat = |string|
)
)
)
iv_flowarn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_string = lo_result->get_flowarn( ).
LOOP AT lo_result->get_mediastreams( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lo_mediastreamattributes = lo_row_1->get_attributes( ).
IF lo_mediastreamattributes IS NOT INITIAL.
lo_fmtp = lo_mediastreamattributes->get_fmtp( ).
IF lo_fmtp IS NOT INITIAL.
lv_string = lo_fmtp->get_channelorder( ).
lv_colorimetry = lo_fmtp->get_colorimetry( ).
lv_string = lo_fmtp->get_exactframerate( ).
lv_string = lo_fmtp->get_par( ).
lv_range = lo_fmtp->get_range( ).
lv_scanmode = lo_fmtp->get_scanmode( ).
lv_tcs = lo_fmtp->get_tcs( ).
ENDIF.
lv_string = lo_mediastreamattributes->get_lang( ).
ENDIF.
lv_integer = lo_row_1->get_clockrate( ).
lv_string = lo_row_1->get_description( ).
lv_integer = lo_row_1->get_fmt( ).
lv_integer = lo_row_1->get_mediastreamid( ).
lv_string = lo_row_1->get_mediastreamname( ).
lv_mediastreamtype = lo_row_1->get_mediastreamtype( ).
lv_string = lo_row_1->get_videoformat( ).
ENDIF.
ENDLOOP.
ENDIF.