AgoraIO/Agora-Miniapp-Tutorial

v1.1.3版本客户端初始化失败

tianmaogen opened this issue · 4 comments

在微信上配置了服务器域名
image

错误信息如下:

  • Inner error, request timeout
["Sat Nov 10 2018 14:27:27 GMT+0800 (**标准时间) [DEBUG]: ", "From choose server", {
	"data": {
		"reason": "Inner error, request timeout",
		"code": 500
	},
	"statusCode": 200,
	"header": {
		"Server": "nginx/1.4.6 (Ubuntu)",
		"Access-Control-Allow-Origin": "*",
		"Connection": "keep-alive",
		"Content-Type": "application/json; charset=utf-8",
		"Date": "Sat, 10 Nov 2018 06:27:27 GMT",
		"X-Powered-By": "Express",
		"Content-Length": "52",
		"Access-Control-Allow-Headers": "X-Requested-With,content-type",
		"Access-Control-Allow-Methods": "GET, POST, OPTIONS, PUT, PATCH, DELETE",
		"Etag": "W/\"34-lZwxwkNgNxU5H/3GS68MkyBsamQ\""
	},
	"errMsg": "request:ok"
}]
  • choose server fail
["Sat Nov 10 2018 14:27:27 GMT+0800 (**标准时间) [DEBUG]: ", "Report succcess: ", {
	"uri": 8001,
	"miniappSession": null,
	"miniappJoinChooseServer": {
		"header": {
			"sid": "9F2A3E31C7E8454D8B1FAFD0EF6BA859",
			"cname": "1000",
			"cid": null,
			"lts": 1541831247196,
			"ip": null,
			"uid": 385882,
			"success": false,
			"elapse": 10594,
			"peer": null
		},
		"csurl": "https://miniapp-2.agoraio.cn/appcenter/1-1-1/getWorkerManager/",
		"ec": "{\"code\":901,\"reason\":\"choose server fail\"}",
		"details": "{\"seq\":3}"
	},
	"miniappConnectWebSocket": null,
	"miniappJoin": null,
	"miniappPublish": null,
	"miniappUnpublish": null,
	"miniappSubscribe": null,
	"miniappUnsubscribe": null,
	"miniappLeave": null,
	"miniappServerEvent": null,
	"miniappPusherState": null,
	"miniappPlayerState": null
}]

@tianmaogen 你好,目前使用声网的小程序业务appid需要通过后台开通后才可以正常使用,你可以联系自己产品的客服支持人员开通appid小程序权限。

@plutoless

您好,后台开通appid小程序权限之后,web端按照demo项目配置,我试了以下3种情况:

  1. web之间的通信是正常的;
  2. 小程序与web之间通信在小程序端仅仅有音频信息,没有视频信息,同时web端视频音频信息正常;
  3. 小程序与小程序之间视频和音频是通的

请问是不是目前不支持小程序和web端的视频通信?或者应该开通更高的权限吗?

谢谢!

@tianmaogen 您好,如果小程序需要和web互通,需要确保web在createClient时使用h264编码

@plutoless
十分感谢!