I am working in a project in which I am using UIWebView. The Project is in Objective C. I tried to load HTML string in a webView which contains Audio. But some how Audio is not getting play in iPhone. But it's playing in iPad. I tried to find the problem which I am getting. But unfortunately I couldn't found any solution for this. Please help me in this.
UIWebView is deprecated and not supported by apple anymore.
I might consider using the new framework - WKWebView.
You can import it by using
#import <WebKit/WebKit.h>
Related
I am trying to use react-native-video in my app but when video plays, audio is not playing. Only video without audio is playing. (In Android, both video, audio is playing well. Only in iOS, audio is not playing)
I found a solution on github and tried it, but got a new error. How to fix this new error?
Here is the link.
This is new error.
In order to solve that compilation error, you'll need to add this to the top of the file you added the AVAudioSession code to:
#import AVFoundation;
OR (this is the one they show in the example):
#import <AVFoundation/AVFoundation.h>
(The first one doesn't require that you add the framework -- see #import vs #import - iOS 7)
Also, just wanted to make sure you had also tried this fix listed on the answer page you linked to:
<Video
...
ignoreSilentSwitch="ignore"
/>
I was able to display a video using NSURL from a webpage into a UIView, but i need to be able to find a way to stream a video from a web server into my iphone using avfoundation. i am a little confused as to what i have to do in order to do this. any pointers would be helpful. thank you.
If you just need simple movie playing then take a look at MPMoviePlayerController. For more advanced needs start at AVPlayer
I have an app that is located in a showroom. It cycles through several pictures. Now what I been requested to do is to add functionality so that when the camera detects a face, it needs to change to a video.
How can I accomplish this in objective C? I am using iPad 2, but can move to the new iPad
You can use CIFaceDetector, apple sample code here
You can use OpenCV. Demo App is hosted at Google Code.
I want to embed a video player in an NSView. I also want to play different files, passing the path of these files. Is it possible to implement in a Mac application?
For QTKit, the QTKit Application Tutorial - Creating a Simple QTKit Media Player Application takes you through the basic steps.
Take a look at the AVFoundation frameworks now in 10.7 - AVPlayer looks like a good start.
Given a URL to a...
PDF, Apple's UIWebView component will display the PDF in the PDF
reader.
video, Apple's UIWebView component will display the video in
the video player.
music file, Apple's UIWebView component will play
the music in the video player.
What is the best way to mimic this functionality in Sencha Touch?
Many thanks
EDIT: Also, how do you display a website in a panel? I've tried using an embed and an iframe, but these aren't scrollable on the device.
I don't understand, this should work just like that? Are you thinking of rendering pdf/video/music inside Sencha Application?
If yes, check out Sencha examples for audio/video. For pdf you will need some new code. I would suggest using pdf.js inside Sencha panel, haven't tried it though.
This was answered in sencha touch :: how to create a panel for website-preview inside iFrame.
Anyway, if you want to get the same effect as a UIWebView in senchatouch, I recommend using PhoneGap as long as your intention is that your webapp is used only on mobile devices. PhoneGap Plugins available to use the native WebViews each mobile OS. The plugin, both for IOS to ChildrenBrowser called Android. Sorry about the other systems can not help more.
Without a lot of hacky code, you can't.