Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法连接到远程服务器 #164

Open
3030811865 opened this issue Sep 27, 2020 · 0 comments
Open

无法连接到远程服务器 #164

3030811865 opened this issue Sep 27, 2020 · 0 comments

Comments

@3030811865
Copy link

学生党,大佬多指导。win系统下,安装完成官方提供的可执行文件后,稍微修改了一下index.html文件的内容。运行结果会报出transport:ws] [ctrl] close. code: 3000 Failed to connect to remote。

以下为,index.html javascript代码

<script src="free.player.1.8.4.js"></script> <script> if (window.Streamedian) { var errHandler = function(err){ console.log('err', err.message); }; var infHandler = function(inf) { console.log('info', inf) }; var playerOptions = { socket: "ws://localhost:8088/ws/", redirectNativeMediaErrors : true, bufferDuration: 30, errorHandler: errHandler, infoHandler: infHandler }; var html5Player = document.getElementById("test_video"); html5Player.src = "rtsp://184.72.239.149/vod/mp4://BigBuckBunny_175k.mov"; var player = Streamedian.player('test_video', playerOptions); window.onbeforeunload = function(){ player && player.destroy(); player = null; Request = null; } } </script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant