This HTML file serves as an embed player using Plyr library.
This HTML file contains a simple setup to embed videos using the Plyr library. It extracts the provider and ID from the URL search parameters and creates a Plyr player accordingly. It also supports autoplay based on the URL parameter.
-
To embed a video, append ?provider=
PROVIDER_NAME
&id=VIDEO_ID
to the URL, replacing PROVIDER_NAME with the video provider (e.g., YouTube) and VIDEO_ID with the video ID. -
To enable autoplay, add &
autoplay
=true to the URL.