feat: use anchor API for html elements (#174)

This commit is contained in:
Wesley Luyten
2025-11-07 14:33:10 -06:00
committed by GitHub
parent 8d477a33a4
commit 4a2d580bb3
16 changed files with 191 additions and 215 deletions
+2 -2
View File
@@ -35,9 +35,9 @@
>
<video
slot="media"
src="https://stream.mux.com/A3VXy02VoUinw01pwyomEO3bHnG4P32xzV7u1j1FSzjNg/high.mp4"
src="https://stream.mux.com/fXNzVtmtWuyz00xnSrJg4OJH6PyNo6D02UzmgeKGkP5YQ/high.mp4"
playsinline
poster="https://image.mux.com/A3VXy02VoUinw01pwyomEO3bHnG4P32xzV7u1j1FSzjNg/thumbnail.webp"
poster="https://image.mux.com/fXNzVtmtWuyz00xnSrJg4OJH6PyNo6D02UzmgeKGkP5YQ/thumbnail.webp"
></video>
<div class="overlay"></div>
+2 -2
View File
@@ -35,9 +35,9 @@
>
<video
slot="media"
src="https://stream.mux.com/A3VXy02VoUinw01pwyomEO3bHnG4P32xzV7u1j1FSzjNg/high.mp4"
src="https://stream.mux.com/fXNzVtmtWuyz00xnSrJg4OJH6PyNo6D02UzmgeKGkP5YQ/high.mp4"
playsinline
poster="https://image.mux.com/A3VXy02VoUinw01pwyomEO3bHnG4P32xzV7u1j1FSzjNg/thumbnail.webp"
poster="https://image.mux.com/fXNzVtmtWuyz00xnSrJg4OJH6PyNo6D02UzmgeKGkP5YQ/thumbnail.webp"
></video>
<div class="overlay"></div>
+1 -1
View File
@@ -1,6 +1,6 @@
import './frosted-eject.css';
import '@videojs/html/icons';
// be sure to import video-provider first
// be sure to import video-provider first for proper context initialization
import '@videojs/html/define/video-provider';
import '@videojs/html/define/media-container';
import '@videojs/html/define/media-play-button';
+1 -1
View File
@@ -1,6 +1,6 @@
import './minimal-eject.css';
import '@videojs/html/icons';
// be sure to import video-provider first
// be sure to import video-provider first for proper context initialization
import '@videojs/html/define/video-provider';
import '@videojs/html/define/media-container';
import '@videojs/html/define/media-play-button';