|
| 1 | +<template> |
| 2 | + <div id="app"> |
| 3 | + <h1>Video Player</h1> |
| 4 | + <vue-plyr> |
| 5 | + <video |
| 6 | + crossorigin |
| 7 | + playsinline |
| 8 | + poster="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.jpg" |
| 9 | + src="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-576p.mp4" |
| 10 | + > |
| 11 | + <source |
| 12 | + size="576" |
| 13 | + src="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-576p.mp4" |
| 14 | + type="video/mp4" |
| 15 | + > |
| 16 | + <source |
| 17 | + size="720" |
| 18 | + src="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-720p.mp4" |
| 19 | + type="video/mp4" |
| 20 | + > |
| 21 | + <source |
| 22 | + size="1080" |
| 23 | + src="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-1080p.mp4" |
| 24 | + type="video/mp4" |
| 25 | + > |
| 26 | + <track |
| 27 | + default |
| 28 | + kind="captions" |
| 29 | + label="English" |
| 30 | + src="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.en.vtt" |
| 31 | + srclang="en" |
| 32 | + > |
| 33 | + <track |
| 34 | + kind="captions" |
| 35 | + label="Français" |
| 36 | + src="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.fr.vtt" |
| 37 | + srclang="fr" |
| 38 | + > |
| 39 | + <a |
| 40 | + download="" |
| 41 | + href="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-576p.mp4" |
| 42 | + > |
| 43 | + Download |
| 44 | + </a> |
| 45 | + |
| 46 | + </video> |
| 47 | + </vue-plyr> |
| 48 | + |
| 49 | + <h1>Audio Player</h1> |
| 50 | + <vue-plyr> |
| 51 | + <audio |
| 52 | + crossorigin |
| 53 | + playsinline |
| 54 | + > |
| 55 | + <source |
| 56 | + src="https://cdn.plyr.io/static/demo/Kishi_Bashi_-_It_All_Began_With_a_Burst.mp3" |
| 57 | + type="audio/mp3" |
| 58 | + > |
| 59 | + <source |
| 60 | + src="https://cdn.plyr.io/static/demo/Kishi_Bashi_-_It_All_Began_With_a_Burst.ogg" |
| 61 | + type="audio/ogg" |
| 62 | + > |
| 63 | + </audio> |
| 64 | + </vue-plyr> |
| 65 | + |
| 66 | + <h1>YouTube</h1> |
| 67 | + <vue-plyr> |
| 68 | + <div class="plyr__video-embed"> |
| 69 | + <iframe |
| 70 | + allow="autoplay" |
| 71 | + allowfullscreen |
| 72 | + allowtransparency |
| 73 | + src="https://www.youtube.com/embed/bTqVqk7FSmY?iv_load_policy=3&modestbranding=1&playsinline=1&showinfo=0&rel=0&enablejsapi=1" |
| 74 | + /> |
| 75 | + </div> |
| 76 | + </vue-plyr> |
| 77 | + |
| 78 | + <h1>Vimeo</h1> |
| 79 | + <vue-plyr> |
| 80 | + <div class="plyr__video-embed"> |
| 81 | + <iframe |
| 82 | + allow="autoplay" |
| 83 | + allowfullscreen |
| 84 | + allowtransparency |
| 85 | + src="https://player.vimeo.com/video/76979871?loop=false&byline=false&portrait=false&title=false&speed=true&transparent=0&gesture=media" |
| 86 | + /> |
| 87 | + </div> |
| 88 | + </vue-plyr> |
| 89 | + |
| 90 | + <h1>YouTube (Not Progressive Enhancement)</h1> |
| 91 | + <vue-plyr> |
| 92 | + <div |
| 93 | + data-plyr-embed-id="bTqVqk7FSmY" |
| 94 | + data-plyr-provider="youtube" |
| 95 | + /> |
| 96 | + </vue-plyr> |
| 97 | + |
| 98 | + <h1>Vimeo (Not Progressive Enhancement)</h1> |
| 99 | + <vue-plyr> |
| 100 | + <div |
| 101 | + data-plyr-embed-id="76979871" |
| 102 | + data-plyr-provider="vimeo" |
| 103 | + /> |
| 104 | + </vue-plyr> |
| 105 | + </div> |
| 106 | +</template> |
| 107 | + |
| 108 | +<style> |
| 109 | + #app { |
| 110 | + font-family: 'Avenir', Helvetica, Arial, sans-serif; |
| 111 | + -webkit-font-smoothing: antialiased; |
| 112 | + -moz-osx-font-smoothing: grayscale; |
| 113 | + text-align: center; |
| 114 | + color: #2c3e50; |
| 115 | + margin-top: 60px; |
| 116 | + } |
| 117 | +</style> |
0 commit comments