diff options
| author | Adam Soltys <[email protected]> | 2023-04-19 10:48:41 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-04-19 10:48:41 -0700 |
| commit | eb19d50489a47dd592a28435ed42fc344b264f82 (patch) | |
| tree | c7aabad2e5c3a57f6f63d9ea56658f1e90c8c542 /src | |
| parent | 4b82d5755b52979c11046b6328a95b7f52212f2c (diff) | |
| download | coinos-ui-video.tar.gz coinos-ui-video.zip | |
videojsvideo
Diffstat (limited to 'src')
| -rw-r--r-- | src/routes/+page.svelte | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 3a5a54f3..c5ca646e 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,4 +1,5 @@ <script> + import videojs from "video.js" import { LandingHeader, LandingHero, @@ -39,17 +40,28 @@ } catch (e) { console.log(e); } + + +let player = videojs('hls-example'); +player.play(); }); </script> <svelte:head> <script src="https://stamen-maps.a.ssl.fastly.net/js/tile.stamen.js"></script> + + <link href="https://vjs.zencdn.net/8.0.4/video-js.css" rel="stylesheet" /> </svelte:head> <LandingHeader {howItWorks} {faq} {about} {user} /> <main class="space-y-40 py-20 md:py-32 lg:py-36 xl:py-40 px-5 md:px-0"> <LandingHero {user} /> + +<video id='hls-example' class="video-js vjs-default-skin" width="400" height="300" controls> +<source type="application/x-mpegURL" src="/stream_0/stream_0.m3u8"> +</video> + <LandingInfoCard image="lightning-qr" title={$t('landing.info1.title')} |
