How to create a custom video palyer in Flutter? - flutter

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.

Related

How to build a Flutter app for video editing with pause, shape annotations, and saving features?

I want to build a Flutter app that allows users to edit videos by pausing at any frame, add shapes such as arrows, circles, or any custom shapes on the video by choosing the shape and add it to the desired position in this frame (the user should add it by finger),this frame will be paused for some specific seconds then the video continue, and save the new video. What is the best way to implement this functionality if possible?
the image below for a pc program clarifies what I want:
video editor for windows
Specifically, I'm looking for suggestions on:
How to add shape annotations to the video?
How to make elongate the edited frame for a specified time
How to save the edited video
Any code snippets, tutorials, or examples would be greatly appreciated. Thanks in advance!
I've tried searching for packages or libraries that can help me achieve this, but haven't found anything specific(i found ffmpeg for flutter but I couldn't find how to use it to add the overlay for specified time and for choosing the position by finger ) . I'm also not sure about the best approach to implement this feature. Can someone provide some guidance on how to proceed?

How to create miniplayer like youtube with flutter?

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.

What is the best way to make fullscreen for flutter video_player?

Im trying to implement video_player in my Flutter project and need your tips)
So, requirements are: player have to work inline and fullscreen and it must have custom controls.
I've tried to use video_player itself. And there were no problems till I`ve started implementation of fullscreen mode. I did it with help of another special screen for "fullscreen" mode. And had to path current video progress and status (play/pause) there.
Is there any better way to do this without creating new screen and new instance of player for fullscreen?
Chewie? Yes, I've tried it as well. Much better experience of fullscreen. But I've also bumped into some issues. First of all it rotate video into landscape mode in fullscreen. This answer https://github.com/brianegan/chewie/issues/137 helps, but there is still some visible rotation to landscape and then back. not the best experience, i think.
And controls... If you put custom controls outside of Chewie - there are not rendering in fullscreen. If you put them in 'overlay" property - they become static and I don't see the way to update there values (change Icon and set Progress value). Any example of usage "customControls" property?
Has anyone same isuues? Any examples demos or tips?
Thanks for your help!
UPDATE
Chewie
"customControls" are not shown if you set "showControls" to false
A bit confusing as for me
But their update during runtime is still a mystery
UPDATE 2
To make Chewie customControls work with progressbar and play/pause properly you chould path in your controls widget controller and listen for its changes from there

Flutter Audio with Circle Progress

I need to create a screen that plays back mp4 audio files, with play, pause, stop controls and shows progress via a circle progress indictor. Does anyone know if a package exists for this, or combination of packages?
So what I am trying to create would be similar to the following:
I made a clone of the Circular Progress Indicator using the documentation described by pskink in the comments enter link description here . Many thanks and gratitude to him for helping with this.

IPhone disable/hide scrubbar mpmovieplayercontroller in fullscreen mode

I'm creating an iphone app with video clips (among other things) where I need to play one or more ads before the actual video clip. Naturally my client doesn't want users to be able to fast forward during the ads but at the same time they must be able to exit the view so I cant set controlStyle to MPMovieControlStyleNone.
I would prefer not to hack the default view and remove the scrubbar so it seems my only option is to implement a custom bar with a single "Done"/"Back" button.
I've googled my eyes out trying to find example code for this, but no dice. I've seen similar questions posted here as well but no answers are given that could help me out. I'm a novice IOS developer and could really use som help with this (custom control bar with single "Done" button for fullscreen MPMoviePlayerController that shows/hideson tap OR disable scrubbar in an acceptable fashion – in fullscreen mode).
Anyone done this before or know where to find some example code? Thanks!