Multimedia data synchronization method, device and equipment, readable storage medium and product
By selecting a master player with better performance to control the synchronous playback of multimedia data, the problem of instability in synchronous playback caused by the high data processing pressure of the central server is solved, and higher accuracy and stability are achieved.
Patent Information
- Application Number
- CN202410602219.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2024-08-23
AI Technical Summary
In the existing technology, the central server assumes too many data processing tasks in the synchronous playback of multimedia data and is prone to failure, resulting in low accuracy and stability in the synchronous playback of multimedia data.
By obtaining attribute information of multiple players, the master player with better performance is selected to control the synchronous playback of multimedia data of other players, reducing dependence on the central server and achieving status synchronization between master and slave players.
It improves the accuracy and stability of synchronous playback of multimedia data, reduces the data processing pressure on the central server, and avoids playback interruptions caused by server failures.
Smart Images

Figure CN118540529A
Abstract
Description
Technical Field
[0001] The present application relates to the field of the Internet, specifically to the field of multimedia data processing technology, and in particular to a multimedia data synchronization method, device, equipment, readable storage medium and product. Background Art
[0002] With the development of the Internet, multimedia playback technology has been widely used in various applications. In many applications, it is often necessary to synchronously play the same multimedia data on multiple players. The current method generally relies on a central server to synchronize the status of multimedia data played on each player. However, the central server integrates a variety of data processing tasks, so the data processing pressure of the central server is large and prone to failure. When the central server fails, the synchronous playback of all players will be interrupted, resulting in low accuracy of synchronous playback of multimedia data and low stability of synchronous playback of multimedia data. Summary of the invention
[0003] The embodiments of the present application provide a multimedia data synchronization method, device, equipment, readable storage medium and product, which can improve the accuracy and stability of synchronous playback of multimedia data.
[0004] In a first aspect, the present application provides a multimedia data synchronization method, which is applied to a synchronization platform, comprising:
[0005] Acquire player attribute information of at least two players, and determine a first master player from the at least two players based on the player attribute information of the at least two players; the player attribute information is used to reflect the playback performance of the at least two players, and all players other than the first master player are slave players;
[0006] Sending first slave player information to the first master player, so that the first master player generates first play indication information for the multimedia data to be played during the process of playing the multimedia data to be played, and sends the first play indication information to the slave player based on the first slave player information; the first play indication information is used to indicate the play status of the multimedia data to be played on the first master player;
[0007] The first master player information is sent to the slave player, so that the slave player receives the first play indication information sent by the first master player based on the first master player information, and plays the multimedia data to be played based on the play status indicated by the first play indication information.
[0008] In a second aspect, the present application provides another multimedia data synchronization method, applied to a first main player, comprising:
[0009] Get the first slave player information sent by the synchronization platform;
[0010] generating first play indication information for the multimedia data to be played during the process of playing the multimedia data to be played; the first play indication information is used to indicate the play status of the multimedia data to be played on the first main player;
[0011] The first play indication information is sent to the slave player based on the first slave player information, so that the slave player receives the first play indication information based on the first master player information, and plays the multimedia data to be played based on the play status indicated by the first play indication information.
[0012] In a third aspect, the present application provides another multimedia data synchronization method, which is applied to a slave player, comprising:
[0013] Get the first main player information sent by the synchronization platform;
[0014] Based on the first main player information, the first play indication information sent by the first main player is received, and the multimedia data to be played is played based on the play status indicated by the first play indication information; the first play indication information is used to indicate the play status of the multimedia data to be played on the first main player.
[0015] In a fourth aspect, the present application provides a multimedia data synchronization device, applied to a synchronization platform, comprising:
[0016] A data determination unit, configured to obtain player attribute information of at least two players, and determine a first master player from the at least two players based on the player attribute information of the at least two players; the player attribute information is used to reflect the playback performance of the at least two players, and all players other than the first master player are slave players;
[0017] A first sending unit is used to send first slave player information to the first master player, so that the first master player generates first play indication information for the multimedia data to be played during the process of playing the multimedia data to be played, and sends the first play indication information to the slave player based on the first slave player information; the first play indication information is used to indicate the play status of the multimedia data to be played on the first master player;
[0018] The second sending unit is used to send the first master player information to the slave player, so that the slave player receives the first play indication information sent by the first master player based on the first master player information, and plays the multimedia data to be played based on the play status indicated by the first play indication information.
[0019] In a fifth aspect, the present application provides another multimedia data synchronization device, applied to a first main player, comprising:
[0020] A first acquisition unit, used for acquiring first slave player information sent by the synchronization platform;
[0021] An information generating unit, configured to generate first play indication information for the multimedia data to be played during the process of playing the multimedia data to be played; the first play indication information is used to indicate the play status of the multimedia data to be played on the first main player;
[0022] The information sending unit is used to send the first play indication information to the slave player based on the first slave player information, so that the slave player receives the first play indication information based on the first master player information, and plays the multimedia data to be played based on the play status indicated by the first play indication information.
[0023] In a sixth aspect, the present application provides another multimedia data synchronization device, which is applied to a slave player, comprising:
[0024] A second acquisition unit, used to acquire the first main player information sent by the synchronization platform;
[0025] An information receiving unit is used to receive the first playback indication information sent by the first main player based on the first main player information, and play the multimedia data to be played based on the playback status indicated by the first playback indication information; the first playback indication information is used to indicate the playback status of the multimedia data to be played on the first main player.
[0026] In a seventh aspect, the present application provides a computer device, including: a processor, a memory, and a network interface;
[0027] The processor is connected to a memory and a network interface, wherein the network interface is used to provide a data communication function, the memory is used to store computer program codes, and the processor is used to call the computer program codes so that a computer device including the processor executes the multimedia data synchronization method.
[0028] In an eighth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored. The computer program is suitable for being loaded and executed by a processor so that a computer device having the processor executes the above-mentioned multimedia data synchronization method.
[0029] In a ninth aspect, the present application provides a computer program product or a computer program, which includes computer instructions. When the computer instructions are executed by a processor, they implement the multimedia data synchronization method provided in various optional methods in the present application.
[0030] In the embodiment of the present application, the player attribute information of at least two players is obtained, and the first main player is determined from the at least two players based on the player attribute information of the at least two players; the player attribute information is used to reflect the playback performance of the at least two players, and the players other than the first main player are all slave players; the first slave player information is sent to the first main player, so that the first main player generates first playback indication information for the multimedia data to be played during the playback of the multimedia data to be played, and sends the first playback indication information to the slave player based on the first slave player information; the first playback indication information is used to indicate the playback status of the multimedia data to be played on the first main player; the first main player information is sent to the slave player, so that the slave player receives the first playback indication information sent by the first main player based on the first main player information, and plays the multimedia data to be played based on the playback status indicated by the first playback indication information. By selecting a main player from multiple players in combination with the playback performance of each player, it is possible to select a main player with better playback performance to control the multimedia data playback synchronization of other players, thereby improving the stability of multimedia data synchronization. Furthermore, since the main player controls the multimedia data playback synchronization of the slave players during the multimedia data playback process, there is no need to rely on a central server to synchronize the playback status of the multimedia data played on each player, thereby improving the accuracy and stability of the multimedia data synchronization playback. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0032] Figure 1 is a network architecture diagram of a multimedia data synchronization system provided in an embodiment of the present application;
[0033] Figure 2 This is a schematic diagram of a multimedia data synchronization method provided in an embodiment of the present application. Figure 1 ;
[0034] Figure 3 This is a schematic diagram of a scenario for selecting a main player provided in an embodiment of the present application;
[0035] Figure 4 This is a schematic diagram of a multimedia data synchronization method provided in an embodiment of the present application. Figure 2 ;
[0036] Figure 5This is a schematic diagram of synchronous playback between a master player and a slave player provided in an embodiment of the present application;
[0037] Figure 6 This is a schematic diagram of a multimedia data synchronization method provided in an embodiment of the present application. Figure 3 ;
[0038] Figure 7 This is a schematic diagram of a multimedia data synchronization method provided in an embodiment of the present application. Figure 4 ;
[0039] Figure 8 This is a schematic diagram of the composition structure of a multimedia data synchronization device provided in an embodiment of the present application. Figure 1 ;
[0040] Fig. 9 This is a schematic diagram of the composition structure of a multimedia data synchronization device provided in an embodiment of the present application. Figure 2 ;
[0041] Fig.10 This is a schematic diagram of the composition structure of a multimedia data synchronization device provided in an embodiment of the present application. Figure 3 ;
[0042] Fig.11 It is a schematic diagram of the composition structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0044] The technical solution of the present application can be applied to scenarios where multimedia data is played synchronously on multiple players. For example, it can be applied to online video playback scenarios in audio interaction platforms and video interaction platforms. By selecting a main player from multiple players and controlling the synchronous playback of multimedia data of other players by the main player, the stability and accuracy of the synchronous playback of multimedia data can be improved. By synchronously playing multimedia data on multiple players, such as in scenarios such as online education and remote conferencing, learning efficiency or work efficiency can be improved. For another example, synchronous playback in scenarios such as online cinemas, online games, concerts, shopping malls, and live broadcasts can improve the playback experience of multimedia data.
[0045] It can be understood that the collection, use and processing of relevant data involved in the embodiments of the present application (such as player attribute information, first slave player information, first playback indication information, player performance parameters, player network resource parameters, etc.) require the consent of the corresponding personal information subject and need to comply with relevant laws and regulations.
[0046] Please refer to Figure 1 , Figure 1 is a network architecture diagram of a multimedia data synchronization system provided by an embodiment of the present application, such as Figure 1 As shown, the computer device can exchange data with the terminal device, and the number of the terminal devices can be one or at least two. For example, when the number of the terminal devices is multiple, the terminal device may include Figure 1 The terminal device 101a, the terminal device 101b and the terminal device 101c, etc. Among them, taking the terminal device 101a and the terminal device 101b as an example, for example, different players can be installed on the terminal device 101a and the terminal device 101b, the computer device 102 can obtain the player attribute information of at least two players, and determine the first main player from the at least two players based on the player attribute information of the at least two players. For example, if it is determined that the first main player is installed on the terminal device 101a, then the player installed on the terminal device 101b is the slave player. Further, the computer device 102 can send the first slave player information to the first main player on the terminal device 101a, and send the first main player information to the slave player on the terminal device 101b. Optionally, the first main player on the terminal device 101a can generate first play indication information for the multimedia data to be played during the process of playing the multimedia data to be played, and send the first play indication information to the slave player. The slave player on the terminal device 101b can receive the first play indication information sent by the first master player, and play the multimedia data to be played based on the play status indicated by the first play indication information, thereby achieving synchronization of multimedia data playback on the master and slave players.
[0047] The computer device mentioned in the embodiments of the present application may refer to a server or a terminal device, or may also be a system composed of a server and a terminal device, which is not limited in the embodiments of the present application. The terminal device may be an electronic device, including but not limited to a mobile phone, a tablet computer, a laptop computer, a vehicle-mounted device, etc. The server mentioned above may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, and big data and artificial intelligence platforms.
[0048] For further information, see Figure 2 , Figure 2 This is a schematic diagram of a multimedia data synchronization method provided in an embodiment of the present application. Figure 1 ;like Figure 2 As shown, the multimedia data synchronization method can be applied to a synchronization platform, and the synchronization platform can be deployed on a computer device. The multimedia data synchronization method includes but is not limited to the following steps:
[0049] S101, obtaining player attribute information of at least two players, and determining a first main player from the at least two players based on the player attribute information of the at least two players.
[0050] In some scenarios, multimedia playback technology has been widely used in various applications, such as online education, remote conferencing, online cinema, online games, live broadcasting, etc. However, in these applications, it is often necessary to play the same multimedia data synchronously on multiple players. However, due to factors such as network latency, differences in player performance, differences in operating systems and hardware platforms, synchronously playing multimedia data on multiple players is a challenging task.
[0051] Current synchronous playback methods usually rely on a central server to synchronize the playback status of multimedia data on all players. However, this method has some problems. For example, if the central server fails during the synchronous playback process, the synchronous playback of all players will be interrupted. In addition, the central server has a network bottleneck, which limits the scale and performance of synchronous playback. In addition, the central server needs to process the playback status information of all players, which may cause privacy issues.
[0052] In view of this, an embodiment of the present application provides a multimedia data synchronization method, which selects a main player from multiple players, and the main player takes over the operation of synchronizing multimedia data from the central server, so that synchronous playback can be achieved on multiple players without relying on the central server. Even if the central server fails, synchronous playback of multimedia data on each player can still be achieved. In addition, since the main player has less data processing pressure than the central server, the synchronous playback and performance of more players can be improved. In addition, the main player processes the playback status information of other players, and the central server no longer needs to process the playback status information of all players, which can reduce privacy issues.
[0053] In an embodiment of the present application, the synchronization platform can obtain player attribute information of at least two players, and determine the first main player from the at least two players based on the player attribute information of the at least two players. The player attribute information is used to reflect the playback performance of the at least two players, for example, it can be used to reflect the situation of playing multimedia data on at least two players, for example, it can include but is not limited to the clarity, resolution, fluency, etc. of the multimedia data played on at least two players. The synchronization platform can refer to a platform for data synchronization, and the synchronization platform can be, for example, an application, a website, or a small program, etc. Multimedia data can include, for example, but is not limited to video data, audio data, image data, etc.
[0054] Specifically, at least two players can establish a connection with the synchronization platform respectively, so as to report their own player attribute information to the synchronization platform, and the synchronization platform can determine the first main player from the at least two players based on the player attribute information of the at least two players. Players other than the first main player are all slave players. Alternatively, any one of the at least two players can obtain the player attribute information of all players and report the player attribute information of all players to the synchronization platform. In the embodiment of the present application, the player attribute information of each player can also be uploaded to the synchronization platform in other ways, which is not limited here. Among them, the main player refers to a player used to control the multimedia data playback state of the slave player, and the slave player refers to a player used to receive the control information of the main player to achieve synchronous playback with the multimedia data played on the first main player. At least two players can refer to players deployed on any operating system and any hardware platform, for example, the hardware platform can refer to the terminal device mentioned above. For example, the player can specifically refer to a player on a terminal device, or a movie playback screen in a cinema, or a display screen in various places, etc. The embodiment of the present application does not limit the form of the player. That is to say, the multimedia data playback in the technical solution of the present application can be played synchronously on various operating systems and hardware platforms, thereby realizing cross-platform multi-player synchronous playback of multimedia data.
[0055] In one embodiment, the player attribute information of at least two players includes at least one of the player's performance parameters, the player's network resource parameters, and the data format matched by the player, so that the first main player can be determined from the at least two players based on at least one of the player's performance parameters, the player's network resource parameters, and the data format matched by the player. Among them, the player's performance parameters can be used to reflect the performance of the player in playing multimedia data, for example, the player's performance parameters can include but are not limited to the player's bit rate, resolution, etc. The player's bit rate can be used to reflect the clarity of the multimedia data played by the player, and the player's resolution can be used to reflect the size of the multimedia data played by the player. The player's network resource parameters can be used to reflect parameters such as network signal strength and network stability in the network environment where the player is located. The data format matched by the player can be used to indicate the availability of the player, that is, the player can be used to play which formats of multimedia data, that is, the data format matched by the player can refer to the format of multimedia data supported by the player. For example, the data format matched by the player can include but is not limited to MP4 (a set of compression encoding standards for audio and video information), MPV (a video format) or other formats of audio or video data. It can be understood that the higher the performance parameters of the player, the higher the quality of the multimedia data played by the player, for example, the higher the clarity of the multimedia data. The larger the network resource parameter of the player, the better the effect of the player in playing multimedia data, for example, the higher the fluency of the multimedia data. The more data formats the player matches, the more types of multimedia data the player supports. Therefore, the synchronization platform can select the first main player from at least two players based on the three types of parameters: the performance parameters of the player, the network resource parameters of the player, and the data formats matched by the player, thereby improving the quality of video playback.
[0056] In one case, if the player attribute information of at least two players includes any one of the performance parameters of the players, the network resource parameters of the players, and the data formats matched by the players, then the first main player can be selected from the at least two players based on the parameters. For example, taking the example that the player attribute information of at least two players includes the performance parameters of the players, then the first main player can be selected from the at least two players based on the parameter values corresponding to the performance parameters of the at least two players.
[0057] For example, the player with the largest parameter value corresponding to the performance parameters of the at least two players may be determined as the first main player. Alternatively, the at least two players may be sorted in descending order based on the performance parameter values corresponding to the performance parameters of the at least two players, and the player with the highest ranking may be determined as the first main player.
[0058] In an embodiment of the present application, by determining the player with the largest parameter value corresponding to the performance parameter among at least two players as the first main player, the playback quality of multimedia data by the first main player can be improved, thereby improving the playback quality of subsequent multimedia data synchronized to the slave player.
[0059] In another case, if the player attribute information of at least two players includes any two of the player's performance parameters, the player's network resource parameters, and the data format matched by the player, then the first main player can be selected from the at least two players based on the any two parameters. Taking the example that the player attribute information of at least two players includes the player's performance parameters and the player's network resource parameters, the first main player can be selected from the at least two players based on the parameter values corresponding to the performance parameters of the at least two players and the network resource parameter values corresponding to the network resource parameters of the players. For example, the player with the largest parameter values corresponding to the performance parameters and the largest network resource parameter values corresponding to the network resource parameters of the player is determined as the first main player. By directly determining the player with the largest parameter values corresponding to the performance parameters and the largest network resource parameter values corresponding to the network resource parameters of the player as the first main player, the efficiency of determining the main player can be improved. And by determining the player with the largest parameter values corresponding to the performance parameters and the largest network resource parameter values corresponding to the network resource parameters of the player as the first main player, the clarity and fluency of multimedia data playback can be improved.
[0060] Optionally, if there is a player whose performance parameter corresponds to a parameter value greater than that of other players, but whose network resource parameter corresponds to a network resource parameter less than that of other players, the first weight corresponding to the performance parameters of at least two players and the second weight corresponding to the network resource parameter of the player can be obtained respectively; based on the first weight, the parameter value corresponding to the performance parameter of the player, the second weight, and the network resource parameter value corresponding to the network resource parameter of the player, the first main player is selected from the at least two players. The first weight can be used to reflect the degree of influence of the player's performance parameter on the player selection, and the second weight can be used to reflect the degree of influence of the player's network resource parameter on the player selection. If the first weight is greater than the second weight, it means that the player's performance parameter has a greater influence on the player selection than the player's network resource parameter. If the first weight is less than the second weight, it means that the player's performance parameter has a smaller influence on the player selection than the player's network resource parameter.
[0061] Specifically, for example, the first weight and the parameter value corresponding to the performance parameter of the player can be weighted to obtain a first weighted value, the second weight and the network resource parameter value corresponding to the network resource parameter of the player can be weighted to obtain a second weighted value, the first weighted value and the second weighted value can be added to obtain the total weighted value of the player, and at least two players can be sorted from large to small based on the total weighted values of at least two players, and the player with the highest ranking can be determined as the first main player. By combining the weights corresponding to the performance parameters of the player and the network resource parameters of the player, the weighted summation of the performance parameters of the player and the network resource parameters of the player is equivalent to considering the player from two different dimensions, so as to select a player that is more suitable as the main player, which can improve the accuracy of player selection and improve the playback quality and fluency of multimedia data.
[0062] In another case, if the player attribute information of at least two players includes the performance parameters of the player, the network resource parameters of the player, and the data format matched by the player, then the first main player can be selected from the at least two players based on the performance parameters of the player, the network resource parameters of the player, and the data format matched by the player. For example, the first main player can be selected from the at least two players based on the parameter values corresponding to the performance parameters of the at least two players, the network resource parameter values corresponding to the network resource parameters of the players, and the format types of the data formats matched by the players. For example, the player whose parameter values corresponding to the performance parameters and the network resource parameter values corresponding to the network resource parameters of the players are both the largest and the player whose format types of the data formats matched by the players are the most is determined as the first main player. By directly determining the player whose parameter values corresponding to the performance parameters and the network resource parameter values corresponding to the network resource parameters of the players are both the largest and the player whose format types of the data formats matched by the players are the most as the first main player, the efficiency of determining the main player can be improved. And the player whose parameter values corresponding to the performance parameters and the network resource parameter values corresponding to the network resource parameters of the players are both the largest and the player whose format types of the data formats matched by the players are the most is determined as the first main player, the clarity, fluency and availability of multimedia data playback can be improved.
[0063] Optionally, if there is a player whose performance parameter corresponds to a parameter value greater than that of other players, but the network resource parameter value corresponding to the network resource parameter of the player is less than that of other players, or the data format matched by the player is less than that of other players, then the first weight corresponding to the performance parameters of at least two players, the second weight corresponding to the network resource parameter of the player, and the third weight corresponding to the data format matched by the player can be obtained respectively, and the first main player is selected from at least two players based on the first weight, the parameter value corresponding to the performance parameter of the player, the second weight, the network resource parameter value corresponding to the network resource parameter of the player, the third weight, and the format type of the data format matched by the player. Among them, the third weight can be used to reflect the degree of influence of the data format matched by the player on the player selection. The first weight, the second weight, and the third weight can be set in combination with specific needs. For example, when the influence of the network resource parameter on the player selection is greater than other parameters, the first weight can be greater than the second weight and the third weight.
[0064] Specifically, for example, the first weight and the parameter value corresponding to the performance parameter of the player can be weighted to obtain the first weighted value, the second weight and the network resource parameter value corresponding to the network resource parameter of the player can be weighted to obtain the second weighted value, the third weight and the format type of the data format matched by the player can be weighted to obtain the third weighted value, the first weighted value, the second weighted value and the third weighted value can be added to obtain the total weighted value of the player, and at least two players can be sorted from large to small based on the total weighted values of at least two players, and the player with the highest sorting can be determined as the first main player. Among them, when the third weight and the format type of the data format matched by the player are weighted to obtain the third weighted value, the format parameter corresponding to the data format of the player can be obtained based on the format type of the data format matched by the player or the number of formats of the data format matched by the player, so as to obtain the third weighted value by weighting the third weight and the format parameter of the data format matched by the player. For example, the more the number of data formats of the player, the larger the corresponding format parameter. The fewer the number of data formats of the player, the smaller the corresponding format parameter. Or the data format type of the player is the first format type, the larger the corresponding format parameter. The data format type of the player is the second format type, and the corresponding format parameter is smaller. The usage frequency of the first format type is greater than the usage frequency of the second format type. Or the more data formats the player has and the data format type is the first format type, the larger the corresponding format parameter. The fewer data formats the player has and the data format type is the second format type, the smaller the corresponding format parameter, and so on.
[0065] In the embodiment of the present application, since the first main player is selected in combination with the performance parameters of the player, the network resource parameters of the player, and the data format matched by the player, it is equivalent to considering the player from three different dimensions, and selecting the player with the best playback performance as the first main player, which can improve the accuracy of player selection and improve the playback quality and fluency of multimedia data.
[0066] S102, sending first slave player information to the first master player, so that the first master player generates first play indication information for the multimedia data to be played during the process of playing the multimedia data to be played, and sends the first play indication information to the slave player based on the first slave player information.
[0067] In an embodiment of the present application, since the synchronization platform determines the first main player from at least two players based on the player attribute information reported by at least two players, the first slave player information can be sent to the first main player, so that the first main player generates first playback indication information for the multimedia data to be played during the process of playing the multimedia data to be played, and sends the first playback indication information to the slave player based on the first slave player information.
[0068] Among them, the first slave player information can be used to indicate the slave player, for example, the first slave player information can include the identifier of the slave player, and the identifier of the slave player can be used to uniquely indicate the slave player. Sending the first play indication information to the slave player based on the first slave player information can be sending the first play indication information to the slave player indicated by the first slave player information. The first play indication information is used to indicate the play status of the multimedia data to be played on the first master player. The play status on the first master player can indicate information such as the play progress and play speed of the multimedia data to be played on the first master player. The play progress of the multimedia data to be played on the first master player can refer to the play position of the multimedia data played on the first master player, such as the 10th second. The play speed can refer to the speed used to play the multimedia data to be played on the first master player, such as 0.5 times speed, 1 times speed, 1.5 times speed, 2 times speed, etc. That is to say, the synchronization platform sends the first slave player information to the first master player, and the first master player can determine which players are slave players that need to play the multimedia data to be played synchronously, so that the first master player can send the first play indication information to the slave player.
[0069] In an embodiment of the present application, since at least two slave players except the first master player are all slave players, the number of slave players may include multiple slave players, and the first slave player information is used to indicate multiple slave players. For example, the first slave player information may include the identifiers of multiple slave players, and so on.
[0070] Optionally, when the synchronization platform sends the first slave player information to the first master player, it can send the first storage address of the multimedia data to be played to the first master player. When the first master player receives the first storage address, it can first determine whether the first master player stores the multimedia data to be played locally. If the multimedia data to be played is stored locally, the locally stored multimedia data to be played can be played directly. If there is no multimedia data to be played locally, the multimedia data to be played can be downloaded based on the first storage address for playback. Downloading the multimedia data to be played based on the first storage address can refer to downloading the multimedia data to be played from the storage space indicated by the first storage address. The multimedia data to be played refers to multimedia data that needs to be played on the first master player and synchronized to the slave player for synchronous playback. Multimedia data can, for example, refer to multimedia data in a video-on-demand scenario, multimedia data in a live broadcast scenario, or multimedia data stored locally by the player, etc., which is not limited in the embodiments of the present application. If the first main player does not store the multimedia data to be played locally, the first main player can download and play the multimedia data to be played at the same time, that is, it can download the start multimedia data in the multimedia data to be played for playback, and at the same time download the remaining multimedia data in the multimedia data to be played, and play the remaining multimedia data when the playback of the start multimedia data ends, thereby reducing the time waiting for multimedia data downloading and improving the efficiency of multimedia data playback.
[0071] In this scenario, when reporting player attribute information, each player can report the identifier of the multimedia data to be played that needs to be played synchronously, so that the synchronization platform knows which multimedia data to be played needs to be played synchronously and sends the first storage address of the multimedia data to be played to each player.
[0072] In an optional implementation, the multimedia data that needs to be played synchronously between the first master player and the slave player can also be customized. For example, the synchronization platform can send the first slave player information to the first master player, and after the first master player determines the slave player based on the first slave player information, it can send the information of the multimedia data to be played to the slave player. The information of the multimedia data to be played may include, but is not limited to, the name of the multimedia data to be played, the first storage address of the multimedia data to be played, or the data content of the multimedia data to be played. The first storage address of the multimedia data to be played may be sent by the synchronization platform, or obtained by the first master player from other websites or terminal devices. The data content of the multimedia data to be played may refer to the multimedia data to be played itself, that is, if the first master player locally stores the multimedia data to be played, the multimedia data to be played can be sent directly to the slave player.
[0073] In the embodiment of the present application, by sending the first slave playback information to the first master player, the first master player can determine the slave player that needs to be synchronized for playback, so that the multimedia data to be played can be played, and the synchronous playback of the multimedia data to be played on the slave player can be controlled. By sending the information of the multimedia data to be played to the slave player, the first master player can achieve synchronous playback of the custom multimedia data between the master and slave players, thereby improving the convenience of synchronous playback.
[0074] It is understandable that in order to ensure the accuracy of synchronous playback, the first master player can periodically send first playback instruction information to each slave player, and the first playback instruction information for each time period is different. The first playback instruction information for each time period is generated in real time according to the playback status of the multimedia data to be played on the first master player. Therefore, each slave player can receive the first playback instruction information of the first master player sent by the master player at regular intervals in each time period, thereby improving the accuracy of synchronous playback in the entire process of playing the multimedia data to be played. The essence of synchronous playback can refer to the master player and the slave player downloading the multimedia data to be played from the first storage address of the multimedia data to be played, respectively, or it can also refer to playing the multimedia data to be played stored locally by the master and slave players, and controlling the playback status of each slave player to be the same based on the playback progress of the master player during the playback of the multimedia data to be played.
[0075] S103, sending the first main player information to the slave player, so that the slave player receives the first play indication information sent by the first main player based on the first main player information, and plays the multimedia data to be played based on the play status indicated by the first play indication information.
[0076] In an embodiment of the present application, since the first main player among at least two players is determined, the players except the first main player among the at least two players are all slave players, and the synchronization platform can send the first main player information to the slave player, so that the slave player receives the first play indication information sent by the first main player based on the first main player information, and plays the multimedia data to be played based on the play status indicated by the first play indication information. Among them, the first main player information can be used to indicate the first main player, for example, the first main player information can include the identifier of the first main player. When the slave player receives the first main player information, it can determine the first main player, so that it can receive the first play indication information sent by the first main player. The slave player receiving the first play indication information sent by the first main player based on the first main player information refers to the slave player receiving the first play indication information sent by the first main player indicated by the first main player information. By determining which first main player sends the first play indication information to receive in combination with the first main player information, thereby avoiding receiving the play indication information sent by other players, the accuracy of synchronous playback of multimedia data can be improved.
[0077] Optionally, when the synchronization platform sends the first master player information to the slave player, it can send the first storage address of the multimedia data to be played to the slave player. When the slave player receives the first storage address, it can first determine whether the multimedia data to be played is stored locally in the slave player. If the multimedia data to be played is stored locally, the locally stored multimedia data to be played can be directly played based on the first play indication information of the first master player. If there is no multimedia data to be played locally, the slave player can download the multimedia data to be played based on the first storage address and play it based on the first play indication information of the first master player.
[0078] The essence of playing the multimedia data to be played based on the playback status indicated by the first playback indication information is to play the multimedia data to be played synchronously with the first main player. For example, if the current playback progress of the multimedia data to be played by the first main player is the 10th second, the current playback progress of the multimedia data to be played on the slave player is adjusted to the 10th second. For example, if the speed used to play the multimedia data to be played on the first main player is 1.5 times the speed, the current playback speed of the multimedia data to be played on the slave player is adjusted to 1.5 times the speed, thereby achieving synchronous playback of the multimedia data to be played on the master and slave players.
[0079] In an optional implementation, the first master player and the slave player may also customize the multimedia data to be played synchronously. The slave player may receive information of the multimedia data to be played sent by the first master player, and the information of the multimedia data to be played may include, but is not limited to, the name of the multimedia data to be played, the first storage address of the multimedia data to be played, or the data content of the multimedia data to be played.
[0080] In the embodiment of the present application, the synchronization platform only needs to combine the player attribute information of at least two players to select the first master player from them, and determine the other players as slave players, and inform the master player which slave players exist, and inform the slave player which player is the master player. Synchronous playback of multimedia data can be achieved between the first master player and the slave player, which is equivalent to reducing the synchronous playback pressure of the synchronization platform. Even if the synchronization platform is abnormal, it will not affect the synchronous playback between the master and slave players, thereby improving the stability of the synchronous playback.
[0081] In one implementation, if an abnormality occurs in the process of the first main player playing the multimedia data to be played, the synchronization platform can reselect the main player to control the slave player for the synchronous playback of the multimedia data to be played. For example, the synchronization platform can detect the connection status of the first main player and the connection status of the slave player in real time, and determine whether there are abnormalities between the first main player and the slave player, such as whether there are abnormalities such as network disconnection, failure, network attack, etc. that cause the player to go offline. If it is detected that the main player is offline, the main player can be reselected to control the synchronous playback of the slave player. If it is detected that any slave player is offline, the indication information of the offline of any slave player can be sent to the main player, and the main player can not send the first playback indication information to the slave player before the slave player comes back online, thereby saving the overhead of the main player.
[0082] Specifically, if an abnormality is detected in the first main player and the number of slave players is greater than the target number, the synchronization platform determines a second main player from multiple slave players based on player attribute information of at least two players; sends second slave player information to the second main player, so that the second main player generates second play indication information for the multimedia data to be played during the process of playing the multimedia data to be played, and sends second play indication information to the remaining slave players among the multiple slave players based on the second slave player information; the second play indication information is used to indicate the play status of the multimedia data to be played on the second main player; sends the second main player information to the remaining slave players, so that the remaining slave players receive the second play indication information based on the second main player information, and play the multimedia data to be played based on the play status indicated by the second play indication information.
[0083] Among them, if the number of slave players is greater than the target number, it means that the number of slave players is large, and the master player can be reselected to control the synchronous playback of all slave players. If the number of slave players is less than or equal to the target number, it means that the number of slave players is small, and the master player can no longer be selected to control the synchronous playback of the slave players, and each slave player can control the playback autonomously, and so on. The second master player may refer to the master player reselected due to the abnormality of the first master player for controlling the synchronous playback of the slave players. The first master player and the second master player are both master players, and are both used to control the synchronous playback of the slave players. The first master player and the second master player will not exist at the same time to avoid the disorder of the synchronous playback of the slave players. Determining the second master player from multiple slave players based on the player attribute information of at least two players may refer to selecting the best second master player other than the first master player from multiple slave players. The method of determining the second master player from multiple slave players here can refer to the aforementioned method of selecting the first master player from at least two players, and no excessive description is made here.
[0084] Optionally, if the total weighted values of at least two players are calculated respectively when selecting the first main player, and the player with the largest total weighted value is determined as the first main player, then the player with the largest total weighted value can be directly selected from the remaining players to be determined as the second main player, thereby improving the selection efficiency of the second main player. Alternatively, after the total weighted values of at least two players are calculated respectively when selecting the first main player, the at least two players are sorted from large to small according to the weighted values, and the player with the highest ranking is determined as the first main player, then the player with the highest ranking can be directly selected from the remaining players to be determined as the second main player, thereby improving the selection efficiency of the second main player.
[0085] In the embodiment of the present application, since the second main player is selected from a plurality of slave players, the second main player can take over the synchronization responsibility of the first main player, continue to play the multimedia data to be played and control the remaining slave players to synchronously play the multimedia data to be played. The remaining slave players refer to the players other than the first main player and the second main player among the at least two players. The second slave player information can be used to indicate the remaining slave players. For example, the second slave player information can include the identification of the remaining slave players. By sending the second slave player information to the second main player, the second main player can determine which slave players to send the second play indication information to, thereby achieving synchronous playback of the multimedia data to be played on which slave players. The second play indication information is used to indicate the playback status of the multimedia data to be played on the second main player. Among them, continuing to play can mean that the second main player is the playback status of the first main player being played synchronously as a slave player before the first main player is abnormal. Since the first main player sends the first play indication information to the slave player regularly, before the first main player is abnormal, the second main player can receive the last first play indication information sent before the first main player is abnormal, so the playback status synchronization on the first main player and the slave player can be achieved. When the first main player is abnormal, continuing to play means that the second main player continues to play the multimedia data to be played according to the playback progress of the current multimedia data to be played, thereby ensuring the continuity of the multimedia data playback.
[0086] Furthermore, the synchronization platform sends the second master player information to the remaining slave players, so that the remaining slave players receive the second play indication information based on the second master player information, and play the multimedia data to be played based on the play status indicated by the second play indication information. The second master player information is used to indicate the second master player. For example, the second master player information may include the identifier of the second master player. Since the second master player continues to play the multimedia data to be played according to the play progress when the first master player is abnormal, the remaining slave players can know which player is currently the second master player when receiving the second master player information, so that they can receive the second play indication information sent by the second master player. Since the second play indication information is generated based on the second master player continuing to play the multimedia data to be played, the remaining slave players play the multimedia data to be played based on the play status indicated by the second play indication information, and can continue to play the multimedia data to be played according to the play progress when the first master player is abnormal, thereby ensuring the continuity of synchronous playback of multimedia data.
[0087] In one implementation, when the second master player controls the remaining slave players to synchronously play the multimedia data to be played, if the first master player returns to normal, the synchronization responsibility of the first master player can be restored, or the first master player can be used as a slave player to continue the synchronous playback. For example, if it is detected that the first master player returns to normal, the second master player is determined as a slave player, so that the first master player generates first playback indication information for the multimedia data to be played during the playback of the multimedia data to be played, and sends the first playback indication information to the slave player based on the first slave player information.
[0088] In the embodiment of the present application, since the first main player has returned to normal, the first play indication information can continue to be generated and sent to the slave player for synchronous playback.
[0089] Alternatively, if it is detected that the first main player has returned to normal, the first main player is determined as a slave player, so that the first main player receives the second playback indication information sent by the second main player based on the second main player information, and plays the multimedia data to be played based on the playback status indicated by the second playback indication information.
[0090] In the embodiment of the present application, since the first main player returns to normal, by determining the first main player as a slave player, receiving the second play indication information sent by the second main player and performing synchronous play, the switching of the main player can be reduced and the overhead can be saved.
[0091] Further optionally, when the first main player is determined as a slave player to receive the second playback indication information sent by the second main player for synchronous playback, if a control synchronization request sent by the first main player is received, the second main player is determined as a slave player, so that the first main player generates the first playback indication information for the multimedia data to be played during the process of playing the multimedia data to be played and sends it to each slave player indicated by the first slave player information.
[0092] In the embodiment of the present application, the control synchronization request can be used to request the restoration of the synchronization responsibility of the first master player. After the first master player returns to normal, the first master player can be used as a slave player to synchronize and play the multimedia data to be played. If the control synchronization request sent by the first master player is received, the synchronization platform can restore the synchronization responsibility of the first master player, thereby generating the first playback synchronization information to control the synchronization playback of other slave players.
[0093] In one embodiment, if the first master player is abnormal and the number of slave players is too small, each slave player can autonomously play the multimedia data to be played. For example, if the first master player is detected to be abnormal and the number of slave players is less than or equal to the target number, autonomous play prompt information is sent to the slave players; the autonomous play prompt information is used to prompt the slave players to autonomously play the multimedia data to be played.
[0094] The number of slave players being less than or equal to the target number may refer to a small number of slave players, for example, one slave player. In this case, the master player and the slave player cannot be selected, which is equivalent to the loss of communication between all players. In this case, each player can play the multimedia data autonomously. Autonomously playing the multimedia data to be played may refer to continuing to play the multimedia data according to the playback progress of the multimedia data to be played when the first master player is abnormal, or may refer to replaying the multimedia data to be played, or may refer to playing other multimedia data, and so on.
[0095] In the embodiment of the present application, when communication is lost between the players, each player can start a mechanism for self-synchronous playback, and control playback in combination with the local clock of the player. For example, the local clock can be used to indicate the local playback progress of the player, and continue to play the multimedia data to be played according to the local playback progress, or replay the multimedia data to be played. If each player continues to play the multimedia data to be played according to the playback progress of the multimedia data to be played before the communication is lost, then each player can achieve self-synchronous playback.
[0096] See also Figure 3 , Figure 3 is a schematic diagram of a scenario for selecting a main player provided in an embodiment of the present application, such as Figure 3 As shown, if there is already a main player (i.e., the first main player) in the player, it is detected whether the main player is connected normally. If the main player is connected normally, the main player regularly sends play instruction information to the slave player, thereby realizing the play synchronization between the master and slave players. If there is no main player in the player, it is determined whether the number of remaining players is greater than the target number. If the number of remaining players is greater than the target number, the main player (i.e., the second main player) is reselected, and the main player regularly sends play instruction information to the slave player, thereby realizing the play synchronization between the master and slave players. If the number of players is less than or equal to the target number, autonomous play prompt information is sent to each player, and each player autonomously and synchronously plays the multimedia data to be played.
[0097] In the embodiment of the present application, since the synchronization platform can select a master player from multiple players in combination with the player attribute information of each player, the selected master player can control the slave players to achieve synchronization of multimedia data playback, and the master player selection method is more flexible. For example, the master player can be selected in combination with the network conditions of the player, the performance conditions of the player, and the data format matched by the player, so the playback quality of the multimedia data can be improved. Furthermore, when an abnormality occurs in the master player during the synchronous playback process, the synchronization platform can reselect the master player from the remaining players in combination with the number of remaining players to control the playback of other slave players, which can avoid the situation where the playback cannot continue due to the abnormality of the master player, and improve the stability of the synchronous playback. Even if the communication between all players is lost, each player can continue to play the multimedia data to be played in combination with the current playback progress on the player, which can further improve the multimedia data playback effect, thereby improving the user experience.
[0098] In the embodiment of the present application, the player attribute information of at least two players is obtained, and the first main player is determined from the at least two players based on the player attribute information of the at least two players; the player attribute information is used to reflect the playback performance of the at least two players, and the players other than the first main player are all slave players; the first slave player information is sent to the first main player, so that the first main player generates first playback indication information for the multimedia data to be played during the playback of the multimedia data to be played, and sends the first playback indication information to the slave player based on the first slave player information; the first playback indication information is used to indicate the playback status of the multimedia data to be played on the first main player; the first main player information is sent to the slave player, so that the slave player receives the first playback indication information sent by the first main player based on the first main player information, and plays the multimedia data to be played based on the playback status indicated by the first playback indication information. By selecting a main player from multiple players in combination with the playback performance of each player, it is possible to select a main player with better playback performance to control the multimedia data playback synchronization of other players, thereby improving the stability of multimedia data synchronization. Furthermore, since the main player controls the multimedia data playback synchronization of the slave players during the multimedia data playback process, there is no need to rely on a central server to synchronize the playback status of the multimedia data played on each player, thereby improving the accuracy and stability of the multimedia data synchronization playback.
[0099] For further information, see Figure 4 , Figure 4 This is a schematic diagram of a multimedia data synchronization method provided in an embodiment of the present application. Figure 2 ;like Figure 4As shown, the multimedia data synchronization method can be applied to a first main player, and the first main player can be installed on a terminal device. The multimedia data synchronization method includes but is not limited to the following steps:
[0100] S201, obtaining the first slave player information sent by the synchronization platform.
[0101] In an embodiment of the present application, the synchronization platform can be used to select a master player from multiple players. For example, the synchronization platform can pre-acquire player attribute information reported by at least two players, and determine the first master player from at least two players based on the player attribute information of at least two players, and then the first master player can obtain the first slave player information sent by the synchronization platform. The first slave player information can be used to indicate the slave players that need to be synchronized and played, and the number of slave players can be one or more.
[0102] S202: Generate first play indication information for the multimedia data to be played during the process of playing the multimedia data to be played.
[0103] In the embodiment of the present application, the first main player can play the multimedia data to be played, and generate first play indication information for the multimedia data to be played during the process of playing the multimedia data to be played. The first play indication information is used to indicate the play status of the multimedia data to be played on the first main player. The first main player can subsequently send the first play indication information to the slave player by generating the first play indication information, and the slave player can synchronously play the multimedia data to be played based on the first play indication information.
[0104] In one embodiment, the first playback indication information can be generated in the following manner: in the process of playing the multimedia data to be played, the clock information of the multimedia data to be played and the playback control information for the multimedia data to be played are detected; the clock information is used to indicate the current playback progress of the multimedia data to be played, and the playback control information is used to indicate at least one of the playback speed, pause, resume playback, and playback from the beginning of the multimedia data to be played; the clock information and the playback control information are determined as the first playback indication information for the multimedia data to be played.
[0105] Among them, the clock information may refer to the local clock information of the first main player, and the current playback progress may refer to the playback progress of the multimedia data to be played on the first main player, such as the number of minutes and seconds played in the multimedia data to be played. The playback speed, for example, refers to the speed at which the multimedia data to be played is played. The playback control information may also indicate fast forward playback, fast rewind playback, full screen playback, small window playback, etc. of the multimedia data to be played. By detecting the clock information of the multimedia data to be played and the playback control information for the multimedia data to be played, the playback status of the multimedia data to be played on the first main player may be determined, such as playback progress, playback speed, fast forward playback, fast rewind playback, pause, continue playback from the beginning, full screen playback, small window playback, etc., so that this information can be sent to the slave player as the first playback indication information, and the slave player can synchronously play the multimedia data to be played based on this information.
[0106] Optionally, the first main player can periodically send first playback indication information to each slave player. When the slave player receives the first playback indication information sent periodically, it can adjust the playback of the multimedia data on the slave player based on the first playback indication information most recently received, thereby ensuring that each time period in the process of playing the multimedia data to be played is played synchronously.
[0107] Optionally, when the first master player sends the first slave player information to each slave player, the first master player may determine the sending time in combination with the network resource parameters of each slave player. For example, the first slave player information may also include the network resource parameters of each slave player, and the first master player determines the time point for sending the first play indication information to each slave player based on the network resource parameters of each slave player, and sends the first play indication information to each slave player respectively when the respective time points are met.
[0108] Among them, since the first slave player information sent by the synchronization platform to the first master player may include the network resource parameters of each slave player, when the first master player receives the first slave player information sent by the synchronization platform, it can determine the time point for sending the first play indication information to each slave player in combination with the network resource parameters of each slave player, and the network resource parameters of each slave player can be used to reflect the network quality of the slave player. For example, the time point for sending the first play indication information to the slave player with a better network can be later than that of the slave player with a worse network, so that each slave player receives the first slave player information at the same time point, thereby controlling its own play state to be synchronized with the play state of the first master player.
[0109] Optionally, the first playback indication information may also include a sending timestamp for sending the first playback indication information. Due to network delays and varying network quality of each slave player, each slave player may obtain a receiving timestamp for receiving the first playback indication information when receiving the first playback indication information. Thus, the current playback progress of the multimedia data to be played on the slave player may be adjusted based on the sending timestamp and the receiving timestamp, thereby improving the accuracy of synchronous playback.
[0110] In an optional implementation, when the master player sends the play instruction information to the slave player, the master player may send the play instruction information through a target communication protocol, thereby determining the accuracy, real-time and stability of the data. For example, the target protocol may include but is not limited to the User Datagram Protocol (UDP) and the Transmission Control Protocol (TCP).
[0111] S203: Sending first play indication information to the slave player based on the first slave player information, so that the slave player receives the first play indication information based on the first master player information, and plays the multimedia data to be played based on the play status indicated by the first play indication information.
[0112] In the embodiment of the present application, sending the first play indication information to the slave player based on the first slave player information may refer to: determining the slave player based on the first slave player information and sending the first play indication information to the slave player indicated by the first slave play information. The first master player sends the first play indication information to the slave player, so that the slave player receives the first play indication information based on the first master player information, and plays the multimedia data to be played based on the play status indicated by the first play indication information.
[0113] In the embodiment of the present application, the implementation methods not mentioned in steps S201 to S203 can refer to the implementation methods of the above-mentioned steps S101 to S103, which will not be repeated here.
[0114] See also Figure 5 , Figure 5 is a schematic diagram of synchronous playback between a master player and a slave player provided in an embodiment of the present application, such as Figure 5As shown, the first main player can generate first playback indication information during the process of playing the multimedia data to be played. The first playback indication information can include, for example, clock information of the multimedia data to be played and playback control information for the multimedia data to be played. The clock information and playback control information are sent to each slave player, such as slave player 1 to slave player N, so as to control the synchronization of the multimedia data to be played on each slave player with the multimedia data played on the first main player. It can be understood that the second main player controls the synchronization of the playback of each slave player in the same way as the first main player controls the synchronization of the playback of each slave player, and the embodiments of the present application will not be repeated.
[0115] In the embodiment of the present application, the player attribute information of at least two players is obtained, and the first main player is determined from the at least two players based on the player attribute information of the at least two players; the player attribute information is used to reflect the playback performance of the at least two players, and the players other than the first main player are all slave players; the first slave player information is sent to the first main player, so that the first main player generates first playback indication information for the multimedia data to be played during the playback of the multimedia data to be played, and sends the first playback indication information to the slave player based on the first slave player information; the first playback indication information is used to indicate the playback status of the multimedia data to be played on the first main player; the first main player information is sent to the slave player, so that the slave player receives the first playback indication information sent by the first main player based on the first main player information, and plays the multimedia data to be played based on the playback status indicated by the first playback indication information. By selecting a main player from multiple players in combination with the playback performance of each player, it is possible to select a main player with better playback performance to control the multimedia data playback synchronization of other players, thereby improving the stability of multimedia data synchronization. Furthermore, since the main player controls the multimedia data playback synchronization of the slave players during the multimedia data playback process, there is no need to rely on a central server to synchronize the playback status of the multimedia data played on each player, thereby improving the accuracy and stability of the multimedia data synchronization playback.
[0116] For further information, see Figure 6 , Figure 6 This is a schematic diagram of a multimedia data synchronization method provided in an embodiment of the present application. Figure 3 ;like Figure 6 As shown, the multimedia data synchronization method can be applied to a slave player, which can be installed on a terminal device. The multimedia data synchronization method includes but is not limited to the following steps:
[0117] S301, obtaining the first main player information sent by the synchronization platform.
[0118] In an embodiment of the present application, at least two players can report their respective player attribute information to the synchronization platform, and the synchronization platform can determine the first master player from the at least two players based on the player attribute information of the at least two players, and determine the players other than the first master player in the at least two players as slave players. Thus, the first master player information can be sent to the slave player, and the slave player obtains the first master player information sent by the synchronization platform. The number of slave players can be one or more, and when the number of slave players is more than one, the data processing method of each slave player is the same.
[0119] S302: Receive first play indication information sent by the first main player based on the first main player information, and play the multimedia data to be played based on the play status indicated by the first play indication information.
[0120] In the embodiment of the present application, receiving the first play indication information sent by the first main player based on the first main player information may refer to: determining the first main player based on the first main player information, and receiving the first play indication information sent by the first main player. The first play indication information is used to indicate the play status of the multimedia data to be played on the first main player.
[0121] Among them, playing the multimedia data to be played based on the play status indicated by the first play indication information may refer to: adjusting the play status of the multimedia data to be played on the slave player to the play status indicated by the first play indication information of the first master player. For example, if the current play status of the multimedia data to be played on the first master player includes 1.5 times the speed, playing to the 10th second, and full screen play, the slave player adjusts the current play status of the multimedia data to be played to 1.5 times the speed, playing to the 10th second, and full screen play, thereby ensuring synchronous play on the master and slave players.
[0122] In one embodiment, since there is a delay in the network and the network quality of each slave player is uneven, the playback progress of the multimedia data to be played on the slave player can be controlled based on a synchronization algorithm so that the playback progress of the multimedia data to be played on the slave player and the first master player is the same. The synchronization algorithm can take into account factors such as network delay and clock deviation between each player (i.e., playback progress deviation). For example, the first master player can add a sending timestamp when sending the first playback indication information. When the slave player receives the first playback indication information, it obtains the receiving timestamp of the first playback indication information, calculates the time difference between the sending timestamp and the receiving timestamp of the first playback indication information, and plays the multimedia data to be played based on the time difference and the first playback indication information.
[0123] In an embodiment of the present application, due to the existence of network delays and the like, in order to improve the accuracy of synchronous playback, the network delay can be predicted based on the sending timestamp and receiving timestamp of the first playback indication information, so that the current playback status of the multimedia data to be played on the slave player can be adjusted to ensure synchronous playback of the master and slave players.
[0124] For example, if the first main player sends the first play instruction information indicating that the current first main player plays to the 10th second of the multimedia data to be played, and the slave player receives the first play instruction information in 2 seconds due to network delay, the multimedia data to be played on the slave player will be adjusted to the 12th second when the first play instruction information is received. At this time, the multimedia data to be played in the first main player is played to the 12th second, thereby achieving playback synchronization between the master and slave players. By adjusting the playback progress of the multimedia data to be played on the slave player in combination with network delay, the accuracy of synchronized playback can be improved.
[0125] In one embodiment, since the first main player sends the first play indication information to the slave player at regular intervals, and since the network conditions of each player are different, there may be some slave players with good networks and therefore faster play progress, and some slave players with poor networks and therefore slower play progress. Therefore, when the slave player receives the first play indication information sent regularly by the first main player, it can determine the current play progress of the first main player for the multimedia data to be played based on the first play indication information, and determine the play progress difference between the first main player and the slave player based on the current play progress of the first main player for the multimedia data to be played and the current play progress of the slave player for the multimedia data to be played. If the play progress difference is less than the progress threshold, the play progress of the multimedia data to be played on the slave player can be adjusted by the first adjustment method. If the play progress difference is greater than or equal to the progress threshold, the play progress of the multimedia data to be played on the slave player can be adjusted by the second adjustment method. The adjustment speed of the first adjustment method is less than the adjustment speed of the second adjustment method. For example, the first adjustment method can refer to a method of multiple speed playback, and the second adjustment method can refer to a method of skipping playback. Or the first adjustment method can refer to a method of first multiple speed playback, and the second adjustment method can refer to a method of second multiple speed playback, and so on. The first-speed playback speed is lower than the second-speed playback speed.
[0126] If the playback progress of the first master player is greater than that of the slave player, the first adjustment method is used to increase the playback speed of the slave player so that the playback progress of the slave player is equal to that of the first master player. If the playback progress of the first master player is less than that of the slave player, the first adjustment method is used to reduce the playback speed of the slave player so that the playback progress of the slave player is equal to that of the first master player.
[0127] In an embodiment of the present application, the playback progress of the multimedia data to be played on the slave player is adjusted by combining the playback progress difference between the first master player and the slave player. For example, the playback progress of the multimedia data to be played on the slave player is adjusted by fast speed playback and slow speed playback. This ensures synchronization of playback on the master and slave players, and enables smoother playback progress adjustment, thereby improving visual effects.
[0128] In one implementation, since the first main player periodically sends the first playback indication information to the slave player to control the synchronous playback of the slave player, if the first playback indication information sent by the first main player is not received within the target time period, the playback progress of the multimedia data to be played locally is determined; based on the playback progress of the multimedia data to be played locally, the multimedia data to be played continues to be played.
[0129] In the embodiment of the present application, if factors such as poor network speed, packet loss, or temporary network interruption may cause the first main player to send the first play instruction information regularly, but the slave player has not received the first play instruction information for a long time, then the slave player can continue to play the multimedia data to be played according to the local play progress to ensure synchronous play. When the first play instruction information is received next time, the multimedia data to be played will be played based on the play status indicated by the first play instruction information, so that the synchronous play of the main player can be achieved and the stability of the synchronous play can be improved.
[0130] In a possible implementation, if all slave players lose communication, the slave player can predict the playback progress of the multimedia data to be played based on the most recently received playback instruction information of the master player, and jump the playback progress of the multimedia data to be played on the slave player to the predicted playback progress. Since each slave player can predict the playback progress of the player in this way and jump to the predicted playback progress for playback, it is possible to achieve automatic synchronous playback of the multimedia data to be played in the event of loss of communication.
[0131] In the embodiment of the present application, the implementation methods not mentioned in steps S301 to S302 can refer to the implementation methods of the above-mentioned steps S101 to S103, and the implementation methods of the above-mentioned steps S201 to S203, and will not be repeated here.
[0132] In the embodiment of the present application, the player attribute information of at least two players is obtained, and the first main player is determined from the at least two players based on the player attribute information of the at least two players; the player attribute information is used to reflect the playback performance of the at least two players, and the players other than the first main player are all slave players; the first slave player information is sent to the first main player, so that the first main player generates first playback indication information for the multimedia data to be played during the playback of the multimedia data to be played, and sends the first playback indication information to the slave player based on the first slave player information; the first playback indication information is used to indicate the playback status of the multimedia data to be played on the first main player; the first main player information is sent to the slave player, so that the slave player receives the first playback indication information sent by the first main player based on the first main player information, and plays the multimedia data to be played based on the playback status indicated by the first playback indication information. By selecting a main player from multiple players in combination with the playback performance of each player, it is possible to select a main player with better playback performance to control the multimedia data playback synchronization of other players, thereby improving the stability of multimedia data synchronization. Furthermore, since the main player controls the multimedia data playback synchronization of the slave players during the multimedia data playback process, there is no need to rely on a central server to synchronize the playback status of the multimedia data played on each player, thereby improving the accuracy and stability of the multimedia data synchronization playback.
[0133] For further information, see Figure 7 , Figure 7 This is a schematic diagram of a multimedia data synchronization method provided in an embodiment of the present application. Figure 4 ;like Figure 7 As shown, the multimedia data synchronization method can be applied to a multimedia data synchronization system, which may include a synchronization platform, a master player, and a slave player. The master player may include a first master player and a second master player. The multimedia data synchronization method includes but is not limited to the following steps:
[0134] S401, the synchronization platform obtains player attribute information of at least two players, and determines a first main player from the at least two players based on the player attribute information of the at least two players.
[0135] S402, the synchronization platform sends the first slave player information to the first master player.
[0136] S403, the synchronization platform sends the first master player information to the slave player.
[0137] S404: The first main player generates first play indication information for the multimedia data to be played during the process of playing the multimedia data to be played, and sends the first play indication information to the slave player based on the first slave player information.
[0138] S405: The slave player receives the first play indication information sent by the first master player based on the first master player information, and plays the multimedia data to be played based on the play status indicated by the first play indication information.
[0139] S406: If an abnormality is detected in the first master player and the number of slave players is greater than the target number, the synchronization platform determines a second master player from multiple slave players based on player attribute information of at least two players.
[0140] Among them, the first main player and the second main player are both called main players, and the second main player is a new main player selected by the synchronization platform from multiple slave players after the first main player becomes abnormal.
[0141] S407, the synchronization platform sends the second slave player information to the second master player.
[0142] S408, the synchronization platform sends the second master player information to the remaining slave players.
[0143] S409, the second main player generates second play indication information for the multimedia data to be played during the process of playing the multimedia data to be played, and sends the second play indication information to the remaining slave players among the multiple slave players based on the second slave player information.
[0144] The second main player has the same function as the first main player, which is to play the multimedia data to be played on the player and generate play indication information to send to the slave player to achieve synchronous play between the master and slave players. The way in which the second main player processes the multimedia data to be played can refer to the way in which the first main player processes the multimedia data to be played, and this will not be repeated in the embodiments of the present application.
[0145] S410, the remaining slave players receive the second play indication information based on the second master player information, and play the multimedia data to be played based on the play status indicated by the second play indication information.
[0146] Among them, if the first master player is abnormal and has not recovered, the remaining slave players refer to the players other than the first master player and the second master player among at least two players. If the first master player returns to normal, the remaining slave players refer to the players other than the first master player or the second master player among at least two players. For example, if the first master player resumes the synchronization responsibility at this time, the remaining slave players refer to the players other than the first master player among at least two players. If the first master player does not resume the synchronization responsibility at this time, and the second master player controls the synchronization of the slave players, the remaining slave players refer to the players other than the second master player among at least two players.
[0147] In the embodiment of the present application, the implementation methods not mentioned in steps S401 to S410 can refer to the implementation methods of the above-mentioned steps S101 to S102, the above-mentioned steps S201 to S203, and the above-mentioned steps S301 to S302, and will not be repeated here.
[0148] In a possible implementation, the number of the first main player may be multiple, and the first main player may include the first target main player and the second target main player as an example for explanation. The first target main player may be used as both the main player and the slave player of the second target main player, and the second target main player may be used as both the main player and the slave player of the first target main player. The first target main player and the second target main player may refer to the first two players with the best performance selected by the synchronization platform from at least two players. Further, for the synchronization platform, the following operations may be performed: the synchronization platform sends the first target slave player information and the first target main player information to the first target main player; the synchronization platform sends the second target slave player information and the second target main player information to the second target main player; the synchronization platform sends the first target main player information and the second target main player information to the slave player. Among them, the first target slave player information is used to indicate that when the first target main player is the main player, other slave players such as the second target main player and the remaining slave players. The second target slave player information is used to indicate that when the second target main player is the main player, other slave players such as the first target main player and the remaining slave players. The first target main player information is used to indicate the second target main player. The second target main player information is used to indicate the first target main player.
[0149] For the first target main player, the following operations can be performed: the first target main player generates first target playback indication information for the first multimedia data during the process of playing the first multimedia data, and sends the first target playback indication information to the slave player based on the first target slave player information; the first target main player receives second target playback indication information sent by the second target main player based on the second target main player information, and plays the second multimedia data based on the playback status indicated by the second target playback indication information.
[0150] For the second target main player, the following operations can be performed: the second target main player generates second target play indication information for the second multimedia data during the process of playing the second multimedia data, and sends the second target play indication information to the slave player based on the second target slave player information. The second target main player receives the first target play indication information sent by the first target main player based on the first target main player information, and plays the first multimedia data based on the play status indicated by the first target play indication information.
[0151] It can be seen that since multiple main players are determined at the same time, one main player will serve as a slave player of another main player. Therefore, the synchronization platform can send information about other slave players when it serves as a main player to each main player, and send information about other main players when it serves as a slave player to each main player. Therefore, each main player can generate playback instruction information for controlling other slave players to synchronously play the first multimedia data during the process of playing its own first multimedia data. It can also receive playback instruction information for the second multimedia data sent by other main players, and synchronously play the second multimedia data corresponding to other main players as a slave player. If the multimedia data is video data or image data, two different multimedia data can be played in split screen. For example, in the scenario of online education or online conference, there are multiple teachers or multiple speakers, then the players used by the multiple teachers or multiple speakers can all be used as the main player, and other players (such as players used by objects other than teachers or multiple speakers) can be used as slave players. When the player used by teacher A is used as the main player, the player used by teacher B can be used as the slave player, and when the player used by teacher B is used as the main player, the player used by teacher A can be used as the slave player. In this way, the players used by teacher A, teacher B, and students can display the first multimedia data played on the player used by teacher A and the second multimedia data played on the player used by teacher B through split screen, thereby enhancing the fun of multimedia data playback.
[0152] In an optional implementation, for example, the first multimedia data can be video data, and the second multimedia data can be images or other silent video data, thereby avoiding confusion of sounds in different multimedia data when each player plays different multimedia data in split screen, thereby improving the playback effect.
[0153] In an optional implementation, each player can be integrated into a terminal device, for example, multiple players can be installed on a terminal device, so that the multimedia data to be played can be played through multiple players to enhance the playback effect. Alternatively, each player can be integrated in various locations in various places such as shopping malls, concerts, etc., and by synchronously playing multimedia data, objects at various angles in the corresponding places can perceive the multimedia data to be played, thereby improving the multimedia data playback effect.
[0154] In the embodiment of the present application, intelligently selecting a main player from multiple players in combination with the player attribute information of each player is the key to achieving synchronous playback of multiple players, which can ensure the effect and stability of synchronous playback and improve user experience. For example, selecting a main player on a device with good network connection quality and high player performance can reduce playback delay and jamming, and provide a smooth playback experience. Further, by executing the switching mechanism of the main player when the main player is abnormal, that is, switching from the player to the main player, this is the key to handling the main player offline, and a main player can be quickly reselected from the remaining players, so that the continuity of synchronous playback can be guaranteed, and playback interruption caused by abnormal main player can be avoided. The stability of synchronous playback in scenes such as online education and remote conferences that require continuous playback can be improved. In addition, the mechanism of autonomous synchronous playback is the key to handling the loss of communication between all players, which can ensure that playback can continue when communication is lost between all players, and improve the autonomy and robustness of playback. Moreover, the cross-platform implementation method is the key to achieving synchronous playback of multiple players, which can make the synchronous playback method in the embodiment of the present application applicable to more terminal devices and hardware platforms, improve its universality and application scope, and can achieve synchronous playback on any operating system or hardware platform. The embodiments of the present application can improve the effect, stability, continuity, autonomy and universality of synchronous playback, thereby meeting the needs of different applications and improving user experience.
[0155] In the embodiment of the present application, the player attribute information of at least two players is obtained, and the first main player is determined from the at least two players based on the player attribute information of the at least two players; the player attribute information is used to reflect the playback performance of the at least two players, and the players other than the first main player are all slave players; the first slave player information is sent to the first main player, so that the first main player generates first playback indication information for the multimedia data to be played during the playback of the multimedia data to be played, and sends the first playback indication information to the slave player based on the first slave player information; the first playback indication information is used to indicate the playback status of the multimedia data to be played on the first main player; the first main player information is sent to the slave player, so that the slave player receives the first playback indication information sent by the first main player based on the first main player information, and plays the multimedia data to be played based on the playback status indicated by the first playback indication information. By selecting a main player from multiple players in combination with the playback performance of each player, it is possible to select a main player with better playback performance to control the multimedia data playback synchronization of other players, thereby improving the stability of multimedia data synchronization. Furthermore, since the main player controls the multimedia data playback synchronization of the slave players during the multimedia data playback process, there is no need to rely on a central server to synchronize the playback status of the multimedia data played on each player, thereby improving the accuracy and stability of the multimedia data synchronization playback.
[0156] The method of the embodiment of the present application is introduced above, and the device of the embodiment of the present application is introduced below.
[0157] See also Figure 8 , Figure 8 This is a schematic diagram of the composition structure of a multimedia data synchronization device provided in an embodiment of the present application. Figure 1 The multimedia data synchronization device can be applied to a synchronization platform, and the synchronization platform can be deployed on a computer device; the multimedia data synchronization device can be used to execute the corresponding steps of the multimedia data synchronization method provided in the embodiment of the present application, and the multimedia data synchronization device 80 includes:
[0158] The data determination unit 801 is used to obtain player attribute information of at least two players, and determine a first master player from the at least two players based on the player attribute information of the at least two players; the player attribute information is used to reflect the playback performance of the at least two players, and all players other than the first master player are slave players;
[0159] The first sending unit 802 is used to send the first slave player information to the first master player, so that the first master player generates first play indication information for the multimedia data to be played during the process of playing the multimedia data to be played, and sends the first play indication information to the slave player based on the first slave player information; the first play indication information is used to indicate the play status of the multimedia data to be played on the first master player;
[0160] The second sending unit 803 is used to send the first master player information to the slave player, so that the slave player receives the first play indication information sent by the first master player based on the first master player information, and plays the multimedia data to be played based on the play status indicated by the first play indication information.
[0161] Optionally, the player attribute information of the at least two players includes performance parameters of the players, network resource parameters of the players, and data formats matched by the players; the data determination unit 801 is specifically used to:
[0162] The first main player is selected from the at least two players based on the performance parameter values corresponding to the performance parameters of the at least two players, the network resource parameter values corresponding to the network resource parameters of the players, and the format type of the data format matched by the players.
[0163] Optionally, the data determination unit 801 is further configured to:
[0164] If the first master player is detected to be abnormal, and the number of the slave players is greater than the target number, determining a second master player from the plurality of slave players based on the player attribute information of the at least two players;
[0165] Sending second slave player information to the second master player, so that the second master player generates second play indication information for the multimedia data to be played during the process of playing the multimedia data to be played, and sends the second play indication information to the remaining slave players among the multiple slave players based on the second slave player information; the second play indication information is used to indicate the play status of the multimedia data to be played on the second master player;
[0166] The second master player information is sent to the remaining slave players, so that the remaining slave players receive the second play indication information based on the second master player information, and play the multimedia data to be played based on the play status indicated by the second play indication information.
[0167] Optionally, the data determination unit 801 is further configured to:
[0168] If it is detected that the first main player has returned to normal, the second main player is determined as a slave player, so that the first main player generates first play indication information for the multimedia data to be played during the process of playing the multimedia data to be played, and sends the first play indication information to the slave player based on the first slave player information; or,
[0169] If it is detected that the first main player has returned to normal, the first main player is determined as a slave player, so that the first main player receives the second playback indication information sent by the second main player based on the second main player information, and plays the multimedia data to be played based on the playback status indicated by the second playback indication information.
[0170] Optionally, the data determination unit 801 is further configured to:
[0171] If the first master player is detected to be abnormal, and the number of the slave players is less than or equal to the target number, an autonomous play prompt message is sent to the slave player; the autonomous play prompt message is used to prompt the slave player to autonomously play the multimedia data to be played.
[0172] It should be noted that Figure 8 For the contents not mentioned in the corresponding embodiments, please refer to the description of the method embodiments, which will not be repeated here.
[0173] In the embodiment of the present application, the player attribute information of at least two players is obtained, and the first main player is determined from the at least two players based on the player attribute information of the at least two players; the player attribute information is used to reflect the playback performance of the at least two players, and the players other than the first main player are all slave players; the first slave player information is sent to the first main player, so that the first main player generates first playback indication information for the multimedia data to be played during the playback of the multimedia data to be played, and sends the first playback indication information to the slave player based on the first slave player information; the first playback indication information is used to indicate the playback status of the multimedia data to be played on the first main player; the first main player information is sent to the slave player, so that the slave player receives the first playback indication information sent by the first main player based on the first main player information, and plays the multimedia data to be played based on the playback status indicated by the first playback indication information. By selecting a main player from multiple players in combination with the playback performance of each player, it is possible to select a main player with better playback performance to control the multimedia data playback synchronization of other players, thereby improving the stability of multimedia data synchronization. Furthermore, since the main player controls the multimedia data playback synchronization of the slave players during the multimedia data playback process, there is no need to rely on a central server to synchronize the playback status of the multimedia data played on each player, thereby improving the accuracy and stability of the multimedia data synchronization playback.
[0174] See also Fig. 9 , Fig. 9 This is a schematic diagram of the composition structure of a multimedia data synchronization device provided in an embodiment of the present application. Figure 2 The multimedia data synchronization device can be applied to a first main player, and the first main player can be deployed on a terminal device; the multimedia data synchronization device can be used to execute the corresponding steps of the multimedia data synchronization method provided in the embodiment of the present application, and the multimedia data synchronization device 90 includes:
[0175] A first acquisition unit 901 is used to acquire first slave player information sent by the synchronization platform;
[0176] The information generating unit 902 is used to generate first play indication information for the multimedia data to be played during the process of playing the multimedia data to be played; the first play indication information is used to indicate the play status of the multimedia data to be played on the first main player;
[0177] The information sending unit 903 is used to send the first play indication information to the slave player based on the first slave player information, so that the slave player receives the first play indication information based on the first master player information, and plays the multimedia data to be played based on the play status indicated by the first play indication information.
[0178] Optionally, the information generating unit 902 is specifically configured to:
[0179] In the process of playing the multimedia data to be played, detecting clock information of the multimedia data to be played and playback control information for the multimedia data to be played; the clock information is used to indicate the current playback progress of the multimedia data to be played, and the playback control information is used to indicate at least one of playback speed, pause, resume playback, and playback from the beginning of the multimedia data to be played;
[0180] The clock information and the play control information are determined as first play indication information for the multimedia data to be played.
[0181] It should be noted that Fig. 9 For the contents not mentioned in the corresponding embodiments, please refer to the description of the method embodiments, which will not be repeated here.
[0182] In the embodiment of the present application, the player attribute information of at least two players is obtained, and the first main player is determined from the at least two players based on the player attribute information of the at least two players; the player attribute information is used to reflect the playback performance of the at least two players, and the players other than the first main player are all slave players; the first slave player information is sent to the first main player, so that the first main player generates first playback indication information for the multimedia data to be played during the playback of the multimedia data to be played, and sends the first playback indication information to the slave player based on the first slave player information; the first playback indication information is used to indicate the playback status of the multimedia data to be played on the first main player; the first main player information is sent to the slave player, so that the slave player receives the first playback indication information sent by the first main player based on the first main player information, and plays the multimedia data to be played based on the playback status indicated by the first playback indication information. By selecting a main player from multiple players in combination with the playback performance of each player, it is possible to select a main player with better playback performance to control the multimedia data playback synchronization of other players, thereby improving the stability of multimedia data synchronization. Furthermore, since the main player controls the multimedia data playback synchronization of the slave players during the multimedia data playback process, there is no need to rely on a central server to synchronize the playback status of the multimedia data played on each player, thereby improving the accuracy and stability of the multimedia data synchronization playback.
[0183] See also Fig.10 , Fig.10 This is a schematic diagram of the composition structure of a multimedia data synchronization device provided in an embodiment of the present application. Figure 3 The multimedia data synchronization device can be applied to a slave player, which can be deployed on a terminal device; the multimedia data synchronization device can be used to execute the corresponding steps of the multimedia data synchronization method provided in the embodiment of the present application, and the multimedia data synchronization device 100 includes:
[0184] The second acquisition unit 1001 is used to acquire the first main player information sent by the synchronization platform;
[0185] The information receiving unit 1002 is used to receive the first play indication information sent by the first main player based on the first main player information, and play the multimedia data to be played based on the play status indicated by the first play indication information; the first play indication information is used to indicate the play status of the multimedia data to be played on the first main player.
[0186] Optionally, the information receiving unit 1002 is further used to:
[0187] If the first play instruction information sent by the first main player is not received within the target time period, determining the play progress of the to-be-played multimedia data in the local play;
[0188] Based on the local playback progress of the multimedia data to be played, continue to play the multimedia data to be played.
[0189] It should be noted that Fig.10 For the contents not mentioned in the corresponding embodiments, please refer to the description of the method embodiments, which will not be repeated here.
[0190] In the embodiment of the present application, the player attribute information of at least two players is obtained, and the first main player is determined from the at least two players based on the player attribute information of the at least two players; the player attribute information is used to reflect the playback performance of the at least two players, and the players other than the first main player are all slave players; the first slave player information is sent to the first main player, so that the first main player generates first playback indication information for the multimedia data to be played during the playback of the multimedia data to be played, and sends the first playback indication information to the slave player based on the first slave player information; the first playback indication information is used to indicate the playback status of the multimedia data to be played on the first main player; the first main player information is sent to the slave player, so that the slave player receives the first playback indication information sent by the first main player based on the first main player information, and plays the multimedia data to be played based on the playback status indicated by the first playback indication information. By selecting a main player from multiple players in combination with the playback performance of each player, it is possible to select a main player with better playback performance to control the multimedia data playback synchronization of other players, thereby improving the stability of multimedia data synchronization. Furthermore, since the main player controls the multimedia data playback synchronization of the slave players during the multimedia data playback process, there is no need to rely on a central server to synchronize the playback status of the multimedia data played on each player, thereby improving the accuracy and stability of the multimedia data synchronization playback.
[0191] See also Fig.11 , Fig.11 Schematic diagram of the structure of a computer device provided in an embodiment of the present application. Fig.11As shown, the above-mentioned computer device 110 may include: a processor 1101, a network interface 1104 and a memory 1105. In addition, the above-mentioned computer device 110 may also include: a user interface 1103 and at least one communication bus 1102. Among them, the communication bus 1102 is used to realize the connection and communication between these components. Among them, the user interface 1103 may include a display screen (Display), a keyboard (Keyboard), and the optional user interface 1103 may also include a standard wired interface and a wireless interface. The network interface 1104 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1105 may be a high-speed RAM memory, or it may be a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 1105 may optionally also be at least one storage device located away from the aforementioned processor 1101. As Fig.11 As shown, the memory 1105 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a device control application program.
[0192] exist Fig.11 In the computer device 110 shown, the network interface 1104 can provide a network communication function; the user interface 1103 is mainly used to provide an input interface for the user; and the processor 1101 can be used to call the device control application stored in the memory 1105 to achieve:
[0193] Acquire player attribute information of at least two players, and determine a first master player from the at least two players based on the player attribute information of the at least two players; the player attribute information is used to reflect the playback performance of the at least two players, and all players other than the first master player are slave players;
[0194] Sending first slave player information to the first master player, so that the first master player generates first play indication information for the multimedia data to be played during the process of playing the multimedia data to be played, and sends the first play indication information to the slave player based on the first slave player information; the first play indication information is used to indicate the play status of the multimedia data to be played on the first master player;
[0195] The first master player information is sent to the slave player, so that the slave player receives the first play indication information sent by the first master player based on the first master player information, and plays the multimedia data to be played based on the play status indicated by the first play indication information.
[0196] It should be understood that the computer device 110 described in the embodiments of the present application can execute the above Figure 2 , Figure 4 , Figure 6 and Figure 7 The description of the multimedia data synchronization method in the corresponding embodiment can also be performed as described above. Figure 8 , Fig. 9 and Fig.10 The description of the multimedia data synchronization device in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated here either.
[0197] In the embodiment of the present application, the player attribute information of at least two players is obtained, and the first main player is determined from the at least two players based on the player attribute information of the at least two players; the player attribute information is used to reflect the playback performance of the at least two players, and the players other than the first main player are all slave players; the first slave player information is sent to the first main player, so that the first main player generates first playback indication information for the multimedia data to be played during the playback of the multimedia data to be played, and sends the first playback indication information to the slave player based on the first slave player information; the first playback indication information is used to indicate the playback status of the multimedia data to be played on the first main player; the first main player information is sent to the slave player, so that the slave player receives the first playback indication information sent by the first main player based on the first main player information, and plays the multimedia data to be played based on the playback status indicated by the first playback indication information. By selecting a main player from multiple players in combination with the playback performance of each player, it is possible to select a main player with better playback performance to control the multimedia data playback synchronization of other players, thereby improving the stability of multimedia data synchronization. Furthermore, since the main player controls the multimedia data playback synchronization of the slave players during the multimedia data playback process, there is no need to rely on a central server to synchronize the playback status of the multimedia data played on each player, thereby improving the accuracy and stability of the multimedia data synchronization playback.
[0198] The embodiment of the present application also provides a computer-readable storage medium, which stores a computer program, which includes program instructions, which, when executed by a computer, causes the computer to execute the method of the aforementioned embodiment, and the computer may be part of the computer device mentioned above. For example, it is the above-mentioned processor 1101. As an example, the program instructions may be deployed on a computer device for execution, or deployed on multiple computer devices located at one location for execution, or, executed on multiple computer devices distributed at multiple locations and interconnected by a communication network, and multiple computer devices distributed at multiple locations and interconnected by a communication network may constitute a blockchain network.
[0199] The embodiment of the present application also provides a computer program product or a computer program, which includes a computer instruction, and when the computer instruction is executed by a processor, some or all of the steps in the above method are implemented. For example, the computer instruction is stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device performs the steps performed in the embodiments of the above methods.
[0200] Those skilled in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0201] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A multimedia data synchronization method, characterized in that: Applied to a synchronization platform, the method comprises: Acquire player attribute information of at least two players, and determine a first master player from the at least two players based on the player attribute information of the at least two players; the player attribute information is used to reflect the playback performance of the at least two players, and players other than the first master player are all slave players; Sending first slave player information to the first master player, so that the first master player generates first play indication information for the multimedia data to be played during the process of playing the multimedia data to be played, and sends the first play indication information to the slave player based on the first slave player information; the first play indication information is used to indicate the play status of the multimedia data to be played on the first master player; The first master player information is sent to the slave player, so that the slave player receives the first play indication information sent by the first master player based on the first master player information, and plays the multimedia data to be played based on the play status indicated by the first play indication information.
2. The method according to claim 1, characterized in that: The player attribute information of the at least two players includes performance parameters of the players, network resource parameters of the players, and data formats matched by the players; The determining a first main player from the at least two players based on the player attribute information of the at least two players comprises: The first main player is selected from the at least two players based on the performance parameter values corresponding to the performance parameters of the at least two players, the network resource parameter values corresponding to the network resource parameters of the players, and the format type of the data format matched by the players.
3. The method according to claim 1 or 2, characterized in that: The method further comprises: If the first master player is detected to be abnormal, and the number of the slave players is greater than the target number, determining a second master player from the plurality of slave players based on the player attribute information of the at least two players; Sending second slave player information to the second master player, so that the second master player generates second play indication information for the multimedia data to be played during the process of playing the multimedia data to be played, and sends the second play indication information to the remaining slave players among the multiple slave players based on the second slave player information; the second play indication information is used to indicate the play status of the multimedia data to be played on the second master player; The second master player information is sent to the remaining slave players, so that the remaining slave players receive the second play indication information based on the second master player information, and play the multimedia data to be played based on the play status indicated by the second play indication information.
4. The method according to claim 3, characterized in that The method further comprises: If it is detected that the first master player returns to normal, the second master player is determined as a slave player, so that the first master player generates first play indication information for the multimedia data to be played during the process of playing the multimedia data to be played, and sends the first play indication information to the slave player based on the first slave player information; or If it is detected that the first main player has returned to normal, the first main player is determined as a slave player, so that the first main player receives the second playback indication information sent by the second main player based on the second main player information, and plays the multimedia data to be played based on the playback status indicated by the second playback indication information.
5. The method according to claim 1 or 2, characterized in that: The method further comprises: If an abnormality is detected in the first master player and the number of the slave players is less than or equal to the target number, autonomous playback prompt information is sent to the slave players; the autonomous playback prompt information is used to prompt the slave players to autonomously play the multimedia data to be played.
6. A multimedia data synchronization method, characterized in that: Applied to the first main player, the method comprises: Get the first slave player information sent by the synchronization platform; generating first play indication information for the multimedia data to be played during the process of playing the multimedia data to be played; the first play indication information is used to indicate the play status of the multimedia data to be played on the first main player; The first play indication information is sent to the slave player based on the first slave player information, so that the slave player receives the first play indication information based on the first master player information, and plays the multimedia data to be played based on the play status indicated by the first play indication information.
7. The method according to claim 6, characterized in that The generating first play indication information for the multimedia data to be played during the process of playing the multimedia data to be played includes: In the process of playing the multimedia data to be played, detecting clock information of the multimedia data to be played and playback control information for the multimedia data to be played; the clock information is used to indicate the current playback progress of the multimedia data to be played, and the playback control information is used to indicate at least one of playback speed, pause, resume playback, and playback from the beginning of the multimedia data to be played; The clock information and the play control information are determined as first play indication information for the multimedia data to be played.
8. A multimedia data synchronization method, characterized in that: Applied to a slave player, the method comprises: Get the first main player information sent by the synchronization platform; Based on the first main player information, the first play indication information sent by the first main player is received, and the multimedia data to be played is played based on the play status indicated by the first play indication information; the first play indication information is used to indicate the play status of the multimedia data to be played on the first main player.
9. The method according to claim 8, characterized in that The method further comprises: If the first play instruction information sent by the first main player is not received within the target time period, determining the play progress of the to-be-played multimedia data in the local play; Based on the local playback progress of the multimedia data to be played, continue to play the multimedia data to be played.
10. A multimedia data synchronization device, characterized in that: Applied to a synchronization platform, the device comprises: a data determination unit, configured to obtain player attribute information of at least two players, and determine a first master player from the at least two players based on the player attribute information of the at least two players; the player attribute information is used to reflect the playback performance of the at least two players, and players other than the first master player are all slave players; A first sending unit, configured to send first slave player information to the first master player, so that the first master player generates first play indication information for the multimedia data to be played during the process of playing the multimedia data to be played, and sends the first play indication information to the slave player based on the first slave player information; the first play indication information is used to indicate the play status of the multimedia data to be played on the first master player; The second sending unit is used to send the first master player information to the slave player, so that the slave player receives the first play indication information sent by the first master player based on the first master player information, and plays the multimedia data to be played based on the play status indicated by the first play indication information.
11. A multimedia data synchronization device, characterized in that: Applied to a first main player, the device comprises: A first acquisition unit, used for acquiring first slave player information sent by the synchronization platform; An information generating unit, configured to generate first play indication information for the multimedia data to be played during the process of playing the multimedia data to be played; the first play indication information is used to indicate the play status of the multimedia data to be played on the first main player; An information sending unit is used to send the first playback indication information to the slave player based on the first slave player information, so that the slave player receives the first playback indication information based on the first master player information, and plays the multimedia data to be played based on the playback status indicated by the first playback indication information.
12. A multimedia data synchronization device, characterized in that: Applied to a slave player, the device comprises: A second acquisition unit, used to acquire the first main player information sent by the synchronization platform; An information receiving unit is used to receive the first playback indication information sent by the first main player based on the first main player information, and play the multimedia data to be played based on the playback status indicated by the first playback indication information; the first playback indication information is used to indicate the playback status of the multimedia data to be played on the first main player.
13. A computer device, characterized in that: include: Processor, memory, and network interface; The processor is connected to the memory and the network interface, wherein the network interface is used to provide a data communication function, the memory is used to store program code, and the processor is used to call the program code so that the computer device executes the method described in any one of claims 1 to 5, or executes the method described in any one of claims 6 to 7, or executes the method described in any one of claims 8 to 9.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which is suitable for being loaded and executed by a processor, so that a computer device having the processor executes the method of any one of claims 1 to 5, or executes the method of any one of claims 6 to 7, or executes the method of any one of claims 8 to 9.
15. A computer program product, characterized in that The computer program product comprises computer instructions, and when the computer instructions are executed by a processor, the method according to any one of claims 1 to 5 is implemented, or the method according to any one of claims 6 to 7 is implemented, or the method according to any one of claims 8 to 9 is implemented.
Citation Information
Cited By
Cross-platform television program tracking system
CN119815094A
Method and apparatus for audio processing, and device and storage medium
WO2026067452A1
