How to remove PAUSE and STOP buttons and disable seeking ?

836 views
Skip to first unread message

Nishika

unread,
Jul 19, 2011, 6:05:29 PM7/19/11
to jPlayer: HTML5 Audio & Video for jQuery
Hi everyone!
I am new to JPlayer and i wanted to know if I can remove the Pause and
Stop buttons from the interface and also how to disable seeking on the
media currently playing.

Actually I am working on a project to build an online radio station.
Since you can't pause or stop or seek a track on a radio, i need to
disable these functionalities from the player.

Plz help me out, I have a deadline to meet !!
Thanks in advance :)

Mark Panaghiston

unread,
Jul 19, 2011, 6:36:30 PM7/19/11
to jpl...@googlegroups.com
In theory you just remove them from the HTML.

In practice, the play and pause buttons should be left in as mobile browsers will require you to click on the play button before it starts. A user gesture is required.

I have answered this in another thread for onyx, but i cannot find the thread now...

With streams, to be thorough, you need to play them and then the pause button does a clearMedia to stop the media streaming to the browser for hours while paused. Then when the play button is pressed, jPlayer will generate an error... NO_URL_SET so you then use that error to do a setMedia back to your radio station again.

Mark Panaghiston

unread,
Jul 19, 2011, 6:51:53 PM7/19/11
to jpl...@googlegroups.com
I got the error code wrong... It is late.

The error code is URL_NOT_SET

This link may also help as I describe it a little better.
https://groups.google.com/d/msg/jplayer/AAEpcQnbvHY/KkRkSju5CsoJ


Reply all
Reply to author
Forward
0 new messages