1 Star 0 Fork 0

PanoVideo / BasicAppServer

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README
MIT

BasicAppServer

Basic App Server for BasicVideoCall to get Pano Token

这是一个简单的App Server 示例代码(Go/Java),可以和BasicVideoCall 搭配使用,完成基本的音视频功能

第一步

将自己的appSecret 填入到该应用的 APP_SECRET 变量中,启动该应用。

当需要手动获取token的时候,你可以像下面一样发出HTTP请求,参数中的appId 需要填入自己的appId。

curl --location --request POST 'http://localhost:8080/app/login' \
--header 'Content-Type: application/json' \
--data-raw '{
    "appId": "xxx", 
    "userId": "20190822",
    "channelId": "20190822",
    "duration": 800,
    "privileges": 0,
    "channelDuration": 12
}'

第二步

将相关参数如appId/channelId等参数填入BasicVideoCall,然后请求该App Server,自动获取token。

第三步

通过token完成和Pano Cloud的音视频交互

Tips

1.请先到https://console.pano.video 注册登录 2.在应用管理中创建自己的应用 3.将appId和appSecret 放到该示例代码中


完整的文档,请访问拍乐云 文档中心

MIT License Copyright (c) 2020 PanoVideo Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

No description expand collapse
Java and 2 more languages
MIT
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
1
https://gitee.com/pano-video/basic-app-server.git
git@gitee.com:pano-video/basic-app-server.git
pano-video
basic-app-server
BasicAppServer
main

Search