/AWS1/CL_MDL=>CREATESDISOURCE()
¶
About CreateSdiSource¶
Create an SdiSource for each video source that uses the SDI protocol. You will reference the SdiSource when you create an SDI input in MediaLive. You will also reference it in an SdiSourceMapping, in order to create a connection between the logical SdiSource and the physical SDI card and port that the physical SDI source uses.
Method Signature¶
IMPORTING¶
Optional arguments:¶
iv_mode
TYPE /AWS1/MDLSDISOURCEMODE
/AWS1/MDLSDISOURCEMODE
¶
Applies only if the type is QUAD. Specify the mode for handling the quad-link signal: QUADRANT or INTERLEAVE.
iv_name
TYPE /AWS1/MDL__STRING
/AWS1/MDL__STRING
¶
Specify a name that is unique in the AWS account. We recommend you assign a name that describes the source, for example curling-cameraA. Names are case-sensitive.
iv_requestid
TYPE /AWS1/MDL__STRING
/AWS1/MDL__STRING
¶
An ID that you assign to a create request. This ID ensures idempotency when creating resources.
it_tags
TYPE /AWS1/CL_MDLTAGS_W=>TT_TAGS
TT_TAGS
¶
A collection of key-value pairs.
iv_type
TYPE /AWS1/MDLSDISOURCETYPE
/AWS1/MDLSDISOURCETYPE
¶
Specify the type of the SDI source: SINGLE: The source is a single-link source. QUAD: The source is one part of a quad-link source.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_mdlcreatesdisourcersp
/AWS1/CL_MDLCREATESDISOURCERSP
¶
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->/aws1/if_mdl~createsdisource(
it_tags = VALUE /aws1/cl_mdltags_w=>tt_tags(
(
VALUE /aws1/cl_mdltags_w=>ts_tags_maprow(
value = new /aws1/cl_mdltags_w( |string| )
key = |string|
)
)
)
iv_mode = |string|
iv_name = |string|
iv_requestid = |string|
iv_type = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_sdisource = lo_result->get_sdisource( ).
IF lo_sdisource IS NOT INITIAL.
lv___string = lo_sdisource->get_arn( ).
lv___string = lo_sdisource->get_id( ).
LOOP AT lo_sdisource->get_inputs( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv___string = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
lv_sdisourcemode = lo_sdisource->get_mode( ).
lv___string = lo_sdisource->get_name( ).
lv_sdisourcestate = lo_sdisource->get_state( ).
lv_sdisourcetype = lo_sdisource->get_type( ).
ENDIF.
ENDIF.