AirPlay

AirPlay allows users to wirelessly stream content from their iOS device or Mac to devices and accessories compatible with AirPlay.

AirPlay Documentation

Posts under AirPlay tag

64 results found
Post marked as unsolved
173 Views

How to get AirPlay working with AWS cloudFront encrypted video(audio) URL

I'm using cloudFront lambda to encrypt urls and AVURLAssetHTTPHeaderFieldsKey through md5 token to decrypt it with AVPlayer. The problem is that AVPlayer is working fine but when trying to cast the video with AirPlay, it flashs for a second then nothing is casted. Thanks,
Asked
Last updated .
Post marked as unsolved
3.0k Views

tvOS14 Audio Output Sources Missing

tvOS14 has no option to choose an output source so No Airplay to homepods. Has the Option moved or been removed from this version? I see nothing about it in the release notes
Asked
by pacman.
Last updated .
Post marked as unsolved
82 Views

How do I block a device and prevent my apple id from hacker if thw hacker is my boyfriend and accessing all my subscription

I want to block the icloud acct of jfmlu@icloud.com it wasn't me. My apple id is fjmlu@yahoo.com but if i am trying to delete the jfmlu@icloud.com i cant delete nor change it so my boufriwnds family is accessing all ky accts and subscriptions
Asked
by Malubie.
Last updated .
Post marked as unsolved
51 Views

any way you can run mac 0s on windows

can you run mac os on windows
Asked
by Karthikey.
Last updated .
Post marked as unsolved
107 Views

Airplay to LG Smart TV

My boyfriend and I both have MacBook Pros. He's still using Catalina and has no issues. I updated to Big Sur 11.2.2 (20D80) and I cannot use the airplay feature on our LG smart TV (UN7240PVG). One of a few things happen: I go to Display under System preferences and select the TV. It selects it for a moment and the selection reverts back to the "Off" option. Then a pop-up appears saying the connection fails. Sometimes it does connect through the above way, but it is skipping and the sound pauses every few seconds and is not a pleasant viewing experience. I open QuickTime player with a movie and use the AirPlay icon from there and select the TV. I still see the play/pause action menu, but the rest of the player goes black and the TV is stuck on the AirPlay settings menu. For option 3 I go between resetting the device in AirPlay to forget the 1 time passcode (which only sometimes will work to give me a new code), asking for a password for each connection, or a code each time a device is connected. Nothing works. Even when I do manage to be given a passcode the TV stays on the AirPlay setting screen and the video player on the computer stays black. Quite annoying! Please please please fix! I've tried the fire wall setting mentioned here a few times, but this didn't work for me. Anyone else found a fix for something similar happening?
Asked
Last updated .
Post marked as unsolved
197 Views

AVSampleBufferAudioRenderer's set isMuted and volume doesn't work on AirPlay

The isMuted - https://developer.apple.com/documentation/avfoundation/avsamplebufferaudiorenderer/2866177-ismuted and volume - https://developer.apple.com/documentation/avfoundation/avsamplebufferaudiorenderer/2866179-volume are used to set volumes of player. I tried to mute audio playing by setting isMuted to true and volume to 0.0. it doesn't work when the HomePod is the audio output device using AirPlay, but if it works on iPhone speaker output. How should I mute the audio when using AirPlay device as audio output?
Asked
Last updated .
Post marked as unsolved
158 Views

Sidecar not connecting, device timed out...

I have a new iPad Air (4th Gen) trying to connect with my Macbook Pro 2017 on Big Sur... Display is not connecting and request times out. They are on the same Wifi network, have bluetooth enabled (although the devices wont connect to each other, but show under My Devices), have Handoff enabled, and am logged in under the same Apple ID with 2FA. I’ve tried restarting the devices, toggling settings, and resetting network settings... I've tried all of the above connected with a USB-C and also unconnected. The iPad is set as a Trusted device via Finder when plugged into my Macbook. Not sure what else I can do. Thanks in advance!
Asked
by Syatek.
Last updated .
Post marked as unsolved
107 Views

yo

yo
Asked
by myyoyoyo.
Last updated .
Post marked as unsolved
120 Views

airplay to atv 4k auto close

1、I set AVAudioSessionCategory = AVAudioSessionCategoryPlayback ,then use ipad mini (os version:12.5.1) airplay to apple tv 4k(os version:14.3),when I airplay a vod to ATV 4k, it works, not auto close. but when I airplay a live tv, it auto close.I also airplay to apple tv 4(os version:13.3), vod and live tv both ok. 2、I set AVAudioSessionCategory = AVAudioSessionCategoryPlayAndRecord ,then use ipad mini (os version:12.5.1) airplay to apple tv 4k(os version:14.3) and apple tv 4(os version:13.3), vod and live tv both ok.,but i can't observe AVAudioSessionRouteChangeNotification notice Does anyone ever had this problem? Best regards
Asked
by MeiChao1.
Last updated .
Post marked as unsolved
169 Views

[AirPlay] AVPlayerItemMetadataCollector doesn't report ad breaks

Hey, I'm writing an app with the possibility to play HLS streams. Some HLS streams I have to play have ad-breaks and I have to display them on the custom view progress bar. To do so I create an instance of AVPlayerItemMetadataCollector and add it to AVPlayerItem instance: swift         let asset = AVURLAsset(url: url)         let item = AVPlayerItem(asset: asset)         let metadataCollector = AVPlayerItemMetadataCollector()         item.add(metadataCollector) It works as expected when I play the stream on the device. When the player receives the manifest with EXT-X-DATERANGE tags the metadataCollector reports the ad-breaks via its delegate's metadataCollector( , didCollect: , indexesOfNewGroups: , indexesOfModifiedGroups: ) method. But suppose, I've started a playback, switched to AirPlay, and closed the player on the device. In this case, the AirPlay device stays connected, so that if I start the playback again (the same item or another), the playback will start at once on AirPlay. The issue in this case is: When the playback starts at once on AirPlay, the AVPlayerItemMetadataCollector instance doesn't report any ad-breaks to its delegate. I've tested this behavior with iPhones (iOS 14.3) and Apple TV 4K (tvOS 14.4) and LG TV with AirPlay 2 support. Is something wrong with AVPlayerItemMetadataCollector configuration or is it an expected behavior or an iOS bug?
Asked
Last updated .
Post marked as unsolved
217 Views

AVPlayer.timeControlStatus is not updated when switch playback from the device to AirPlay

Hello! I'm writing an app with a possibility to play HLS streams. I make a KVO subscription for AVPlayer.timeControlStatus to change the state of custom trickplay controls. When I switch the playback from the device to an AirPlay device (Apple TV 4K for instance), the KVO subscription is triggerred once with .paused state and then stops getting updates. However the playback is active on the AppleTV in the same time. Also I have a periodicTimeObserver with period of 1 sec and this observer continues getting triggered each second. But if I print out the timeControlState of the player inside this periodicObserver it stays .paused. It's more strange as periodicObserver should not be triggered when prayer is in .paused state. When I pause/play the playback using remote control of the Apple TV everything starts working as expected: AVPlayer.timeControlStatus updates begin trigger KVO observation, periodicObserver is being triggered only when playback is active and timeControlStatus is .paying. I tried to simulate it in the clean project and prepared the project that just presents an AVPlayerViewController that shows a video from the hardcoded URL. And all the issues are being reproduced in the same way in the clean project. Please, find the listing below. I've tested this behavior with iOS 12.3.1 and 14.3 iPhones and AplleTV 4K tvOS 14.4. Is something wrong with AVPlayer configuration or is it an expected behavior or an iOS bug? swift class ViewController: UIViewController {     private var player: AVPlayer?     private var obs: NSKeyValueObservation?     @IBAction func playVideo(_ sender: Any) {         guard let url = URL(string: "https://bitdash-a.akamaihd.net/content/MI201109210084_1/m3u8s/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.m3u8") else {             return         }         player = AVPlayer(url: url)         player?.addPeriodicTimeObserver(             forInterval: CMTime(seconds: 1, preferredTimescale: 600),             queue: DispatchQueue.main         ) { [weak player] _ in             print("#$#$player timeControlStatus: \(player?.timeControlStatus.rawValue)")         }         obs = player?.observe(\AVPlayer.timeControlStatus) { player, _ in             print("#$#$timeControlStatus changed to: \(player.timeControlStatus.rawValue)")         }         let controller = AVPlayerViewController()         controller.player = player         present(controller, animated: true) {             self.player?.play()         }     } }
Asked
Last updated .
Post marked as unsolved
196 Views

No Airplay sound from iPhone 12 music to Apple TV

I have an iPhone 12 pro max and latest Apple TV. When I Airplay my music from my phone there is no sound. But I can see the music is playing on my phone and ATV. Same WiFi and both updated. Restarted both. Any other suggestions?
Asked
by JR32.
Last updated .
Post marked as unsolved
222 Views

AVAudioSession currentRoute not reporting AirPlay

Hi, I'm having problems getting the correct reported status of an AVAudioSession when using AirPlay. From what I've read, I should be able to query the portType from AVAudioSession.sharedInstance().currentRoute but when AirPlaying from the device I'm using, the output seems to be Speaker. When I test with bluetooth, the correct value of BluetoothA2DPOutput is returned. Is this intentional, or am I doing something wrong? Any help is much appreciated. Thanks.
Asked
by doive.
Last updated .
Post marked as unsolved
201 Views

airport express gen 1 on ios 14.4

can’t play airtunes using ios 14.4 using airport express generation 1, however, able to use itunes on Macbook 💻 High Sierra works flawlessly along with the native remote app to control playlists and other related features. is Appl updating anything for this? Appears to have happened after doing the ios updates from 14.4
Asked
by VMAN99.
Last updated .
Post marked as solved
2.8k Views

AirPlay Issues Since Switching to Big Sur on MacBook Pro

AirPlay seems to have been wiped out on my MacBook Pro since the move to Big Sur...The icon was no longer saved in the toolbar, so I went to the widgets to find it. Instead of saying "AirPlay" there was "Screen Mirroring" which was odd since screenshots online from other users still shows AirPlay. AirPlay worked just fine on my MacBook Pro before using Big Sur and it still works perfectly on both Apple TVs I have when I use my iPhone. This leads me to believe it might have to do with the upgrade since only my MacBook Pro is having this issue. I ended up calling Apple Support and spent over 3 hours troubleshooting the issue, but no solution yet. Spoke to 3 different techs and it seems like none of them have seen this issue before. I've been patient since I know Big Sur is new, but this is a bit frustrating to say the least. I've restarted my router, both Apple TVs, my MacBook Pro (multiple times each), and still no fix. The screen mirroring does not work, since the AirPlay display in System Preferences keeps switching to "Off" immediately after clicking which Apple TV I want to use it for. I've also made sure the network names match up, so I'm running out of ideas. Does anyone have any advice? I appreciate any help I can get. Thank you.
Asked
by LanCav.
Last updated .