You can add Sirv Media Viewer script to your page as the documentation recommends or you can use this module.
This module adds Sirv Media Viewer script to page once.
npm install --save sirv-media-viewer-script
import loadSMVScript from 'sirv-media-viewer-script';
loadSMVScript().then((sirv) => {
// script is loaded
});
Append a <script>
node with 'https://scripts.sirv.com/sirvjs/v3/sirv.js'
URL to the <head>
element in the DOM.
More about it you can find here
More about it you can find here
Returns a promise which resolves to the sirv
object, or rejects with err
if any occurred.