1 Star 0 Fork 0

HehuauPing/html5_rtsp_player

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
test.js 947 Bytes
一键复制 编辑 原始数据 按行查看 历史
import {LogLevel, getTagged, setDefaultLogLevel} from './node_modules/bp_logger/logger';
import * as streamedian from './src/player.js';
import WebsocketTransport from './src/transport/websocket.js';
import RTSPClient from './src/client/rtsp/client.js';
import HLSClient from './src/client/hls/client.js';
import {isSafari} from "./src/core/util/browser.js";
setDefaultLogLevel(LogLevel.Debug);
getTagged("transport:ws").setLevel(LogLevel.Error);
getTagged("client:rtsp").setLevel(LogLevel.Error);
let wsTransport = {
constructor: WebsocketTransport,
options: {
socket: "wss://specforge.com/ws/"
}
};
let p = new streamedian.WSPlayer('test_video', {
// url: `${STREAM_UNIX}${STREAM_URL}`,
// type: wsp.StreamType.HLS,
modules: [
{
client: RTSPClient,
transport: wsTransport
},
{
client: HLSClient,
transport: wsTransport
}
]
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/luckilyhhp/html5_rtsp_player.git
[email protected]:luckilyhhp/html5_rtsp_player.git
luckilyhhp
html5_rtsp_player
html5_rtsp_player
master

搜索帮助