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

fix(FEC-7079): android fullscreen with custom ui #42

Merged
merged 7 commits into from
Sep 6, 2017
Merged

Conversation

dvh91
Copy link

@dvh91 dvh91 commented Sep 6, 2017

No description provided.

@dvh91 dvh91 requested a review from OrenMe September 6, 2017 10:12
@dan-ziv dan-ziv self-requested a review September 6, 2017 12:42
@@ -98,7 +98,10 @@ class FullscreenControl extends BaseComponent {
* @memberof FullscreenControl
*/
enterFullscreen(): void {
if (this.props.isMobile) {
var ua = navigator.userAgent.toLowerCase();
var isIOS = /ipad|iphone|ipod/.test(ua) && !window.MSStream;
Copy link
Contributor

Choose a reason for hiding this comment

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

use the util of the player:
this.player.env

I think u can do:
this.player.env.os.name === 'iOS'

read more here:
https://github.com/faisalman/ua-parser-js

@dvh91 dvh91 merged commit 5629857 into master Sep 6, 2017
@dvh91 dvh91 deleted the fullscreen-android branch September 6, 2017 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants