Online video playing method
By setting up video codec modules, streaming media servers, web servers and client APPs in the online video playback system, the problems of video lag and blur in the existing technology are solved, efficient video data transmission and multi-device compatibility are achieved, and the quality of video playback and user experience are improved.
Patent Information
- Application Number
- CN202411950492.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-04-11
AI Technical Summary
Existing online video playback technology has shortcomings in multi-device compatibility and video quality, which often leads to video lag or blur.
By setting up video codec modules, streaming media servers, web servers and client APPs, efficient compression and decoding of video data can be achieved, video quality can be ensured, and video playback fluency and accessibility can be improved through real-time transmission of streaming media servers and multi-device access of web servers.
This method effectively reduces the bandwidth requirement of data transmission, ensures video quality, improves the real-time and smoothness of video playback, and enhances the accessibility and user experience of the system.
Smart Images

Figure CN119814959A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of video playback, and in particular to an online video playback method. Background Art
[0002] With the rapid development of the Internet and information technology, technology is constantly improving people's lifestyles. Electronic smart products are becoming more and more popular. It is very convenient to obtain information on the Internet through smart devices such as mobile phones and tablets. Smart phones have become a landmark mobile client. With the improvement of consumption levels, the price of mobile phones has become more and more popular. At present, the use of mobile phones is very common and is a common mobile smart device in life.
[0003] In the prior art, news content viewed on TV or mobile phones requires constant sliding of the mobile phone screen to read. However, in the fast-paced life, new information needs to be obtained more quickly, and the traditional browsing method seems to be seriously out of touch. The emergence of online video playback has greatly improved the speed of reading information. In order to support video playback on different devices and platforms, the solution needs to consider multi-device compatibility. Most online video playback will experience video freeze or video blur when receiving. Therefore, we provide an online video playback method to solve the above problems. Summary of the invention
[0004] The purpose of the present invention is to provide an online video playback method to solve the problems raised in the above background technology.
[0005] The technical solution of the present invention is: an online video playback method, including a client APP, the client APP signal is connected to a video codec module, the video codec technology is provided with a streaming media server, the streaming media server signal is connected to a Web server, the client APP network is connected to a video playback module, the client APP network is connected to a video center module, and the client APP network is connected to a user center module.
[0006] Preferably, the video encoding and decoding technology and the streaming media server are connected as a network signal by data flow, data interface, configuration, management, signal transmission and processing.
[0007] Preferably, the video encoding and decoding module uses HandBrake.
[0008] Preferably, the Web server is connected to the client APP signal, and the Web server is connected to the streaming media server signal.
[0009] Preferably, the streaming media server adopts Tencent Cloud VOD.
[0010] Preferably, the online video playback method comprises the following steps:
[0011] Step S1: The user needs to play the video through the client APP, including files including local files and streaming media files. This part has three modules: user center module, video center module, and video playback module;
[0012] Step S2: The login and registration of the user center module can be implemented by using open source code to reduce the workload;
[0013] Step S3: The steps for open source code are as follows:
[0014] deffibonacci(n):"″"CalculatethefirstnnumbersintheFibonaccisequence.:paramn:Thenumber ofFibonaccinumberstocalculate.:return:AlistofthefirstnFibonaccinumbers."""ifn<=0:return[]elifn==1:return[0]elifn==2:return[0,1]fib_numbers=[0,1]foriinrange(2,n):next_numbe r=fib_numbers[i-1]+fib_numbers[i-2]fib_numbers.append(next_number)returnfib_numbers#Testthefunctionn=10print(f"Thefirst{n}numbersintheFibonaccisequenceare:{fibonacci(n)}")
[0015] Step S4: The playback of the streaming media video file needs to be controlled through network communication to achieve dialogue with the server and transmission of streaming media data;
[0016] Step S5: After the video file is uploaded and stored in the streaming media server, the streaming media server can respond to the corresponding on-demand request of the client, and send the data stream converted into HRRPS after compression encoding to the client user;
[0017] Step S6: The video stream is played on the client side using the VideoPlayer class. It is important to configure the VideoView, obtain the https stream address, and then play it.
[0018] Step S7: The core code of the video playback module is as follows:
[0019] nVideoController=newVideoController(this); nVideoView.setVideoController(nVideoController); nVideoView.setVideoURI(Uri.parse(httpsUrl)); nVideoView.requestFocus(); nVideoView.start();
[0020] Step S8: The Web server is only open to the administrator. In addition to managing the client user information, its most important function is to upload and store the video file to the streaming media server;
[0021] Step S9: The steps of uploading and storing are as follows:
[0022] (1) Sending an upload request: The administrator enters the Web console, selects a video file, and sends a request to the streaming server to upload the video;
[0023] (2) Allocate storage space: Once the streaming media server receives the requested video information, it allocates storage space based on the video size and sends the path information back to the Web server in XML format.
[0024] (3) Uploading video files: Uploading video files in parallel in a certain order to the corresponding storage space of the streaming media server according to the XML path information;
[0025] (4) Confirmation message feedback: After the video files are uploaded, a confirmation message is actively sent to the Web server. The Web server immediately responds to the message and changes the status of the video file in the database to uploaded;
[0026] Step S10: The specific steps for installing Tencent Cloud VOD are as follows:
[0027] (1) Activate the VOD service: First, you need to activate the VOD service on Tencent Cloud's official website. You can do so by visiting the Tencent Cloud product page and selecting the VOD service.
[0028] (2) Obtain Tencent Cloud SecretId and SecretKey: After activating the service, you need to obtain Tencent Cloud's SecretId and SecretKey. These two parameters are the credentials for calling Tencent Cloud APIs and are very important. Please keep them properly.
[0029] (3) Register and log in to Tencent Cloud: If you do not have a Tencent Cloud account, you need to register first. After registration, use your account to log in to the Tencent Cloud console;
[0030] (4) Install and configure the VOD service: In the Tencent Cloud console, find the VOD service you have activated and follow the instructions on the page to install and configure the service, which may include setting up storage buckets, managing media resources, and configuring transcoding templates;
[0031] (5) Accessing VOD services: After completing the installation and configuration, you can access VOD services in your application according to the SDK or API documentation provided by Tencent Cloud. This usually includes operations such as uploading videos, querying video information, and playing videos.
[0032] The present invention provides a method for using an online video playback method by improving the method, which has the following improvements and advantages compared with the prior art:
[0033] First: The present invention, by setting a video codec module, a streaming media server, a streaming media server, a Web server, and a client APP, can ensure efficient compression and decoding of video data, reduce the bandwidth requirement for data transmission, and ensure video quality at the same time. The streaming media server is responsible for transmitting the encoded and decoded video data to the Web server in the form of a stream, ensuring the real-time and smoothness of the video data. The introduction of the Web server enables users to access video content through various Web browsers or client APPs, thereby improving the accessibility and flexibility of the system. The video playback module in the client APP allows users to watch videos directly in the APP without jumping to other applications or platforms, thereby improving the user experience.
[0034] Second, the present invention provides a centralized management function for video content by setting up a video center module and a user center module, including video classification, storage, retrieval, etc., so that the management of video resources is more efficient and convenient. The user center module can provide personalized recommendations and services based on the user's preferences and behavioral habits, thereby increasing user stickiness and satisfaction. This architecture has good scalability, and new functions or services can be added as needed, such as adding video editing functions, introducing social sharing, etc. Reasonable network architecture and security measures can ensure the security of video data transmission and storage, and prevent data leakage or illegal access. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The present invention will be further explained below in conjunction with the accompanying drawings and embodiments:
[0036] Figure 1 It is a schematic diagram of the functional module structure of the client APP of the present invention;
[0037] Figure 2 It is a schematic diagram of the functional module structure of the Web server of the present invention;
[0038] Figure 3It is a schematic diagram of the overall connection structure of the present invention. DETAILED DESCRIPTION
[0039] The present invention is described in detail below, and the technical solutions in the embodiments of the present invention are clearly and completely described. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] The present invention provides an online video playback method through improvement. The technical solution of the present invention is:
[0041] like Figure 1 - Figure 3 As shown, an online video playback method includes a client APP, the client APP signal is connected to a video codec module, the video codec technology is provided with a streaming media server, the streaming media server signal is connected to a Web server, the client APP network is connected to a video playback module, the client APP network is connected to a video center module, and the client APP network is connected to a user center module.
[0042] Video coding and decoding technology is used to reduce the redundancy of video data and improve the efficiency of video transmission through compression coding. Video coding essentially reduces the redundancy of images and greatly compresses uncompressed digital video data for easy transmission and storage. Then the streaming media server is used to store, manage and transmit streaming media data. When the video data is processed by coding and decoding, it is distributed through the streaming media server to achieve real-time transmission and playback of the video. Then the combination of the video coding and decoding module and the streaming media server can ensure that the video data is efficiently compressed before transmission, reduce bandwidth occupancy, and ensure the real-time and smoothness of video transmission. The Web server is used to provide web page services, including online browsing and playback of video resources. The combination of the streaming media server and the Web server allows users to directly access and play video resources through web pages without the need for additional video players or plug-ins, which improves user experience and convenience. The video playback module is responsible for parsing, decoding and playing video data and presenting it to users. The client APP integrates the video playback module to provide users with rich video content and convenient playback functions. Users can watch videos directly in the APP without jumping to other applications or web pages. The video center module is responsible for managing and operating video resources, including uploading, reviewing, classifying, and recommending videos. The combination of the client APP and the video center module can ensure the richness and diversity of video resources in the APP. The video center module can recommend related videos based on user preferences and viewing habits to improve user stickiness and satisfaction. The user center module is then responsible for managing user information, providing personalized services, processing user feedback, etc. Finally, the client APP integrates the user center module to provide users with a personalized service experience. The user center module can recommend related videos based on user information, set viewing preferences, manage personal collections, etc., to improve user satisfaction and loyalty. Figure 1-3 shown.
[0043] Furthermore, the video codec technology and the streaming media server consist of data stream, data interface, configuration, management, signal transmission and processing as the network signal connection, which brings the benefits of efficient data transmission, good user experience, scalability and flexibility, optimized signal transmission and processing, intelligent and automated management, and reduced operating costs.
[0044] Furthermore, the video codec module uses HandBrake. The benefits of using HandBrake as the video codec module are mainly reflected in its wide support, rich conversion options, and practical video processing functions.
[0045] Furthermore, the Web server is connected to the client APP by signal, and the Web server is connected to the streaming server by signal. Through the signal connection between the Web server and the client APP and the streaming server, the benefits of content delivery, load balancing, security, caching mechanism, content distribution and service expansion are brought.
[0046] Furthermore, the streaming media server adopts Tencent Cloud VOD. Using Tencent Cloud VOD as the streaming media server can obtain the benefits of high performance, cross-platform support, rich file format and codec support, multiple protocol support, scalability, and secure and reliable transmission.
[0047] Furthermore, an online video playback method comprises the following steps:
[0048] Step S1: The user needs to play the video through the client APP, including files including local files and streaming media files. This part has three modules: user center module, video center module, and video playback module;
[0049] Step S2: The login and registration of the user center module can be implemented by using open source code to reduce the workload;
[0050] Step S3: The steps for open source code are as follows:
[0051] deffibonacci(n):"″"CalculatethefirstnnumbersintheFibonaccisequence.:paramn:Thenumber ofFibonaccinumberstocalculate.:return:AlistofthefirstnFibonaccinumbers."""ifn<=0:return[]elifn==1:return[0]elifn==2:return[0,1]fib_numbers=[0,1]foriinrange(2,n):next_numbe r=fib_numbers[i-1]+fib_numbers[i-2]fib_numbers.append(next_number)returnfib_numbers#Testthefunctionn=10print(f"Thefirst{n}numbersintheFibonaccisequenceare:{fibonacci(n)}")
[0052] Step S4: The playback of the streaming media video file needs to be controlled through network communication to achieve dialogue with the server and transmission of streaming media data;
[0053] Step S5: After the video file is uploaded and stored in the streaming media server, the streaming media server can respond to the corresponding on-demand request of the client, and send the data stream converted into HRRPS after compression encoding to the client user;
[0054] Step S6: The video stream is played on the client side using the VideoPlayer class. It is important to configure the VideoView, obtain the https stream address, and then play it.
[0055] Step S7: The core code of the video playback module is as follows:
[0056] nVideoController=newVideoController(this); nVideoView.setVideoController(nVideoController); nVideoView.setVideoURI(Uri.parse(httpsUrl)); nVideoView.requestFocus(); nVideoView.start();
[0057] Step S8: The Web server is only open to the administrator. In addition to managing the client user information, its most important function is to upload and store the video file to the streaming media server;
[0058] Step S9: The steps of uploading and storing are as follows:
[0059] (1) Sending an upload request: The administrator enters the Web console, selects a video file, and sends a request to the streaming server to upload the video;
[0060] (2) Allocate storage space: Once the streaming media server receives the requested video information, it allocates storage space based on the video size and sends the path information back to the Web server in XML format.
[0061] (3) Uploading video files: Uploading video files in parallel in a certain order to the corresponding storage space of the streaming media server according to the XML path information;
[0062] (4) Confirmation message feedback: After the video files are uploaded, a confirmation message is actively sent to the Web server. The Web server immediately responds to the message and changes the status of the video file in the database to uploaded;
[0063] Step S10: The specific steps for installing Tencent Cloud VOD are as follows:
[0064] (1) Activate the VOD service: First, you need to activate the VOD service on Tencent Cloud's official website. You can do so by visiting the Tencent Cloud product page and selecting the VOD service.
[0065] (2) Obtain Tencent Cloud SecretId and SecretKey: After activating the service, you need to obtain Tencent Cloud's SecretId and SecretKey. These two parameters are the credentials for calling Tencent Cloud APIs and are very important. Please keep them properly.
[0066] (3) Register and log in to Tencent Cloud: If you do not have a Tencent Cloud account, you need to register first. After registration, use your account to log in to the Tencent Cloud console;
[0067] (4) Install and configure the VOD service: In the Tencent Cloud console, find the VOD service you have activated and follow the instructions on the page to install and configure the service, which may include setting up storage buckets, managing media resources, and configuring transcoding templates;
[0068] (5) Accessing VOD services: After completing the installation and configuration, you can access VOD services in your application according to the SDK or API documentation provided by Tencent Cloud. This usually includes operations such as uploading videos, querying video information, and playing videos.
[0069] The above description enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. An online video playback method, comprising a client APP, characterized in that; The client APP signal is connected to a video codec module, the video codec technology is provided with a streaming media server, the streaming media server signal is connected to a Web server, the client APP network is connected to a video playback module, the client APP network is connected to a video center module, and the client APP network is connected to a user center module.
2. The online video playback method according to claim 1, characterized in that: The video encoding and decoding technology and the streaming media server are connected by a network signal consisting of data stream, data interface, configuration, management, signal transmission and processing.
3. The online video playback method according to claim 1, characterized in that: The video encoding and decoding module uses HandBrake.
4. The online video playback method according to claim 1, characterized in that: The Web server is connected to the client APP signal, and the Web server is connected to the streaming media server signal.
5. The online video playback method according to claim 1, characterized in that: The streaming media server adopts Tencent Cloud VOD.
6. The online video playback method according to claim 1, characterized in that: The online video playback method comprises the following steps: Step S1: The user needs to play the video through the client APP, including files including local files and streaming media files. This part has three modules: user center module, video center module, and video playback module; Step S2: The login and registration of the user center module can be implemented by using open source code to reduce the workload; Step S3: The steps for open source code are as follows: deffibonacci(n):"″"CalculatethefirstnnumbersintheFibonaccisequence.:paramn:Thenumber ofFibonaccinumberstocalculate.:return:AlistofthefirstnFibonaccinumbers."""ifn<=0:return[]elifn==1:return[0]elifn==2:return[0,1]fib_numbers=[0,1]foriinrange(2,n):next_number=fib_numbers[i-1]+fib_numbers[i- 2]fib_numbers.append(next_number)returnfib_numbers#Testthefunctionn=10print(f"Thefirst{n}numbersintheFibonaccisequenceare:{fibonacci(n)}") Step S4: The playback of the streaming media video file needs to be controlled through network communication to achieve dialogue with the server and transmission of streaming media data; Step S5: After the video file is uploaded and stored in the streaming media server, the streaming media server can respond to the corresponding on-demand request of the client, and send the data stream converted into HRRPS after compression encoding to the client user; Step S6: The video stream is played on the client side using the VideoPlayer class. It is important to configure the VideoView, obtain the https stream address, and then play it. Step S7: The core code of the video playback module is as follows: nVideoController=newVideoController(this); nVideoView.setVideoContr oller(nVideoController); nVideoView.setVideoURI(Uri.parse(httpsUrl)); nVideoView.requestFocus(); nVideoView.start(); Step S8: The Web server is only open to the administrator. In addition to managing the client user information, its most important function is to upload and store the video file to the streaming media server; Step S9: The steps of uploading and storing are as follows: (1) Sending an upload request: The administrator enters the Web console, selects a video file, and sends a request to the streaming server to upload the video; (2) Allocate storage space: Once the streaming media server receives the requested video information, it allocates storage space based on the video size and sends the path information back to the Web server in XML format. (3) Uploading video files: Uploading video files in parallel in a certain order to the corresponding storage space of the streaming media server according to the XML path information; (4) Confirmation message feedback: After the video files are uploaded, a confirmation message is actively sent to the Web server. The Web server immediately responds to the message and changes the status of the video file in the database to uploaded; Step S10: The specific steps for installing Tencent Cloud VOD are as follows: (1) Activate the VOD service: First, you need to activate the VOD service on Tencent Cloud's official website. You can do so by visiting the Tencent Cloud product page and selecting the VOD service. (2) Obtain Tencent Cloud SecretId and SecretKey: After activating the service, you need to obtain Tencent Cloud's SecretId and SecretKey. These two parameters are the credentials for calling Tencent Cloud APIs and are very important. Please keep them properly. (3) Register and log in to Tencent Cloud: If you do not have a Tencent Cloud account, you need to register first. After registration, use your account to log in to the Tencent Cloud console; (4) Install and configure the VOD service: In the Tencent Cloud console, find the VOD service you have activated and follow the instructions on the page to install and configure the service, which may include setting up storage buckets, managing media resources, and configuring transcoding templates; (5) Accessing VOD services: After completing the installation and configuration, you can access VOD services in your application according to the SDK or API documentation provided by Tencent Cloud. This usually includes operations such as uploading videos, querying video information, and playing videos.