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

Posts under AirPlay tag

94 Posts

Post

Replies

Boosts

Views

Activity

Detect and stop Airplay on WKWebView that plays a video
What I have tried? UIScreen.screens.count > 1 Ans : Always getting one even though my app is currently Airplay(ing) on my Macbook Setting configuration of WKWebView mediaPlaybackAllowsAirPlay = false allowsAirPlayForMediaPlayback = false Although the airplay button is not present in the player controls but one can still caste using the control panel airplay button by swipping the screen from above. Tried this method used widely to detect Airplay but it only detects in case of screen mirroring no callbacks for Airplay. func isAirplayOn() -> Bool {     let audioSession = AVAudioSession.sharedInstance()     let currentRoute = audioSession.currentRoute     for outputPort in currentRoute.outputs {       if outputPort.portType == AVAudioSession.Port.airPlay {         return true       }     }     return false } So to my vain this also does not work. Let me know how to either detect airplay or disable it on WKWebView's Audio/Video Player. Any help will be highly appreciated.
0
0
1.3k
Apr ’22
AirPlay with Mac M1
Hello community, is there any progress with the airplay problem between Mac with M1 and HomePod mini? There are already many updates since 11.6 but it does not solve the problem, AirPlay stops working and you have to restart or stop the functions in Activity Monitor. Does anyone know anything, thanks.
2
0
1k
Feb ’22
Air play not working from iphone 11 promax to macbook air
Hi can anyone help? I was using airplay fine to transfer videos and photos to my macbook air from my iphone 11 pro, but the last three times I have tried it has not worked, just sits there with waiting, now telling me online that both macbook and iphone need to be on same network but i use my iphone hotspot for my macbook for internet as I am not near a wifi area can anyone poffer suggestions? its annoying having to email videos to myself all the time now
1
0
1.3k
Feb ’22
Airplay device name
Is there any way of discovering the name of the device when the user started to cast to it? The only thing I found was this let route = AVAudioSession.sharedInstance().currentRoute for output in route.outputs where output.portType == .airPlay { infoDict["deviceName"] = output.portName infoDict["portType"] = output.portType.rawValue } but the output.portName returns the portType instead of the portName.
1
1
1.7k
Jan ’22
How to send subtitles vtt when AirPlay a mp4?
Target is view html subtitles in vtt format in TV when AirPlay is running from: <video preload="metadata" x-webkit-airplay="allow" src="a.mp4"> <track kind="subtitles" default="" src="en.vtt" srclang="en"> <track kind="subtitles" src="de.vtt" srclang="de"> <track kind="subtitles" src="es.vtt" srclang="es"> <track kind="subtitles" src="fr.vtt" srclang="fr"> </video> The problem is when AirPlay is enabled video and audio plays on TV, but no subtitles showed. I tryied to include vtt/srt subtitles into the mp4 metadata with ffmpeg and subtitles working with VLC but not working when AirPlay this files. ffmpeg -i 8499.mp4 -i 8499.en.vtt -map 0:v -map 0:a -c copy -map 1 -c:s:0 mov_text -metadata:s:s:0 language=en 8499.en.mp4 ffmpeg -i 8499.mp4 -i 8499.en.srt -map 0:v -map 0:a -c copy -map 1 -c:s:0 srt -metadata:s:s:0 language=en 8499.en.mp4 Also tried to send a .m3u8 with no luck. Any of you know how is the basic format for a simple .m3u8 with a .mp4 and .vtt working when AirPlay? Wich is the standard subtitles solution for AirPlay?
0
0
1.8k
Jan ’22
WiFi Bridging on iPhones
Hi, I'm looking to understand more about the options available to hardware/software developers who are seeking to connect WiFi device to iOS devices in a bridging-type arrangement. For example. we are considering connecting one of our devices to an iPhone while maintaining access to the WiFi Network (WLAN) to enable data transfer to a server. Cellular data connections aren't an option. We are open to MFi. Thanks very much.
0
0
1.1k
Dec ’21
Signed URLs and Airplay from iOS
I have a video player that streams URLs coming from AWS using a signed cookie method. This works fine when streaming locally on the device, but does not work when attempting to AirPlay. I understand the reason why this is failing due to the AirPlay device not receiving the cookie. Is there a way to pass the cookie along with the AirPlay request? Are there other methods available to accomplish streaming via signed URLs?
0
1
753
Dec ’21
get AirPlay Mirroring Log in iPhone/iPad
We Organization use iPad Air 2 (OS Ver.13.* ~ 14.*). If first contact Apple TV then This iPad can AirPlay Mirroring on a AppleTV 3rd, But, Next time, Any iPad can not AirPlay Mirroring on a AppleTV 3rd(OS Ver.7.8). AP used Aironet 1852i (Cisco Systems). So, We hope to view log into a AirPlay in a any iPad used App. Tell us viewer App for AirPlay logs, Please.
0
0
834
Nov ’21
Detect and stop Airplay on WKWebView that plays a video
What I have tried? UIScreen.screens.count &gt; 1 Ans : Always getting one even though my app is currently Airplay(ing) on my Macbook Setting configuration of WKWebView mediaPlaybackAllowsAirPlay = false allowsAirPlayForMediaPlayback = false Although the airplay button is not present in the player controls but one can still caste using the control panel airplay button by swipping the screen from above. Tried this method used widely to detect Airplay but it only detects in case of screen mirroring no callbacks for Airplay. func isAirplayOn() -&gt; Bool {     let audioSession = AVAudioSession.sharedInstance()     let currentRoute = audioSession.currentRoute     for outputPort in currentRoute.outputs {       if outputPort.portType == AVAudioSession.Port.airPlay {         return true       }     }     return false } So to my vain this also does not work. Let me know how to either detect airplay or disable it on WKWebView's Audio/Video Player. Any help will be highly appreciated.
Replies
0
Boosts
0
Views
1.3k
Activity
Apr ’22
AirPlay with Mac M1
Hello community, is there any progress with the airplay problem between Mac with M1 and HomePod mini? There are already many updates since 11.6 but it does not solve the problem, AirPlay stops working and you have to restart or stop the functions in Activity Monitor. Does anyone know anything, thanks.
Replies
2
Boosts
0
Views
1k
Activity
Feb ’22
Air play not working from iphone 11 promax to macbook air
Hi can anyone help? I was using airplay fine to transfer videos and photos to my macbook air from my iphone 11 pro, but the last three times I have tried it has not worked, just sits there with waiting, now telling me online that both macbook and iphone need to be on same network but i use my iphone hotspot for my macbook for internet as I am not near a wifi area can anyone poffer suggestions? its annoying having to email videos to myself all the time now
Replies
1
Boosts
0
Views
1.3k
Activity
Feb ’22
Airplay device name
Is there any way of discovering the name of the device when the user started to cast to it? The only thing I found was this let route = AVAudioSession.sharedInstance().currentRoute for output in route.outputs where output.portType == .airPlay { infoDict["deviceName"] = output.portName infoDict["portType"] = output.portType.rawValue } but the output.portName returns the portType instead of the portName.
Replies
1
Boosts
1
Views
1.7k
Activity
Jan ’22
How to send subtitles vtt when AirPlay a mp4?
Target is view html subtitles in vtt format in TV when AirPlay is running from: <video preload="metadata" x-webkit-airplay="allow" src="a.mp4"> <track kind="subtitles" default="" src="en.vtt" srclang="en"> <track kind="subtitles" src="de.vtt" srclang="de"> <track kind="subtitles" src="es.vtt" srclang="es"> <track kind="subtitles" src="fr.vtt" srclang="fr"> </video> The problem is when AirPlay is enabled video and audio plays on TV, but no subtitles showed. I tryied to include vtt/srt subtitles into the mp4 metadata with ffmpeg and subtitles working with VLC but not working when AirPlay this files. ffmpeg -i 8499.mp4 -i 8499.en.vtt -map 0:v -map 0:a -c copy -map 1 -c:s:0 mov_text -metadata:s:s:0 language=en 8499.en.mp4 ffmpeg -i 8499.mp4 -i 8499.en.srt -map 0:v -map 0:a -c copy -map 1 -c:s:0 srt -metadata:s:s:0 language=en 8499.en.mp4 Also tried to send a .m3u8 with no luck. Any of you know how is the basic format for a simple .m3u8 with a .mp4 and .vtt working when AirPlay? Wich is the standard subtitles solution for AirPlay?
Replies
0
Boosts
0
Views
1.8k
Activity
Jan ’22
NSNetService deprecated
With NSNetService deprecated, how to write an IOS app to use Airplay as a server (receiver)? I can't find any details on how to do that using the Network framework which apparently replaces NSNetService.
Replies
0
Boosts
0
Views
963
Activity
Jan ’22
WiFi Bridging on iPhones
Hi, I'm looking to understand more about the options available to hardware/software developers who are seeking to connect WiFi device to iOS devices in a bridging-type arrangement. For example. we are considering connecting one of our devices to an iPhone while maintaining access to the WiFi Network (WLAN) to enable data transfer to a server. Cellular data connections aren't an option. We are open to MFi. Thanks very much.
Replies
0
Boosts
0
Views
1.1k
Activity
Dec ’21
Signed URLs and Airplay from iOS
I have a video player that streams URLs coming from AWS using a signed cookie method. This works fine when streaming locally on the device, but does not work when attempting to AirPlay. I understand the reason why this is failing due to the AirPlay device not receiving the cookie. Is there a way to pass the cookie along with the AirPlay request? Are there other methods available to accomplish streaming via signed URLs?
Replies
0
Boosts
1
Views
753
Activity
Dec ’21
get AirPlay Mirroring Log in iPhone/iPad
We Organization use iPad Air 2 (OS Ver.13.* ~ 14.*). If first contact Apple TV then This iPad can AirPlay Mirroring on a AppleTV 3rd, But, Next time, Any iPad can not AirPlay Mirroring on a AppleTV 3rd(OS Ver.7.8). AP used Aironet 1852i (Cisco Systems). So, We hope to view log into a AirPlay in a any iPad used App. Tell us viewer App for AirPlay logs, Please.
Replies
0
Boosts
0
Views
834
Activity
Nov ’21