It reads VAST 4 and VMAP 1 in pure JavaScript (Dailymotion’s vast-client with @xmldom/xmldom)
It also does what comes after parsing – wrappers, ad pods, Skip, IAB tracking pixels and VAST error codes.
It plays ads on the native w3cmedia player and switches between the movie player and the ad player as the CSAI guide describes. The remote and Alexa, pause work during ads
Tested on a Fire TV Stick 4K Select (Vega OS 2.0) with React Native 0.72 and 0.83
This is fantastic - thank you for building this and sharing it back with the community.
It’s also great to see that your design lines up with the platform’s recommended approach. Keeping the content stream untouched and letting the app own the switch between the movie player and the ad player on the native w3cmedia player is exactly the model described in the official CSAI guidance:
DRM ads. The stick has one secure video decoder. If both the movie and the ads use DRM, the ad player cannot decode while the movie player holds it. So ad creatives should be clear.
Memory. The stick has 1 GB RAM. The library uses two ad players to keep gaps in a pod short. If the second one cannot start, it continues with one.
Not supported yet: VPAID, SIMID, Companion ads, Icons (AdChoices), Open Measurement (AdVerifications) and ViewableImpression. NonLinear is used for pause ads only.
SSAI is tracking only and still in preview. The library does not stitch.
No Amazon Publisher Services integration yet.
HTTPS media only, unless the host is in the manifest’s cleartext list.
CSAI guide keeps the movie player paused during the ad and the media player requirements allow only one secure decoder instance. For DRM content with DRM ads is the recommended way to deinitialize the movie player before the ad and resume it after? Or is a second secure decoder planned for future Vega devices?
Thank you for the detailed version list and for publishing the limitations doc. That’s really useful for anyone evaluating the library.
On your questions:
There’s no need to validate against the 2.3.4-rn-83 alpha.
On DRM content with DRM ads: as noted in the media player requirements ( General requirements for media apps - Amazon Vega Docs , see “Limitation of Secure Video Decoder sessions”), Vega-based Fire TV devices today support only one secure video decoder instance. To play secure video back to back, you must deinitialize the first VideoPlayer instance before initializing the second one, otherwise the second playback will fail.
Thanks again for sharing this with the community and helping us improve the Vega platform.