anotherim/src/main/java/eu/siacs/conversations/services/MediaPlayer.java
Daniel Gultsch 06f37b0d2b AudioPlayer: disable screen and switch to earpiece when holding phone to ear
Based of initial worked by @harshitbansal05
2018-09-01 18:23:07 +02:00

17 lines
364 B
Java

package eu.siacs.conversations.services;
public class MediaPlayer extends android.media.MediaPlayer {
private int streamType;
@Override
public void setAudioStreamType(int streamType) {
this.streamType = streamType;
super.setAudioStreamType(streamType);
}
public int getAudioStreamType() {
return streamType;
}
}