DynTube Help Center
  • Welcome to our Help Center
  • Videos
    • How To Upload & Embed Videos
    • Playing DynTube Videos in Native Mobile Apps
    • How to Embed Videos in WordPress
    • How to create a video feed for Roku & Fire Tv
    • How to live stream on DynTube using OBS
    • How to Change Video Thumbnail
    • How to Change the Video Player Skin
    • How to Download Oirignal Videos
    • How to Use Original MP4 Without Transcoding
    • Use your own domain for videos and channels
    • Automatically Import Videos from Google Drive using Zapier
    • Move videos to a different project
    • How to add call-to-action on a video
    • How to enable white-label video links
    • Tracking Video Viewers with Custom User IDs/Emails
  • Security
    • How to secure your videos on DynTube
    • How to Add Login Protection on My Videos
    • How To Turn On Video Encryption
    • How To Create Plans & Subscriptions
  • Channels
    • How to Create Video Channels
    • How To Sort Videos in a Channel
    • Custom Video Order in Your Channel
  • Projects
    • How to create a project
    • How to Edit Project Settings
    • How To Save Original Source Files
  • AI Features
    • How does the AI-powered transcription and translation pricing work?
  • TV Apps
    • How to Add Your DynTube Roku Feed to a Roku Channel
    • How to Add Your DynTube Fire TV Feed to an Amazon Fire TV Channel
  • Account
    • How to Upgrade My Plan?
    • How to Update My Credit Card Details?
    • How to Check My Payment History?
    • How To Download the Invoices?
    • How to add more users to my DynTube account?
    • How to Cancel My Plan?
  • FAQs
    • How to Choose Between Plans?
    • Video Options
    • Video Player
    • Bandwidth
    • Video Uploads
    • HLS Streaming & Storage
    • Screen Recording & Download prevention
    • Video Playback Issues
    • Billing
  • Tips & Tricks
    • Embed videos using the new video player
    • How to make rounded big play button
    • How to Embed DynTube Videos in LearnDash
    • How to Embed DynTube Video Channel in WordPress/LearnDash
    • How to add dynamic watermark to the video player
    • Control Video Player using URL
    • How to use your own videos as Ads
    • How to embed DynTube player in Next.Js
    • How to embed the DynTube player in React
    • How to embed videos & channels dynamically
Powered by GitBook
On this page
  • WordPress Plugin
  • Features
  • Download Plugin
  • Installation
  • Usage
  • Identifier Retrieval
  • Other ways to Embed
  • Embed a video using a code editor in WordPress
  1. Videos

How to Embed Videos in WordPress

PreviousPlaying DynTube Videos in Native Mobile AppsNextHow to create a video feed for Roku & Fire Tv

Last updated 6 months ago

WordPress Plugin

WordPress DynTube Embed is a plugin ( ) that facilitates the integration of DynTube videos and channels into WordPress sites. It provides functionality for video embedding with customizable options, including user tracking and responsive design.

Features

  • Shortcode implementation for easy embedding of DynTube videos and channels

  • Support for both iframe-based and JavaScript-based embed codes

  • Optional email tracking for user analytics (iframe embeds)

  • Responsive video embedding

  • Customizable video aspect ratios (iframe embeds)

  • Configurable maximum dimensions for both embed types

Download Plugin

You can download the WordPress plugin using this link

Installation

  1. Access your WordPress dashboard and navigate to Plugins > Add New Plugin > Upload Plugin.

  2. Upload the wordpress-dyntube-embed.zip file. The latest version is available in the dist directory.

  3. Activate the plugin via the 'Plugins' menu in WordPress.

Usage

Shortcode Syntax

Iframe-based Embed (Individual Videos)

[dyntube iframe_id="YOUR_IFRAME_ID" track_email="true" ratio="16x9"]

JavaScript-based Embed (Channels or Videos)

[dyntube channel_key="YOUR_CHANNEL_KEY" track_email="true"]

Parameters

Iframe-based Embed Parameters

Parameter
Required
Description
Default

iframe_id

Yes

DynTube video iframe ID

N/A

track_email

No

Enable/disable email tracking ("true" or "false")

"false"

ratio

No

Video aspect ratio (e.g., "16x9", "4x3", "1x1")

"16x9"

width

No

Maximum video width in pixels

N/A

height

No

Maximum video height in pixels

N/A

JavaScript-based Embed Parameters

Parameter
Required
Description
Default

channel_key

Yes

DynTube channel key or video's channel key

N/A

width

No

Maximum embed width in pixels

N/A

track_email

No

Enable/disable email tracking ("true" or "false")

"false"

Implementation Examples

  1. Default 16:9 ratio iframe embed:

    [dyntube iframe_id="kt0E5TY8ABGTYkl4gf6uFQ"]
  2. Iframe embed with email tracking:

    [dyntube iframe_id="kt0E5TY8ABGTYkl4gf6uFQ" track_email="true"]
  3. Custom 9:16 ratio iframe embed:

    [dyntube iframe_id="kt0E5TY8ABGTYkl4gf6uFQ" ratio="9x16"]
  4. JavaScript-based channel embed:

    [dyntube channel_key="NCzHehj8Z0OKtqNE1TbfA"]
  5. JavaScript-based channel embed with maximum width:

    [dyntube channel_key="NCzHehj8Z0OKtqNE1TbfA" width="800"]

Identifier Retrieval

iframe_id

The iframe_id is the unique identifier for a DynTube video. It can be obtained from:

  • The DynTube dashboard

  • The DynTube API

  • The final segment of the DynTube video iframe URL

Example: For the URL https://videos.dyntube.com/iframes/kt0E5TY8ABGTYkl4gf6uFQ, the iframe_id is kt0E5TY8ABGTYkl4gf6uFQ.

channel_key

The channel_key can be acquired through:

  • The ChannelKey field of a video when fetched using the API

  • Clicking on a video title in the dashboard

  • The Key field of a channel when fetched using the API

  • Clicking the three-dots icon next to the channel name in the dashboard

Other ways to Embed

Please watch the video below to enable you to learn how you can embed DynTube videos in your WordPress website.

Embed a video using a code editor in WordPress

Please watch the video to see how you can embed a video as well as a video channel.

https://github.com/dyntube-com/wordpress-dyntube-embed
https://files.dyntube.com/v1/wordpress/wordpress-dyntube-embed.zip