Independent station live broadcast system based on cloud service and construction method
Through an independent live broadcast system based on cloud services, Alibaba Cloud live broadcast service and CDN acceleration technology, combined with OBS video acquisition and encoding, WebSocket real-time communication and Aliplayer player, the shortcomings of existing live broadcast technologies in latency, stability, scalability, cost and customization are solved, and a low-latency, high-stability, and scalable live broadcast experience is achieved.
Patent Information
- Application Number
- CN202510201539.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-24
- Publication Date
- 2025-06-06
AI Technical Summary
It is difficult for existing live broadcast technology to ensure low latency and stable live broadcast experience during peak hours, especially when cross-regional access, delay problems are prominent; at the same time, traditional architectures have poor scalability, high cost, and difficult to customize, making it difficult to meet the needs of small and medium-sized live broadcast platforms.
Adopt an independent live broadcast system based on cloud services, using Alibaba Cloud live broadcast service and CDN acceleration technology, combining OBS video acquisition and encoding, WebSocket real-time communication and Aliplayer player to build a low-latency, high-stability, and scalable live broadcast system.
By optimizing network transmission paths, reducing data transmission delays, ensuring the real-timeness of live broadcast content, supporting a large number of users to watch simultaneously, ensuring the stable operation of the live broadcast system, reducing operating costs, and realizing customized needs.
Smart Images

Figure CN120111261A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of live broadcast technology, and in particular relates to an independent station live broadcast system based on cloud services and a construction method. Background Art
[0002] Currently, live broadcast technology generally uses streaming media servers as the core, such as using open source software such as OBS (OpenBroadcaster Software) for video capture and encoding, and pushing video streams to streaming media servers. However, this architecture is often limited by the server's processing power and network bandwidth when dealing with large-scale concurrent access, resulting in increased live broadcast delays, reduced image quality, and even service interruptions. In addition, single server deployment also faces problems such as slow regional access speeds and poor fault recovery capabilities.
[0003] In order to improve the fluency and coverage of live broadcasts, many live broadcast platforms have begun to introduce CDN (Content Delivery Network) acceleration technology, which deploys servers at multiple nodes around the world and caches video content to the node closest to the user, thereby shortening the transmission distance, reducing latency, and increasing access speed. However, traditional CDN services are often provided by third parties and are not highly coupled with the back-end systems of live broadcast platforms, making it difficult to achieve seamless docking and customized needs.
[0004] Technical problems of existing technologies: 1. High latency and instability: Traditional live broadcast architecture cannot guarantee low latency and stable live broadcast experience during peak hours, especially when accessing across regions, where latency is particularly prominent. 2. High cost: Building your own server and CDN network requires huge initial investment and ongoing operation and maintenance costs, which is a heavy burden for small and medium-sized live streaming platforms; 3. Poor scalability: As the user scale grows, traditional architectures are difficult to quickly expand to meet higher concurrency requirements; 4. Difficulty in customization: Third-party CDN services usually provide standardized solutions, which are difficult to meet the special needs of live streaming platforms in terms of function customization, data analysis, etc. Summary of the invention
[0005] The purpose of the present invention is to provide a cloud service-based independent station live broadcast system and construction method, aiming to solve the above-mentioned problems of the prior art.
[0006] The present invention is implemented as follows: an independent station live broadcast system based on cloud service, comprising: The host side is used for the host to use OBS software to record and encode videos, and push the video stream to Alibaba Cloud Live Broadcast Service through the RTMP protocol; The backend service module is used to enable Alibaba Cloud Live Streaming Service to receive and process video streams, perform necessary transcoding and storage operations, and accelerate the global distribution of video streams through the CDN network; Storage modules, used for caching or assisting data processing; Instant messaging module, used to allow the WebSocket server to establish and maintain real-time communication connections between the anchor and the audience; The front-end playback module is used to allow viewers to access the front-end page through a browser. The page embeds the Aliplayer player for playing live video.
[0007] A further technical solution of the present invention is: the back-end service module is also responsible for the establishment and management of the WebSocket connection to achieve real-time interaction between the anchor and the audience.
[0008] A further technical solution of the present invention is that the front-end page is also responsible for receiving and displaying the real-time interactive information transmitted by the WebSocket server.
[0009] A further technical solution of the present invention is: the anchor terminal, the back-end service module, the storage module, the instant communication module and the front-end playback module constitute a website front-end live broadcast platform, and the website front-end live broadcast platform includes: Real-time transmission: creators transmit audio and video content in real time over the Internet, and viewers can watch it instantly; Interactive features, where viewers can interact with creators through bullet comments, likes, etc., ask questions or provide feedback; Like: viewers can like their favorite videos and share their interests and hobbies; Private messaging and social sharing: Platforms usually provide private messaging functions, allowing viewers to communicate directly with creators, and viewers can share text introductions of live broadcast content to other social media platforms to expand influence; Online teaching, where educators and professionals use the platform to impart knowledge and skills, and provide online courses and lectures to learners; Q&A, viewers can ask questions during the live broadcast and get answers from experts.
[0010] A further technical solution of the present invention is: the anchor terminal, the back-end service module, the storage module, the instant communication module and the front-end playback module constitute an independent station backend, and the independent station backend includes: Management function, product management, allows products to add, edit and delete product information, product information includes: product name, description, price, inventory quantity display product; Multi-language switching, supporting six languages: Chinese, English, German, Japanese, French and Russian.
[0011] A further technical solution of the present invention is: the anchor terminal, the back-end service module, the storage module, the instant communication module and the front-end playback module constitute an independent station front end, and the independent station front end includes: Independent domain name, customized on demand; Server, stable cloud server, 2 cores and 4G or above; Navigation function, product display, Amazon purchase, technical support, shopping cart, user login function; Live broadcast area display, can display live broadcast, video stream is stable and smooth; AI customer service chat, with an AI customer communication window reserved on the homepage; Product display, introduction and display of basic product information, product main picture, product information and parameters, price, and shopping cart.
[0012] Another object of the present invention is to provide a method for constructing an independent station live broadcast system based on cloud services, comprising the following steps: Demand analysis and design: determine system requirements, design system architecture, and clarify the components and interaction methods of the front-end, back-end, storage, and instant messaging; Prepare the environment, install OBS software, configure the anchor's customized live broadcast destination server, enable the live broadcast service in the Alibaba Cloud console, create a live broadcast channel, configure CDN acceleration, build a WebSocket server, prepare the front-end page, and integrate the Aliplayer player; Backend development, integration of Alibaba Cloud live streaming service, development of WebSocket server, integration of ORM framework, and implementation of JWT authentication mechanism; Front-end development, using Vue framework to build front-end pages, integrating Sass for CSS style writing, using axios library to process HTTP requests, interacting with back-end service modules, integrating Aliplayer player, configuring the playback source to the streaming address provided by Alibaba Cloud Live, receiving and displaying real-time interactive information; Testing and optimization: conduct comprehensive system testing, adjust OBS streaming parameters, CDN configuration, and WebSocket server performance based on test results, and optimize live streaming quality and user experience; Deployment and operation and maintenance: deploy back-end services, WebSocket servers and front-end codes, monitor the status of live broadcast services, handle possible faults and exceptions in a timely manner, regularly maintain and upgrade the system to ensure stable operation and security of the system.
[0013] The beneficial effects of the present invention are: by optimizing the network transmission path, reducing data transmission delay, ensuring the real-time nature of live broadcast content, supporting a large number of users to watch at the same time, and ensuring the stable operation of the live broadcast system. A variety of security protection measures are provided to ensure the safe transmission of live broadcast content. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 It is a connection relationship diagram between the modules in the system of the present invention. DETAILED DESCRIPTION
[0015] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments.
[0016] In view of the existing technical problems, the present invention aims to propose a cloud service-based independent station live broadcast system and construction method, adopting the live broadcast technology solution of Alibaba Cloud Live Broadcast Service + CDN acceleration, integrating OBS video acquisition and encoding, the powerful back-end processing capabilities of Alibaba Cloud Live Broadcast Service, and the front-end optimization of Aliplayer, to achieve a low-latency, high-stability, and scalable live broadcast experience. Specific goals include: Reduce live broadcast delay: Use the global acceleration network of Alibaba Cloud Live Broadcast Service to optimize the transmission path of video streams, reduce transmission delay, and improve the audience's viewing experience; Improve system stability: Ensure the continuous and stable operation of the live broadcast service through load balancing and automatic fault switching mechanisms of Alibaba Cloud Live Broadcast Service; Reduce costs: Use the cloud services and CDN acceleration services provided by Alibaba Cloud to reduce the cost of self-built servers. At the same time, flexibly adjust resource allocation according to actual needs to reduce operating costs. Enhanced scalability: Alibaba Cloud Live Streaming Service supports elastic expansion, which can easily cope with the rapid growth of user scale and ensure the continuous high availability of Live Streaming Service. Achieve customized needs: Through the API interface provided by Alibaba Cloud, deep integration with the live broadcast platform backend system is achieved to meet the platform's special needs for function customization, data analysis, etc.
[0017] The system uses OBS (Open Broadcaster Software) as the anchor-side tool, integrates Alibaba Cloud live broadcast service and CDN acceleration technology on the back end, implements real-time interactive functions through WebSocket, and uses Aliplayer for video display on the front end.
[0018] The system works in the following ways: On the host side, the host uses OBS software to record and encode videos, and pushes the video stream to Alibaba Cloud Live Streaming Service through the RTMP protocol.
[0019] Backend service module, Alibaba Cloud Live Streaming Service receives and processes video streams, performs necessary operations such as transcoding and storage, and accelerates the global distribution of video streams through the CDN network. At the same time, the backend is also responsible for the establishment and management of WebSocket connections to achieve real-time interaction between anchors and viewers.
[0020] Storage module: Although the present invention mainly focuses on the live broadcast process, it mentions that storage technologies such as Redis (Remote DictionaryServer) may be used for caching or auxiliary data processing. In actual applications, live video streams may also be stored in cloud storage services for subsequent playback or analysis.
[0021] Instant messaging module: The WebSocket server is responsible for establishing and maintaining real-time communication connections between the anchor and the audience, and delivering interactive information such as chat messages and bullet comments.
[0022] Front-end playback module: The audience accesses the front-end page through the browser, and the Aliplayer player is embedded in the page to play the live video. At the same time, the front-end page is also responsible for receiving and displaying the real-time interactive information transmitted by the WebSocket server.
[0023] The anchor terminal, backend service module, storage module, instant messaging module and frontend playback module constitute the website frontend live broadcast platform, independent station backend and independent station frontend. The website frontend live broadcast platform includes the following functions: Real-time transmission: creators can transmit audio and video content in real time over the Internet, and viewers can watch it instantly.
[0024] Interactive function, viewers can interact with creators through barrage, comments, likes, etc., ask questions or provide feedback.
[0025] Like: Viewers can like their favorite videos and share their interests and hobbies.
[0026] Private messaging and social sharing: Platforms usually provide private messaging functions, allowing viewers to communicate directly with creators. At the same time, viewers can share text introductions of live broadcast content to other social media platforms to expand their influence.
[0027] Online teaching, educators and professionals can use the platform to impart knowledge and skills and provide online courses and lectures to learners.
[0028] Q&A and Q&A allow viewers to ask questions during the live broadcast and get answers from experts, promoting knowledge sharing.
[0029] The independent station backend includes the following functions: Management function, product management, allows products to add, edit and delete product information, product information includes: product name, description, price, inventory quantity to display products.
[0030] Multi-language switching, the front desk can support six languages: Chinese, English, German, Japanese, French and Russian.
[0031] The independent station front end includes the following functions: Independent domain name, customized on demand; Server, stable cloud server, 2 cores 4G or above, free 1 year technical support service.
[0032] Navigation function, product display, Amazon purchase, technical support, shopping cart, user login and other functions. Amazon purchase can jump to the Amazon buyer platform.
[0033] The live broadcast area can display live broadcasts, and the video stream is stable and smooth.
[0034] AI customer service chat, an AI customer communication window is reserved on the homepage.
[0035] Product display, introduction and display of basic product information, product main picture, product information and parameters, price, and shopping cart.
[0036] The construction method of the independent station live broadcast system based on cloud service is as follows: Requirements analysis and design: Determine system requirements, including live broadcast function, interactive function, security requirements, etc. Design system architecture, clarify the components and interaction methods of front-end, back-end, storage and instant communication.
[0037] Environment preparation: Install OBS software and configure the anchor's customized live broadcast destination server. Enable live broadcast service in Alibaba Cloud console, create live broadcast channel, and configure CDN acceleration. Build WebSocket server. Prepare front-end page and integrate Aliplayer.
[0038] Backend development: Implement the integration of Alibaba Cloud live streaming services, including obtaining streaming addresses, receiving and processing video streams, etc. Develop WebSocket servers to implement connection management, message sending and receiving, etc. Integrate ORM frameworks such as Mybatis Plus for database operations (such as user authentication, message storage, etc.). Implement JWT (JSON Web Tokens) authentication mechanism to ensure the security of user access.
[0039] Front-end development: Use the Vue framework to build front-end pages, including the live broadcast area, interactive message area, etc. Integrate Sass (Syntactically Awesome Stylesheets) for CSS style writing to improve the maintainability and reusability of the code. Use the axios library to process HTTP requests and interact with back-end services. Integrate the Aliplayer player and configure the playback source to the streaming address provided by Alibaba Cloud Live. Implement the WebSocket client to receive and display real-time interactive information.
[0040] Testing and optimization: Conduct comprehensive system testing, including functional testing, performance testing, and stress testing. Adjust OBS streaming parameters, CDN configuration, and WebSocket server performance based on test results to optimize live streaming quality and user experience.
[0041] Deployment and operation and maintenance: Deploy backend services, WebSocket servers, and frontend codes to production. Monitor the status of live broadcast services and handle possible failures and exceptions in a timely manner. Maintain and upgrade the system regularly to ensure stable operation and security of the system.
[0042] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. An independent station live broadcast system based on cloud service, characterized in that: include: The host side is used for the host to use OBS software to record and encode videos, and push the video stream to Alibaba Cloud Live Broadcast Service through the RTMP protocol; The backend service module is used to enable Alibaba Cloud Live Streaming Service to receive and process video streams, perform necessary transcoding and storage operations, and accelerate the global distribution of video streams through the CDN network; Storage modules, used for caching or assisting data processing; Instant messaging module, used to allow the WebSocket server to establish and maintain real-time communication connections between the anchor and the audience; The front-end playback module is used to allow viewers to access the front-end page through a browser. The page embeds the Aliplayer player for playing live video.
2. According to the cloud service-based independent station live broadcast system of claim 1, it is characterized in that: The backend service module is also responsible for establishing and managing WebSocket connections to enable real-time interaction between anchors and viewers.
3. According to the cloud service-based independent station live broadcast system of claim 1, it is characterized in that: The front-end page is also responsible for receiving and displaying real-time interactive information transmitted by the WebSocket server.
4. According to the cloud service-based independent station live broadcast system of claim 1, it is characterized in that: The anchor terminal, back-end service module, storage module, instant communication module and front-end playback module constitute the website front-end live broadcast platform, which includes: Real-time transmission: creators transmit audio and video content in real time over the Internet, and viewers can watch it instantly; Interactive features, where viewers can interact with creators through bullet comments, likes, etc., ask questions or provide feedback; Like: viewers can like their favorite videos and share their interests and hobbies; Private messaging and social sharing: Platforms usually provide private messaging functions, allowing viewers to communicate directly with creators, and viewers can share text introductions of live broadcast content to other social media platforms to expand influence; Online teaching, where educators and professionals use the platform to impart knowledge and skills, and provide online courses and lectures to learners; Q&A, viewers can ask questions during the live broadcast and get answers from experts.
5. According to the cloud service-based independent station live broadcast system of claim 1, it is characterized in that: The anchor terminal, back-end service module, storage module, instant communication module and front-end playback module constitute the independent station backend, which includes: Management function, product management, allows products to add, edit and delete product information, product information includes: product name, description, price, inventory quantity display product; Multi-language switching, supporting six languages: Chinese, English, German, Japanese, French and Russian.
6. The independent station live broadcast system based on cloud service according to claim 1 is characterized in that: The anchor terminal, back-end service module, storage module, instant communication module and front-end playback module constitute the independent station front end, which includes: Independent domain name, customized on demand; Server, stable cloud server, 2 cores and 4G or above; Navigation function, product display, Amazon purchase, technical support, shopping cart, user login function; Live broadcast area display, can display live broadcast, video stream is stable and smooth; AI customer service chat, with an AI customer communication window reserved on the homepage; Product display, introduction and display of basic product information, product main picture, product information and parameters, price, and shopping cart.
7. A method for constructing an independent station live broadcast system based on cloud services according to any one of claims 1 to 6, characterized in that: The following steps are involved: Demand analysis and design: determine system requirements, design system architecture, and clarify the components and interaction methods of the front-end, back-end, storage, and instant messaging; Prepare the environment, install OBS software, configure the anchor's customized live broadcast destination server, enable the live broadcast service in the Alibaba Cloud console, create a live broadcast channel, configure CDN acceleration, build a WebSocket server, prepare the front-end page, and integrate the Aliplayer player; Backend development, integration of Alibaba Cloud live streaming service, development of WebSocket server, integration of ORM framework, and implementation of JWT authentication mechanism; Front-end development, using Vue framework to build front-end pages, integrating Sass for CSS style writing, using axios library to process HTTP requests, interacting with back-end service modules, integrating Aliplayer player, configuring the playback source to the streaming address provided by Alibaba Cloud Live, receiving and displaying real-time interactive information; Testing and optimization: conduct comprehensive system testing, adjust OBS streaming parameters, CDN configuration, and WebSocket server performance based on test results, and optimize live streaming quality and user experience; Deployment and operation and maintenance: deploy back-end services, WebSocket servers and front-end codes, monitor the status of live broadcast services, handle possible faults and exceptions in a timely manner, regularly maintain and upgrade the system to ensure stable operation and security of the system.