Availability Per Account Type

Trial

Lite

Pro

White Label

WL – Custom

Introduction

You will be able to use the Get_Title() functionto add your player’s title to your web page dynamically.

Notes:

  • This is intended to be used for players that are not attached to a channel.

Getting Started

Step 1. Place this script shown below in your website’s header tag. 

<script type="text/javascript" src="https://ezwp.tv/Scripts/jquery-1.7.1.js"></script>
<script type="text/javascript" src="https://ezwp.tv/Scripts/webService.js"></script>
<script>
    Get_Title = function(C_ID, P_ID){
        T = new WebService("https://ezwp.tv/VideoServices");
        if (P_ID.charAt(0) == "V") {
            T.GetVideoGet(P_ID.substring(1), "0").onResult = function (result) {
                C = document.getElementById(C_ID);
                if (result.StatusMessage.toString() == "Success") {
                    R = result.Object.Title;
                    C.innerHTML = R != "" ? R : "A title needs to be added to this player.";
                }else{
                    C.innerHTML = "Error: Check to make sure you are using the correct Player ID.";
                }
            }
        }
    }
</script>

Step 2. Place this script in the body of your web page where you wish the player title to show up.

<b>Title:</b> <span id="P_Title"></span>
<script>Get_Title("P_Title", "V0000000");</script>

Get_Title() – Pass it 2 variables.

Div ID“P_Title”This will be the span’s ID attribute you want to pass the player’s title to. In Step 1 & 2 locate “P_Views”. They will need to match.
Video ID“V0000000”You can locate a player’s ID by taking the last section of your player’s Sort URL. This should start with a V and be 7 characters long.

Resulting Player

Title: