<Graphic images, animations, multimedia> Reading Notes --- airplay

Source: Internet
Author: User

Airplay technology is a technology that has never been used before. This is just a note.


Sharing:

1. You can use airplay to output videos or audio from IOS and Mac devices to HDTV or high fidelity audios.

2. You can use airplay to display screen images of iOS and Mac devices to HDTV.

3. Enable dual-screen display of iOS and Mac devices and HDTV through airplay


Airplay requires Media Encoding that can be played.

1. Audio Data is compressed using AAC or mp3 Encoding

2. Video data compression using h264 Encoding


Technologies that can be played by airplay include:

1. mpmovieplayercontroller

2. avplayer

3. uiwebview


Code for mpmovieplayercontroller

// When airplay is enabled, the [[nsnotificationcenter defacenter center] addobserver: Self selector: @ selector (didactiveairplay :) name: jsonobject: Nil]; // Add _ movieplayer to mpmovieplayercontroller. allowsairplay = yes; // mpmovieplayerviewcontroller Add _ movieplayerview. movieplayer. allowsairplay = yes;


Avplayer code

    self.avPlayer.allowsExternalPlayback = YES;


Code to be aware of in uiwebview

    self.webView.mediaPlaybackAllowsAirPlay = YES;


<Graphic images, animations, multimedia> Reading Notes --- airplay

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.