Skip to content

Accessing 'vastAdId' from MediaTailor streams #8474

@chrisdplant

Description

@chrisdplant

Have you read the Tutorials?
Yes

Have you read the FAQ and checked for duplicate open issues?
Yes - no similar issues found

If the question is related to FairPlay, have you read the tutorial?

What version of Shaka Player are you using?
4.11.7

What browser and OS are you using?
MacOS, Chrome

Please ask your question
I am trying to access the vastAdId property that is inside the AdManager for MediaTailor streams. I can't seem to find a way of getting this data as there is no function to directly access it. I can see that there are functions to access similar data in the same object, e.g getAdId, getTitle etc, but there doesn't seem like there's a direct way to get the vastAdId in the same way (also inside getAdManager() I can see the id buried several layers down under minified functions.)

I've tried to access it by logging something similar to what's done in here - https://shaka-player-demo.appspot.com/docs/api/lib_ads_media_tailor_ad.js.html#line285 (for example trying return this.ad_.vastAdId;) but this does not work.

Is there anything that exposes this data and has an easier way to access this data?

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: adsThe issue involves the Shaka Player ads API or the use of other ad SDKspriority: P3Useful but not urgentstatus: archivedArchived and locked; will not be updatedtype: enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions