diff --git a/pages/p2p/p2pPlayer.vue b/pages/p2p/p2pPlayer.vue index 03df80b..b38b8f2 100644 --- a/pages/p2p/p2pPlayer.vue +++ b/pages/p2p/p2pPlayer.vue @@ -280,7 +280,7 @@ runSendService( `${deviceInfo.value.productId}/${deviceInfo.value.deviceName}`, 'channel=0', - true + false ) handlePlaySuccess() } else { @@ -491,7 +491,7 @@ plus.io.resolveLocalFileSystemURL(filePath, entry => { entry.file( file => { - console.log(11111, file) + console.log('文件内容', file) if (file.size === 0) return const fileReader = new plus.io.FileReader() diff --git a/uni_modules/xhj-tencent-xp2p/utssdk/app-android/index.uts b/uni_modules/xhj-tencent-xp2p/utssdk/app-android/index.uts index 5cf5839..f37c1e1 100644 --- a/uni_modules/xhj-tencent-xp2p/utssdk/app-android/index.uts +++ b/uni_modules/xhj-tencent-xp2p/utssdk/app-android/index.uts @@ -83,8 +83,8 @@ export const runSendService = async function ( crypto: boolean ): Promise { try { - await XP2P.runSendService(id, cmd, crypto) - console.log('开始发送服务') + const result = await XP2P.runSendService(id, cmd, crypto) + console.log('开始发送服务', result) return { code: 0, data: {}, @@ -101,8 +101,8 @@ export const runSendService = async function ( export const stopSendService = async function (id: string): Promise { try { - await XP2P.stopSendService(id, null) - console.log('停止发送服务') + const result = await XP2P.stopSendService(id, null) + console.log('停止发送服务', result) return { code: 0, data: {},