/AWS1/IF_IVS=>INSERTADBREAK()¶
About InsertAdBreak¶
Inserts an ad marker in the playlist for the specified channel and duration using the ad configuration associated with the channel.
Note: AWS Elemental MediaTailor (EMT), the service that handles ad requests, provides CloudWatch metrics to help you monitor the success or failure of each InsertAdBreak operation. See Monitoring AWS Elemental MediaTailor with Amazon CloudWatch metrics in the AWS Elemental MediaTailor User Guide for details on available metrics.
Method Signature¶
METHODS /AWS1/IF_IVS~INSERTADBREAK
IMPORTING
!IV_CHANNELARN TYPE /AWS1/IVSCHANNELARN OPTIONAL
!IV_DURATIONSECONDS TYPE /AWS1/IVSADDURATIONSECONDS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ivsinsertadbreakrsp
RAISING
/AWS1/CX_IVSACCESSDENIEDEX
/AWS1/CX_IVSCHANNELNOTBROADC00
/AWS1/CX_IVSCONFLICTEXCEPTION
/AWS1/CX_IVSINTERNALSERVEREX
/AWS1/CX_IVSRESOURCENOTFOUNDEX
/AWS1/CX_IVSTHROTTLINGEX
/AWS1/CX_IVSVALIDATIONEX
/AWS1/CX_IVSCLIENTEXC
/AWS1/CX_IVSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_channelarn TYPE /AWS1/IVSCHANNELARN /AWS1/IVSCHANNELARN¶
ARN of the channel into which the ad break is inserted.
iv_durationseconds TYPE /AWS1/IVSADDURATIONSECONDS /AWS1/IVSADDURATIONSECONDS¶
Maximum duration of the ad break, in seconds.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ivsinsertadbreakrsp /AWS1/CL_IVSINSERTADBREAKRSP¶
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->insertadbreak(
iv_channelarn = |string|
iv_durationseconds = 123
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_adbreakid = lo_result->get_adbreakid( ).
ENDIF.