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

Posts under AirPlay tag

109 Posts

Post

Replies

Boosts

Views

Activity

iOS 17 Beta: AVSampleBufferVideoRenderer, can it be used with AirPlay?
In iOS 17 Beta, a new AVSampleBufferVideoRenderer class has been added: https://developer.apple.com/documentation/avfoundation/avsamplebuffervideorenderer I'm wondering if this could somehow be used together with AirPlay in order to manually enqueue video sample buffers, just like you already can for AirPlay Audio with AVSampleBufferAudioRenderer (see: https://developer.apple.com/documentation/avfaudio/audio_engine/playing_custom_audio_with_your_own_player). I want to be able to stream AirPlay Video without HLS. If I try to add the video renderer to their existing sample project for audio I get exception with message: "... video target must be added to the AVSampleBufferVideoRenderer prior to enqueueing sample buffers.", which I guess makes sense. But since there is no documentation on this yet, I can't know how to add a video target, nor what kind of video targets are supported.
0
0
1.2k
Jul ’23
App Navigation stuck while Air Play is enabled
My app needs to display through the iMac and Apple TV for the demonstration purpose But during the AirPlay the app navigation is stuck because of the root view controller is getting as nil I am using the below code to get the root view controller let scenes = UIApplication.shared.connectedScenes let windowScene = scenes.first as? UIWindowScene let window = windowScene?.windows.first return window?.rootViewController Since rootViewController is nil, I can't push a new VC or pop to a specific VC in the navigation stack Only when the Air Play is turned off, I can continue the navigation in the app So this really becoming a blocker issue. Please provide your comments I am running on iOS 16.1.1 in the iPhone and My Xcode version is 14.3
1
0
1.2k
Apr ’23
Failure to set AVAudioSession category from background routes audio to random ports, iOS 16
We have a VOIP application. We are setting AudioSession category on appLaunch. Need to support A2Dp profiles. do { try AVAudioSession.sharedInstance().setCategory(.playAndRecord, mode: .spokenAudio, options: [.mixWithOthers, .allowBluetooth, .allowBluetoothA2DP, .duckOthers]) try AVAudioSession.sharedInstance().setActive(true) MCXLogVerbose("[Audio] [App] AVAudioSession activation to playAndRecord SUCCESSFUL") } catch { MCXLogVerbose("[Audio] [App] AVAudioSession activation to playAndRecord FAILED") } We also have a framework which handles everything regarding networking, audio capturing, transmission etc. Apart from the application side, we also need to change category according to necessities. Everything works fine while application is in foreground. But in background state. it seems category can't be set. ERROR: "AVAudioSession.ErrorCode.cannotInterruptOthers", meaning another session is active(i guess). But i could not find any. As a result, incoming audio sometimes plays at receiver or speaker or airpod randomly, after a single failure. We are trying to switch category between playAndrecord and playback. do { try AVAudioSession.sharedInstance().setCategory(.playback, mode: .spokenAudio, options: [.mixWithOthers, .duckOthers]) try AVAudioSession.sharedInstance().setActive(true) MCXLogVerbose("[Audio] [App] AVAudioSession activation to playback SUCCESSFUL") } catch { MCXLogVerbose("[Audio] [App] AVAudioSession activation to playback FAILED") } ** Few confusions here, Why does it not fail while in foreground? Why simple straightforward demo application can set category from background without any failure? It seems iOS15 doesn't create audio routing errors even if session had failed to change its category. Whats changed? Am i missing any subtle steps to follow? Also airplay shows wrong port as selected. **
0
1
1.8k
Feb ’23
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.
33
1
28k
Feb ’23
AirPlay / Screen Mirroring with iPad in Single App Mode
Apologies if this has been posted prior - I'm banging my head against the wall, tried everything to no avail. We have iPads managed in an MDM - they are all in Single App Mode. We would like to be able to screen mirror/AirPlay the iPad to an Apple TV, but even with attempting some custom config via Apple Configurator, nothing seems to work. 1 - attempts to access the Control Center to select Screen Mirror by swiping down from the corner of the iPad screen does nothing 2 - pushing the AirPlay icon within media playing in the app does nothing - when the iPad is removed from Single App Mode, pushing the icon gives the option to toggle between playing the media on the iPad or AirPlay'd to the Apple TV 2 - while on the iPad's lock screen, the Control Center is viewable (allowed in MDM restrictions) however again, the AirPlay option is not Any help is extremely appreciated!!
0
0
1.4k
Feb ’23
Start Airplay to certain IP Address
We are struggling in a corporate environment with 100s of Airplay sources (in spite of bonjour gateways) to have a consistent experience with airplay. Is there a programmatic way to as MacOS to start mirroring to a certain IP address / DNS name, rather than allowing the auto discovery via the network. Thanks, Jaggie
0
0
1k
Jan ’23
Disable Airplay controls
Hi there,To give some context, our app is a streaming app. We have ads inserted in our HLS Stream and we'd like to prevent the user from skipping the Ads if possible.On Airplay we can't seem to find a way to do that. Disabling remote commands (MPRemoteCommandCenter.shared()) works only when controling the stream from the Device. When using the AppleTV remote, it doesn't work. HLS Stream is supposed to be processed by the device when casting on Airplay (if i'm correct), so i could guess it should use the same AVPlayer instance used on the device. But it is not using the same instance it seems so i can't intercept any function (play/pause/seek etc).Is there any way to disable Airplay remote controls while streaming?Thanks in advance
2
0
3k
Jan ’23
Airplay unable to differentiate between apple tv and sonos speakers
I have a bunch of sonos speakers, as well as an apple tv. The sonos attached to the TV are named the living room speakers and the Apple TV is called the living room Apple TV. When using AirPlay, it only seems to show and allow selection to stream audio to the “living room” Apple TV, not the living room sonos speakers. Other apps directly integrated with sonos can differentiate. This is a problem because if I want to stream to both kitchen and the living room, selecting the kitchen speakers directly and then the living room speakers via the Apple TV will create a noticeable audio time lag in the living room. To get around this I have to first stream to kitchen, then go into the sonos app and group the living room sonos speakers to the kitchen speakers to bypass the Apple TV. attaching screenshots of Spotify seeing the speakers directly but failing to using AirPlay. Also attaching pic of Apple Music failing to see them entirely as it relies just on AirPlay.
1
1
1.1k
Dec ’22
Airplay screen selection not working in portrait
Recently I've noticed a problem with Airplay. The problem is that in the Airplay popup that shows screens (or speakers etc) for selection when you want to connect an Airplay target device, it's not possible to select said target. It seems to involve these factors. Portrait (no problem in landscape) iPhone 13 Pro Max/iOS 16.1.1 (does not happen on an iPhone Xs iOS 16.1.1) I've confirmed the problem with an app in development, but also the current Youtube app in the App Store. Anyone else?
6
1
1.8k
Nov ’22
How to determine the device capabilities of an AirPlay target?
Is it possible to determine the device capabilities of an AirPlay target? AVRouteDetector exposes the available playback routes to us, however does not seem to provide any context into what the capabilities of each of the devices in the list is. For context, we work on a streaming app that would like to re-fetch the manifest for playback prior to initiating AirPlay. The reason for this being that the manifest we pull down for the iPhone (sending device) often does not match the capabilities of the TV (receiving device). For example, the iPhone may support HDR whereas the TV does not. It would be ideal to structure the manifest properly for the AirPlay device, to do so we need more info on the devices capabilities. Things like: A list of all supported device capabilities for hardware video decoding A list of all supported device capabilities for high dynamic range (HDR) video quality All supported device capabilities for sound encoding Screen width and height
0
0
1k
Oct ’22
Floating crash when presenting UIPrintInteractionController on iOS 16
Starting iOS 16 seeing some crashes related to pdf printing in the crash reporter. It looks like the issue is not so frequent. Also, I'm unable to reproduce the crash. Looks like the app crashes when the print preview dialog is opening. According to crash reports, there are some crashes on different iOS 16 versions: 16.0.0, 16.0.2, and 16.0.3. The printing code itself is trivial: let printInfo = UIPrintInfo.printInfo() printInfo.jobName = "Printing Job Name" self.printViewController = UIPrintInteractionController.shared self.printViewController?.printInfo = printInfo self.printViewController?.printingItem = pdfURL self.printViewController?.present(from: barButtonItem, animated: true) { (controller, completed, error) in     self.printViewController = nil } There is stack trace I got from the Organizer:
0
0
1.3k
Oct ’22
Can Airplay play local mp4 files on iPhone with AVPlayer?
Can Airplay only play remote videos? Is it possible to play local video files on iPhone?      let player = AVQueuePlayer() //    let url = fileURLOnIPhone // can not airplay, no video, no audio     let url = URL(string: "https://xxxxxx.mp4")! // can be airplay with video and audio     let asset = AVAsset(url: url)     let playerItem = AVPlayerItem(asset: asset)     player.insert(playerItem, after: nil)     let vc = AVPlayerViewController()     vc.player = player     present(vc, animated: true) {       player.play()     }
0
0
1.7k
Sep ’22
Airplay 2 Compatible TVs playback failure for long DVR window Live streams
We deliver 24h DVR window live streams to our customers and having issues AirPlaying those streams to all AirPlay 2 Compatible TV There are 2 cases with different outcomes we found Case 1. start watching a LIVE stream with DVR window more than 14 hours on any iOS device from safari or any App with AVPlayer that supports airplaying Cast to any AirPlay 2 Compatible TV Observe playback fails with an error Domain: Other error Comment: No valid variant enabled Status code: 0 Case 2. start watching a LIVE stream with growing DVR window with initial DVR window less then 13 hours on any iOS device from safari or any App with AVPlayer that supports airplaying Cast to any AirPlay 2 Compatible TV Wait until DVR window grows to 14hours+ Observe airplay disconnected on any AirPlay 2 Compatible TV Observe Safari player saying it is still connected to AirPlay 2 Compatible TV (or crash in case of Mobile app that supports airplaying) Expected behaviour: Stream continues to play on AirPlay 2 Compatible TV regardless of Live stream DVR Window after casting from iOS device Additional info: we use 6 second segments for our live streams issue is not present when airplaying to AppleTV Please let us know how to fix this issue, thanks
0
0
1.5k
Sep ’22
Is it possible to filter device list displayed in AVRoutePickerView?
Our iOS app supports video streaming. We use AVRoutePickerView to give users an option to stream videos on their TV devices using Airplay connection. Videos that we stream have some specifics that make them work without issues only on Apple TV. However there are TVs from other vendors (LG, Samsung, Sony, ...) that also have integrated Airplay support and they also show in the AVRoutePickerView. Is there any way we can filter what AVRoutePickerView displays? Ideally we would like AVRoutePickerView to list only Apple TV devices and not other TVs.
0
0
1.8k
Sep ’22
Is UIBackgroundModes audio required for WKWebView to play audio/airplay etc in the background?
I know WKWebview is in another process from the main app. My question is is the UIBackgroundModes audio entry in Info.plist required on the main app for WKWebview to play audio/video/airplay in the background? Or is simply setting WKWebViewConfiguration allowsAirPlayForMediaPlayback and allowsPictureInPictureMediaPlayback enough? I recall having issues with background audio from WKWebView on older versions of iOS a couple years ago so I added the audio entry to the Info.plist.... but I just removed the key from the Info.plist and background audio from WKWebview seems to be working fine...maybe audio background mode is not required? Or does it only seem to be working because my app is attached to the debugger? Or is this a bug?
1
1
1.5k
Aug ’22
Unable to AirPlay from iOS app running on M1 Mac
Background: We recently added support for running the iOS version of our video streaming app on M1 MacBooks - as part of this we'd like to be able to AirPlay from within the M1 version of the app to external devices (tvOS, LG, Roku, etc..). AirPlay works as expected when running the iOS app on an iPhone, however, when running the iOS app on an M1 Mac, AirPlay does not work. It attempts to make a connection, but the video player goes black on the sender device and nothing appears on the receiving device. We use AVPlayer as our underlying video implementation. AVRoutePickerView is used to establish the AirPlay connections. Question: Is AirPlay supported for iOS apps running on apple silicon? Are there certain flags that need to be set to enable this? Any idea what may be causing the failed AirPlay connection? Error: This error appears immediately after attempting to AirPlay, unsure if it is related: sendMessageWithDictionary: Failed to get remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.rtcreportingd" UserInfo={NSDebugDescription=connection to service named com.apple.rtcreportingd}```
0
0
1.4k
Aug ’22
How can I get Airplay device play status, like play/pause
Hello, there. I use “AVPlayer.usesExternalPlaybackWhileExternalScreenIsActive = YES” to display video on some TV which support airplay like Apple TV. I often got the play/pause button shows the incorrect state when playing on TV but correctly in App video playing. So I'd like to get the playing state of Airplay Device to change the App play/pause button state, anyone can help?
1
0
1.3k
Aug ’22
Airplay HTTP Referer?
Hey there, we're using a CDN with HTTP referer checks in place for streaming media. When streaming with Airplay, what is the referer set on the HTTP header? For instance, for Google Chromecast, it's: https://www.gstatic.com/
Replies
4
Boosts
1
Views
2.4k
Activity
Aug ’23
iOS 17 Beta: AVSampleBufferVideoRenderer, can it be used with AirPlay?
In iOS 17 Beta, a new AVSampleBufferVideoRenderer class has been added: https://developer.apple.com/documentation/avfoundation/avsamplebuffervideorenderer I'm wondering if this could somehow be used together with AirPlay in order to manually enqueue video sample buffers, just like you already can for AirPlay Audio with AVSampleBufferAudioRenderer (see: https://developer.apple.com/documentation/avfaudio/audio_engine/playing_custom_audio_with_your_own_player). I want to be able to stream AirPlay Video without HLS. If I try to add the video renderer to their existing sample project for audio I get exception with message: "... video target must be added to the AVSampleBufferVideoRenderer prior to enqueueing sample buffers.", which I guess makes sense. But since there is no documentation on this yet, I can't know how to add a video target, nor what kind of video targets are supported.
Replies
0
Boosts
0
Views
1.2k
Activity
Jul ’23
App Navigation stuck while Air Play is enabled
My app needs to display through the iMac and Apple TV for the demonstration purpose But during the AirPlay the app navigation is stuck because of the root view controller is getting as nil I am using the below code to get the root view controller let scenes = UIApplication.shared.connectedScenes let windowScene = scenes.first as? UIWindowScene let window = windowScene?.windows.first return window?.rootViewController Since rootViewController is nil, I can't push a new VC or pop to a specific VC in the navigation stack Only when the Air Play is turned off, I can continue the navigation in the app So this really becoming a blocker issue. Please provide your comments I am running on iOS 16.1.1 in the iPhone and My Xcode version is 14.3
Replies
1
Boosts
0
Views
1.2k
Activity
Apr ’23
Failure to set AVAudioSession category from background routes audio to random ports, iOS 16
We have a VOIP application. We are setting AudioSession category on appLaunch. Need to support A2Dp profiles. do { try AVAudioSession.sharedInstance().setCategory(.playAndRecord, mode: .spokenAudio, options: [.mixWithOthers, .allowBluetooth, .allowBluetoothA2DP, .duckOthers]) try AVAudioSession.sharedInstance().setActive(true) MCXLogVerbose("[Audio] [App] AVAudioSession activation to playAndRecord SUCCESSFUL") } catch { MCXLogVerbose("[Audio] [App] AVAudioSession activation to playAndRecord FAILED") } We also have a framework which handles everything regarding networking, audio capturing, transmission etc. Apart from the application side, we also need to change category according to necessities. Everything works fine while application is in foreground. But in background state. it seems category can't be set. ERROR: "AVAudioSession.ErrorCode.cannotInterruptOthers", meaning another session is active(i guess). But i could not find any. As a result, incoming audio sometimes plays at receiver or speaker or airpod randomly, after a single failure. We are trying to switch category between playAndrecord and playback. do { try AVAudioSession.sharedInstance().setCategory(.playback, mode: .spokenAudio, options: [.mixWithOthers, .duckOthers]) try AVAudioSession.sharedInstance().setActive(true) MCXLogVerbose("[Audio] [App] AVAudioSession activation to playback SUCCESSFUL") } catch { MCXLogVerbose("[Audio] [App] AVAudioSession activation to playback FAILED") } ** Few confusions here, Why does it not fail while in foreground? Why simple straightforward demo application can set category from background without any failure? It seems iOS15 doesn't create audio routing errors even if session had failed to change its category. Whats changed? Am i missing any subtle steps to follow? Also airplay shows wrong port as selected. **
Replies
0
Boosts
1
Views
1.8k
Activity
Feb ’23
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.
Replies
33
Boosts
1
Views
28k
Activity
Feb ’23
AirPlay / Screen Mirroring with iPad in Single App Mode
Apologies if this has been posted prior - I'm banging my head against the wall, tried everything to no avail. We have iPads managed in an MDM - they are all in Single App Mode. We would like to be able to screen mirror/AirPlay the iPad to an Apple TV, but even with attempting some custom config via Apple Configurator, nothing seems to work. 1 - attempts to access the Control Center to select Screen Mirror by swiping down from the corner of the iPad screen does nothing 2 - pushing the AirPlay icon within media playing in the app does nothing - when the iPad is removed from Single App Mode, pushing the icon gives the option to toggle between playing the media on the iPad or AirPlay'd to the Apple TV 2 - while on the iPad's lock screen, the Control Center is viewable (allowed in MDM restrictions) however again, the AirPlay option is not Any help is extremely appreciated!!
Replies
0
Boosts
0
Views
1.4k
Activity
Feb ’23
Start Airplay to certain IP Address
We are struggling in a corporate environment with 100s of Airplay sources (in spite of bonjour gateways) to have a consistent experience with airplay. Is there a programmatic way to as MacOS to start mirroring to a certain IP address / DNS name, rather than allowing the auto discovery via the network. Thanks, Jaggie
Replies
0
Boosts
0
Views
1k
Activity
Jan ’23
Disable Airplay controls
Hi there,To give some context, our app is a streaming app. We have ads inserted in our HLS Stream and we'd like to prevent the user from skipping the Ads if possible.On Airplay we can't seem to find a way to do that. Disabling remote commands (MPRemoteCommandCenter.shared()) works only when controling the stream from the Device. When using the AppleTV remote, it doesn't work. HLS Stream is supposed to be processed by the device when casting on Airplay (if i'm correct), so i could guess it should use the same AVPlayer instance used on the device. But it is not using the same instance it seems so i can't intercept any function (play/pause/seek etc).Is there any way to disable Airplay remote controls while streaming?Thanks in advance
Replies
2
Boosts
0
Views
3k
Activity
Jan ’23
Airplay unable to differentiate between apple tv and sonos speakers
I have a bunch of sonos speakers, as well as an apple tv. The sonos attached to the TV are named the living room speakers and the Apple TV is called the living room Apple TV. When using AirPlay, it only seems to show and allow selection to stream audio to the “living room” Apple TV, not the living room sonos speakers. Other apps directly integrated with sonos can differentiate. This is a problem because if I want to stream to both kitchen and the living room, selecting the kitchen speakers directly and then the living room speakers via the Apple TV will create a noticeable audio time lag in the living room. To get around this I have to first stream to kitchen, then go into the sonos app and group the living room sonos speakers to the kitchen speakers to bypass the Apple TV. attaching screenshots of Spotify seeing the speakers directly but failing to using AirPlay. Also attaching pic of Apple Music failing to see them entirely as it relies just on AirPlay.
Replies
1
Boosts
1
Views
1.1k
Activity
Dec ’22
Airplay screen selection not working in portrait
Recently I've noticed a problem with Airplay. The problem is that in the Airplay popup that shows screens (or speakers etc) for selection when you want to connect an Airplay target device, it's not possible to select said target. It seems to involve these factors. Portrait (no problem in landscape) iPhone 13 Pro Max/iOS 16.1.1 (does not happen on an iPhone Xs iOS 16.1.1) I've confirmed the problem with an app in development, but also the current Youtube app in the App Store. Anyone else?
Replies
6
Boosts
1
Views
1.8k
Activity
Nov ’22
How to determine the device capabilities of an AirPlay target?
Is it possible to determine the device capabilities of an AirPlay target? AVRouteDetector exposes the available playback routes to us, however does not seem to provide any context into what the capabilities of each of the devices in the list is. For context, we work on a streaming app that would like to re-fetch the manifest for playback prior to initiating AirPlay. The reason for this being that the manifest we pull down for the iPhone (sending device) often does not match the capabilities of the TV (receiving device). For example, the iPhone may support HDR whereas the TV does not. It would be ideal to structure the manifest properly for the AirPlay device, to do so we need more info on the devices capabilities. Things like: A list of all supported device capabilities for hardware video decoding A list of all supported device capabilities for high dynamic range (HDR) video quality All supported device capabilities for sound encoding Screen width and height
Replies
0
Boosts
0
Views
1k
Activity
Oct ’22
Floating crash when presenting UIPrintInteractionController on iOS 16
Starting iOS 16 seeing some crashes related to pdf printing in the crash reporter. It looks like the issue is not so frequent. Also, I'm unable to reproduce the crash. Looks like the app crashes when the print preview dialog is opening. According to crash reports, there are some crashes on different iOS 16 versions: 16.0.0, 16.0.2, and 16.0.3. The printing code itself is trivial: let printInfo = UIPrintInfo.printInfo() printInfo.jobName = "Printing Job Name" self.printViewController = UIPrintInteractionController.shared self.printViewController?.printInfo = printInfo self.printViewController?.printingItem = pdfURL self.printViewController?.present(from: barButtonItem, animated: true) { (controller, completed, error) in     self.printViewController = nil } There is stack trace I got from the Organizer:
Replies
0
Boosts
0
Views
1.3k
Activity
Oct ’22
Lightning to HDMI not working iOS 16 any version so far
Apple Fix your garbage. I love Apple but this last update is garbage with accessories. I know you know about the issue because tons of users have it. Either acknowledge your mistakes and fix them or bring Steve Jobs back from the dead so he can straighten this company out. sincerely, Thinking about converting to Samsung
Replies
1
Boosts
0
Views
1.4k
Activity
Oct ’22
Can Airplay play local mp4 files on iPhone with AVPlayer?
Can Airplay only play remote videos? Is it possible to play local video files on iPhone?      let player = AVQueuePlayer() //    let url = fileURLOnIPhone // can not airplay, no video, no audio     let url = URL(string: "https://xxxxxx.mp4")! // can be airplay with video and audio     let asset = AVAsset(url: url)     let playerItem = AVPlayerItem(asset: asset)     player.insert(playerItem, after: nil)     let vc = AVPlayerViewController()     vc.player = player     present(vc, animated: true) {       player.play()     }
Replies
0
Boosts
0
Views
1.7k
Activity
Sep ’22
Airplay 2 Compatible TVs playback failure for long DVR window Live streams
We deliver 24h DVR window live streams to our customers and having issues AirPlaying those streams to all AirPlay 2 Compatible TV There are 2 cases with different outcomes we found Case 1. start watching a LIVE stream with DVR window more than 14 hours on any iOS device from safari or any App with AVPlayer that supports airplaying Cast to any AirPlay 2 Compatible TV Observe playback fails with an error Domain: Other error Comment: No valid variant enabled Status code: 0 Case 2. start watching a LIVE stream with growing DVR window with initial DVR window less then 13 hours on any iOS device from safari or any App with AVPlayer that supports airplaying Cast to any AirPlay 2 Compatible TV Wait until DVR window grows to 14hours+ Observe airplay disconnected on any AirPlay 2 Compatible TV Observe Safari player saying it is still connected to AirPlay 2 Compatible TV (or crash in case of Mobile app that supports airplaying) Expected behaviour: Stream continues to play on AirPlay 2 Compatible TV regardless of Live stream DVR Window after casting from iOS device Additional info: we use 6 second segments for our live streams issue is not present when airplaying to AppleTV Please let us know how to fix this issue, thanks
Replies
0
Boosts
0
Views
1.5k
Activity
Sep ’22
Is it possible to filter device list displayed in AVRoutePickerView?
Our iOS app supports video streaming. We use AVRoutePickerView to give users an option to stream videos on their TV devices using Airplay connection. Videos that we stream have some specifics that make them work without issues only on Apple TV. However there are TVs from other vendors (LG, Samsung, Sony, ...) that also have integrated Airplay support and they also show in the AVRoutePickerView. Is there any way we can filter what AVRoutePickerView displays? Ideally we would like AVRoutePickerView to list only Apple TV devices and not other TVs.
Replies
0
Boosts
0
Views
1.8k
Activity
Sep ’22
Is UIBackgroundModes audio required for WKWebView to play audio/airplay etc in the background?
I know WKWebview is in another process from the main app. My question is is the UIBackgroundModes audio entry in Info.plist required on the main app for WKWebview to play audio/video/airplay in the background? Or is simply setting WKWebViewConfiguration allowsAirPlayForMediaPlayback and allowsPictureInPictureMediaPlayback enough? I recall having issues with background audio from WKWebView on older versions of iOS a couple years ago so I added the audio entry to the Info.plist.... but I just removed the key from the Info.plist and background audio from WKWebview seems to be working fine...maybe audio background mode is not required? Or does it only seem to be working because my app is attached to the debugger? Or is this a bug?
Replies
1
Boosts
1
Views
1.5k
Activity
Aug ’22
Unable to AirPlay from iOS app running on M1 Mac
Background: We recently added support for running the iOS version of our video streaming app on M1 MacBooks - as part of this we'd like to be able to AirPlay from within the M1 version of the app to external devices (tvOS, LG, Roku, etc..). AirPlay works as expected when running the iOS app on an iPhone, however, when running the iOS app on an M1 Mac, AirPlay does not work. It attempts to make a connection, but the video player goes black on the sender device and nothing appears on the receiving device. We use AVPlayer as our underlying video implementation. AVRoutePickerView is used to establish the AirPlay connections. Question: Is AirPlay supported for iOS apps running on apple silicon? Are there certain flags that need to be set to enable this? Any idea what may be causing the failed AirPlay connection? Error: This error appears immediately after attempting to AirPlay, unsure if it is related: sendMessageWithDictionary: Failed to get remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.rtcreportingd" UserInfo={NSDebugDescription=connection to service named com.apple.rtcreportingd}```
Replies
0
Boosts
0
Views
1.4k
Activity
Aug ’22
Airpod Pro
Does anyone know the RFI exposure level? I have heard the levels are outside the allowable limits.
Replies
0
Boosts
0
Views
1.8k
Activity
Aug ’22
How can I get Airplay device play status, like play/pause
Hello, there. I use “AVPlayer.usesExternalPlaybackWhileExternalScreenIsActive = YES” to display video on some TV which support airplay like Apple TV. I often got the play/pause button shows the incorrect state when playing on TV but correctly in App video playing. So I'd like to get the playing state of Airplay Device to change the App play/pause button state, anyone can help?
Replies
1
Boosts
0
Views
1.3k
Activity
Aug ’22