In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces "how to achieve WebRtc-based rtspstream playback". In daily operation, I believe many people have doubts about how to realize rtspstream playback based on WebRtc. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubts about "how to realize rtspstream playback based on WebRtc". Next, please follow the editor to study!
Let's take a look at the effect:
Using the video tag of H6, it can play full screen sound normally, etc.
Next, let's talk about deployment methods. There are two deployment methods. The first is source code compilation (which requires scientific access to the Internet), and the second is docker installation. I'll talk about both.
Because docker installation is relatively simple, let's start with the first one.
Dokcer deployment
Dokcer installs Baidu on its own. After installation, execute the following command:
Docker run\-p 8888:8888/tcp\-p 5000-5050 KMS_MIN_PORT=5000 5000-5050/udp\-e KMS_MAX_PORT=5050\ kurento/kurento-media-server:latest
The figure below is as follows
After installation, you can see from the log that websocket listens on port 8888, and the above-p 8888 8888 indicates that port 8888 of the host is mapped, so that the server starts up. Next, install the client, which is installed directly on the host, and download the code from this address: https://github.com/lulop-k/kurento-rtsp2webrtc. After downloading, follow his instructions (in the case of windwos, run cmd,mac as an administrator or ubuntu use sudo)
Npm install-g bower
Cd kurento-rtsp2webrtc
Bower install
Npm install-g http-server
Http-server
After the execution of the fifth order
Visit http://127.0.0.1:8080 at this time to see the effect of the first picture, then enter the rtsp address and click the start button to play it.
Source code compilation
Source code compilation is very demanding on the environment. According to the instructions on the official website, you can only use ubuntu16.04 or ubuntu18.04. Here my environment uses 18.04.
Confirm access to the Internet scientifically.
Install environment compilation tools
Sudo apt-get update & & sudo apt-get install--no-install-recommends-yes\
Build-essential\
Ca-certificates\
Cmake\
Git\
Gnupg
Add key
Apt-key adv-keyserver keyserver.ubuntu.com-recv-keys 5AFA7A83
Set environment variabl
Export DISTRO= "bionic"
Sudo tee "/ etc/apt/sources.list.d/kurento.list" > / dev/null
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.