triniwiz / triniwiz/nativescript-plugins
Cannot programmatically set/toggle fullscreen mode
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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