googleads / videojs-ima

IMA SDK Plugin for Video.js
Apache License 2.0
445 stars 285 forks source link

How to import ima3.js instead of googleapis.com? #1109

Closed JonasWater closed 1 year ago

JonasWater commented 1 year ago

How to use a third-party CDN or local static to import https://imasdk.googleapis.com/js/sdkloader/ima3.js instead of googleapis.com? Thx~

PS:When i try to use third-party CDN or local static to import that which will go wrong...

Kiro705 commented 1 year ago

Hello @JonasWater ,

The IMA SDK requires the SDK be downloaded from the official Google URL (https://imasdk.googleapis.com/js/sdkloader/ima3.js). The SDK team does not offer a work around to avoid this requirement.

Please let me know if you have any additional questions. Another resource for information, general to the IMA SDK, is the IMA SDK technical forum. This issues queue is specific to the videoJS-IMA plugin.

Thank you, Jackson IMA SDK team

JonasWater commented 1 year ago

The ima3.js will support with NPM install?

@Kiro705 Thx~

Kiro705 commented 1 year ago

Hello @JonasWater,

The IMA SDK does not have an NPM module to install. We recommend including a script tag in your html to download the SDK. The this plugin's readme; the Get started section, for more details.

Thank you, Jackson IMA SDK team

JonasWater commented 1 year ago

OK, thx~