Video playing synchronization method and device, electronic equipment and storage medium
By obtaining and using the video synchronization progress of the progress bar control to adjust the multi-channel video playback control in the unmanned vehicle, the problem of inconsistent synchronization playback of the video recording stream is solved, the synchronization efficiency is improved, the waiting time is reduced, and the unmanned vehicle operation is improved. Functional performance of the driving vehicle.
Patent Information
- Application Number
- CN202410854263.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-11
AI Technical Summary
There are inconsistencies in the synchronous playback of multiple video recording streams in driverless vehicles, which leads to an impact on network bandwidth and an increase in synchronization waiting time, affecting delays in map rendering and other functions.
By obtaining the pre-configured progress bar control, the video synchronization progress maintained by it is determined, and each video playback control is controlled to adjust the current playback progress according to the progress, so as to realize the synchronous playback of multiple video recording streams.
It reduces the impact of network bandwidth on video recording stream playback, improves the synchronization effect and efficiency of multiple video recording streams, and reduces synchronization waiting time.
Smart Images

Figure CN118764669A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer application technology, and in particular to a video playback synchronization method, device, electronic equipment and storage medium. Background Art
[0002] Autonomous driving vehicles, also known as driverless vehicles, rely on artificial intelligence, visual computing, radar, global positioning systems and other devices to work together to enable driverless vehicles to achieve automatic and safe vehicle driving without human active operation. At present, driverless vehicles include multiple cameras, each of which can collect video streams during driving. When processing these video streams, it is often necessary to synchronize the video streams. At present, the synchronization of multiple video streams is mainly achieved by monitoring the playback progress of each video separately, and taking the progress time of the video with the slowest playback progress as the progress time of the track playback, and adjusting the playback progress of other videos according to the progress time of the video with the slowest playback progress. However, due to different storage locations or storage formats, each video often needs to be loaded, and the playback of each video stream will also be limited by the network bandwidth, further increasing the inconsistency of the playback progress of each video stream, resulting in an increase in the waiting time for the synchronization of multiple video streams, which is not conducive to the use of driverless vehicles and leads to high delays in functions such as map rendering. Summary of the invention
[0003] The present invention provides a video playback synchronization method, device, electronic device and storage medium to solve the problem of asynchronous playback of multiple video recording streams, reduce the impact of different network bandwidths on the synchronous playback of various video recording streams, and reduce the difficulty of synchronous playback of various recording streams.
[0004] According to one aspect of the present invention, a video playback synchronization method is provided, wherein the method comprises:
[0005] Obtain a preconfigured progress bar control, and determine the video synchronization progress maintained by the progress bar control;
[0006] At least two video playback controls are controlled to adjust the current playback progress according to the video synchronization progress.
[0007] According to another aspect of the present invention, a video playback synchronization device is provided, wherein the device comprises:
[0008] A synchronization information acquisition module, used to acquire a pre-configured progress bar control and determine the video synchronization progress maintained by the progress bar control;
[0009] The playback progress synchronization module is used to control at least two video playback controls to adjust the current playback progress according to the video synchronization progress.
[0010] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0011] at least one processor; and
[0012] a memory communicatively connected to the at least one processor; wherein,
[0013] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the video playback synchronization method described in any embodiment of the present invention.
[0014] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the video playback synchronization method described in any embodiment of the present invention when executed.
[0015] The technical solution of the embodiment of the present invention solves the problem of asynchronous playback of multiple video recording streams by obtaining a pre-configured progress bar control and determining the video synchronization progress maintained by the progress bar control, controlling the current playback progress of each video playback control to match the video synchronization progress, and maintaining the progress of the video recording stream based on the progress bar control, thereby reducing the influencing factors of playback progress synchronization, reducing the impact of network bandwidth on the playback of different video recording streams, improving the synchronization effect of the playback of multiple video recording streams, reducing the synchronization waiting time, and improving the synchronous playback efficiency of multiple video recording streams.
[0016] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 is a flowchart of a video playback synchronization method provided according to Embodiment 1 of the present invention;
[0019] Figure 2 is a flowchart of another video playback synchronization method provided according to Embodiment 2 of the present invention;
[0020] Figure 3is a flowchart of another video playback synchronization method provided according to Embodiment 3 of the present invention;
[0021] Figure 4 This is an example diagram of a video playback synchronization method provided according to Embodiment 4 of the present invention;
[0022] Figure 5 is a structural diagram of a video playback synchronization device provided according to Embodiment 5 of the present invention;
[0023] Figure 6 It is a structural schematic diagram of an electronic device for implementing the video playback synchronization method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0024] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0026] Embodiment 1
[0027] Figure 1 1 is a flowchart of a video playback synchronization method provided according to the first embodiment of the present invention. This embodiment is applicable to the case of synchronous playback of multiple video recording streams. The method can be executed by a video playback synchronization device, which can be implemented in the form of hardware and / or software. The device can be configured in a vehicle terminal or a server. Figure 1 As shown, the method includes:
[0028] Step 110: Obtain a pre-configured progress bar control, and determine the video synchronization progress maintained by the progress bar control.
[0029] Among them, the progress bar control can be a control for playing multiple video recording streams. The progress bar control can include a web page control or a client control, etc. The progress bar control can be pre-configured and used to maintain the progress of synchronizing the video playback controls of each channel. The video synchronization progress maintained by the progress bar control can be implemented by a timer or a timing script program. The types of the multiple video recording streams can be the same or different, and the multiple video recording streams can correspond to the same video content. The progress bar control can control the playback progress of the video recording stream through a timer, and the timing rate of the timer can correspond to the playback speed of the video recording stream. The video synchronization progress can be information for controlling the playback of each video recording stream. The video synchronization progress can specifically include current time point information or time length information from the start time point, etc.
[0030] In an embodiment of the present invention, the playback progress of multiple video recording streams can be maintained through a progress bar control. Specifically, the playback progress can be controlled by a timer or a timing script program in the progress bar control. The playback progress of multiple video recording streams can be determined by accessing the progress bar control regularly or irregularly, and the current time information corresponding to the playback progress can be used as the video synchronization progress.
[0031] Step 120: Control at least two video playback controls to adjust the current playback progress according to the video synchronization progress.
[0032] The video playback control may be a video control for playing multiple video recording streams, each of which may play one video recording stream respectively, and the video recording stream played by each video playback control may be sourced from a collection device or a transfer device. For example, the video playback control may play a video recording stream saved by the vehicle computer or the video playback control may play a video recording stream saved by a cloud server, and the video recording stream may be uploaded by the vehicle computer to the cloud server. The current playback progress may be the progress of each video playback control playing the video recording stream. Based on the different formats of the video recording stream played by the video playback control, the current playback progress may be implemented in the form of a timestamp or the length of time from the start time of playback.
[0033] In an embodiment of the present invention, the video synchronization progress can be sent to each video playback control, so that each video playback control adjusts its corresponding current playback progress according to the synchronization progress information. For example, the progress bar control can be controlled to send the video synchronization progress to each video playback control, and each video playback control adjusts the current playback progress of the video recording stream it plays to the time point corresponding to the video synchronization progress.
[0034] In the embodiment of the present invention, a video synchronization progress is determined through a progress bar control, and the current playback progress of each video playback control is controlled for synchronization according to the video synchronization progress, thereby solving the problem of asynchronous playback of multiple video recording streams. The progress of the video recording stream is maintained based on the progress bar control, which can reduce the influencing factors of playback progress synchronization, reduce the influence of network bandwidth on the playback of different video recording streams, improve the synchronization effect of the playback of multiple video recording streams, reduce the synchronization waiting time, and improve the synchronous playback efficiency of multiple video recording streams.
[0035] Embodiment 2
[0036] Figure 2 is a flowchart of another video playback synchronization method provided according to Embodiment 2 of the present invention. The embodiment of the present invention is a specific embodiment of the above-mentioned invention embodiment, and describes the process of determining the video synchronization progress and the process of adjusting the current playback progress of each video playback control. Figure 2 The method provided in the embodiment of the present invention specifically includes the following steps:
[0037] Step 210: Call the timer configured by the progress bar control and read the timing information of the current timer.
[0038] The timer may be a hardware or software device that counts at a specified technical rate. The timer may be configured in a progress bar control. The timing information configured in the timer may correspond to the video stream played by the progress bar control. The timing rate of the timer may be consistent with the playback speed of the video stream. The progress bar control may control the timer. For example, the progress bar control may read the timing information of the timer, or the progress bar control may control the timing rate of the timer, or the progress bar control may configure the timing duration of the timer. The timing information may be the length of time counted by the timer at the current moment. The timing information may specifically be time point information or time length information from the start time point.
[0039] In an embodiment of the present invention, the progress bar control can be accessed, and the timer configured in the progress bar control can be obtained. The timing information of the current timer can be read and displayed in the progress bar control, so that the user can determine the playback progress of the video recording stream through the progress bar control.
[0040] Step 220: Use the timing information as the video synchronization progress.
[0041] Specifically, the timing information at the current moment in the timer can be used as the video synchronization progress, and the timing information can be used as the playback progress of the video recording stream controlled by the progress bar control at the current moment.
[0042] Step 230: Send the video synchronization progress to the video playback controls respectively.
[0043] In the embodiment of the present invention, the video synchronization progress can be sent to each video playback control respectively. It can be understood that when the implementation methods of the video playback control are different, different transmission protocols can be used to transmit the video synchronization progress to the corresponding video playback control. For example, the progress bar control can call the information transmission interface of each video playback control, and the video synchronization progress can be transmitted to the corresponding video playback control through the information transmission interface of each video playback control.
[0044] Step 240: Compare the video synchronization progress with the local video progress of the video playback control, wherein the local video progress is monitored by the video playback control.
[0045] Among them, the local video progress can be the progress of the video recording stream object currently played by each video playback control. The local video progress can be monitored by the video playback control itself, and the corresponding local video progress can be determined by accessing each video playback control. The local video progress can be expressed in the form of the playback duration of the video recording stream. The local video progress can specifically include the timestamp of the current moment or the length of time from the start time point.
[0046] In an embodiment of the present invention, each video playback control can obtain the local video progress it monitors, compare the local video progress with the video synchronization progress received by the video playback control, and determine whether the local video progress is inconsistent with the video synchronization progress, so as to determine whether the local video progress of the video playback control needs to be adjusted.
[0047] Step 250: When the progress difference between the video synchronization progress and the local video progress is greater than or equal to a threshold, control the video playback control to adjust the local video progress to the video synchronization progress.
[0048] The threshold may be a critical value for determining whether the video synchronization progress is inconsistent with the local video progress, and the threshold may be configured according to business scenarios and / or user requirements.
[0049] In an embodiment of the present invention, for each video playback control, the received video synchronization progress can be compared with the local video progress to determine whether the difference between the video synchronization progress and the local video progress is greater than or equal to a threshold value. The difference can include the difference between the video synchronization progress and the local video progress or the difference between the local video progress and the video synchronization progress. When the difference between the video synchronization progress and the local video progress is greater than or equal to the threshold value, it can be determined that the progress of the video recording stream played by the video playback control is inconsistent with the overall playback progress controlled by the progress bar control. Therefore, the local playback progress of the video playback control can be adjusted to the video synchronization progress, so that the video recording stream played by the video playback control is consistent with the progress controlled by the progress bar control. When the difference between the video synchronization progress and the local video progress is less than the threshold value, it can be considered that the progress of the video recording stream played by the video playback control is consistent with the progress controlled by the progress bar control, and there is no need to adjust the video playback control.
[0050] The embodiment of the present invention obtains a configured timer in a progress bar control, reads timing information of the timer, uses the timing information as video synchronization progress, transmits the video synchronization progress to each video playback control, compares the video synchronization progress with the local playback progress of each video playback control, and when the difference between the local playback progress and the video synchronization progress is greater than or equal to a threshold, adjusts the local playback progress to the video synchronization progress, thereby achieving unified adjustment of the local playback progress of each video playback control to the video synchronization progress determined by the progress bar control, and achieving synchronization of playback progress of different video playback controls. The synchronization of playback progress of each video playback control does not need to wait for each other, which can reduce the influencing factors of playback progress synchronization, reduce synchronization waiting time, and improve the efficiency of synchronous playback of multiple video recording streams.
[0051] Furthermore, based on the above-mentioned embodiments of the invention, it also includes: obtaining user interaction instructions in the progress bar control, wherein the user interaction instructions include at least one of a start instruction, a pause instruction, a progress adjustment instruction, and a playback rate adjustment instruction; controlling the progress bar control to adjust the timer configured for the progress bar control according to the user interaction instruction; obtaining the instruction control interface of the video playback control, and calling the instruction control interface to control the video playback control to execute the user interaction instruction.
[0052] The user interaction instruction may be an instruction for interactive control with the progress bar control, and the user interaction instruction may be used to control the progress bar control, thereby adjusting the playback progress of the video recording stream controlled by the progress bar control, and the user interaction instruction may include but is not limited to at least one of a start instruction, a pause instruction, a progress adjustment instruction, and a playback rate adjustment instruction. The instruction control interface may be an instruction interface in the video playback control that is connected to the progress bar control, and the progress bar control may send the user interaction instruction to the corresponding video playback control for execution by calling the instruction control interface of different video playback controls.
[0053] In an embodiment of the present invention, the progress bar control can also receive a user interaction instruction triggered by a user, and the progress bar control can respond to the user interaction instruction to start playing, pause playing, adjust the progress, and adjust the playback rate of the video recording stream controlled by the playback. The control can be specifically controlled by controlling the timer configured by the progress bar control, and can start the timer timing, pause the timer timing, adjust the timer timing duration, and adjust the timer timing rate, etc. The control of the progress bar control corresponding to the user interaction instruction can be achieved by controlling the timer. At the same time, the instruction control interface of each video playback control can also be obtained, and the user interaction instruction can be transmitted to the corresponding video playback control through the instruction control interface. The video playback control can perform the operation corresponding to the user interaction instruction, so that the video playback control controls the video recording stream it plays to start, pause, adjust the progress, and adjust the playback rate.
[0054] Further, based on the above-mentioned embodiment of the invention, the monitoring of the local video progress by the video playback control includes:
[0055] Extract the duration and start time of the video playback control playing the video recording stream; take the time point of the duration compared to the start time point as the local video progress.
[0056] In an embodiment of the present invention, each video playback control can monitor its own local video progress respectively. The monitoring process of the local video progress can include that the video playback control can extract the time length and the starting time point of the video recording stream it plays. Each video playback control can determine the time as the local video progress by taking the time length as the starting point. The time length can be determined by the timer of the video playback control or the video playback protocol rules. The local video progress can be specifically timestamp information.
[0057] Embodiment 3
[0058] Figure 3is a flowchart of another video playback synchronization method provided according to Embodiment 3 of the present invention. The embodiment of the present invention is a specific embodiment of the above-mentioned invention embodiment, and describes the initialization of the progress bar control and the synchronization control of the map control. Figure 3 The method provided in the embodiment of the present invention specifically includes the following steps:
[0059] Step 310: Determine the video recording stream that is played back by the progress bar control.
[0060] In the embodiment of the present invention, the video recording stream for playback control can be configured for the progress bar control, and the video recording stream configured by the progress bar control can be played back. For example, the progress bar control can be bound to the storage location of the video recording stream, and when the video recording stream is stored in the storage location, the progress bar control can play back the video recording stream at the storage location. Alternatively, a configuration file can be set for the progress bar control, and the configuration file can include one or more access addresses of the video recording stream, and the progress bar control can play back the video recording stream according to the configuration file.
[0061] Step 320: extract the total playing time of the video recording stream, and initialize the timer of the progress bar control according to the total playing time.
[0062] The total playing time may be the total playing time of each video stream, and the total playing time may specifically be the attribute information of the video stream. The progress bar control may access the total playing time of the video stream controlled by the progress bar control.
[0063] In the embodiment of the present invention, the total playback time can be extracted from the video recording stream, and the timer of the progress bar control can be initialized according to the total playback time, so that the timer can count according to the time length corresponding to the total playback time.
[0064] Step 330: Obtain a pre-configured progress bar control, and determine the video synchronization progress maintained by the progress bar control.
[0065] Step 340: Control at least two video playback controls to adjust the current playback progress according to the video synchronization progress.
[0066] Step 350: Transmit the video synchronization progress to the map control.
[0067] The map control may be a control for performing map rendering based on the video recording stream played by each video playback control, and the map control may render the corresponding track in the map based on the current playback progress.
[0068] In an embodiment of the present invention, after the video synchronization progress of the progress bar control is determined, the video synchronization progress can be transmitted to the map control, and the map control determines the passed tracks and the not passed tracks in the map based on the video synchronization progress.
[0069] Step 360: Control the map control to render the first state path according to the current time of the video synchronization progress and render the second state path after the current time.
[0070] The first state path may be a track path that has been passed, and the second state path may be a track path that has not been passed. The first state path and the second state path may be determined by the video synchronization progress.
[0071] In an embodiment of the present invention, the map control can determine the trajectory path that has been passed in the map as the first state path according to the video synchronization progress, and can render the first state path in the map to show that the first state path has been passed. Similarly, the map control can also determine the trajectory path that has not been passed in the map as the second state path according to the video synchronization progress, and can render the second state path in the map to show that the second state path has not been passed.
[0072] According to an embodiment of the present invention, a video recording stream controlled by a progress bar control for playback is determined, the total playback time of the video recording stream is obtained, a timer of the progress bar control is initialized according to the total playback time, a video synchronization progress of the progress bar control is periodically obtained, the video synchronization progress is transmitted to each video playback control to adjust the current playback progress, the video synchronization progress is transmitted to a map control, and the map control is controlled to render a first state path and a second state path after the current time according to the current time in the video synchronization progress, thereby achieving time synchronization between map rendering and video recording stream playback, which can improve the user's map reading experience, initialize the corresponding timer based on the total playback time of the video recording stream, improve the accuracy of the progress bar control in controlling the playback progress of the video recording stream, reduce the degree of asynchrony in playback of different video playback controls, and improve the user's viewing experience.
[0073] Embodiment 4
[0074] Figure 4 This is an example diagram of a video playback synchronization method provided according to the fourth embodiment of the present invention. In this embodiment of the present invention, the video recordings recorded by the unmanned vehicle are stored on the vehicle or in a cloud server. The user terminal is limited by the network bandwidth when pulling multiple video recording streams at the same time. Multiple videos often need to be loaded separately, resulting in inconsistent playback progress. The track display in the map is based on the video progress. This situation causes the playback of the map track to wait, and it is impossible to render and play the video at a uniform speed according to time. For this problem, see Figure 4, the embodiment of the present invention provides a method for a WEB end to pull a video stream collected by multiple cameras stored in a cloud server or a vehicle end, and request vehicle trajectory data stored in the cloud end to perform synchronous playback of the trajectory and multiple video recordings:
[0075] 1. A progress bar control is set in the WEB end. The progress bar control can correspond to multiple video players. The progress bar control can replace the video progress bar of the video player. The progress bar control receives user interactions such as starting, pausing, adjusting the playback progress and the playback speed. The uniform progress of the progress bar control can be achieved through an independently set timer.
[0076] 2. The progress bar control is responsible for updating the current playback progress time. The rendering of the map track and the playback progress of the video stream are based on the current playback progress of the progress bar control. The map control renders the paths that the vehicle has passed and the paths that have not yet passed according to the current playback progress time.
[0077] 3. Multiple video players monitor their own playback progress or the number of seconds played respectively. Multiple video players can obtain the time corresponding to the playback progress through the video start time. Each video player can compare the playback progress time monitored by itself with the progress time of the progress bar control. When the delay between the two exceeds a threshold, the video player actively updates the video progress. The threshold can be specifically 1 second.
[0078] 4. The user actively controls the progress bar control and can start, pause, adjust the progress time, and adjust the playback rate of the video recording stream. After completing the operation of the progress bar control, the interface of the play, pause, adjust the progress time, and adjust the rate of each video player is synchronously called. The interface can be used to call each video player to perform the corresponding operation.
[0079] The embodiment of the present invention independently calculates the playback progress through the timer in the progress bar control, which can ensure that the vehicle trajectory and video playback are performed evenly according to time. At the same time, each video player is automatically synchronized to the current playback progress after loading the video recording stream. There is no need for the video players to wait for each other, which reduces the waiting time for synchronous playback, improves the uniformity of trajectory path playback, and improves user experience.
[0080] Embodiment 5
[0081] Figure 5 Schematic diagram of the structure of a video playback synchronization device provided according to Embodiment 5 of the present invention. Figure 5 As shown, the device comprises:
[0082] The synchronization information acquisition module 410 is used to acquire a pre-configured progress bar control and determine the video synchronization progress maintained by the progress bar control.
[0083] The playback progress synchronization module 420 is used to control at least two video playback controls to adjust the current playback progress according to the video synchronization progress.
[0084] In the embodiment of the present invention, a synchronization information acquisition module determines the video synchronization progress through a progress bar control, and a playback progress synchronization module controls the current playback progress of each video playback control according to the synchronization progress information, thereby solving the problem of asynchronous playback of multiple video recording streams. The progress of the video recording stream is maintained based on the progress bar control, which can reduce the influencing factors of playback progress synchronization, reduce the influence of network bandwidth on the playback of different video recording streams, improve the synchronization effect of the playback of multiple video recording streams, reduce the synchronization waiting time, and improve the synchronous playback efficiency of multiple video recording streams.
[0085] In some inventive embodiments, the synchronization information acquisition module 410 includes:
[0086] The timer unit is used to call the timer configured by the progress bar control and read the timing information of the current timer.
[0087] Progress configuration unit, used to pass timing information as video synchronization progress.
[0088] In some embodiments of the invention, an interactive control module is further included, including:
[0089] The instruction acquisition unit is used to acquire a user interaction instruction in the progress bar control, wherein the user interaction instruction includes at least one of a start instruction, a pause instruction, a progress adjustment instruction, and a play rate adjustment instruction.
[0090] The progress adjustment unit is used to control the progress bar control to adjust the timer configured by the progress bar control according to the user interaction instruction.
[0091] The synchronization unit is adjusted to obtain the instruction control interface of the video playback control, and call the instruction control interface to control the video playback control to execute the user interaction instruction.
[0092] In some other inventive embodiments, the play progress synchronization module 420 includes:
[0093] The progress transmission unit is used to send the video synchronization progress to the video playback controls respectively.
[0094] The progress comparison unit is used to compare the video synchronization progress with the local video progress of the video playback control, wherein the local video progress is monitored by the video playback control.
[0095] The progress adjustment unit is used to control the video playback control to adjust the local video progress to the video synchronization progress when the progress difference between the video synchronization progress and the local video progress is greater than or equal to a threshold.
[0096] In some inventive embodiments, the monitoring of the local video progress by the video playback control in the playback progress synchronization module 420 includes:
[0097] Extract the duration and start time of the video playback control playing the video recording stream; take the time point of the duration compared to the start time point as the local video progress.
[0098] In some embodiments of the invention, a map synchronization module is also included, which is specifically used to transmit the video synchronization progress to the map control; control the map control to render the first state path according to the current time of the video synchronization progress and render the second state path after the current time.
[0099] In some embodiments of the invention, an initialization module is also included, which is specifically used to: determine the video recording stream controlled by the progress bar control; extract the total playback time of the video recording stream, and initialize the timer of the progress bar control according to the total playback time.
[0100] The video playback synchronization device provided in the embodiment of the present invention can execute the video playback synchronization method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0101] Embodiment 6
[0102] Figure 6 1 is a schematic diagram of the structure of an electronic device for implementing the video playback synchronization method of an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0103] like Figure 6As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0104] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0105] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a video playback synchronization method.
[0106] In some embodiments, the video playback synchronization method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the video playback synchronization method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the video playback synchronization method in any other appropriate manner (e.g., by means of firmware).
[0107] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0108] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0109] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0110] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0111] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0112] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0113] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0114] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A video playback synchronization method, characterized in that: The method comprises: Obtain a preconfigured progress bar control, and determine the video synchronization progress maintained by the progress bar control; At least two video playback controls are controlled to adjust the current playback progress according to the video synchronization progress.
2. The method according to claim 1, characterized in that: The step of determining the video synchronization progress maintained by the progress bar control includes: Call the timer configured by the progress bar control and read the timing information of the current timer; The timing information is used as the video synchronization progress.
3. The method according to claim 1 or 2, characterized in that: Also includes: Acquiring a user interaction instruction in the progress bar control, wherein the user interaction instruction includes at least one of a start instruction, a pause instruction, a progress adjustment instruction, and a play rate adjustment instruction; Controlling the progress bar control to adjust a timer configured for the progress bar control according to the user interaction instruction; Obtain an instruction control interface of the video playback control, and call the instruction control interface to control the video playback control to execute the user interaction instruction.
4. The method according to claim 1, characterized in that: The step of controlling at least two video playback controls to adjust the current playback progress according to the video synchronization progress includes: Sending the video synchronization progress to the video playback controls respectively; comparing the video synchronization progress with a local video progress of the video playback control, wherein the local video progress is monitored by the video playback control; When the progress difference between the video synchronization progress and the local video progress is greater than or equal to a threshold, the video playback control is controlled to adjust the local video progress to the video synchronization progress.
5. The method according to claim 4, characterized in that: The monitoring of the local video progress by the video playback control includes: Extract the time length and start time point of the video playback control playing the video recording stream; The time point of the time length compared to the start time point is used as the local video progress.
6. The method according to claim 1, characterized in that: Also includes: Transmitting the video synchronization progress to the map control; The map control is controlled to render a first state path according to the current time of the video synchronization progress and to render a second state path after the current time.
7. The method according to claim 1, characterized in that: Also includes: Determine the video recording stream played by the progress bar control; The total playing time of the video recording stream is extracted, and the timer of the progress bar control is initialized according to the total playing time.
8. A video playback synchronization device, characterized in that: The device comprises: A synchronization information acquisition module, used to acquire a pre-configured progress bar control and determine the video synchronization progress maintained by the progress bar control; The playback progress synchronization module is used to control at least two video playback controls to adjust the current playback progress according to the video synchronization progress.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the video playback synchronization method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the video playback synchronization method according to any one of claims 1 to 7 when executed.
Citation Information
Cited By
Display device and video playing progress display method
CN121037632A
Display device and video playback progress display method
CN121037632B
