Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed custom controls to be the default on touch devices (!) #1617

Closed
wants to merge 1 commit into from

Conversation

heff
Copy link
Member

@heff heff commented Oct 28, 2014

Previously we've relied on native controls on touch devices, but now switching to use the video.js custom controls by default.

This can be reverted by setting the option nativeControlsForTouch: true.

I've tested across Android, iOS, and Windows 8.1 and it all works decently. There's a few things we could improve, like the size of the controls on touch devices, but better to get this out now than wait any longer.

@@ -44,7 +44,8 @@ vjs.Html5 = vjs.MediaTechController.extend({
// Our goal should be to get the custom controls on mobile solid everywhere
// so we can remove this all together. Right now this will block custom
// controls on touch enabled laptops like the Chrome Pixel
if (vjs.TOUCH_ENABLED && player.options()['nativeControlsForTouch'] !== false) {
if (vjs.TOUCH_ENABLED && player.options()['nativeControlsForTouch'] === true) {
alert('useNativeControls');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alert? This doesn't seem right.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😞 4.10.1...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you mean:

🎉 4.10.1!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be 🎆 4.10.014

jgubman added a commit to jgubman/video.js that referenced this pull request Oct 29, 2014
* 'stable' of https://github.com/videojs/video.js: (22 commits)
  Added line to changelog for 4.10.1
  Release 4.10.1
  Removed alert...
  Release 4.10.0
  @heff turned on the custom html controls for touch devices. closes videojs#1617
  updated options to include sans-children, and included self-hosted font blurb
  added CORS information to tracks guide. Fixes videojs#837
  doc updates + readme quick start
  updated options guide to include components
  @heff Added the ability to set options for child components directly in the parent options. closes videojs#1599
  @DevGavin added a Simplified Chinese translation. closes videojs#1593
  @mmcc fixed an issue with the VolumeButton assuming it was vertical by default. closes videojs#1592
  @heff enhanced the event listener API to allow for auto-cleanup of listeners on other componenets and elements. closes videojs#1588
  @mmcc fixed an issue where errors on source tags could get missed. closes videojs#1575
  Added doc for remaining time and removed onWaitEnd doc
  maybe actually check for keyLocation
  Update languages.md
  @heff updated the poster to use CSS styles to display; fixed the poster not showing if not originally set. closes videojs#1568
  Release 4.9.1
  Bumped to videojs-swf v4.5.1 to fix a data sanitization issue. closes videojs#1587
  ...
@mente
Copy link
Contributor

mente commented Nov 4, 2014

And iOS still uses native controls on fullscreen, isn't it?

@heff
Copy link
Member Author

heff commented Nov 4, 2014

@mente Yeah, there's no way to get around that unfortunately.

@mente
Copy link
Contributor

mente commented Nov 4, 2014

I think it's worth mentioning somewhere in changelog or docs

@mmcc
Copy link
Member

mmcc commented Nov 4, 2014

Which bit should be mentioned? Defaulting to native controls was mentioned in the changelog. We should probably add a note about how iOS handles fullscreen somewhere, though.

@mente
Copy link
Contributor

mente commented Nov 4, 2014

I was talking about iOS fullscreen
4 лист. 2014 21:58, користувач "Matthew McClure" [email protected]
написав:

Which bit should be mentioned? Defaulting to native controls was mentioned
in the changelog
https://github.com/videojs/video.js/blob/master/CHANGELOG.md#4100-2014-10-28.
We should probably add a note about how iOS handles fullscreen somewhere,
though.


Reply to this email directly or view it on GitHub
#1617 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants