Skip to content

Paratii-Video/paratii-embed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Paratii Player - Embedding and Sharing

Embedding

The player is optimized for iframe embedding using a specific address like:

https://staging.paratii.video/embed/<video_id>

Embed code (full features) example:

<iframe webkitallowfullscreen="true" mozallowfullscreen="true" allowfullscreen="true" src="https://staging.paratii.video/embed/6?autoplay=1&loop=1&playsinline=1&fullscreen=1&type=mini" width="570" height="320" frameborder="0"></iframe>

Showcase:

https://paratii-video.github.io/paratii-embed/

Fullscreen capability

use iframe browser specific attributes and fullscreen=1 in query parameters

Autoplay

use autoplay=1 in query parameters

Loop a video

use loop=1 in query parameters

Sizes and features optimizations

Available modes are:

  • mini: optimized above 570 pixel width
  • tiny: optimized above 340 pixel width
use type=<mode> in query parameters

Playinline (iOS)

Video will not automatically enter fullscreen mode when playback begins.

use playsinline=1 in query parameters

oEmbed and Wordpress

Player is available for oEmbed at:

https://staging.paratii.video/oembed

Mini version (570x320) is provided by default.

We are working on submission to most popular oEmbed providers.

I order to add Paratii as oembed provider in your Wordpress site, and embed it easily, you can add the following snippet inside functions.php

wp_oembed_add_provider( "https://portal.paratii.video/play/*", "https://portal.paratii.video/oembed/" );

or you can just download and install our plugin.

Just copy and paste the video url in the editor and ualร !

Sharing

Twitter Card

Tweeted videos will play directly inside your timeline using Paratii Player. Look & feel can be tested pasting a video url at https://cards-dev.twitter.com/validator

Telegram

Shared videos will play directly inside Telegram Mobile app

Facebook Open Graph

Videos play inside feed, using IPFS Paratii Gateway, just if posted as a post comment.

About

๐Ÿ“‘ Documentation and examples for embedding; parameters for sharing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages