Do you build things with AMP? Fill out the new AMP Developer Survey!
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-seek-to="2"
  data-mode="static"
  data-origin="https://embed.nexx.cloud/"
  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 (required) Your domain ID.
data-streamtype (optional)

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

  • video (default)
  • audio
  • playlist
  • playlist-masked: A playlist without the option to skip or choose video.
  • live
  • album: An audio playlist.
data-seek-to (optional) Indicates the starting point of your media (in seconds). For example, video starting 1:30min.
data-mode (optional) Indicates the data mode, which can be static (default) or api.
data-origin (optional) Indicates the source from which the embedded domain media is played. By default this is set to https://embed.nexx.cloud/.
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.
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