How to use systemjs to load to browser?
Closed this issue · 1 comments
hkchenhongyi commented
<script type="importmap">
{
"imports": {
"p2p-media-loader-core": "https://cdn.jsdelivr.net/npm/p2p-media-loader-core@2.1.0/dist/p2p-media-loader-core.es.min.js",
"p2p-media-loader-hlsjs": "https://cdn.jsdelivr.net/npm/p2p-media-loader-hlsjs@2.1.0/dist/p2p-media-loader-hlsjs.es.min.js"
}
}
</script>
<script type="module">
import { HlsJsP2PEngine } from "p2p-media-loader-hlsjs";
window.HlsJsP2PEngine = HlsJsP2PEngine;
</script>
How to use systemjs to load to browser?