има
Конструктор
има
new ima()
Глобальные функции, управляющие IMA SDK.
Классы
AdBreakInfo
Contains info about an ad break. Passed to event callbacks by the SDK.
AdEvent
События, инициированные менеджером рекламы.
AdInfo
Contains info about an ad. Passed to event callbacks by the SDK.
Спутник
Содержит информацию о персонажах, сопровождающих рекламное объявление.
CuePoint
Содержит информацию о контрольной точке.
Ошибка
Object passed to the error handler if there is an error.
ErrorEvent
Все ошибки, которые может отправить SDK.
LogEvent
Object passed to the log event handler if there is a non-fatal error.
Игрок
StreamFormat
Определяет формат потока.
StreamInfo
Information passed from the sdk to the player about the stream.
StreamManager
Object for managing stream playback.
StreamRequest
Used for specifying properties of the stream request.
StreamType
Defines the type of stream that the player is asked to play. Prerolls and VOD should play from the beginning of the stream.
WrapperInfo
Содержит информацию об упаковке.
Методы
отключить логирование
disableLogging()
Disables the SDK logging. Logging will be on by default.
getStreamManager
getStreamManager() returns object
Returns a stream manager if it available. If the stream manager is not yet availbe, Invalid is returned. If there was an error creating the stream manager, an error object is returned.
- Возвраты
objectменеджер потока или объект ошибки.
initSdk
initSdk(settings)
Инициализирует SDK.
Параметр | |
|---|---|
настройки | объект Optional IMA settings object. |
requestStream
requestStream(streamRequest) возвращает объект
Starts an asynchronous stream request. Control returns immediately to the player after calling this method. If there is an existing stream manager, it will be destroyed. If there is a stream playing, it will be replaced by the new stream when the request completes.
Параметр | |
|---|---|
streamRequest | объект |
- Возвраты
objectan error or invalid if no error