Add video to an iPad application [duplicate] - ios

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Using MPMoviePlayerViewController in SDK 3.2 for iPad
I am writing an application for iPad. till now I have a splash screen then a home screen. Home screen has 6 buttons. Pressing a button on the second or home screen takes you to the third screen which has two options a)Play Video b)read document. Now if play video is pressed it plays the video corresponding to the button pressed on second or home screen. similarly for the Read document, it opens a pdf file respective to the button pressed on home screen. Now I want to add video and pdf to those screens. how can i do it?
Any help will be highly appreciated.
Best Regards
Prateek

Just load the files into UIWebView, it can handle both videos and PDFs.

To play the video use the movieplayer framework form apple. Have a look into the sample code from apple here
http://developer.apple.com/library/ios/#samplecode/MoviePlayer_iPhone/index.html
To read the PDF document and having some gestures for page turn use the following sample code form github:
https://github.com/brow/leaves

Related

Playsinline for Video URL Requires 2 Clicks from iOS

Playsinline=1 within my video URL requires 2 clicks from my iOS devices to play it. Is there a way to correct this?
Here is my experience with using playsinline=1 from my iPhone using Google Chrome, Safari & DuckDuckGo:
[embedyt] https://www.youtube.com/embed?listType=playlist&list=PLI1Ahx4x_H5fqrB6XB4pkeqyo2qsJnDus&layout=gallery&playsinline=1[/embedyt]
Here is where it starts. I click on the Play Button. Note: As you can see, the Play Button is not red.
‘https://savvyify.com/img/image/CQFB’
After clicking the Play Button, it acts like it wants to play, but then returns to the Play Button, which is red – see next image.
‘https://savvyify.com/img/image/CUJu’
After the two steps above occur, then I have a red Play Button and the video plays inline.
‘https://savvyify.com/img/image/CWrj’
Is there a way to correct this to where the video will play inline on the first click?
I found an answer within the Plug-in I'm using; EmbedPlus Plug-in for YouTube. It had an iOSPlayback feature that automatically includes Playsinline=1 and the videos play from an iOS device on 1st click

Handle <video> tag fullscreen

Three years ago a user asked about this. I'm developing an Electron app. The app runs at fullscreen, but I cannot use fullscreen for video and the app at the same time. This is what the user asked here:
Now electron supports fullscreen by actually fullscreen the whole app.
I wonder if there is any way to handle requestFullscreen differently
so that the video takes all the space of the window, but the window
itself doesn’t change.
This problem made me open this stackoverflow post, so the answer to this question would solve the post's one.
The player has enterFullWindow() and exitFullWindow() methods which cause the player to fit to the window.

Can we avoid the native player in Full screen with Html 5 Player

I am trying to implement a html 5 player inside a Webview in my app. I added the webkit-playsinline tab in video and its now playing inline in iPhone and iPad.
The issue arises is when user hits the fullscreen button, in both the iphone and iPad, it opens up the native player, which I don't want.
Can this be achieved?
I have followed this and thats why I am able to play the video inline however, when the user click on the "Full Screen" the control transfer to the native player which I don't want.
yes, I am using a UIWebView inside my app not safari specific!!

Launch video player in iOS from a link rather than an embedded video

Sorry if this has been asked before... in a mobile browser (eg iOS Safari) when a Vimeo video is embedded into a HTML page, clicking play on the video pops it open in the native player in Safari - I want to be able to launch a video in this exact way, but from an image link rather than having to embed the video... So that clicking the image pops open the video in the native Safari player.
I've searched around but think I'm lacking the correct terminology to know exactly what to search for.
Is this possible?
Thanks in advance...
Why don't you want to embed the vimeo code?
One work around can be going to your vimeo video settings, then Basic and at the bottom of that page upload your own Thumbnail image... You will still have to embed the vimeo code though, but now you will have the image you want as the first image before you click on the video.
This can be a partial solution in the mean time. Also I think a Pro vimeo account might allow a direct link to a video.

iPhone UIImagePicker Video

I make application with one button. When I press this button media browser appear. I want when I select video from my library to appear in previous view with button. But I don't know in what kind of component to put it? I don't want video in full screen. I want something like thumbnail of video. Thanks :)

Resources