A media stream playing method, system, electronic device and storage medium
By displaying an adjustable progress ring on the display page, the unified operation of the live broadcast screen and the video screen is realized, the complex switching problem in the existing technology is solved, and the accuracy of selection of time nodes and user experience is improved.
Patent Information
- Application Number
- CN202211617454.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-15
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2042-12-15
AI Technical Summary
In the prior art, the live broadcast screen and the recorded historical playback screen are operated separately, resulting in complex switching, and the large time scale and fine adjustment cannot be taken into account, resulting in low accuracy in selecting time nodes of the playback screen.
By displaying an adjustable progress ring on the display page, and in response to the control command, the playback screen is moved to the historical playback screen corresponding to any time node in the live broadcast for playback, large time scale adjustment and fine-tuning are achieved, and the accuracy of time node selection is improved.
It simplifies the switching operation between live broadcast and video screens, improves the accuracy of selection of playback screen time nodes, and enhances the convenience and user experience of user operations.
Smart Images

Figure CN116233558B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of media stream control, and in particular to a media stream playback method, system, electronic device and storage medium. Background Art
[0002] As video playback technology becomes increasingly mature and popular, in the event of obtaining a video, it is often necessary to combine video playback to view the images before and after the event. However, real-time monitoring and video playback are two independent systems, and the switching operation is complicated.
[0003] In the process of research and practice of current technology, the current technology usually separates the interfaces of live broadcast screen and recorded historical playback screen, which need to be operated on different interfaces. The operation process is complicated and cannot take into account large time scales and fine-tuning. The accuracy of time node selection of playback screen is low. Summary of the invention
[0004] The main technical problem solved by the present application is to provide a media stream playback method, system, electronic device and storage medium, which can move the playback screen to the historical playback screen corresponding to any time node for playback according to the control instructions of the progress ring, taking into account large-scale time scale adjustment and fine-tuning, and improving the accuracy of selecting time nodes.
[0005] To solve the above technical problems, a technical solution adopted in the present application is: to provide a media stream playback method, the media stream playback method comprising: obtaining a display page to display a live broadcast playback screen; displaying a progress ring of the playback screen on the display page, wherein the progress ring displays the time node of the playback screen; in response to a first control instruction of the progress ring, moving the playback screen to a historical playback screen corresponding to any time node of the live broadcast for playback.
[0006] In one embodiment of the present application, the progress ring of the playback screen displayed on the display page includes: at least one progress ring of the playback screen displayed on the display page, wherein each progress ring represents a time scale, and different progress rings represent different time scales.
[0007] In one embodiment of the present application, in response to the first control instruction of the progress ring, the playback screen is moved to a historical playback screen corresponding to any time node of the live broadcast for playback, including: obtaining the historical playback screen corresponding to the video data of the live broadcast; in response to one of the first control instructions of the progress ring, controlling the playback progress of the progress ring to move to a historical playback screen corresponding to any time node of the video data within the time scale corresponding to the progress ring; in response to the second control instruction of the progress ring, playing the historical playback screen.
[0008] In one embodiment of the present application, before responding to the first control instruction of the progress ring, the media stream playback method also includes: responding to the third control instruction of the progress ring, determining that the selected progress ring is the target progress ring, and increasing the original area of the target progress ring to a preset area, so that the control area of the target progress ring corresponding to the third control instruction increases.
[0009] In one embodiment of the present application, the progress ring that displays the playback screen on the display page also includes: a control button that displays the playback screen on the page; increasing the original area of the control button in response to a fourth control instruction of the control button; adjusting the display content of the progress ring in response to a fifth control instruction in the first direction of the control button; and adjusting the area of the progress ring in response to a sixth control instruction in the second direction of the control button.
[0010] In one embodiment of the present application, the media stream playback method also includes: in response to the seventh control instruction of the control button, switching the control button to a progress ring adjustment button; in response to the eighth control instruction of the progress ring adjustment button in the first direction, adjusting the display content of the progress ring; and in response to the ninth control instruction of the progress ring adjustment button in the second direction, adjusting the area of the progress ring.
[0011] In one embodiment of the present application, the media stream playback method also includes: in response to the seventh control instruction of the control button, switching the control button to a live broadcast shortcut control button; in response to the tenth control instruction of the live broadcast shortcut control button, switching the playback screen to the current live broadcast screen.
[0012] In one embodiment of the present application, the media stream playback method also includes: when the playback screen is the historical playback screen, retaining the live broadcast signaling of the live broadcast; if it is necessary to switch the historical playback screen to the current live broadcast screen, calling the live broadcast signaling to switch the historical playback screen to the current live broadcast screen for playback.
[0013] In one embodiment of the present application, the media stream playback method further includes: presetting at least one historical playback point of the historical playback screen; when a historical playback control instruction is received at the historical playback point, switching the playback screen to the historical playback screen for playback.
[0014] To solve the above technical problems, another technical solution adopted in the present application is: to provide a media stream playback system, the media stream playback system comprising: a first display module, a second display module and an adjustment module; wherein the first display module is used to display a live broadcast playback screen on a display page; the second display module is used to display a progress ring of the playback screen on the display page, wherein the progress ring displays the time node of the playback screen; the adjustment module is used to respond to a first control instruction of the progress ring to move the playback screen to a historical playback screen corresponding to any time node of the live broadcast for playback.
[0015] To solve the above technical problems, another technical solution adopted in the present application is: an electronic device, comprising a memory and a processor coupled to the memory, the memory storing at least one computer program, and when the at least one computer program is loaded and executed by the processor, it is used to implement the media stream playback method as described above.
[0016] To solve the above technical problems, another technical solution adopted in the present application is: a computer-readable storage medium, wherein the computer-readable storage medium has at least one program, and when the at least one program is loaded and executed by a processor, it is used to implement the media stream playback method as described above.
[0017] Different from the current technology, the media stream playback method provided by the present application includes: obtaining a display page to display the playback screen of the live broadcast; displaying a progress ring of the playback screen on the display page, wherein the progress ring displays the time node of the playback screen; and responding to the first control instruction of the progress ring, moving the playback screen to a historical playback screen corresponding to any time node of the live broadcast for playback. That is, the present application uses an adjustable progress ring with a playback screen time node to move the playback screen to a historical playback screen corresponding to any time node of the current live broadcast for playback, thereby achieving large-scale time-scale adjustment and fine-tuning, accurately adjusting to the required time node for playback, and improving the accuracy of selecting the time node of the playback screen. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 This is a flowchart of the first embodiment of the media stream playback method of the present application;
[0019] Figure 2 It is a schematic diagram of the structure of the display page showing three progress rings in this application;
[0020] Figure 3 It is a flowchart of an embodiment of step S12 in this application;
[0021] Figure 4 It is a flowchart of an embodiment after step S121 in the present application;
[0022] Figure 5 It is a structural diagram of switching the control button to a progress ring adjustment button in this application;
[0023] Figure 6 It is a flowchart of another embodiment after step S121 in the present application;
[0024] Figure 7 It is a structural diagram of switching the control button to a live broadcast quick control button in this application;
[0025] Figure 8 It is a flowchart of an embodiment of step S13 in this application;
[0026] Fig. 9 It is a flowchart of the second embodiment of the media stream playback method of the present application;
[0027] Fig.10 It is a schematic diagram of the structure of increasing the width of the first progress ring in the present application;
[0028] Fig.11 It is a schematic diagram of the structure of increasing the width of the second progress ring in the present application;
[0029] Fig.12 It is a schematic diagram of the structure of increasing the width of the third progress ring in the present application;
[0030] Fig.13 It is a structural diagram of the playback cursor in this application as a progress ring pointer;
[0031] Fig.14 It is a structural diagram of an embodiment of a media stream playback system of the present application;
[0032] Fig.15 It is a structural schematic diagram of an embodiment of the electronic device of the present application;
[0033] Fig.16 It is a structural diagram of an embodiment of a computer-readable storage medium of the present application. DETAILED DESCRIPTION
[0034] The present invention will be further described in detail below in conjunction with the accompanying drawings and examples. It is particularly noted that the following examples are only used to illustrate the present invention, but are not intended to limit the scope of the present invention. Similarly, the following examples are only partial embodiments of the present invention rather than all embodiments, and all other embodiments obtained by those of ordinary skill in the art without creative work are within the scope of protection of the present invention.
[0035] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0036] In the current media streaming playback method, especially in live broadcast, the live broadcast screen and the historical playback screen of the video are usually separated. The switching between live broadcast and video recording must be operated in different interfaces. In addition, when switching between live broadcast and video recording, the operation is complicated and cannot take into account large-scale time scale adjustment and fine-tuning, making it impossible to accurately select the time node of the playback screen.
[0037] Therefore, a media stream playback method is proposed, which moves the playback screen to the historical playback screen corresponding to any time node of the live broadcast for playback through an adjustable progress ring that can display the playback screen in the display page. The operation is simple, and the time node of the playback screen can be accurately selected for playback. That is, the technical solution of the present application is to set the latest moment of the live recording to the corresponding progress ring, the time scale of the recording data to the corresponding progress ring, and reasonably control the recording data and the live stream signaling. By controlling the progress ring, the live broadcast and the recording screen can be switched conveniently, and the recording can be retrieved over a large time span and fine-tuned to the target recording on a small time scale. The efficiency of recording data retrieval is greatly improved, the user operation is simple and easy to use, and the user experience is greatly improved.
[0038] See also Figure 1 , Figure 1 1 is a flowchart of the first embodiment of the media stream playback method of the present application. It should be noted that if there is substantially the same result, the method of the present application is not limited to the first embodiment. Figure 1 The process sequence shown is limited to the WEB client / human-machine client display of the front-end management client device such as NVR / VMS, and is also applicable to mobile clients such as mobile APP to manage devices connected to the cloud. Among them, the video captured by the IPC is sent to the NVR for storage. Or the mobile terminal such as the IPC itself stores or sends it to the cloud for storage. That is, after the front-end camera captures audio and video, it is transmitted to the client device through the network, or the local video or cloud video is stored, and then played by the client of the client management device.
[0039] like Figure 1 As shown, the media stream playing method includes the following steps:
[0040] S11, obtaining a display page to display a live broadcast screen.
[0041] Among them, the display page can be a display interface on various terminals, and the display interface can be a variety of types of interfaces, such as: a small program interface, an APP interface, a web page interface, etc., which can play live broadcast interfaces. Live broadcast can also be a variety of types of live broadcasts, for example, it can be video live broadcast, audio live broadcast, real-time monitoring screen, etc. The live broadcast screen displayed on the display page can also include a variety of content, such as: the live broadcast screen displayed on the display page, and the live broadcast control that controls the live broadcast screen, wherein the live broadcast control can include: stop live broadcast control and start live broadcast control, so as to control the start and stop of the live broadcast. On the basis of the live broadcast control, exclusive settings can be made based on a specific interface, and other controls can also be set to perform the functions of a specific interface, so that the live broadcast control can adapt to the needs of the current interface and enhance the user experience. For example, the display interface of the live broadcast software on the mobile terminal obtains the playback screen of the live broadcast.
[0042] S12. Displaying a progress ring of the playback picture on the display page, wherein the progress ring displays the time node of the playback picture.
[0043] Among them, the progress ring can be a circular ring with a time scale displayed on it. The content displayed on the progress ring can be a time scale, such as hour scale, minute scale or second scale, or a combination of multiple time scales, that is, the playback progress of the progress ring displays the corresponding playback time; the displayed time node is time OSD (on-screen display), that is, time OSD technology: a method of superimposing time information on the video screen.
[0044] Specifically, when the display page is obtained to display the live broadcast screen, a progress ring corresponding to the broadcast screen is also displayed on the display page, that is, the progress ring can be associated with the broadcast screen. The progress ring can display the time node of the broadcast screen at any time node. As the live broadcast progresses, the time node displayed on the progress ring will also change with the time node corresponding to the live broadcast screen, that is, the time node displayed on the progress ring can change with the time node of the broadcast screen. For example, if the time node of the current broadcast screen is 30 minutes and 30 seconds, the time node displayed on the progress ring is also 30 minutes and 30 seconds. If the time node of the broadcast screen changes to 30 minutes and 31 seconds, the time node displayed on the progress ring will also change to 30 minutes and 31 seconds.
[0045] In one embodiment, the progress ring can switch to display multiple time scales, that is, if the current progress ring is displayed as a second time scale, it can be switched to a minute time scale. For example, if the current progress ring is displayed as 180 seconds, it can be switched to 3 minutes; or if the current progress ring is displayed as a second time scale, it can be switched to a combination of a second time scale and a minute time scale. For example, if the current progress ring is displayed as 200 seconds, it can be switched to 3 minutes and 20 seconds; or if the current progress ring is displayed as a percentage time scale, it can be switched to a combination of an hour, minute, and second time scale. For example, if the current live broadcast is estimated to last for 2 hours and the current progress ring is displayed as 80 percent, it can be switched to 1 hour and 36 minutes.
[0046] In one embodiment, the progress ring can display the time node of the historical playback screen, that is, when the progress ring receives a rotation control instruction, the playback progress or playback point of the progress ring rotates to retrieve the historical playback screen, and the time node corresponding to the historical playback screen can be displayed; that is, the video data is retrieved; for example, the current live broadcast playback screen is 30 minutes and 30 seconds, and the playback progress or playback point of the progress ring is rotated to retrieve the historical playback screen of 20 minutes and 30 seconds, then the progress ring can display the time node 20 minutes and 30 seconds corresponding to the historical playback screen.
[0047] S13. In response to the first control instruction of the progress ring, the playback screen is moved to a historical playback screen corresponding to any time node of the live broadcast for playback.
[0048] Among them, the control instruction is the signal instruction received by the progress ring. For mobile terminals, the signal instruction can be a touch instruction. For display screens that cannot be touched, the signal instruction can be a mouse control instruction. It can be understood that the control instruction in this application only needs to control the playback progress or playback point movement of the progress ring. Since the playback screen is the current playback screen of the live broadcast, if the historical playback screen of the live broadcast needs to be played, it is necessary to control the progress ring to rotate to the time node corresponding to the historical playback screen through the signal instruction.
[0049] Specifically, when the progress ring receives a rotation instruction, it can move from the time node corresponding to the current playback screen of the live broadcast to the time node corresponding to the required historical playback screen as needed, and during the rotation process, the progress ring displays the corresponding time node until the progress ring stops rotating. What is finally displayed is the time node corresponding to the historical playback screen when the progress ring stops, and the corresponding historical playback screen is played at this time node.
[0050] In one embodiment, in order to facilitate the retrieval of video data of a large time scale, at least one progress ring of the playback screen is displayed on the display page, which can be one progress ring, three progress rings, five progress rings, etc., and can be set according to actual needs. Among them, each progress ring represents a time scale, and different progress rings represent different time scales, such as a second progress ring corresponding to a second time scale, a minute progress ring corresponding to a minute time scale, an hour progress ring corresponding to an hour time scale, a month progress ring corresponding to a month time scale, a year progress ring corresponding to a year time scale, etc.
[0051] like Figure 2 As shown, for example, there are three progress rings, that is, three progress rings showing the playback screen on the display page, including a first progress ring corresponding to the second time scale, a second progress ring corresponding to the minute time scale, and a third progress ring corresponding to the hour time scale; they can be sorted from outside to inside or from inside to outside; in order to indicate the time recording situation, different colors can be used to indicate the recording situation of the recording data and the time jump / elapse situation. Here, it is explained from outside to inside, that is, sorted from outside to inside, respectively, the first progress ring corresponding to the second time scale, the second progress ring corresponding to the minute time scale, and the third progress ring corresponding to the hour time scale, then every time the first progress ring rotates one circle, the second progress ring rotates 1 / 60 circle, the second progress ring rotates one circle, and the third progress ring rotates 1 / 60 circle, that is, the first progress ring, the second progress ring and the third progress ring are linked according to the corresponding relationship.
[0052] Each progress ring can use evenly distributed small grids to represent the time scale of video data, or use colors to represent video data. For example, there are 7 days of video in November, so the entire monthly progress ring is 11, and the daily progress ring is divided into 7 equal parts, and each grid or color represents a different date. If it crosses months, such as 6 days in November and 1 day in December, the monthly progress ring is divided into 2 parts. When November is selected, the daily progress ring is divided into 6 parts, and when December is selected, the daily progress ring is exclusive to 1 day. If the video data retention period is only 7 days, the monthly progress ring can be omitted, such as dividing the daily progress ring into 7 parts. When it crosses months, it is sufficient to clearly indicate which month it is. For videos with fewer months of storage, the monthly progress ring can be distributed in equal proportions, such as dividing the monthly progress ring into only 2 parts. If the video is retained for 10 months and there is video in each month, you can consider using the second progress ring to the monthly progress ring from the inside to the outside, that is, the month is on the outside. You can select a mode according to the specific situation, or you can choose to fix a certain mode. In the present application, each progress ring can be represented by various colors, and can also be divided into n equal parts, but not limited to this. In addition, for example, the color of the monthly progress ring can be used to indicate whether there is video recording on certain days, rather than just indicating that there is video recording in that month. That is, the current progress ring can be used to indicate the approximate existence of video recordings on a smaller time scale at the lower level. For a whole year of video recording, or a few days of video recording.
[0053] In order to distinguish the representation of different video types and storage methods, this application does not impose any restrictions. For example, light colors are used to represent low-level videos, dark colors are used to represent high-level videos, gray is used to represent ordinary videos, and blank is used to represent videos without events in event recording mode. The color of each ring can be used to jump to represent the passage of time. For example, the color of the second progress ring rotates once every 60 seconds, and the color moves 1 / 60 of a circle clockwise every time it jumps for one second. The minute progress ring rotates once every 60 minutes, and so on. The rotation principle is similar to the rotation of clocks in daily life.
[0054] In this embodiment, the present application displays the playback screen of the live broadcast by acquiring a display page; displays a progress ring of the playback screen on the display page, wherein the progress ring displays the time node of the playback screen; in response to a first control instruction of the progress ring, moves the playback screen to a historical playback screen corresponding to any time node of the live broadcast for playback; that is, the technical solution of the present application can realize large time scale adjustment and micro time scale adjustment, and can quickly and accurately adjust to the required time node for playback, thereby improving the accuracy of selecting the time node of the playback screen.
[0055] Figure 3 is a flow chart of an embodiment of step S12 of the present application, such as Figure 3 As shown, step S12 also includes:
[0056] S121. Display control buttons for the playback screen on the page.
[0057] The control button may be located at the center of the progress ring or at the edge of the progress ring.
[0058] S122, in response to the fourth control instruction of the control button, increasing the original area of the control button;
[0059] In order to avoid accidentally touching other progress rings when the control button receives a signal instruction, the original area of the control button can be increased under set conditions.
[0060] Specifically, after the control button is selected, the control button is the target control button. It can be set that when the target control button receives a quick click signal instruction within a preset time, the area of the control button is increased, so that when the user controls the control button, the corresponding control area is increased; and after removing the corresponding signal instruction, the original area is changed from the enlarged control area, so that other control buttons or progress rings can be reselected.
[0061] In one embodiment, if the target control button does not receive a quick click signal instruction within a preset time, the target control button is deselected.
[0062] S123. In response to the fifth control instruction of the control button in the first direction, adjust the display content of the progress ring; in response to the sixth control instruction of the control button in the second direction, adjust the area of the progress ring.
[0063] Among them, the control button can control the corresponding content of the progress ring. In order to make corresponding adjustments to the progress ring, it is necessary to give the control button corresponding signal instructions. In order to clarify different adjustments, the control button needs to be divided into areas, such as areas in the first direction and areas in the second direction.
[0064] Specifically, the horizontal direction can be set as the first direction and the vertical direction can be set as the second direction, then: when a signal instruction is received in the horizontal direction of the control button, the display content of the progress ring is adjusted; when a signal instruction is received in the vertical direction of the control button, the area of the progress ring is adjusted; for example: when a signal instruction is received in the horizontal right direction of the control button, the color of the progress ring is adjusted from dark to light, and when a signal instruction is received in the horizontal left direction of the control button, the color of the progress ring is adjusted from light to dark; when a signal instruction is received in the vertical downward direction of the control button, the width of the selected progress ring is increased to increase its area, and when a signal instruction is received in the vertical upward direction of the control button, the area of the selected progress ring is reduced; the signal instruction here can be a sliding signal instruction.
[0065] In this embodiment, in order to prevent the user from accidentally touching the progress ring when controlling the progress ring, the width of the progress ring is adjusted through the control button to increase the width of the selected progress ring, thereby avoiding the user from accidentally touching the time node of the playback screen through the progress ring due to the small contact area.
[0066] Figure 4 is a flow chart of an embodiment after step S121 of the present application, such as Figure 4 As shown, including:
[0067] S124, in response to the seventh control instruction of the control button, switching the control button to a progress ring adjustment button;
[0068] Among them, in order to establish a connection between the control button and the progress ring, and to know the corresponding function of the current control button when controlling the control button, it is necessary to know what function the current control button has and make corresponding switches when it is required to switch to other functions.
[0069] Specifically, the original control button is not connected to the progress ring. When the progress ring needs to be adjusted through the control button, a click signal instruction is given to the control button to switch the original control button to the progress ring adjustment button, and the progress ring can be adjusted accordingly through the progress ring adjustment button. Figure 5 As shown, Figure 5A structural diagram showing switching an original control button to a progress ring adjustment button.
[0070] S125. In response to the eighth control instruction of the progress ring adjustment button in the first direction, adjust the display content of the progress ring; and in response to the ninth control instruction of the progress ring adjustment button in the second direction, adjust the area of the progress ring.
[0071] Among them, the horizontal direction can be set as the first direction and the vertical direction can be set as the second direction, then: when a signal instruction is received in the horizontal direction of the control button, the display content of the progress ring is adjusted; when a signal instruction is received in the vertical direction of the control button, the area of the progress ring is adjusted; for example: when a signal instruction is received in the horizontal right direction of the control button, the color of the progress ring is adjusted from dark to light, and when a signal instruction is received in the horizontal left direction of the control button, the color of the progress ring is adjusted from light to dark; when a signal instruction is received in the vertical downward direction of the control button, the width of the selected progress ring is increased to increase its area, and when a signal instruction is received in the vertical upward direction of the control button, the area of the selected progress ring is reduced; the signal instruction here can be a sliding signal instruction or a click signal instruction.
[0072] In this embodiment, in order to prevent the user from accidentally touching the progress ring when controlling the progress ring, it is set that the original control button is not connected to the progress ring. After the original control button is switched to the progress ring adjustment button, a connection is established, and the width of the progress ring is adjusted through the progress ring adjustment button to increase the width of the selected progress ring, thereby avoiding the user from accidentally touching the time node of the playback screen through the progress ring due to the small contact area; the display content of the progress ring, such as the progress ring color, is adjusted through the progress ring adjustment button.
[0073] Figure 6 is a flow chart of another embodiment after step S121 of the present application, such as Figure 6 As shown, including:
[0074] S126, in response to the seventh control instruction of the control button, switching the control button to a live broadcast quick control button;
[0075] In order to quickly replace the historical playback screen with the live playback screen, a live broadcast quick control button can be set, through which the user can return to the live broadcast screen with one click.
[0076] Specifically, when the playback screen is the historical playback screen, in order to switch to the live playback screen, when the control button receives the seventh control instruction, the control button is switched to a live quick control button; the seventh control instruction here can be a sliding signal instruction or a clicking signal instruction. Figure 7 As shown, Figure 7A structural diagram of switching the control button to a live broadcast quick control button.
[0077] S127. In response to the tenth control instruction of the live broadcast shortcut control button, switch the playback screen to the current live broadcast screen.
[0078] Among them, when switching the playback screen of the recorded video to the live broadcast screen, because it is carried out in the same interface, in order to quickly switch the playback screen, a control button is required for one-click switching.
[0079] Specifically, the live broadcast signaling is retained. If the historical playback screen needs to be switched to the current live broadcast screen, when the live broadcast shortcut control button receives the tenth control signaling, the live broadcast signaling is called to switch the historical playback screen to the live broadcast screen for playback. The tenth control signaling here can be a sliding signal instruction or a click signal instruction.
[0080] In one embodiment, in order to switch from the playback screen of the recorded data back to the playback screen during the live broadcast, the client may not disconnect the signaling of the live stream when playing the recorded video, that is, establish a signaling keep-alive, and the device does not send the stream. When switching back to the live stream, it is no longer necessary to interact with the signaling to establish the stream multiple times. The client only needs to send a signaling to the device to send a real-time stream. The image output speed from the recorded playback interface to the live screen is extremely fast; that is, when the playback screen is the historical playback screen, the live broadcast signaling of the live broadcast is retained; if the historical playback screen needs to be switched to the current live screen, the live broadcast signaling is called to switch the historical playback screen to the current live screen for playback.
[0081] In this embodiment, in order to realize the quick switching between the historical playback screen of the recording and the current playback screen of the live broadcast, the control button is switched to the live broadcast shortcut control button, and the historical playback screen of the recording is directly switched to the current playback screen of the live broadcast through the signal command received by the live broadcast control button.
[0082] In one embodiment, see Figure 8 , Figure 8 1 is a flow chart of an embodiment of step S13, wherein S13 includes:
[0083] S131, obtaining the historical playback screen corresponding to the live video data;
[0084] The live broadcast is played continuously according to the current time. In order to switch to the historical playback screen corresponding to the recorded data, the recorded data from the start of the live broadcast to the current time needs to be retained.
[0085] Specifically, during the live broadcast, the video data of the live broadcast is stored, and when it is necessary to switch to the historical playback screen, the historical playback screen corresponding to the video data is obtained.
[0086] S132, in response to a first control instruction of one of the progress rings, controlling the playback progress of the progress ring to move to a historical playback screen corresponding to any time node of the video data within a time scale corresponding to the progress ring;
[0087] Each progress ring has a corresponding time scale. After selecting one of the progress rings, you can arbitrarily select a historical playback screen corresponding to a time node within the time scale corresponding to the progress ring to play.
[0088] Specifically, after one of the progress rings receives the first control instruction, the selected progress ring can be controlled to rotate to any time node within the corresponding time scale. If the progress ring does not have a target time node, it can be adjusted through multiple associated progress rings until it rotates to the target time node, and the historical playback screen corresponding to the target time node is displayed on the display page. The first control instruction here can be a rotation signal instruction.
[0089] S133. In response to the second control instruction of the progress ring, play the historical playback picture.
[0090] When the target time node is reached, a signal instruction needs to be given to play the historical playback screen of the target time node.
[0091] Specifically, when the target time node is rotated, a second control instruction is given to the selected progress ring, and the historical playback picture corresponding to the target time node is played on the display page.
[0092] In this embodiment, in order to switch to the playback screen of the target time node, it is necessary to switch to the target time node through the progress ring. The switching here can be switching from the current playback screen of the live broadcast to the historical playback screen of the recorded data, or from the historical playback screen of a certain recorded data to the historical playback screen of another recorded data, so as to realize the fast switching between the live broadcast and the recorded data.
[0093] In one embodiment, at least one historical playback point of a historical playback screen may be preset, such as three, five, ten, etc., where the historical playback points refer to historical playback points in a recent time period; for example, if five recent historical playback points are preset, when the user returns to a certain video later, he or she may quickly return to the historical playback points within the recent five points.
[0094] The historical playback point is used to switch the playback screen more quickly, that is, when the historical playback point receives a historical playback control instruction, the playback screen is directly switched to the historical playback screen corresponding to the historical playback point for playback.
[0095] In some embodiments, the historical playback points can also be set according to the time progress, such as 20% progress, 50% progress; they can also be set according to the hourly time, such as 30 minutes progress, 60 minutes progress; they can also be set by the user, etc.
[0096] See also Fig. 9 , Fig. 9 This is a flow chart of the second embodiment of the media stream playback method of the present application. In order to reduce the accidental touches between the progress rings, the width of the progress ring is set to be variable, that is, the size of the progress ring is variable. When selected, the width of the progress ring can be enlarged, so that the area of the progress ring is enlarged, and then the control area for receiving the control instruction is enlarged, reducing the occurrence of accidental touches. Fig. 9 As shown, the media stream playing method includes the following steps:
[0097] S21, obtaining a display page showing a live broadcast screen;
[0098] S22, displaying a progress ring of the playback picture on the display page, wherein the progress ring displays the time node of the playback picture;
[0099] S23. In response to the third control instruction of the progress ring, determine that the selected progress ring is the target progress ring, and increase the original area of the target progress ring to a preset area so that the control area of the target progress ring corresponding to the third control instruction increases.
[0100] Among them, the target progress ring is the selected progress ring. Each progress ring has an original width corresponding to an original area. When not selected, the original width of each progress ring can be the same. After selecting one of the progress rings, the width of the selected progress ring can be increased to increase the area of the selected progress ring.
[0101] Specifically, when the progress ring receives the third control instruction, the selected progress ring is determined to be the target progress ring, and the width of the selected progress ring is increased on the original width of the selected progress ring to increase the original area of the selected progress ring to the preset area. The third control instruction here can be a click signal instruction. That is, when the user selects a progress ring to retrieve video data or find video data of a certain time node, the progress ring can be enlarged to facilitate user operation and control and avoid accidentally touching other progress rings.
[0102] like Fig.10 , Fig.11 , Fig.12 As shown, Fig.10 Indicates that the first progress ring of the outer ring increases in width. Fig.11 Indicates that the second progress ring in the middle circle increases in width. Fig.12 Indicates that the third progress ring of the inner circle increases in width.
[0103] In one embodiment, the total width of the progress ring may be constant, and when the width of one of the progress rings is increased, the widths of the other progress rings are correspondingly reduced.
[0104] In another embodiment, the total width of the progress ring may be increased, and the width of the selected progress ring may be increased while the widths of the other progress rings remain unchanged.
[0105] In some embodiments, after determining the target progress ring, the width of the progress ring can be adjusted by switching the control button to a progress ring adjustment button.
[0106] S24. In response to the first control instruction of the progress ring, the playback screen is moved to a historical playback screen corresponding to any time node of the live broadcast for playback.
[0107] As mentioned above, I will not repeat it here.
[0108] Furthermore, in order to facilitate users to have a better intuitive feeling of the time jump of the live data and the storage of real-time video data, various progress rings can be used to indicate that the second progress ring is more obvious. The live screen can be indicated by the second pointer in the second progress ring jumping clockwise, such as Fig.13 As shown, the play cursor is used as the pointer, and the area after the second pointer jumps can use different colors to indicate the type of video storage and whether there is storage, or whether the video is stored normally. Users can directly observe these detailed information. That is, each progress ring starts from 0 o'clock, and the area swept by the pointer of each progress ring clockwise is the elapsed time, that is, the time when the video data is stored. If there is a video, such as the full-time normal video mode, all the areas swept by the pointer clockwise are recorded, and the time not swept is after the acquisition time. In the second progress ring, it only shows 50 seconds, which means that 50 seconds of video are recorded in this minute. If there is no video storage in this minute (blank representation), it can be displayed intuitively. In fact, the 50 seconds is the moment of live broadcast, and the second pointer is the jump of the live broadcast time. In actual use, the pointer of the video in the live broadcast screen rotates like the seconds, hours, minutes, and days of a clock. It is not limited to the pointer, and the color jump can also indicate that time is flowing. When the user is querying the video, the play cursor can be fixed to facilitate the user to rotate the progress ring. To make it easier to know that the current live broadcast is also in progress, a dotted pointer can be used to indicate the current live broadcast status during recording.
[0109] If the current user slides to select the live screen, the live screen will be played at this time. The user can drag the cursor of the progress ring to search for recordings. Since it corresponds to the pointer in the clock, in this application, as long as a certain progress ring pointer is slid, the other progress ring pointers will change accordingly. It is convenient to search for recordings across multiple days or even across months. After the search is completed, it is convenient to search accurately to a certain minute. This makes it convenient to locate the target playback time with a large time span and a second-level scale. The progress ring can be operated with one hand, and can be switched to the live stream and recordings of various time periods. It can also be accurately fine-tuned to the target time node to play the corresponding playback screen of the target time node. To facilitate one-handed operation, the control panel of the progress ring can be moved to an area that is easy to operate with one hand, and other areas can be used for video preview.
[0110] In the embodiment, different progress rings can be used to represent different time scale recordings, and the progress ring pointer or color indicates the current recording state and recording type. By controlling the progress ring, the live broadcast and recording screen can be switched conveniently, and the recording can be retrieved in a large time span and fine-tuned to the target recording in a small time scale. The recording retrieval efficiency is greatly improved, the user operation is simple and easy to use, and the user experience is greatly improved.
[0111] Different from the prior art, in the present application, the playback screen of the live broadcast is displayed by acquiring a display page; a progress ring of the playback screen is displayed on the display page, wherein the progress ring displays the time node of the playback screen; in response to the third control instruction of the progress ring, the selected progress ring is determined to be the target progress ring, and the original area of the target progress ring is increased to a preset area, so that the control area of the target progress ring corresponding to the third control instruction is increased; in response to the first control instruction of the progress ring, the playback screen is moved to a historical playback screen corresponding to any time node of the live broadcast for playback; that is, the technical solution of the present application can realize large time scale adjustment and small time scale adjustment, and through the adjustable size of the progress ring, the occurrence of accidental touches can be prevented, and the playback can be quickly and accurately adjusted to the required time node, thereby improving the accuracy of selecting the time node of the playback screen.
[0112] See also Fig.14 , Fig.14 This is a structural diagram of an embodiment of the media stream playback system of the present application. The media stream playback method can execute the steps of the above media stream playback method. For related contents, please refer to the detailed description of the above media stream playback method, which will not be repeated here.
[0113] The media stream playback system 200 includes: a first display module 210, a second display module 220 and an adjustment module 230; wherein the first display module 210 is used to display the live broadcast playback screen on the display page; the second display module 220 is used to display the progress ring of the playback screen on the display page, wherein the progress ring displays the time node of the playback screen; the adjustment module 230 is used to respond to the first control instruction of the progress ring to move the playback screen to the historical playback screen corresponding to any time node of the live broadcast for playback.
[0114] See also Fig.15 , Fig.15 1 is a schematic diagram of the structure of an embodiment of an electronic device of the present application. The electronic device can execute the steps in the above-mentioned media stream playback method. The electronic device 300 includes: a memory 310 and a processor 320 coupled to the memory, the memory 310 stores at least one computer program, and when the at least one computer program is loaded and executed by the processor, it is used to implement the above-mentioned media stream playback method.
[0115] See also Fig.16 , Fig.16 The computer-readable storage medium 400 stores at least one program 410, which is used to implement the above-mentioned media stream playing method when loaded and executed by a processor.
[0116] The above scheme, on the one hand, switches the live broadcast screen or the recorded data playback screen based on the progress ring, taking into account the adjustment of the large time scale and the fine-tuning within a small time range, and is simple for users to operate and can be operated with one hand, thereby improving the accuracy of searching for the playback screen; on the other hand, the progress ring can display the time nodes of the playback screen, and there is no need to compare the time one by one, which can improve the efficiency of searching for the recorded data.
[0117] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device implementation described above is only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0118] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0119] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0120] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0121] The above description is only an implementation mode of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A media stream playing method, characterized in that: The media stream playing method comprises: Get the live broadcast screen displayed on the display page; Displaying a progress ring of the playback screen on the display page, wherein the progress ring displays a time node of the playback screen; and displaying a control button of the playback screen on the page, wherein the control button is located at the center of the progress ring; in response to a fourth control instruction of the control button, increasing the original area of the control button; in response to a fifth control instruction of the first direction of the control button, adjusting the display content of the progress ring; in response to a sixth control instruction of the second direction of the control button, adjusting the area of the progress ring; In response to the first control instruction of the progress ring, the playback screen is moved to a historical playback screen corresponding to any time node of the live broadcast for playback.
2. The media stream playing method according to claim 1, characterized in that: The progress ring for displaying the playback screen on the display page includes: At least one progress ring of the playback screen is displayed on the display page, wherein each progress ring represents a time scale, and different progress rings represent different time scales.
3. The media stream playing method according to claim 2, characterized in that: The step of responding to the first control instruction of the progress ring, moving the playback screen to a historical playback screen corresponding to any time node of the live broadcast for playback, comprises: Obtaining the historical playback screen corresponding to the live video data; In response to a first control instruction of one of the progress rings, controlling the playback progress of the progress ring to move to a historical playback screen corresponding to any time node of the video data within a time scale corresponding to the progress ring; In response to the second control instruction of the progress ring, the historical playback picture is played.
4. The media stream playing method according to claim 1, characterized in that: Before responding to the first control instruction of the progress ring, the media stream playing method further includes: In response to the third control instruction of the progress ring, the selected progress ring is determined to be the target progress ring, and the original area of the target progress ring is increased to a preset area so that the control area of the target progress ring corresponding to the third control instruction is increased.
5. The media stream playing method according to claim 1, characterized in that: The media stream playing method further includes: In response to a seventh control instruction of the control button, switching the control button to a progress ring adjustment button; In response to the eighth control instruction of the progress ring adjustment button in the first direction, the display content of the progress ring is adjusted, and in response to the ninth control instruction of the progress ring adjustment button in the second direction, the area of the progress ring is adjusted.
6. The media stream playing method according to claim 1, characterized in that: The media stream playing method further includes: In response to a seventh control instruction of the control button, switching the control button to a live broadcast shortcut control button; In response to the tenth control instruction of the live broadcast shortcut control button, the playback screen is switched to the current live broadcast screen.
7. The media stream playing method according to claim 1, characterized in that: The media stream playing method further includes: When the playback picture is the historical playback picture, retaining the live broadcast signaling of the live broadcast; If it is necessary to switch the historical playback screen to the current live broadcast screen, the live broadcast signaling is called to switch the historical playback screen to the current live broadcast screen for playback.
8. The media stream playing method according to claim 1, characterized in that: The media stream playing method further includes: Presetting at least one historical playback point of the historical playback picture; When a history playback control instruction is received at the history playback point, the playback screen is switched to the history playback screen for playback.
9. A media stream playback system, characterized in that: The media stream playing system comprises: The first display module is used to display the live broadcast screen on the display page; A second display module, used for displaying a progress ring of the playback picture on the display page, wherein the progress ring displays a time node of the playback picture; The adjustment module moves the playback screen to a historical playback screen corresponding to any time node of the live broadcast for playback in response to the first control instruction of the progress ring.
10. An electronic device, characterized in that: The electronic device includes a memory and a processor coupled to the memory, the memory stores at least one computer program, and when the at least one computer program is loaded and executed by the processor, it is used to implement the media stream playback method according to any one of claims 1-8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium has at least one program, and when the at least one program is loaded and executed by the processor, it is used to implement the media stream playback method according to any one of claims 1 to 8.
