- 新しい順
- 投票が多い順
- コメントが多い順
Developers packaging the IVS player into an app are required to resolve and import the following assets via URL:
- ‘amazon-ivs-player/dist/assets/amazon-ivs-wasmworker.min.wasm’
- ‘amazon-ivs-player/dist/assets/amazon-ivs-wasmworker.min.js’;
These assets must not be re-compiled during packaging. Your build tool must ignore these wasm files.
A sample of webpack config can be found: https://github.com/aws-samples/amazon-ivs-player-web-sample/blob/master/webpack.config.js , however, other packagers could have their own way of ignoring certain files from being re-compiled.
Hello,
Adding on to what Riley mentioned, this GitHub issue on our web samples repo seems to describe a similar problem and may have more tips: https://github.com/aws-samples/amazon-ivs-player-web-sample/issues/4.
I'm not familiar with angular-cli, but perhaps you could use this library to specify an additional webpack configuration that'd let you copy the player's assets without recompilation? https://github.com/just-jeb/angular-builders
Best,
Tony