Availability Per Account Type

Trial

Lite

Pro

White Label

WL – Custom

Introduction

You will be able to use the Protect_Player() functionto add a basic login feature to view a player.

Notes:

  • The password you use needs to be a single phrase.
  • Use only characters and numbers as your password.
  • No special characters, and no spaces for your password.
  • The end user will have 3 login attempts per page load, then the login option will turn off.

Getting Started

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

Sample Code – Click to expand / collapse

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

Sample Code – Click to expand / collapse

Step 3. Log into your EZWebPlayer account and grab your players embed code. This will work with the Iframe and Javascript embed codes.

And replace the line from Step 2 that saysPlayer Embed Code Here with your player code.

Sample Code – Click to expand / collapse

Protect_Player() – Pass it 2 variables.

Container ID“Container”The value of the ID attribute for the div container that will house your player’s embed code.
Login ID“Login”The value of the ID attribute for the div container that will house your player’s login form.
Password“Password”The login password’s value. Make sure to keep this one phrase and only use numbers and characters. No spaces. No special characters.

Resulting Player

Input the value ‘Password’ and click on the login button.