I have been trying to implement YouTube like mini player in my flutter application and have stuck. Apparently previous Stack Overflow solutions of using mini player package have not worked out for be as the video disposes once I open video in full screen mode.
I have been following https://www.youtube.com/watch?v=umhl2hakkcY tutorial for achieving so but with the actual videos. I am using better_player for video playback.
Implementing the mini_player with better_player could become very hard because it would want individual controllers, what I found effective is to use https://pub.dev/packages/pip_view package and implement it from the page level.
This will give a much easier solution and a better pip.
Related
Hi I am currently starting to work with .Net Maui for a project that I am starting I need to show a video in my view. How can I display a simple media player and show a local stored video. In the docs I didn´t find anything about that. I hope anybody have a solution for that
I need to create the following video player for my app: Screenshot from Netflix. I need a start/pause button, a back button, the title of the video, and a time indicator. The video should also always be in landscape mode. I've already found a lot of video players in flutter but I haven't found a way to modify them. If anybody knows a good library, a tutorial, or has some source code it would really help me out, thanks.
I think your best bet is using the video_player package, as it's the most bare-bones package out there. You can make the player all to your liking by using the Stack Widget, having the video at its base and any other elements on top of it. It should be very doable; only the progress indicator is kind of complex, but it's not too bad.
In my Flutter game there is a grid of elements, every one of which plays a sound when being tapped (I use audioplayers library for that).
My issue is that when too many taps in a queue are being recognized, the whole app just freezes for a few seconds.
When I disable playing sound on tap, this problem seems to doesn't occur.
So what is the proper way to parallelize audio playbacks in such a cases?
Thanks.
The author of audioplayers library himselft answered my question.
For everyone who may face the same issue in future -- feel free to refer to this:
https://github.com/luanpotter/audioplayers/issues/388
In short: suggested solution is to use AudioPool tool from the Flame library. Please see the link above for details.
I’m pretty new in flutter. So bear with me. I’m not sure the difference between plugin “camera” and “image picker”.
I was able to capture video and image by using “image picker”. From my perspective,”image picker” is more straightforward and easy to implement but on the internet, seems like “camera” plugin is more popular.
Then I want to ask, when it comes to taking video and picture, especially video. Is there any pros and cons? Any help appreciated!
The two plugins differ in functionality and most importantly in purpose:
camera allows you to embed the camera feed into your own application as a widget, i.e. have control over it as well.
The image_picker plugin will launch a different application (a camera or gallery application) and return a File (an image or video file selected by the user in the other application) to your own application.
If you want to implement (and customize) the camera for you own purposes, you will have to use camera, but if you only want to retrieve imagery or video from the user, image_picker will be your choice.
From what I have gathered from internets the MPMoviePlayerController class doesn't support small video playback. So, in an effort to beat a dead horse I was wondering what kind of methods could be used to get a small video playing in a corner of the screen without interrupting the rest of the screen.
So far we've come across two solutions that may work: using a UIImageView and flopping images through it like a madman and using a large fullscreen video with all the animations we need already on it and skipping around as needed.
Am I wrong about the MPMoviePlayerController not supporting non-fullscreen video? Is their an easier solution than making UIImageView flip-books? Is cutting around a video a performance hazard?
I think you're stuck with flip books. Pretty sure the fullscreen video issue is a limitation of the hardware video decoder.
After researching for about 1 hour, I didn't find anything. It appears impossible to play video non-fullscreen on the iPhone. I didn't check for openGL ES though.
well.. i have been looking for and haven't found the alternate yet!
But there are some applications already does it!
check TVUlite from TVUNetworks
As I mentioned in another reply, this blog post http://www.nightirion.com/2010/01/scaling-a-movie-on-the-iphone/ mentions a method that will allow you to play non-fullscreen video. However, I'm not sure if this method will be approved by the app store verification process.