CN117119265A - Video playing method, device, equipment and computer readable storage medium - Google Patents

Video playing method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN117119265A
CN117119265A CN202210536613.1A CN202210536613A CN117119265A CN 117119265 A CN117119265 A CN 117119265A CN 202210536613 A CN202210536613 A CN 202210536613A CN 117119265 A CN117119265 A CN 117119265A
Authority
CN
China
Prior art keywords
streaming media
stream
real
time code
media protocol
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210536613.1A
Other languages
Chinese (zh)
Inventor
陈润华
李昕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Entropy Technology Co Ltd
Original Assignee
Entropy Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Entropy Technology Co Ltd filed Critical Entropy Technology Co Ltd
Priority to CN202210536613.1A priority Critical patent/CN117119265A/en
Publication of CN117119265A publication Critical patent/CN117119265A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8166Monomedia components thereof involving executable data, e.g. software
    • H04N21/8173End-user applications, e.g. Web browser, game
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • H04N21/6437Real-time Transport Protocol [RTP]

Abstract

The application provides a video playing method, a device, equipment and a computer readable storage medium, wherein the method comprises the steps of firstly acquiring a real-time code stream and sending the real-time code stream to a service assembly which is pre-installed and operated; then converting the real-time code stream into a plurality of streaming media protocol streams through a service component; then, the streaming media protocol streams are sent to a Web browser; and the Web browser selects a corresponding streaming media protocol stream from the streaming media protocol streams to play according to the use scene. The video playing method can convert the real-time code stream into a plurality of streaming media protocol streams, and the browser can select the corresponding streaming media protocol streams according to the use scene when playing the video, so that one or more videos can be played in the browser conveniently without installing various plug-ins or service components.

Description

Video playing method, device, equipment and computer readable storage medium
Technical Field
The present application relates to the field of video playing technologies, and in particular, to a video playing method, apparatus, device, and computer readable storage medium.
Background
At present, the requirement of playing or watching video through a browser is increasing, various plug-ins are usually required to be installed when the video is played through the browser, the plug-ins supported by different browsers are different, and the use is very inconvenient. In addition, most of plug-ins can only support video playing in one format, however, in practice, the use scenes are quite various, and different use scenes often need different video formats, so that the use of users is very inconvenient.
Disclosure of Invention
In view of this, embodiments of the present application provide a method, apparatus, device, and computer readable storage medium for playing video.
In a first aspect, an embodiment of the present application provides a method for playing a video, where the method includes:
acquiring a real-time code stream, and transmitting the real-time code stream to a service assembly which is pre-installed and operated;
converting the real-time code stream into a plurality of streaming media protocol streams through the service component;
transmitting a plurality of streaming media protocol streams to a Web browser;
and the Web browser selects a corresponding streaming media protocol stream from the streaming media protocol streams to play according to the use scene.
In a second aspect, an embodiment of the present application provides a video playing device, where the device includes:
the real-time code stream acquisition module is used for acquiring the real-time code stream;
the real-time code stream sending module is used for sending the real-time code stream to a service assembly which is pre-installed and operated;
the protocol stream conversion module is used for converting the real-time code stream into a plurality of streaming media protocol streams through the service component;
the protocol stream sending module is used for sending a plurality of streaming media protocol streams to the Web browser;
and the protocol stream playing module is used for selecting a corresponding stream media protocol stream from the plurality of stream media protocol streams according to the use scene by the Web browser for playing.
In a third aspect, an embodiment of the present application provides a network video terminal device, including: a memory; one or more processors coupled with the memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to perform the method of playing video provided in the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, where a program code is stored, where the program code may be called by a processor to perform the method for playing video provided in the first aspect.
The video playing method, device, equipment and computer readable storage medium provided by the embodiment of the application firstly acquire a real-time code stream and send the real-time code stream to a service component which is pre-installed and operated; then converting the real-time code stream into a plurality of streaming media protocol streams through a service component; then, the streaming media protocol streams are sent to a Web browser; and the Web browser selects a corresponding streaming media protocol stream from the streaming media protocol streams to play according to the use scene.
The video playing method in the embodiment of the application can convert the real-time code stream into a plurality of streaming media protocol streams, and the browser can select the corresponding streaming media protocol stream according to the use scene when playing the video, thereby conveniently playing one or more videos in the browser without installing a plurality of plug-ins or service components.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 is an application scenario schematic diagram of a video playing method according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a video playing method according to an embodiment of the present application;
fig. 3 is a schematic diagram of a video terminal device according to an embodiment of the present application;
fig. 4 is a block diagram of a video playing device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a video terminal device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present application.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be clear and complete, and it is obvious that the described embodiments are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In order to more specifically describe the present application, a method, an apparatus, a terminal device, and a computer storage medium for playing video provided by the present application are specifically described below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 shows a schematic diagram of an application scenario of a video playing method provided by an embodiment of the present application, where the application scenario includes a terminal device 100 provided by an embodiment of the present application, and the terminal device 100 may be various electronic devices (such as a structure diagram of 102, 104, 106, and 108) with a display screen, including but not limited to a smart phone, a computer device, and a network video terminal device, where the computer device may be at least one of a desktop computer, a portable computer, a laptop computer, and a tablet computer. The user operates the terminal device 100, and sends out a video playing operation instruction, and the terminal device 100 executes the video playing method according to the present application, and for specific process, please refer to an embodiment of the video playing method.
Second, the terminal device 100 may refer to one of a plurality of terminal devices in general, and the present embodiment is exemplified only with the terminal device 100. Those skilled in the art will appreciate that the number of terminal devices described above may be greater or lesser. For example, the number of the terminal devices may be only several, or the number of the terminal devices may be tens or hundreds, or more, and the number and types of the terminal devices are not limited in the embodiment of the present application. The terminal device 100 may be used to perform a video playing method provided in an embodiment of the present application.
In an optional implementation manner, the application scenario may further include a server in addition to the terminal device 100 provided by the embodiment of the present application, where a network is disposed between the server and the terminal device. The network is used as a medium for providing a communication link between the terminal device and the server. The network may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
It should be understood that the number of terminal devices, networks and servers is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation. For example, the server may be a server cluster formed by a plurality of servers. Wherein the terminal device interacts with the server through the network to receive or send messages and the like. The server may be a server providing various services. The server may be used to execute the steps of a video playing method provided in the embodiments of the present application. In addition, when the terminal device executes a video playing method provided in the embodiment of the present application, a part of steps may be executed in the terminal device, and a part of steps may be executed in the server, which is not limited herein.
Based on the above, the embodiment of the application provides a video playing method. Referring to fig. 2, fig. 2 shows a flowchart of a video playing method according to an embodiment of the present application, and the method is applied to the terminal device in fig. 1 for illustration, and includes the following steps:
step S110, a real-time code stream is obtained and sent to a service component which is pre-installed and operated.
The real-time code stream is usually a data stream generated by a network video terminal, for example, a stream generated by a camera in real time in a video monitoring service. Alternatively, the real-time stream may be an RTSP stream; RTSP (Real Time Streaming Protocol) real-time streaming protocol is a network application protocol dedicated to the use of entertainment and communication systems to control streaming media servers. The protocol is used to create and control a media session between terminals. The client of the media server issues VCR commands such as play, record and pause to facilitate real-time control of the media stream from the server to the client (video on demand) or from the client to the server (voice recording).
A service component is an application software capable of implementing a certain function, and may be embedded in a video terminal device (as shown in fig. 3), or may be installed in a terminal device such as a video implementation host (e.g., a PC, tablet, mobile phone, or other display panel). . The real-time code stream may be converted when the application software is running.
In an alternative embodiment, the service components include a background service management component and a streaming media service component. The background service management component is mainly used for managing the starting and running of the streaming media service component, and can ensure the automatic running of the streaming media service component when the streaming media service component is started and automatically restarting the program after the streaming media service component is abnormal.
In particular, the service component may be an rtsp towebguard service installation package, where the service installation package includes an rtsp towebguard background service, an rtsp toweb streaming media service, and some resource files and configuration files, where the resource files and configuration files are related files that are required for the rtsp towebguard background service and the rtsp toweb streaming media service, where the rtsp towebguard background service may be referred to as a background service management component, and the rtsp toweb streaming media service may be referred to as a streaming media service component. Specifically, the rtsp to webguard service installation package includes: 1) Configuration files and resource files in the RTSPTOWeb open source component and RTSPTOWeb.exe executable files generated by compiling; 2) Configuration files and resource files in the RTSPTOWebGuard background service program and compiling the generated RTSPTOWebGuard.exe executable file. The RTSPTOWeb is a program developed in go language, so that the RTSPTOWeb can cross-platform. The rtsp tos executable may be compiled by the command GO111 mode=on GO build-o rtsp tos.exe-ldflags "-s-w". GO. The RTSPTOWebGuard background service is a self-research program and is used for detecting whether the RTSPTOWeb. Exe is normally started or not at regular intervals, and if not, the RTSPTOWeb. Exe is automatically started. In addition, the RTSPTOWebGuard service can cross-platform (such as windows and linux), default to power on automatic operation after first installation on the platform, and subsequent users can directly preview videos (without repeated installation or operation). Based on the above, the video playing in the embodiment of the application can be performed in a cross-platform manner.
In addition, the configuration files include rtsp ptowebguard.ini, zkdbgconfig.xml, config.json; the resource file includes the web, etc.
In step S120, the real-time code stream is converted into multiple streaming media protocol streams by the service component.
In one embodiment, converting, by a service component, a real-time code stream into a plurality of streaming media protocol streams includes: the real-time code stream is converted into a plurality of streaming media protocol streams through a streaming media service component, wherein the streaming media protocol streams comprise one or more of MSE, HLS, low Latency HLS and WebRTC streaming media protocol streams.
In particular, the streaming media service component may convert the real-time codestream (i.e., RTSP stream) into one or more of MSE, HLS, low Latency HLS, or WebRTC streaming media protocol streams to facilitate selection of different streaming media protocol streams for playback in a Web browser.
Step S130, the streaming media protocol streams are sent to the Web browser.
In step S140, the Web browser selects a corresponding streaming media protocol stream from the multiple streaming media protocol streams according to the usage scenario for playing.
Specifically, the Web browser is installed or set in the terminal device of fig. 1 (for example, the video playing terminal device in fig. 3), and the Web browser can receive, that is, multiple streaming media protocol streams sent by the streaming media service component, and then select any one of the streaming media protocol streams for playing according to the actual use scenario.
Further, an embodiment for playing a streaming media protocol stream is provided, and the detailed description is as follows:
in one embodiment, step S140 is executed, where the Web browser selects a corresponding streaming media protocol stream from a plurality of streaming media protocol streams according to a usage scenario for playing, including:
s1, the Web browser calls a corresponding Web API interface of the streaming media service component through javatricpt according to the use scene.
S2: and acquiring a corresponding streaming media protocol stream through a corresponding Web API interface, and playing the corresponding streaming media protocol stream by adopting an HTML5video tag.
Specifically, the Web browser may then call the rtsp to the Web streaming media service Web API interface, such as MSE, HLS, low Latency HLS, webRTC interface, through javatricpt according to the actual usage scenario, so as to obtain one or more protocol streams of the MSE, HLS, low Latency HLS, or WebRTC streaming media protocol streams, and then play the obtained streaming media protocol streams by using the HTML5video tag.
The video playing method provided by the embodiment of the application comprises the steps of firstly acquiring a real-time code stream and sending the real-time code stream to a service assembly which is pre-installed and operated; then converting the real-time code stream into a plurality of streaming media protocol streams through a service component; then, the streaming media protocol streams are sent to a Web browser; and the Web browser selects a corresponding streaming media protocol stream from the streaming media protocol streams to play according to the use scene.
The video playing method in the embodiment of the application can convert the real-time code stream into a plurality of streaming media protocol streams, and the browser can select the corresponding streaming media protocol stream according to the use scene when playing the video, thereby conveniently playing one or more videos in the browser without installing a plurality of plug-ins or service components.
Next, an embodiment of previewing the streaming media protocol stream by the Web browser is also provided, which is described in detail below:
in one embodiment, the video playing method further includes: web browsers include a variety of types; each type of Web browser previews any one of the streaming protocol streams through the streaming service component.
Specifically, the types of Web browsers can be multiple, firefox, chrome, opera, safari, microsoft Edge and various Chrome variant browsers, and one or more protocol streams of MSE, HLS, low Latency HLS or WebRTC streaming media protocol streams can be previewed in any one browser.
In one embodiment, before sending the real-time code stream to the service component that is pre-installed and running, the method further comprises: a communication connection is established with the streaming media service component.
Specifically, before the real-time code stream is sent to the service component which is pre-installed and operated, it needs to be determined whether the terminal device establishes a communication link with the streaming media service component, and if not, it needs to establish a communication connection first. The method specifically comprises the steps that whether the RTSP of the terminal equipment is connected or not is judged through a Web API1 of the RTSPTOWeb streaming media service component, namely, RTSP addresses of each terminal equipment are different, the RTSPTOWeb streaming media service component can establish connection with the terminal equipment only after the RTSPTOWeb streaming media service component needs to register the addresses with the RTSPTOWeb open source component.
In one embodiment, the video playing method further includes: when the Web browser is closed, the communication connection with the streaming media service component is disconnected.
When the Web browser is closed, the streaming media service component is indirectly informed of closing the RTSP flow by calling the streaming media service component API and deleting the RTSP flow service address, so that resources are released.
In addition, when the streaming media service component is an RTSPTOWeb streaming media service component, the RTSPTOWeb streaming media service component and the Web browser perform information interaction, and Web API call is required; then the Web API call procedure is: 1) When a Web browser inputs a network video terminal address carriage return to load a front-end webpage, firstly judging whether an RTSPTOWebGuard service installation package is installed or not, and if the RTSPTOWebGuard service installation package is not installed, prompting installation; if the RTSP is installed, the RTSP is not prompted, whether the RTSP of the terminal is connected or not is further judged through the RTSP open source component Web API1, and the state is recorded; 2) After the login step is successful, if the RTSP of the terminal is not connected, the RTSP streaming service address of the network video terminal is set by calling the RTSP Web API 2, and the RTSP Web exe is connected with the network video terminal by using an RTSP protocol; 3) The Web browser can play one or more streams of MSE, HLS, low Latency HLS and WebRTC through html5video tags, so that the video can be previewed. 4) When the Web browser is closed, the RTSP stream service address is deleted by calling the RTSP to the Web API 3, and the RTSP stream is indirectly notified to the RTSP Web.
It should be understood that, although the steps in the flowchart of fig. 2 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or stages are performed necessarily occur sequentially, but may be performed alternately or alternately with at least some of the other steps or sub-steps of other steps.
The embodiment of the application discloses a video playing method, which can be realized by adopting various types of equipment, so that the application also discloses a video playing device corresponding to the method, and specific embodiments are given below for detailed description.
Referring to fig. 4, a video playing device disclosed in an embodiment of the present application mainly includes:
the real-time code stream acquisition module 410 is configured to acquire a real-time code stream.
The real-time code stream sending module 420 is configured to send a real-time code stream to a service component that is pre-installed and operated;
a protocol stream conversion module 430, configured to convert the real-time code stream into a plurality of streaming media protocol streams through the service component;
a protocol stream sending module 440, configured to send a plurality of streaming media protocol streams to the Web browser;
and the protocol stream playing module 450 is used for the Web browser to select a corresponding streaming media protocol stream from a plurality of streaming media protocol streams according to the use scene for playing.
In one embodiment, the service components include a background service management component and a streaming media service component; and the management module is used for the background management component to manage the starting and running of the streaming media service component.
In one embodiment, the protocol stream conversion module 430 is configured to convert the real-time code stream into a plurality of streaming media protocol streams through the streaming media service component, where the streaming media protocol streams include one or more of MSE, HLS, low Latency HLS, webRTC streaming media protocol streams.
In one embodiment, the protocol stream playing module 450 is configured to call, by using the Web browser, a Web API interface corresponding to the streaming media service component through javatricpt according to the usage scenario; and acquiring a corresponding streaming media protocol stream through a corresponding Web API interface, and playing the corresponding streaming media protocol stream by adopting an HTML5video tag.
In one embodiment, the Web browser includes multiple types; and the browsing module is used for previewing any streaming media protocol stream through the streaming media service component by each type of Web browser.
In one embodiment, the apparatus further comprises: and the communication connection establishment module is used for establishing communication connection with the streaming media service component.
In one embodiment, the apparatus further comprises: and the communication connection disconnection module is used for disconnecting the communication connection with the streaming media service component when the Web browser is closed.
The specific limitation of the video playing device can be referred to as limitation of the method hereinabove, and will not be repeated herein. Each of the modules in the above-described apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or independent of a processor in the terminal device, or may be stored in software in a memory in the terminal device, so that the processor may call and execute operations corresponding to the above modules.
Referring to fig. 5, fig. 5 shows a block diagram of a video terminal device according to an embodiment of the present application. The video terminal device 50 may be a computer device. The video terminal device 50 of the present application may include one or more of the following components: processor 52, memory 54, and one or more applications, wherein the one or more applications may be stored in memory 54 and configured to be executed by the one or more processors 52, the one or more applications configured to perform the methods described in the video playback method embodiments described above.
Processor 52 may include one or more processing cores. The processor 52 utilizes various interfaces and lines to connect various portions of the overall terminal device 50, perform various functions of the terminal device 50 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 54, and invoking data stored in the memory 54. Alternatively, the processor 52 may be implemented in hardware in at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 52 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), a report validator of buried point data (Graphics Processing Unit, GPU), and a modem. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for being responsible for rendering and drawing of display content; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 52 and may be implemented solely by a single communication chip.
The Memory 54 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Memory 54 may be used to store instructions, programs, code sets, or instruction sets. The memory 54 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (e.g., a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal device 50 in use, etc.
It will be appreciated by those skilled in the art that the structure shown in fig. 5 is merely a block diagram of a portion of the structure associated with the present inventive arrangements and is not limiting of the terminal device to which the present inventive arrangements are applied, and that a particular terminal device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In summary, the terminal device provided in the embodiment of the present application is configured to implement the corresponding video playing method in the foregoing method embodiment, and has the beneficial effects of the corresponding method embodiment, which is not described herein again.
Referring to fig. 6, a block diagram of a computer readable storage medium according to an embodiment of the application is shown. The computer readable storage medium 60 has stored therein program code that is executable by a processor to perform the method described in the above-described embodiments of the video playback method.
The computer readable storage medium 60 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 60 comprises a non-transitory computer readable medium (non-transitory computer-readable storage medium). The computer readable storage medium 60 has storage space for program code 62 that performs any of the method steps described above. The program code can be read from or written to one or more computer program products. Program code 62 may be compressed, for example, in a suitable form.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for playing video, the method comprising:
acquiring a real-time code stream, and transmitting the real-time code stream to a service assembly which is pre-installed and operated;
converting the real-time code stream into a plurality of streaming media protocol streams through the service component;
transmitting a plurality of streaming media protocol streams to a Web browser;
and the Web browser selects a corresponding streaming media protocol stream from the streaming media protocol streams to play according to the use scene.
2. The method of claim 1, wherein the service components include a background service management component and a streaming media service component; the method comprises the following steps:
and the background management component manages the starting and running of the streaming media service component.
3. The method of claim 2, wherein said converting, by said service component, said real-time code stream into a plurality of streaming media protocol streams, comprises:
and converting the real-time code stream into a plurality of streaming media protocol streams through the streaming media service component, wherein the streaming media protocol streams comprise one or more of MSE, HLS, low Latency HLS and WebRTC streaming media protocol streams.
4. The method according to claim 2, wherein the Web browser selects a corresponding streaming media protocol stream from a plurality of streaming media protocol streams according to a usage scenario for playing, and the method comprises:
the Web browser calls a corresponding Web API interface of the streaming media service component through javatricpt according to the use scene;
and acquiring the corresponding streaming media protocol stream through the corresponding Web API interface, and playing the corresponding streaming media protocol stream by adopting an HTML5video tag.
5. The method according to claim 2, wherein the method further comprises:
the Web browser includes a plurality of types; each type of Web browser previews any one of the streaming protocol streams through the streaming service component.
6. The method according to any one of claims 2-5, wherein before said sending the real-time code stream to a pre-installed and running service component, further comprising:
and establishing communication connection with the streaming media service component.
7. The method according to any one of claims 2-5, further comprising:
and when the Web browser is closed, disconnecting the communication connection with the streaming media service component.
8. A video playback device, the device comprising:
the real-time code stream acquisition module is used for acquiring the real-time code stream;
the real-time code stream sending module is used for sending the real-time code stream to a service assembly which is pre-installed and operated;
the protocol stream conversion module is used for converting the real-time code stream into a plurality of streaming media protocol streams through the service component;
the protocol stream sending module is used for sending a plurality of streaming media protocol streams to the Web browser;
and the protocol stream playing module is used for selecting a corresponding stream media protocol stream from the plurality of stream media protocol streams according to the use scene by the Web browser for playing.
9. A network video terminal device, comprising:
a memory; one or more processors coupled with the memory; one or more applications, wherein the one or more applications are stored in memory and configured to be executed by the one or more processors, the one or more applications configured to perform the method of any of claims 1-7.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a program code, which is callable by a processor for executing the method according to any one of claims 1-7.
CN202210536613.1A 2022-05-17 2022-05-17 Video playing method, device, equipment and computer readable storage medium Pending CN117119265A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210536613.1A CN117119265A (en) 2022-05-17 2022-05-17 Video playing method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210536613.1A CN117119265A (en) 2022-05-17 2022-05-17 Video playing method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN117119265A true CN117119265A (en) 2023-11-24

Family

ID=88802671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210536613.1A Pending CN117119265A (en) 2022-05-17 2022-05-17 Video playing method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN117119265A (en)

Similar Documents

Publication Publication Date Title
US11019119B2 (en) Web-based live broadcast
US9009216B2 (en) Server device, and method and program for processing on the same
US11683554B2 (en) Techniques for managing generation and rendering of user interfaces on client devices
US11360737B2 (en) Method and apparatus for providing speech service
CN104539977A (en) Live broadcast previewing method and device
US11909812B2 (en) Application control method and apparatus, electronic device, and storage medium
CN108696523B (en) Response method and device for call service
CN113784049B (en) Camera calling method of android system virtual machine, electronic equipment and storage medium
WO2013174080A1 (en) Interface display method and system of home gateway applicable to multiple display types
CN104349177A (en) Method for turning to play multimedia file under desktop cloud, virtual machine and system
CN104065683A (en) Remote control method and local device
CN111901695B (en) Video content interception method, device and equipment and computer storage medium
CN110113298B (en) Data transmission method, device, signaling server and computer readable medium
CN108052377B (en) Cloud-based input processing method and device, server and storage medium
CN108712434A (en) A kind of implementation method based on the HD video live streaming recorded broadcast meeting consultation of doctors
US8774599B2 (en) Method for transcoding and playing back video files based on grid technology in devices having limited computing power
CN112714341A (en) Information acquisition method, cloud set top box system, entity set top box and storage medium
CN117119265A (en) Video playing method, device, equipment and computer readable storage medium
KR101909257B1 (en) Server and method for executing virtual application requested from device, and the device
CN102110133B (en) Use the system and method for universal plug and play display document content
CN115022725A (en) Video playing method and device
CN113766345A (en) Method for playing random push video and set top box
CN115037991B (en) Browser video playing method and device, terminal equipment and readable storage medium
US9256882B2 (en) Methods, communications devices, and computer program products for selecting an advertisement to initiate device-to-device communications
CN112243135B (en) Multimedia playing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination