کلاس: ایما

سازنده

ima

new ima()

Global functions that control the IMA SDK.

کلاس‌ها

روش‌ها

disableLogging

استاتیک

disableLogging()

ثبت وقایع SDK را غیرفعال می‌کند. ثبت وقایع به طور پیش‌فرض فعال خواهد بود.

getStreamManager

استاتیک

getStreamManager() returns object

اگر مدیر جریان (stream manager) در دسترس باشد، آن را برمی‌گرداند. اگر مدیر جریان هنوز در دسترس نباشد، مقدار Invalid برگردانده می‌شود. اگر در ایجاد مدیر جریان خطایی رخ داده باشد، یک شیء خطا برگردانده می‌شود.

بازگشت‌ها

object The stream manager or error object.

initSdk

استاتیک

initSdk(settings)

Initializes the SDK.

پارامتر

settings

شیء

Optional IMA settings object.

requestStream

استاتیک

requestStream(streamRequest) returns object

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

شیء

بازگشت‌ها

object an error or invalid if no error