Custom elements


In PRO you can add custom elements to the players UI like text, icon or image (for example, a logo). Use Elements / Add element button and select the required format.

For the Text, you need to add some text, for the Image link to the file, or the content itself in the form of data:URI, for SVG - an icon from the collection, or code.

For an element to perform an action, you must specify an Action- link, an API command, or a Javascript call. For example:

//playerjs.com

will open url

api:play

will launch the player

api:seek,-10

will rewind for ten seconds

js:MyFunction,x,y

will launch a function called MyFunction, passing it two arguments. There you can use placeholders {title}{time}{file}

js:MyFunction,{file},{time}

Reverse action

For elements Text and SVG you can add reverse. Add reverse text or reverse SVG code with separator ///

You can also add reverse action

You can also choose the opposite action of the Play button from Pause to Stop (actual for broadcasts and radio)



The Art of Players
2018 © PlayerJS with ♥

Login

Restore password
Sign up
Log in

Sign up free

Sign up
By signing up, you agree to Terms of Service
Login if you have an account

Order player

Your name
What project do you need a player for?
Email
Phone
Description
Send
You agree to processing of this personal data.

Restore password

Restore
Forgot email? Contact us