Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7733931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:07:22+00:00 2026-06-01T07:07:22+00:00

I’m currently playing around with some app ideas using AirPlay mirroring and a second

  • 0

I’m currently playing around with some app ideas using AirPlay mirroring and a second UIScreen (a la Real Racing) on my Apple TV2 along with HTML5 video content (x-webkit-airplay=”deny”) within a UIWebView (allowsInlineMediaPlayback=YES, mediaPlaybackAllowsAirPlay=NO) on my iPad in iOS 5.

Without Airplay, the content in the UIWebView renders inline on the iPad (as expected). Once Airplay Mirroring is enabled, the content always plays full screen on the Apple TV (obscuring the external screen’s UI) and shows the “video playing on Apple TV” image in the UIWebView on the main screen:

airplay indicator

Here’s my HTML:

<html>
   <head>
     <title>HTML 5 Video</title>
   </head>
   <body>
      <video controls="controls" x-webkit-airplay="deny" width="280" height="200">
         <source src="http://html5demos.com/assets/dizzy.mp4" type="video/mp4" />
         <source src="http://html5demos.com/assets/dizzy.webm" type="video/webm" />
         <source src="http://html5demos.com/assets/dizzy.ogv" type="video/ogv" />
      </video> 
   </body>
</html>

Here’s the relevant snippet of my project code:

NSString *urlString = @"http://medialog.roamrlog.com/video.html";
NSURL *url = [NSURL URLWithString:urlString];
NSURLRequest *urlRequest = [[NSURLRequest alloc] initWithURL:url];

_webView = [[UIWebView alloc] initWithFrame:CGRectMake(50, 20, 280, 200)];

_webView.delegate = self;

_webView.allowsInlineMediaPlayback = YES;
_webView.mediaPlaybackAllowsAirPlay = NO;

[_webView loadRequest:urlRequest];

It seems to ignore all settings when mirroring is on:

airplay mirroring on

(audio and video are transmitted to ATV via AirPlay with Mirroring as is not expected)

And acknowledges them partly (read below) when mirroring is off:

airplay mirroring off

(audio is transmitted to ATV via AirPlay without Mirroring as is not expected – video is not as is expected)

I need the UIWebView content to always play inline regardless of AirPlay Mirroring. Any ideas how I can get around this issue?

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T07:07:23+00:00Added an answer on June 1, 2026 at 7:07 am

    I am not aware of any way to do this and it’s something I need as well.

    There is a property of UIWebView that should disable AirPlay on the UIWebView, but it does not seem to be working, at least for me:

    http://developer.apple.com/library/ios/documentation/uikit/reference/UIWebView_Class/Reference/Reference.html#//apple_ref/occ/instp/UIWebView/mediaPlaybackAllowsAirPlay

    I have a question on this already, so purpose you’ll want to close this question and vote mine up. If you try to use that property and get better results than I did, I’d love to hear about it!

    My question: Purpose of mediaPlaybackAllowsAirPlay property on UIWebView

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're building an app, our first using Rails 3, and we're having to build
I am using Paperclip to handle profile photo uploads in my app. They upload
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I am currently running into a problem where an element is coming back from
I want use html5's new tag to play a wav file (currently only supported

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.