triniwiz / nativescript-plugins

Apache License 2.0
78 stars 50 forks source link

[nativescript-youtubeplayer] Unexpected rendering #185

Open EdJones opened 9 months ago

EdJones commented 9 months ago

Player will not (at least in Angular or Vue) display, unless a height or minHeight attribute is specified. #45

But, is there a better way to handle this in code?


Also, in some layouts, player appears to render as a black, unresponsive background. (See also #90). (iOS hardware device: displays OK on both simulators.)

When phone is rotated, it shows the too-wide frame, with the video properly rendered on the left and the black background on the right. When phone is rotated back, video displays as intended. Successive rotations to landscape may show either the narrow player with black on the right, or the player fully stretch horizontally (and maintaining the height.)

On app start:

IMG_2105

On phone rotation:

IMG_2108

On rotation back (intender rendering) :

IMG_2107

(Sometimes) on 2nd or nth rotation back to landscape:

IMG_2106