jPlayer Mute / Unmute does not work on iPad

1,399 views
Skip to first unread message

harshal

unread,
Apr 21, 2011, 10:09:22 AM4/21/11
to jPlayer: HTML5 Audio & Video for jQuery
I am using : jPlayer (http://www.jplayer.org) in one of my site.

its mute & unmute works fine on windows:

$("#jquery_jplayer_1").jPlayer("mute");

$("#jquery_jplayer_1").jPlayer("unmute");

But,

it does not work in iPad.

PLEASE HELP ME WITH THIS.
ITS URGENT

Harshal S. Hirve

unread,
Apr 21, 2011, 10:22:32 AM4/21/11
to jpl...@googlegroups.com
Hello All


Harshal S. Hirve


Mark Panaghiston

unread,
Apr 22, 2011, 4:53:11 AM4/22/11
to jpl...@googlegroups.com
No volume type controls work on iOS.

They have buttons on the side of the devices to deal with volume.

harshal

unread,
Apr 25, 2011, 3:15:33 AM4/25/11
to jPlayer: HTML5 Audio & Video for jQuery
so, whts the other option for it ? can u pls suggest...

On Apr 22, 1:53 pm, Mark Panaghiston <mark.panaghis...@gmail.com>
wrote:

squarecandy

unread,
Apr 25, 2011, 5:17:31 AM4/25/11
to jPlayer: HTML5 Audio & Video for jQuery
harshal -
not sure if you understood Mark's post above...
iOS assumes that you are running one application at a time. Therefore
you don't need volume control and mute in the player because these
controls are built into the device itself.

I personally believe that all computers and devices that can output
sound should have their own volume and mute controls and that 99.9% of
them do. In the end your user will be more familiar with their
computer or device's volume and muting controls than anything that you
provide thru jPlayer and will use those. I therefore eliminate the
volume and mute controls from jplayer and assume that the user already
has control over these functions.

Anyone else have thoughts on this?
I really am curious why any media player needs to offer volume
controls when every device with speakers already has this feature
built in...

- P

Mark Panaghiston

unread,
Apr 25, 2011, 6:50:18 AM4/25/11
to jpl...@googlegroups.com
That is a fair point squarecandy.

I think that most audio/video players are applications written for that OS. They provide the sound controls to alsily mix that volume to an appropriate level for the rest of the sounds. You do not want your music to play at a nice level and then some alert message "bonk" to deafen you.

jPlayer is written to be independent of platform and user agent. And there is no way I know of to feature sniff that volume controls are not enabled. It might be possible to user agent sniff for iOS and then disable them... But I think squarecandy gives a sensible solution. Just don't bother with volume/mute controls if iOS and mobile browsers are your target.

We implemented the volume/mute since they are part of the HTML5 spec.
http://www.whatwg.org/specs/web-apps/current-work/multipage/video.html#dom-media-volume

The volume controls are there if you want to use them, but you are not forced to use them. The simplest way to remove, would be to delete the HTML for the volume buttons and bar. Then the automatic control association would not find the controls and would raise a warning event, but not care about it.

NB: Warning events are purely for devs to help debug. You will find that every audio player gives a warning event, even our demos, because the video-play button is not found... It is just a warning though, and we know that it is correct to not have that button.

I've gone on too much already. I suck at twitter.

Best regards,
Mark P.
Reply all
Reply to author
Forward
0 new messages