12/12/2016

Cara memasukkan video yang dihosting di Beachfront Reach in di AMP Html


amp-reach-player


Masukkan video yang di-host dengan file amp-reach-player en AMP HTML, bagian dari video di pantai.

1 Kode pembuka

<!doctype html>
<html ⚡>
<head>
  <meta charset="utf-8">
  <script async src="https://cdn.ampproject.org/v0.js"></script>

2 Disposisi

Masukkan skrip berikut tepat di bawah <head>

<script async custom-element="amp-reach-player" src="https://cdn.ampproject.org/v0/amp-reach-player-0.1.js"></script>

3 Penggunaan dasar

Masukkan video yang dihosting di lingkup Beachfront Reach melalui atribut data-embed-id. Disarankan untuk menggunakan desain sensitif untuk video.

Kodenya

<amp-reach-player data-embed-id="default"
      layout="responsive"
      width="560"
      height="315"></amp-reach-player>

Demonya


FULL struktur kode lengkap

<!doctype html>
<html ⚡>
<head>
  <meta charset="utf-8">
  <script async src="https://cdn.ampproject.org/v0.js"></script>

<script async custom-element="amp-reach-player" src="https://cdn.ampproject.org/v0/amp-reach-player-0.1.js"></script>
<link rel="canonical" href="http://amphtmlejemplos.blogspot.com/2016/12/como-insertar-videos-alojados-en-amp-html.html">
  <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
  <style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
</head>
<body>
<amp-reach-player data-embed-id="default"
      layout="responsive"
      width="560"
      height="315"></amp-reach-player>
</body>
</html>





Share:

Related post

You Might Also Like:

Disqus comments:


Facebook comments: