mirror of
https://gitee.com/energye/energy.git
synced 2024-12-02 03:37:48 +08:00
A: demo webrtc
This commit is contained in:
parent
47a28250a6
commit
267581efa0
18
example/dev-test/webrtc/webrtc.go
Normal file
18
example/dev-test/webrtc/webrtc.go
Normal file
@ -0,0 +1,18 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/energye/energy/v2/cef"
|
||||
)
|
||||
|
||||
func main() {
|
||||
//全局初始化 每个应用都必须调用的
|
||||
cef.GlobalInit(nil, nil)
|
||||
//创建应用
|
||||
cefApp := cef.NewApplication()
|
||||
//指定一个URL地址,或本地html文件目录
|
||||
cef.BrowserWindow.Config.Url = "http://localhost:8083/"
|
||||
//运行应用
|
||||
cef.Run(cefApp)
|
||||
|
||||
// https://github.com/pion/webrtc
|
||||
}
|
Loading…
Reference in New Issue
Block a user