¿Cómo insertar videos alojados en Beachfront Reach en Amp HTML?


amp-reach-player


Insertar vídeos alojados con el archivo amp-reach-player en AMP HTML, una sección de videos en la playa.

1 Código de apertura

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

2 Disposición

Inserte el siguiente script justo abajo del <head>

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

3 Uso básico

Insertar vídeos alojados en Beachfront Reach de alcance a través del atributo data-embed-id. Se recomienda usar el diseño sensible para los vídeos.

Código

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

Demostración


A continuación la estructura completa del código

<!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

Comentarios

Disqus

Disqus comments:


Facebook

Facebook comments: