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

iPhone open pop-up and loading problem #473

Open
sumanengbd opened this issue Mar 4, 2021 · 0 comments
Open

iPhone open pop-up and loading problem #473

sumanengbd opened this issue Mar 4, 2021 · 0 comments

Comments

@sumanengbd
Copy link

sumanengbd commented Mar 4, 2021

The problem is when I'm browsing with the iPhone. All other devices are not having any problems. Even after the page is loaded, loading loading loading is showing. If you click on the play button, it is not playing.

Although loading is complete on some devices, clicking on the play button will open a popup. There is no problem with Windows and Android.

My code -


var os = ['iphone', 'ipad', 'windows', 'mac', 'linux'];
var match = navigator.appVersion.toLowerCase().match(new RegExp(os.join('|')) );

$("#screenVideo").YTPlayer({
  autoPlay: match[0] == 'iphone' ? false : true,
  containment: 'self',
  showControls: false,
  startAt: 0,
  mute: true,
  loop: true,
  opacity: 1,
  showYTLogo: false,
  useOnMobile: true,
  gaTrack: false,
  optimizeDisplay: false,
  events: {
    'onReady': onPlayerReady
  }
});

function onPlayerReady(event) {
  event.target.playVideo();
}

Link - https://gcdev3.com/giswebtech/

How can I fix this problem?

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

No branches or pull requests

1 participant