-1

YouTube video works good in web browser but YTPlayerView shows restriction on iPhone.

screen shot

Demo URL is: https://www.youtube.com/watch?v=Dlzsq9xrRqo&feature=youtu.be

JAL
  • 41,701
  • 23
  • 172
  • 300
Nand Parikh
  • 205
  • 1
  • 2
  • 9

1 Answers1

1

The issue is due to, restriction of playing video on mobile from specific region.

You are able to play the video on the browser but not on mobile (even from the same region).

This is Youtube's and not Apple's restriction.

Currently, there is no way to detect the video we requested, is a restricted one through code. But can detect after it displays the message and skip the video, to next video.

Edit:- "origin" : "https://www.example.com" in player variables fixed the above problem

Rakii
  • 75
  • 1
  • 10