Skip to content

Commit

Permalink
minor video notices for iframes
Browse files Browse the repository at this point in the history
  • Loading branch information
btopro committed Jun 21, 2023
1 parent bcc70b9 commit d30c4ad
Show file tree
Hide file tree
Showing 17 changed files with 11 additions and 941 deletions.
33 changes: 0 additions & 33 deletions elements/a11y-media-player/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ <h1>a11y-media-player Demo</h1>
<a11y-media-player id="example" accent-color="pink" linkable hide-transcript>
<video crossorigin="anonymous" controls>
<source src="//iandevlin.github.io/mdn/video-player-with-captions/video/sintel-short.mp4" type="video/mp4">
<source src="//iandevlin.github.io/mdn/video-player-with-captions/sintel-short.webm" type="video/webm">
<track label="English" kind="subtitles" srclang="en" src="./samples/sintel-en.vtt" default="">
<track label="Deutsch" kind="subtitles" srclang="de" src="./samples/sintel-de.vtt">
<track label="Español" kind="subtitles" srclang="es" src="./samples/sintel-es.vtt">
Expand All @@ -55,40 +54,12 @@ <h1>a11y-media-player Demo</h1>
</template>
</demo-snippet>

<h2>Video example, dark, with no timestamps, no interactive transcript, and no search feature</h2>
<demo-snippet>
<template>
<a11y-media-player accent-color="teal" dark thumbnail-src="./samples/stclair.jpg" media-title="St.Clair Interview" disable-interactive disable-search hide-timestamps>
<video crossorigin="anonymous" controls>
<source src="//personal.psu.edu/lnm105/stclair.mp4" type="video/mp4">
<track label="English" kind="subtitles" srclang="en" src="./samples/stclair.vtt" default>
</video>
</a11y-media-player>
</template>
</demo-snippet>

<h2>Video example, no preloading</h2>
<demo-snippet>
<template>
<a11y-media-player accent-color="brown" preload="none">
<video crossorigin="anonymous" controls>
<source src="//iandevlin.github.io/mdn/video-player-with-captions/video/sintel-short.mp4" type="video/mp4">
<source src="//iandevlin.github.io/mdn/video-player-with-captions/sintel-short.webm" type="video/webm">
</video>
</a11y-media-player>
</template>
</demo-snippet>

<h2>Video example, auto preloading</h2>
<demo-snippet>
<template>
<a11y-media-player
accent-color="light-green"
dark thumbnail-src="./samples/stclair.jpg"
preload="auto">
<video crossorigin="anonymous" controls>
<source src="//personal.psu.edu/lnm105/stclair.mp4" type="video/mp4">
<track label="English" kind="subtitles" srclang="en" src="./samples/stclair.vtt" default>
</video>
</a11y-media-player>
</template>
Expand All @@ -101,7 +72,6 @@ <h2>Video example, standalone, with width set with a share link enabled</h2>
<a11y-media-player id="time-demo" accent-color="blue" linkable stand-alone width="350px">
<video crossorigin="anonymous" controls>
<source src="//iandevlin.github.io/mdn/video-player-with-captions/video/sintel-short.mp4" type="video/mp4">
<source src="//iandevlin.github.io/mdn/video-player-with-captions/sintel-short.webm" type="video/webm">
<track label="Español" kind="subtitles" srclang="es" src="./samples/sintel-es.vtt" default>
<track label="English" kind="subtitles" srclang="en" src="./samples/sintel-en.vtt">
<track label="Deutsch" kind="subtitles" srclang="de" src="./samples/sintel-de.vtt">
Expand All @@ -116,7 +86,6 @@ <h2>Video example, with height (useful if iframed in) &amp; width set </h2>
<a11y-media-player id="height-demo" accent-color="yellow" dark linkable width="480px" height="270px">
<video crossorigin="anonymous" controls>
<source src="//iandevlin.github.io/mdn/video-player-with-captions/video/sintel-short.mp4" type="video/mp4">
<source src="//iandevlin.github.io/mdn/video-player-with-captions/sintel-short.webm" type="video/webm">
<track label="Español" kind="subtitles" srclang="es" src="./samples/sintel-es.vtt" default>
<track label="English" kind="subtitles" srclang="en" src="./samples/sintel-en.vtt">
<track label="Deutsch" kind="subtitles" srclang="de" src="./samples/sintel-de.vtt">
Expand All @@ -132,7 +101,6 @@ <h2>Video example, with height (useful if iframed in) only set </h2>
<a11y-media-player id="height-demo" accent-color="yellow" dark linkable height="270px">
<video crossorigin="anonymous" controls>
<source src="//iandevlin.github.io/mdn/video-player-with-captions/video/sintel-short.mp4" type="video/mp4">
<source src="//iandevlin.github.io/mdn/video-player-with-captions/sintel-short.webm" type="video/webm">
<track label="Español" kind="subtitles" srclang="es" src="./samples/sintel-es.vtt" default>
<track label="English" kind="subtitles" srclang="en" src="./samples/sintel-en.vtt">
<track label="Deutsch" kind="subtitles" srclang="de" src="./samples/sintel-de.vtt">
Expand All @@ -147,7 +115,6 @@ <h2>Video example, with dark transcript and custom microcopy</h2>
<a11y-media-player id="spanish" accent-color="orange" dark dark-transcript lang="es">
<video crossorigin="anonymous" controls>
<source src="//iandevlin.github.io/mdn/video-player-with-captions/video/sintel-short.mp4" type="video/mp4">
<source src="//iandevlin.github.io/mdn/video-player-with-captions/sintel-short.webm" type="video/webm">
<track label="English" kind="subtitles" srclang="en" src="./samples/sintel-en.vtt" default="">
<track label="Deutsch" kind="subtitles" srclang="de" src="./samples/sintel-de.vtt">
<track label="Español" kind="subtitles" srclang="es" src="./samples/sintel-es.vtt">
Expand Down
2 changes: 1 addition & 1 deletion elements/grade-book/lib/grade-book-pop-up.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class GradeBookPopUp extends I18NMixin(LitElement) {
src="${cleanVideoSource(data)}"
frameborder="0"
allow="encrypted-media;"
allowfullscreen
allow="autoplay; encrypted-media; fullscreen; picture-in-picture"
></iframe>
</div>`;
} else {
Expand Down
1 change: 0 additions & 1 deletion elements/hal-9000/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ <h3>Basic hal-9000 demo</h3>
<video-player id="vid2" accent-color="amber" linkable>
<video>
<source src="//iandevlin.github.io/mdn/video-player-with-captions/video/sintel-short.mp4" type="video/mp4">
<source src="//iandevlin.github.io/mdn/video-player-with-captions/sintel-short.webm" type="video/webm">
<track label="English" kind="subtitles" srclang="en" src="./samples/sintel-en.vtt" default="">
<track label="Deutsch" kind="subtitles" srclang="de" src="./samples/sintel-de.vtt">
<track label="Español" kind="subtitles" srclang="es" src="./samples/sintel-es.vtt">
Expand Down

1 comment on commit d30c4ad

@vercel
Copy link

@vercel vercel bot commented on d30c4ad Jun 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.