Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

Using vue-youtube package the player is not getting initialized in iOS after switching orientation

$
0
0

I am trying to run a youtube video using vue-youtube package.

The video plays fine in portrait and landscape mode in all Android/Mac/Windows in all browsers.

However when you switch between portrait to Landscape, the player is not getting initialized in iOS chrome + Safari browsers.

Below is the snippet of the code which we are using :

vue.js

computed: {  player() {    return this.$refs.youtube.player;  },}

And the Html code is :

<youtube  id="youtube"  :video-id="embedId"  ref="youtube"  :player-vars="playerVars"  disablepictureinpicture  controlslist="nodownload"  fitParent  muted  @ready="onReady"  @cued="cued"  @playing="playing"  @paused="paused"></youtube>

Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>