ParOne Video Player
The steps below will integrate ParOne into your existing stack in minutes.
HTML
Add
<script>
TagInclude the ParOne SDK script tag in your website’s
<head>
section.Insert
<parone>
TagInsert the ParOne video player tag into your site’s
<body>
section. ReplaceYOUR_FEED_ID
with your FeedID, and theCONTENT_KEY
with a content-key from feed.
iOS
Instantiate a WkWebView object and load our script tag and the single Video Block.
Replace
YOUR_FEED_ID
with your Feed ID, and theCONTENT_KEY
with a content-key from the JSON or RSS feed.YOUR_URL_HERE
should be the same URL for your domain associated with your Ad server to ensure ads play correctly.Additional Settings
Android
use a WebView and load our
<script>
and the desired<HTML>
tags.Below is an example fragment.
Change Orientation
To support changing orientation, add the following to your
AndroidManifest.xml
in theactivity
tag:Allowing Fullscreen
To support fullscreen, see example code below.
NOTE For capturing fullscreen events, seeWebView Events has more information with adding this feature.
Fragment layout:
Extend the above Kotlin example like so:
Wordpress
Install the zip file from the “Install Plugin” page of your WordPress admin console.
Download the Latest ParOne Wordpress Plugin Download and install our WordPress plugin from the official Wordpress.org Website.Insert
<parone>
TagInsert the ParOne video player tag into your site’s
<body>
section. ReplaceYOUR_FEED_ID
with your FeedID, and theCONTENT_KEY
with a content-key from feed.Go to WordPress admin and navigate to ParOne Feeds -> Video Library.
Enter your Organization Key from Settings -> Organization
Click “Get Feeds”