移除KTV相关代码
This commit is contained in:
@@ -98,7 +98,6 @@ dependencies {
|
||||
|
||||
api project(':nim_uikit')
|
||||
api project(':library')
|
||||
api project(':agora-ktv-kit-release')
|
||||
api project(':trtc_release')
|
||||
|
||||
}
|
||||
|
@@ -136,13 +136,6 @@ public class AudioEngineManager {
|
||||
return this.iAudioEngine.isMute();
|
||||
}
|
||||
|
||||
public void delayStartPlay(long pushUid) {
|
||||
// 针对使用 无界聊天室 SDK + zego SDK 的情况下,
|
||||
// zego 进房比无界聊天室快的时候,会导致无法播放麦上用户的流
|
||||
// 所以,在 zego 引擎那边已经预先缓存了流的 ID,这里重新播放已经缓存的流
|
||||
// 就是为了解决两个 SDK 不一致导致的进房后听不到声音的问题
|
||||
this.iAudioEngine.delayStartPlay(pushUid);
|
||||
}
|
||||
|
||||
/**
|
||||
* 切换耳返
|
||||
@@ -173,6 +166,12 @@ public class AudioEngineManager {
|
||||
}
|
||||
}
|
||||
|
||||
public void setRemoteMute(long uid, boolean mute) {
|
||||
if (this.iAudioEngine == null) return;
|
||||
this.iAudioEngine.setRemoteMute(uid, mute);
|
||||
}
|
||||
|
||||
|
||||
//音乐播放相关---------------begin--------------------------
|
||||
public void adjustAudioMixingVolume(int volume) {
|
||||
if (this.iAudioEngine == null) return;
|
||||
@@ -228,123 +227,5 @@ public class AudioEngineManager {
|
||||
//音乐播放相关---------------end--------------------------
|
||||
|
||||
|
||||
public void setRemoteMute(long uid, boolean mute) {
|
||||
if (this.iAudioEngine == null) return;
|
||||
this.iAudioEngine.setRemoteMute(uid, mute);
|
||||
}
|
||||
|
||||
public void setChatRoomOnlineStatus(boolean status) {
|
||||
if (this.iAudioEngine == null) return;
|
||||
this.iAudioEngine.setChatRoomOnlineStatus(status);
|
||||
}
|
||||
|
||||
//--------------------------asmr--------------------------
|
||||
|
||||
public void setASMRMode(boolean enable) {
|
||||
if (this.iAudioEngine == null) return;
|
||||
|
||||
this.iAudioEngine.setASMRMode(enable);
|
||||
}
|
||||
|
||||
//ktv相关---------------begin--------------------------
|
||||
private boolean isPlaying;
|
||||
private boolean isAccompany = true;
|
||||
private boolean isPush;
|
||||
private boolean isOpenKtv;
|
||||
private boolean isLive;
|
||||
private int remoteUid;
|
||||
private double accompanyVoice = 0.5;
|
||||
private double personVoice = 0.5;
|
||||
|
||||
public synchronized void openKtvModel() {
|
||||
|
||||
}
|
||||
|
||||
public synchronized void closeKtvModel() {
|
||||
|
||||
}
|
||||
|
||||
public void stopPush() {
|
||||
|
||||
}
|
||||
|
||||
public synchronized void startMv(String url) {
|
||||
|
||||
}
|
||||
|
||||
public synchronized void setupRemoteVideo(VideoCanvas canvas, int remoteUid) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
public void playOrPause() {
|
||||
isPlaying = !isPlaying;
|
||||
}
|
||||
|
||||
public void changeAudioStream() {
|
||||
isAccompany = !isAccompany;
|
||||
}
|
||||
|
||||
public void setAccompanyVoice(double progress) {
|
||||
if (progress < 0 || progress > 1) {
|
||||
return;
|
||||
}
|
||||
accompanyVoice = progress;
|
||||
}
|
||||
|
||||
public void setPersonVoice(double progress) {
|
||||
if (progress < 0 || progress > 1) {
|
||||
return;
|
||||
}
|
||||
personVoice = progress;
|
||||
}
|
||||
|
||||
public boolean isPlaying() {
|
||||
return isPlaying;
|
||||
}
|
||||
|
||||
public boolean isPush() {
|
||||
return isPush;
|
||||
}
|
||||
|
||||
public boolean isAccompany() {
|
||||
return isAccompany;
|
||||
}
|
||||
|
||||
public boolean isOpenKtv() {
|
||||
return isOpenKtv;
|
||||
}
|
||||
|
||||
public boolean isLive() {
|
||||
return isLive;
|
||||
}
|
||||
|
||||
public void setLive(boolean live) {
|
||||
isLive = live;
|
||||
}
|
||||
|
||||
public int getRemoteUid() {
|
||||
return remoteUid;
|
||||
}
|
||||
|
||||
public double getAccompanyVoice() {
|
||||
return accompanyVoice;
|
||||
}
|
||||
|
||||
public double getPersonVoice() {
|
||||
return personVoice;
|
||||
}
|
||||
|
||||
|
||||
public double getPlayPos() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public int getPlayDuration() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
//ktv相关---------------end--------------------------
|
||||
|
||||
|
||||
}
|
||||
|
@@ -71,6 +71,4 @@ public interface IAudioEngine {
|
||||
|
||||
void setASMRMode(boolean enable);
|
||||
|
||||
default void delayStartPlay(long pushUid) {
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user