How to play video in line without open up to full screen? - ios

This is my first message app. The tutorial i been watch only teach me how to play the video with full screen. It will be cool if i can play the video without open up to another window or full screen.
i been trying a lot of other stuff but still cant get it to work.
Also now when i playing the video it goes to full screen and the load bar is gonna too. (Xcode 8, iOS 10)
How would modify my code for the video not playing in full screen?

Related

Cordova: Live Video Streaming showing black screen in iOS

We are trying to build a video chat solution based on Cordova. The problem we have is we are getting a black screen in iOS, & Video is not getting played until you are clicking on it. Also, if clicked, a Black Screen would appear.
There are 2 different videos but both not getting played, instead, we are getting a live stream written along with the controls option
playsinline has been added in the video tag but still we are getting the same issue. No problem is there in Android.
Entire Video: https://drive.google.com/file/d/1xjh6VzWuyjZQgprip5FiZ_VyQze_8SKS/view?usp=sharing

Show now playing info on lock screen XAMARIN iOS

I use BASS.Net in my project to play audio files. It works well but now I'd like to show playing information on lock screen. I tried to use MPNowPlayingInfoCenter.DefaultCenter.NowPlaying property to setup info. However it doesn't work as expected - on emulator I do see my info but now playing window doesn't understand that it's playing and shows play button. On iPhone there is no info at all.
Not sure what to do because in mostly all examples use NowPlaying property.
I need some help here. Anyone?

UIViewController's view has weird 20px

Hello Guys I am facing a wierd behaviour in my app the case is like this :
From view controller(A) present another view controller (B) which has a UIWebView that will open an URL, but sometime the URL is Video link,
Sot he video starts playing in full screen and when finish and tap on Done (Dismiss Video player) and then dismiss the Controller (B) a weird 20px appeared at the bottom of view controller(A) and the whole app will lose the 20px in all screens.
Any one has idea for what is happening, I am certain sure that it caused by playing video through UIWebView
Update 1 :
I just figured out that this could be related to the iOS itself when playing videos whether from video file or from video url (since both will be played using the same player).
My experiment was on Facebook app when I post the same links used in my app inside Facebook app then try to play the videos from the links and the behaviour showed !
I wish if could someone help to confirm if playing videos causing problems on the UI.

Can't Play iFrame embedded YouTube video on iPad

I'm developing an iOS iPad app with an embedded YouTube video.
I'm having issues when the user tries to play the video touching the red square play image from YouTube, it seems that pressing that image won't trigger the play action. However, touching anywhere outside the red square play button works.
I've tested it with the iPad user agent with same results.
When embedding with controls:0 it seems that the action triggers perfectly, but I need the default controls.
Is there anyway to keep controls:1 and detect that touch to successfully play the video?
Try playing the video itself when it is loaded. If hitting the big red button is not a compulsion add "event.target.playVideo();" to the onReady function in the embeded HTML body. I have done so and the player in my application shows the big red button and starts the video itself immediately. I have used the following YouTube iFrame library youtube-ios-player-helper

iOS 4.1 black screen before playing video using MPMoviePlayerViewController

My application flow is something like the following
A Video plays.
Once its done. Couple of icons are shown on the screen for users to tap on.
Depending on which icon was tapped, another video starts.
If no icon is tapped for like 5 seconds we automatically go to next video.
The problem is with 3. Just before the video starts a black screen appears for like 0.5 second.
Not sure what's going on because the videos in step 1 and step 4 plays fine.
It will be great if someone can give ideas to debug and fix this.
Thanks!
You can try to put a background-image onto the player with:
[[moviePlayer view] setBackgroundColor:<UIImage>image];

Resources