Skip to content
Discussion options

You must be logged in to vote

A mate of mine, which is working with me using GrapesJS, told me about the data-gjs-type="generic" HTML attribute, which does what I was looking for.

<div class="plyr-player-div" data-gjs-custom-name="Plyr player">
  <video ==> data-gjs-type="generic" <== controls data-poster="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.jpg" class="plyr-html5-player">
    <!-- Video files -->
    <source src="https://commondatastorage.googleapis.com/gtv-videos-bucket/CastVideos/mp4/BigBuckBunny.mp4" type="video/mp4" size="576" />

    <!-- Caption files -->
    <track kind="captions" label="English" srclang="en" src="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.en.vtt

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sandenson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant