Re: Mystery interference with AirPlay

2022-06-17 Thread Alex Zavatone via Cocoa-dev
Hi.  I was able to test this yesterday and while streaming from my 2012 MacBook 
to my Apple TV, and launching Gabriel’s app, there was no interruption in 
airplay streaming.

Nice little app. 

Cheers,
Alex Zavatone

> On Jun 16, 2022, at 10:06 AM, Alex Zavatone via Cocoa-dev 
>  wrote:
> 
> I’ll email you offline with a screenshot from my phone.
> 
>> On Jun 16, 2022, at 8:57 AM, Gabriel Zachmann  wrote:
>> 
>> I must be doing something pretty stupid: I don't see all those buttons, 
>> neither on my iPhone nor on my Macbook Pro.
>> 
>> I tried these instructions:
>> https://www.macrumors.com/how-to/airplay-from-iphone-to-mac/
>> 
>> with the TV app on iPhone.
>> 
>> iPhone 12 with iOs 15.5
>> MacbookPro 2019 with macOS 12.4
>> 
>> 
>> Best regards, Gabriel
>> 
>> 
> 
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/zav%40mac.com
> 
> This email sent to z...@mac.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Mystery interference with AirPlay

2022-06-16 Thread Alex Zavatone via Cocoa-dev
I’ll email you offline with a screenshot from my phone.

> On Jun 16, 2022, at 8:57 AM, Gabriel Zachmann  wrote:
> 
> I must be doing something pretty stupid: I don't see all those buttons, 
> neither on my iPhone nor on my Macbook Pro.
> 
> I tried these instructions:
>  https://www.macrumors.com/how-to/airplay-from-iphone-to-mac/
> 
> with the TV app on iPhone.
> 
> iPhone 12 with iOs 15.5
> MacbookPro 2019 with macOS 12.4
> 
> 
> Best regards, Gabriel
> 
> 

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Mystery interference with AirPlay

2022-06-16 Thread Alex Zavatone via Cocoa-dev


> On Jun 16, 2022, at 3:29 AM, Gabriel Zachmann via Cocoa-dev 
>  wrote:
> 
>> 
>> I can’t point you in the right direction but find out what is acquiring the 
>> audio device.  Start with your multimedia playback code.  What are you using 
>> to play the ‘video’?
> 
> I am not playing any videos - I am only showing images.
> 
> Best regards, Gabriel

Yes, we know.  But it’s still thinking that somehow, you are.  That’s whet 
we’re trying to point out.

What I requested is to use some source to airplay TO your Mac and then launch 
your app to replicate the issue your user is facing, 

Then once you reproduced it, start reducing functionality until it starts 
working.

Alex Zavatone
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Mystery interference with AirPlay

2022-06-16 Thread Gabriel Zachmann via Cocoa-dev
I must be doing something pretty stupid: I don't see all those buttons, neither 
on my iPhone nor on my Macbook Pro.

I tried these instructions:
  https://www.macrumors.com/how-to/airplay-from-iphone-to-mac/

with the TV app on iPhone.

iPhone 12 with iOs 15.5
MacbookPro 2019 with macOS 12.4


Best regards, Gabriel




smime.p7s
Description: S/MIME cryptographic signature
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Mystery interference with AirPlay

2022-06-16 Thread Alex Zavatone via Cocoa-dev
What we’re saying, Gabe is that something you are doing in your app is causing 
this.  

The first step is to reproduce this on your own Mac.  Try playing a song from 
your iPhone or iPad to your computer and then launch your app.

Here’s a way to do it.

How to AirPlay Video From iOS to Mac
Make sure your Mac is powered on and you're signed into macOS using the same 
Apple account as your iOS device.
Start playing a video on your ‌iPhone‌ or ‌iPad‌.
Tap the AirPlay icon in the app's media interface.
Select your Mac from the list of ‌AirPlay‌ devices.

Some of my Macs support this and some don’t.  My 27” iMac does, my 2015 MBP 
doesn’t.  I think that’s what you mean by “my Mac doesn’t have Airplay.”

You’ll need to find a way to replicate it and then start turning off 
functionality and see when it stops.

Good luck.

Alex Zavatone



> On Jun 16, 2022, at 3:29 AM, Gabriel Zachmann via Cocoa-dev 
>  wrote:
> 
>> 
>> I can’t point you in the right direction but find out what is acquiring the 
>> audio device.  Start with your multimedia playback code.  What are you using 
>> to play the ‘video’?
> 
> I am not playing any videos - I am only showing images.
> 
> Best regards, Gabriel
> 
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/zav%40mac.com
> 
> This email sent to z...@mac.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Mystery interference with AirPlay

2022-06-16 Thread Gabriel Zachmann via Cocoa-dev
>
> I can’t point you in the right direction but find out what is acquiring the 
> audio device.  Start with your multimedia playback code.  What are you using 
> to play the ‘video’?

I am not playing any videos - I am only showing images.

Best regards, Gabriel



smime.p7s
Description: S/MIME cryptographic signature
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Mystery interference with AirPlay

2022-06-15 Thread Sandor Szatmari via Cocoa-dev


> 
> On Jun 15, 2022, at 12:56, Gabriel Zachmann via Cocoa-dev 
>  wrote:
> 
> I am using only:
> 
> o NSBeep()
> o NSSound
> 0 and link to these frameworks: CoreLocation, Foundation, Cocoa, ScreenSaver, 
> QuartzCore, ApplicationServices, AppKit, Photos, MediaLibrary, IOKit
> 
> Does any of those cause trouble?

If your app registers to play sound, which sounds like is happening without you 
intending it to, your app would ‘acquire’ the sound device and preempt other 
audio.  There are ways to play audio without preempting other audio sources, at 
least on the iPhone, Instagram will play sound with existing audio playback and 
not stop them. But that’s not the point just a curiosity.  Why would they do 
that?  Most use cases you want to preempt audio because listening to multiple 
sources of unrelated audio rarely makes sense… except for alerts and the like 
usually.

I can’t point you in the right direction but find out what is acquiring the 
audio device.  Start with your multimedia playback code.  What are you using to 
play the ‘video’?

Sandor

> 
> Best , G.
> 
> 
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/admin.szatmari.net%40gmail.com
> 
> This email sent to admin.szatmari@gmail.com
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Mystery interference with AirPlay

2022-06-15 Thread Gabriel Zachmann via Cocoa-dev
I am using only:

o NSBeep()
o NSSound
0 and link to these frameworks: CoreLocation, Foundation, Cocoa, ScreenSaver, 
QuartzCore, ApplicationServices, AppKit, Photos, MediaLibrary, IOKit

Does any of those cause trouble?

Best , G.




smime.p7s
Description: S/MIME cryptographic signature
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Mystery interference with AirPlay

2022-06-15 Thread Glenn L. Austin via Cocoa-dev
Do you use the AV framework to play videos?

If so, that sets up to play sound even if you don't actually play any sound.

--
Glenn L. Austin, Computer Wizard and Race Car Driver <><


> On Jun 15, 2022, at 9:33 AM, Gabriel Zachmann via Cocoa-dev 
>  wrote:
> 
> There is no sound whatsoever from my app.
> 
> Best, G.
> 
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/glenn%40austinsoft.com
> 
> This email sent to gl...@austinsoft.com



signature.asc
Description: Message signed with OpenPGP
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Mystery interference with AirPlay

2022-06-15 Thread Gabriel Zachmann via Cocoa-dev
There is no sound whatsoever from my app.

Best, G.



smime.p7s
Description: S/MIME cryptographic signature
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Mystery interference with AirPlay

2022-06-15 Thread Alex Zavatone via Cocoa-dev
My guess is that your app is playing sound which will stop any currently 
playnig airplay audio.

If that is the case, I’m not sure if there is an in app setting to not 
interrupt airplay audio.

Alex Zavatone



> On Jun 15, 2022, at 3:44 AM, Gabriel Zachmann via Cocoa-dev 
>  wrote:
> 
> I have a macOS app that plays a slideshow, and no music/sound whatsoever.
> 
> One user has reported that whenever he launches my app, his music played over 
> AirPlay stops.
> 
> Does anyone have an idea what might be causing this?
> I have no clue where to search or what to look for.
> Making matters worse, I don't have AirPlay.
> 
> Any and all ideas and hints will be highly appreciated.
> 
> Best, Gab.
> 
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/zav%40mac.com
> 
> This email sent to z...@mac.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Mystery interference with AirPlay

2022-06-15 Thread Keary Suska via Cocoa-dev
A more useful response may be that you may already have devices that support 
AirPlay. By any chance have you checked to see if any devices show under the 
AirPlay menu in the Music desktop app? Note that Mac computers can AirPlay to 
each other. Many smart TV’s support AirPlay, as do most modern Internet-enabled 
receivers. Also note that devices might need to be turned on to be found.

HTH,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"

> On Jun 15, 2022, at 7:26 AM, Steven Mills via Cocoa-dev 
>  wrote:
> 
> On Jun 15, 2022, at 03:44:41, Gabriel Zachmann via Cocoa-dev 
>  wrote:
> 
>> Making matters worse, I don't have AirPlay.
> 
> Everybody has Airplay. It's a feature, not a thing.
> 
> --
> Steve Mills
> Drummer, Mac geek
> 
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/cocoa-dev%40esoteritech.com
> 
> This email sent to cocoa-...@esoteritech.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Mystery interference with AirPlay

2022-06-15 Thread Steven Mills via Cocoa-dev
On Jun 15, 2022, at 03:44:41, Gabriel Zachmann via Cocoa-dev 
 wrote:

> Making matters worse, I don't have AirPlay.

Everybody has Airplay. It's a feature, not a thing.

--
Steve Mills
Drummer, Mac geek

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com