triniwiz / triniwiz/nativescript-plugins

Cannot programmatically set/toggle fullscreen mode

Open
#91 2 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

@triniwiz/nativescript-youtubeplayer 4.1.4

On my button tap I call 'play' followed by 'toggleFullScreen'. The video plays but does not go full screen (both platforms). I tried delaying the 'toggleFullScreen' with a timer but that did not help...

                <YoutubePlayer ref="videoPlayer" showRelatedVideos="false" showYoutubeLogo="false"
                    :videoId="videoSource"
                    @currentTime="onCurrentTimeChange"
                    @stateChange="onStateChange" />

...
onPlayVideoTap() // my button tap
{
let player = this.$refs.videoPlayer.nativeView;
let _this = this;

            player.play();
            // attempt to make fullscreen
            player.toggleFullScreen();
        },

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 from the YoutubePlayer nativeView entry points used by play() and toggleFullScreen() and trace their behavior on both platforms. Reproduce the button-tap sequence, then verify that toggling fullscreen after play works consistently on both platforms.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.