Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hexo-tag-dailymotion

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-tag-dailymotion

A tag plugin to embed Dailymotion video player in your Hexo blog

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

hexo-tag-dailymotion

A tag plugin to embed Dailymotion video player in your Hexo blog

npm npm

Installation

npm install hexo-tag-dailymotion

Usage

{% dailymotion [player:player_id] [video:video_id] [playlist:playlist_id] %}

Parameters

  • player:player_id: (optional) Identifier of your custom player configuration (See Getting Started section in Dailymotion Video player documentation.
  • video:video_id: (optional) Identifier of the video to be loaded within the player
  • playlist:playlist_id: (optional) Identifier of the playlist to be loaded within the player

All parameters are optional, but you must add either a video or playlist or the player will remains an empty black rectangle.

See Video player documentation – Dailymotion for Developers for details about how Dailymotion player works.

Example usages

Embed a video
{% dailymotion player:xakn video:x84sh87 %}

will inject the following into hexo rendered page or post

<script src="https://geo.dailymotion.com/player/xakn.js" data-video="x84sh87" ></script>
Embed a playlist
{% dailymotion player:xakn playlist:x79dlo %}

will inject the following into hexo rendered page or post

<script src="https://geo.dailymotion.com/player/xakn.js" data-playlist="x79dlo"></script>
Embed a video and a playlist
{% dailymotion player:xakn video:x84sh87 playlist:x79dlo %}

will inject the following into hexo rendered page or post

<script src="https://geo.dailymotion.com/player/xakn.js" data-video="x84sh87" data-playlist="x79dlo"></script>
Embed a default player
{% dailymotion video:x84sh87 %}

will inject the following into hexo rendered page or post

<script src="https://geo.dailymotion.com/player.js" data-video="x84sh87"></script>
Embed a player with parameters
{% dailymotion player:xakn video:x84sh87 params:startTime=15 %}

will inject the following into hexo rendered page or post

<script src="https://geo.dailymotion.com/player/xakn.js" data-video="x84sh87" data-params="startTime=15"></script>

{% dailymotion player:xakn video:x84sh87 params:startTime=15&mute=true&loop=true %}

will inject the following into hexo rendered page or post

<script src="https://geo.dailymotion.com/player/xakn.js" data-video="x84sh87" data-params="startTime=15&mute=true&loop=true"></script>

Keywords

FAQs

Package last updated on 14 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc