ima
سازنده
ima
new ima()
Global functions that control the IMA SDK.
کلاسها
AdBreakInfo
Contains info about an ad break. Passed to event callbacks by the SDK.
رویداد تبلیغاتی
رویدادهایی که توسط مدیر تبلیغات ایجاد شدهاند.
AdInfo
حاوی اطلاعاتی درباره یک تبلیغ است. توسط SDK به رویدادهای فراخوانی شده ارسال میشود.
همراه
Contains information about companions of an ad.
CuePoint
Contains info about a cue point.
خطا
شیء ارسالی به مدیریت کننده خطا در صورت وجود خطا.
رویداد خطا
تمام خطاهایی که SDK ممکن است برگرداند.
رویداد ثبت وقایع
شیء ارسال شده به کنترلکنندهی رویداد لاگ در صورت وجود خطای غیرمهلک.
بازیکن
StreamFormat
Defines the format of the stream.
StreamInfo
Information passed from the sdk to the player about the stream.
StreamManager
Object for managing stream playback.
StreamRequest
برای تعیین ویژگیهای درخواست جریان استفاده میشود.
StreamType
نوع پخشی را که از پخشکننده خواسته میشود پخش کند، تعریف میکند. پیشپخشها و VOD باید از ابتدای پخش پخش شوند.
WrapperInfo
Contains information about a wrapper.
روشها
disableLogging
disableLogging()
ثبت وقایع SDK را غیرفعال میکند. ثبت وقایع به طور پیشفرض فعال خواهد بود.
getStreamManager
getStreamManager() returns object
اگر مدیر جریان (stream manager) در دسترس باشد، آن را برمیگرداند. اگر مدیر جریان هنوز در دسترس نباشد، مقدار Invalid برگردانده میشود. اگر در ایجاد مدیر جریان خطایی رخ داده باشد، یک شیء خطا برگردانده میشود.
- بازگشتها
objectThe 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 | شیء |
- بازگشتها
objectan error or invalid if no error