iphone UIImagePicker controller can not decode message - iphone

I am trying to select a video file from gallery by UIImagePicker controller but when i have select this file it is showing "Can not Decode" message (I am using KTypeMovie in image picker controller and it is working some video files fine).
Please suggest how can i resolved it.
Thanks in advance

You are probably getting an error because the video file is not in a supported format.
All your video files should use a format that is compatible with Apple iTunes, such as an MP4 file with h.264 encoding.
If your video does not play properly in the viewer, re-encode the video to .mp4 h.264 using Adobe Media Encoder or a third-party tool such as Handbrake.

Related

Watch video inside a PDF in iPad

I have a video embedded PDF file, I need to open it in an iPad application. But the problem now is the PDF files are readable in the iPad app and the video file is just showing as an image. Can i do something in my code to show the video, I mean something like Media Player framework in my app.
It doesn't work. You will not be able to play the video in pdf. I think embedded media is part of the current PDF spec which Adobe has not released into the open yet. Adobe holds onto the newest most advanced version to make a business case for it's Acrobat Pro line.
That being said you can try converting the .pdf to .html and then inserting the code for a video manually.

How to play/open video file embedded with a PDF?

I have created a PDF viewer on iphone. Currently my app is able to detect links to web pages and buttons for navigation within PDF.
But it unable to play Audio/Video contents embedded with PDF.
I creates custom PDf which has button(link to a local video file) to play video file. But iphone can't play the video. (when I tap on button, it says "NULL file ....")
I want to know is it possible to do? and if anyone have done it please give me a help. It will be a huge help for me.
No it is not possible to play a video inside a PDF,
if you cannot play the video on an iPhone, i would suggest to convert it to a file that the iPhone can play
You can do this by using PSPDFKit.
See documentation. Its best. :)
I was able to play the pdf embedef video not by acobat official app but thru thr drop box app! Wonder why acrobat not providing the function.
https://www.dropbox.com/l/scl/AAAHBU-oAQ0GjIWW4UMzIpTNYwitnWMMfFo
This is the dropbox pdf file with embeded MP4.

how to display youtube video and mp4 file in same project using webview iphone?

how to display youtube video and mp4 file in same project using uiwebview iphone?
Perhaps these will help:
http://apiblog.youtube.com/2009/02/youtube-apis-iphone-cool-mobile-apps.html
http://learningtheworld.eu/2009/youtube-embed/
http://iphoneincubator.com/blog/audio-video/how-to-play-youtube-videos-within-an-application

video playing from pdf file in iphone or ipad

I am developing an application, which is reads a PDF file and displays it in webview now we have videos embedded within pdf, how to play those videos within webview like html5 did.
thanks in advance.
Webview will not detect and play the videos embedded inside the pdf. You have to parse the pdf and get the file stream and play it using MPMoviePlayerController.

iPhone SDK - Play Audio/Video through UIWebView

I want to know if I could play a mp3 file or mp4 (video) file through an UIWebView by loading a simple url request. I have already tried sending the UIWebView to a video link (e.g. http://google.com/blah.mp4) but it will flash a quick QuickTime logo and show a black screen. However in MobileSafari it streams fine. Is there anyway to play a media file through an UIWebView??!
Thanks,
Kevin
Use the HTML5 <audio> tag.
Linda