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