I write application for Mac OS. So it will be audio player. Now i try to make volume slider from AVPLayer but i have some problem. So i tried this code:
in h file:
IBOutlet NSLider *volumeSlider;
IBOutlet NSButton *button;
AVPlayer *myplayer;
-(IBAction)changeslider;
in m file:
[myplayer.volume=volumeSlider.value]
So i have error Assigning to 'float' from incompatible type 'id'. So what i doing wrong? I know hot to make volume slider in IOS from MPMVolumeView but Mac OS used ONLY AVPlayer or AVAudioPlayer. Thanks for answers.
So i have some idea with + or - volume from buttons.
NSString *change
change = @"%@", +1;
iPodplayer.volume=change;
But i also have error with float...