I am trying to use video_player package to play multiple videos continuously. I am using VideoProgressIndicator which allows scrubbing in a video. I am able to move across the video which is currently playing but how to detect that user tapped on another video and update the current video player controller to that video.
And also how do i move the second video controller to the position where user tapped. (Seek to functionality is available in video_player but at which position i need to take the controller to?)
I want to move the video controller to second video controller and the second video should start playing from the position where user tapped.
Refer the video timeline at bottom with scrubber
Related
I have a small video player app and a draggable bar that allows to adjust the volume of video. However, some videos do not have any sound (mute), in this case I want to disable that bar.
How is it possible to check this?
I am using video_player: ^2.2.5 package https://pub.dev/packages/video_player to display the videos.
In my widget I use _videoPlayerController.value.volume which returns 1.0 both for mute and videos with sound, which is volume of the controller but not video itself.
I am using the Embedded Video Player to add a video to a website. The video is contained within a small container. Therefore, I would like to provide alternative UI for starting the video in a fullscreen mode.
How to programmatically start video in an embedded video player in fullscreen?, i.e. equivalent to user hitting "Fullscreen" button on the video player itself.
I want to add overlay on video i have seen the sample for adding overlay on video. but i don't want to do like this. I mean my video will be running and on this particular video If user will touch any thing than on that thing one overlay will appear and if user touches and moved than the overlay will continuously will be added on that video means user will track that frame. And the video will be saved with this overlay..
is this possible?
I'm trying to play two videos continuously using MPMoviePlayer. I let the second video play when the MPMoviePlayerPlaybackDidFinishNotification is posted.
[[NSNotificationCenter defaultCenter] addObserver:self
selector:#selector(playSecondMovie)
name:MPMoviePlayerPlaybackDidFinishNotification
object:nil];
The problem is when the first video stops, the view will go back to the previously view for a short while before play the next video.
Is there any idea about how to play video continuously or is it possible to get the image of the last frame in the first video?
The only way to have a youtube video play inside your own app is to create a UIWebView with the embed tag from Youtube for the movie you want to play as the UIWebView's content. UIWebView will detect that the embedded object is a Youtube link, and the web view's content will be the youtube preview for the video. When your user clicks the preview, the video will be shown in an MPMoviePlayerController. This is the technique described at the link that Muxecoid provided (http://iphoneincubator.com/blog/audio-video/how-to-play-youtube-videos-within-an-application), and this is (as far as I know of) the only way to have a youtube video play within an application. You can still have the Youtube application launch by passing the youtube URL to -[UIApplication openURL:], but of course this closes your own application which is often undesirable.
Unfortunately, there's no way to directly play a youtube video with MPMoviePlayerController because youtube does not expose direct links to the video files.
I've made a walkaround to solve the problem. The major idea is to add a fullscreen black view over the previous view before the first movie plays. So when the first movie ends playing the full screen will be black (This looks more natural than the previous view).
Some more modifications:
1 Another problem is that when I hides the status bar, the area will be white. So I also set the window color to black color.
2 When all the video finishes playing, the previous view is shown and the view frame will not leave space for status bar. So I change the view's orgin y to 20 before the status bar appears.
Hope this helps those who meet the same problem.
I've few doubts regarding movie player app
How can I customize the screen size. I want only video or movie to be played only to half the screen and I want to add custom controls buttons to the remaining half of movie player.
In movie player example overlay view is there but how to change the name of the button and label in that and I'm unable to do that.
The MPMovePlayer UI cannot be modified. It plays fullscreen video, and provides the default controls. There's currently no way to do what you need in the official iPhone SDK.
Use this link for video player customization:
https://developer.apple.com/library/ios/samplecode/MoviePlayer_iPhone/Introduction/Intro.html#//apple_ref/doc/uid/DTS40007798
download sample code and modify accordingly.