|
@@ -547,6 +547,14 @@ export default defineComponent({
|
|
if (res?.data?.api === "setPlayState") {
|
|
if (res?.data?.api === "setPlayState") {
|
|
togglePlay("paused", true);
|
|
togglePlay("paused", true);
|
|
}
|
|
}
|
|
|
|
+ if(res?.data?.api === 'togglePlayState') {
|
|
|
|
+ if(state.playState === "play") {
|
|
|
|
+ togglePlay("paused");
|
|
|
|
+ }
|
|
|
|
+ if(state.playState === 'paused') {
|
|
|
|
+ togglePlay("play");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
// 上课页面,按钮方向
|
|
// 上课页面,按钮方向
|
|
if (res?.data?.api === "imagePos") {
|
|
if (res?.data?.api === "imagePos") {
|
|
if (res?.data.data) {
|
|
if (res?.data.data) {
|