-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Video Player Resets to Previous Screen Size on URL Update in Fullscreen Mode, On Tizen-TV-Platform #726
Comments
Any help on this ? |
@mwesigwadi
WidgetsBinding.instance.addPostFrameCallback(_afterFrameLayout);
|
Hello @xiaowei-guan thanks for the response, however can't this be dynamic like the official video player ?. It would be great if the videoPlayer could span any given space respecting constraints. |
I have tried and the player still gets resized not covering the current screen size. Checkout my resusable videoplayer widget.
|
Could you please provide a full example code? |
Sure! Here's the widget. It's called dynamically throughout the app, and when provided with a new URL string, it disposes of the current controller and reinitializes a new one. However, even after being reinitialized, the controller still retains the dimensions from the first screen where it was used. For example, if it's initially displayed full-screen, it keeps that size, even if it's later called in a fixed-size widget, which leads to the video overflowing
I tried adjusting the layout in the plugin, but I encountered continuous overflow issues. Despite calling the widget within constrained boxes, the video player still takes up the entire screen without respecting the parent-child constraints. Here's the code snippet i used:
|
I'm encountering an issue with the video_player_avplay plugin in Flutter-Tizen. I've created a reusable widget for the video player that updates based on the input URL parameter. To achieve this, I use didUpdateWidget to dispose of and reinitialize the player when the URL changes. This player is utilized across multiple screens and listens to a single String provider that updates the URL.
The challenge arises when the player is used on a screen with a fixed-width widget. Upon navigating to a new screen and passing the player's controller as a parameter, the player correctly transitions to fullscreen. However, when I update the URL by setting a new string in the provider, the player unexpectedly resets to the initial size from the previous screen, instead of remaining in fullscreen as intended.
The current setup involves a small screen for previewing a list of videos, with the next route displaying a fullscreen player. The fullscreen player includes a hidden overlay list of videos, which can be displayed on demand for selection.
The text was updated successfully, but these errors were encountered: