slavavdovichenko / MediaLibDemos3x

MediaLibiOS & Demos 3.x
201 stars 48 forks source link

Low Audio with Real Device #68

Closed ghost closed 8 years ago

ghost commented 8 years ago

hello again, thank you so much for your help that fix my last issue..

right now i use your latest lib. I found some new issue when i use real device, then volume is really low, that anything i can set programmatically for the volume?

sorry for bad english

thanks

ghost commented 8 years ago

I am using the MPMediaDecoder

slavavdovichenko commented 8 years ago

Hi,

Use
[MPMediaData routeAudioToSpeaker]; for example, -(void)stateChanged:(id)sender state:(MPMediaStreamState)state description:(NSString *)description {

switch (state) {
     .......
    case STREAM_PLAYING: {
          ....
        [MPMediaData routeAudioToSpeaker];
            break;
        }
         ....

}

ghost commented 8 years ago

work like a charm :D

thank you so much

jageshaamit commented 7 years ago

Hello slavavdovichenko, I am uncomment this line [MPMediaData routeAudioToSpeaker]; but still not able to play to speaker in ipad ?