|
@@ -65,9 +65,9 @@ export const cancelEvaluating = () => {
|
|
|
};
|
|
|
|
|
|
/** 评测开始录音 */
|
|
|
-export const api_startRecording = (): Promise<IPostMessage | undefined> => {
|
|
|
+export const api_startRecording = (content: any): Promise<IPostMessage | undefined> => {
|
|
|
if (!storeData.isApp) return Promise.resolve({} as any);
|
|
|
- return promisefiyPostMessage({ api: "startRecording" });
|
|
|
+ return promisefiyPostMessage({ api: "startRecording", content: content });
|
|
|
};
|
|
|
/** 评测结束录音 */
|
|
|
export const api_stopRecording = (): Promise<IPostMessage | undefined> => {
|
|
@@ -310,4 +310,15 @@ export const hideComplexButton = (callback: CallBack, listen?: boolean) => {
|
|
|
} else {
|
|
|
removeListenerMessage("hideComplexButton", callback);
|
|
|
}
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
+/** 评测模式是否开启/关闭伴奏 */
|
|
|
+export const api_onoffAccompaniment = () => {
|
|
|
+ postMessage({
|
|
|
+ api: "onoffAccompaniment",
|
|
|
+ content: {
|
|
|
+ state: 0,
|
|
|
+ },
|
|
|
+ });
|
|
|
};
|