AMP

amp-nexxtv-player

Description

Displays a media stream from the nexxOMNIA platform.

 

Required Scripts

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

Example

With the responsive layout, the width and height from the example should yield correct layouts for 16:9 aspect ratio videos:

<amp-nexxtv-player
  data-mediaid="71QQG852413DU7J"
  data-client="761"
  data-streamtype="video"
  data-mode="static"
  data-disable-ads="1"
  data-streaming-filter="nxp-bitrate-2500"
  layout="responsive"
  width="480"
  height="270"
></amp-nexxtv-player>

Attributes

data-mediaid (required) Represents the ID of the media you want to play.
data-client OR data-domain-id(required) Your domain ID.
data-streamtype (optional)

Indicates the media streaming type, which can be one of the following:

  • `video` (default)
  • `audio`
  • `playlist`
  • `audioalbum`: An audio playlist
  • `live`
  • `radio`
  • `set`
  • `collection`: collection of media items
data-mode (optional) Indicates the data mode, which can be static (default) or api.
data-disable-ads (optional) Ads are enabled by default. Set value to 1 to disable.
data-streaming-filter (optional) Set streaming filter e.g. "nxp-bitrate-0750" for max 750kbit max bitrate.
data-exit-mode (optional)

Defines player exit screen

  • `replay`
  • `loop`
  • `load`
common attributes This element includes common attributes extended to AMP components.

Validation

See amp-nexxtv-player rules in the AMP validator specification.

도움이 더 필요하신가요?

이 문서를 수십 번 읽었음에도 여전히 궁금한 점이 남아 있나요? 다른 개발자들도 같은 심정일지 모릅니다. Stack Overflow에서 소통해 보세요.

Stack Overflow로 이동
버그나 누락된 기능을 발견하셨나요?

AMP 프로젝트는 여러분의 참여와 기여를 적극 환영합니다! 오픈 소스 커뮤니티를 통해 지속적으로 활동해 주셔도 좋지만 관심 있는 주제에 한 번만 기여하셔도 큰 도움이 됩니다.

GitHub로 이동하기