[buddypress-trac] [BuddyPress Trac] #6425: Avatar screen: Remove "Camera" tab if webcam not supported

buddypress-trac noreply at wordpress.org
Thu May 7 22:53:23 UTC 2015


#6425: Avatar screen: Remove "Camera" tab if webcam not supported
-----------------------------------------------+------------------
 Reporter:  r-a-y                              |       Owner:
     Type:  enhancement                        |      Status:  new
 Priority:  normal                             |   Milestone:  2.3
Component:  API                                |     Version:
 Severity:  normal                             |  Resolution:
 Keywords:  has-patch ux-feedback 2nd-opinion  |
-----------------------------------------------+------------------

Comment (by imath):

 I think this is not a good idea

 > The con is those with webcams will see the browser's "wants to use your
 camera" prompt even on the avatar's "Upload" tab. This could annoy people,
 which is why I'm not sure if this issue is worth addressing.
 That's not acceptable.

 1. I think it's important to inform the problem comes from the browser
 they are using, i'd be more happy to add a link about getUserMedia
 support, so that it's easier for a member to see what browser to use to
 get the feature.
 2. Admins can disable the tab using `add_filter( 'bp_avatar_use_webcam',
 '__return_false' );` at any time if they don't feel comfortable with the
 new feature.
 3. If we are to do this (which is from my point of view a bad idea), this
 should be fixed on the server part to avoid the script to be loaded like
 i'm doing with wp_is_mobile() (see the `bp_avatar_use_webcam()` function).
 WordPress is giving us some globals like `$is_IE` we could use as this
 feature only works on Chrome and Firefox.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6425#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list