triniwiz / triniwiz/nativescript-plugins

[nativescript-youtubeplayer] Unexpected rendering

Open
#185 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
87
Forks
57
Avg merge
1h 36m
Merged PRs (30d)
4

Description

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

  • At the very least, this should be stated in the docs.

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the nativescript-youtubeplayer behavior in Angular or Vue on an iOS hardware device, including initial rendering and repeated rotation. Inspect the plugin's rendering and layout handling, then verify both the missing-height behavior and the black or incorrectly sized frame are resolved; the documentation requirement should also be addressed.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, ios
Domain
frontend, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.