Skip to main content
Participant
March 14, 2012
Question

changing iOS device volume via adobe native extension

  • March 14, 2012
  • 6 replies
  • 1345 views

hello

I have created an ANE to control the ios device volume. When I exclude the following code, my ANE functions well, but when I include the code the and reproduce the ANE, I cannot compile the IPA.

UIWindow *win = [UIApplication sharedApplication].keyWindow;

MPVolumeView *volumeView = [[MPVolumeView alloc] initWithFrame: CGRectZero];

[win addSubview: volumeView];

volumeView.showsRouteButton = NO;

How could I make this code work with my ANE?

Thanks

This topic has been closed for replies.

6 replies

Participating Frequently
February 5, 2013

An extension to controll the iOS-Devices - Volume is allready there:

https://github.com/nweber/SystemVolumeNativeExtension

Participating Frequently
February 5, 2013

Thank you for pointing that out; I had seen it before posting.  The key item I need is to have an ANE that controls volume but does NOT have the popup showing when setVolume is called.  To do this, you need an ANE that uses iOS's MPVolumeView (as the original poster on this thread had asked about) and hence why I added to this thread.  Are you familiar with any ANEs that specifically use MPVolumeView so that the popup isn't shown?

Participating Frequently
February 5, 2013

This extension uses MPVolumeView but only for getting the current volume.

But it won't be that difficult to rewrite the setter found in this class:

/IOSVolumeLib/IOSVolumeLib/IOSVolume.m -> Function "setVolume"

dwabyick1
Adobe Employee
Adobe Employee
March 27, 2012

Very inerested if you come up wiht an answer to this.

Participant
March 28, 2012

Hello dwabyick1,

Unfortunately I could not found any solution and soon decided to develop my project with xcode. Yeah, I dont like adobe's native extension things unless they do develop a fine tool with friendly and simple UI.

Dont waste your time with this step by step and complex stupidness.

Participating Frequently
February 5, 2013

It appears that supertosbaa developed in xcode. That isn't an option for me, so I would still like to get a native extension going using MPVolumeView.  dwabyick1 ... did you ever pursue this?  Thx Jim