iPhone UIwebview with embedded quicktime video? - iphone

When I load a HTML page with a .MOV embedded video on my App using a UIWebview it appears a broken icon, any idea? The same HTML page on Iphone Safari works fine and the media player is started without problem...

Where is the webpage? Is it embedded in your app? If you not giving the UIWebView a URL to load it from the server where it is make sure you set the baseURL properly so that the webview knows how to handle handle relative URLs.

When using the app sandbox, apple stops WebKit from accessing it's com.apple.security.WebKit.PluginAgent.
You must enable these in the entitlements file with the appropriate entitlement of
Add this line to the entitlements file as an ARRAY:
com.apple.security.temporary-exception.mach-lookup.global-name
in this array add the value : com.apple.security.WebKit.PluginAgent
and you should get your app to give sandbox permission so the app can access the quicktime movie plugins.
Hope this helps, if this doesn't solve the problem maybe the movies are missing... ;)

Related

Jquerymobile HTML5 Iphone App Add to Home screen

I'm creating a Mobile App with JQM and JSP I'm using Bookmark bubble to do this, but I just want to ensure I understand what is happening behind the scenes here.
Is the static HTML generated by my JSP saved locally on the iPhone?
Does clicking on the APP always get fresh info from my online server or does it cache?
I'm assuming it still uses Safari to render? And just hides the toolbar etc?
If instead of hosting this online, I packaged it as an Apple App and it went on App store,
would the device still use safari to render it?
Thanks!
Documentation is at: https://developer.apple.com/library/content/documentation/iPhone/Conceptual/SafariJSDatabaseGuide/OfflineApplicationCache/OfflineApplicationCache.html
It's possible to cache the page(s) locally.

iPhone-App Doesn't play 3GP Video After Apple Update

I have a problem with my iPhone app. I will try my best to describe it.
I have an iPhone app that can display a web page.
This webpage has a link to a 3GP video.
Clicking on this link will open the video and play it.
This was working for a long time, but after a recent Apple Update, i got the message:
"Can't play this file"
Here is a Firefox screenshot from the file.
Does anyone have a suggestion as to what could have changed?
Thanks!
edit: added Screenshot
See this SO answer: iPhone UIWebview video playback 4.0
The answer (and its comment) is about MIME type settings of the server. If the MIME types are not set correctly by the webserver, the playback might fail.

Creating links on a web page that tell a mobile device to play the media such as mp4 rather than download it. (android / iphone)

Is there a way to specifically format a link on my page to tell a mobile device such as an Android phone or an iPhone that when a user clicks a link to a mp4 file (for example) to go ahead and play it (or ask the user if they want to play it) using their phone media player?
I'm working on a web app with mixed results, most of the times the device just goes straight into download mode, and attempts to save the file to the downloads folder, but what I would like is to make it so the device starts automatically playing the file as soon as possible.
My app is basically a file sharing app that creates qr codes and thus allows you to share media to mobile devices... the thing is, when it comes to video files and maybe images, I want the phone to automatically display the media and not just download it.
Any help would be greatly appreciated. You can see the app here http://scan2see.me
You could always use a <video> tag to make your videos play instead of just linking to them.
FYI iOS devices never download anything, unless jailbroken and with Safari Download Manager plugin (or other one like it) installed. So even if you just link, it will always play. And the reason why all videos play at full screen is because the iOS instantiate Quicktime to play it.

video content on iPhone Safari/UIWebView

In my application I have a UIWebView that is able to play Youtube videos normally, but I'd like to play some videos from a website other than Youtube.
If i try to play those videos in the iPhone Safari browser it opens in the same way that YouTube videos (fullscreen mode, showing the player), but that doesn't happen in the UIWebView inside my application.
As an example, consider the following URL: http://m.video.globo.com/#video.php?id=1174097 (don't forget to open it in the simulator)
I didn't have to download any plugin or application to play it.
Both JavaScript and Plug-Ins options in the iPhone Settings are turned on.
Is there something wrong with my UIWebView? All I'm doing is loading the webpage using the "loadRequest" method from UIWebView class.
Thanks in advance.
The iPhone has support for youtube videos, (hence the built in youtube player), other than that it supports only quicktime. There is no support for other formats: most sites use flash for video these days (inc youtube), but flash is not supported on the iPhone. I site embedding a youtube video will work, but one embedding a video hosted elsewhere will not (unless its quicktime)

Is there any way to play video on an iphone from a website, without using youtube or a custom app?

I'd like website viewers to be able to play a video on an iphone, without posting the video to youtube, and without them having to install any iphone apps. Are there any other options here?
If you host a Quicktime movie, it'll play just fine without any additional software. There is a "designing web pages for the iPhone" document somewhere on Apple's web site that gives more detail on supported formats, I think.
just having a link to a quicktime-playable video file works I believe