Play progress correction method and device, electronic equipment and readable storage medium

文档序号:1470491 发布日期:2020-02-21 浏览:27次 中文

阅读说明:本技术 播放进度修正方法、装置、电子设备及可读存储介质 (Play progress correction method and device, electronic equipment and readable storage medium ) 是由 林木 于 2019-11-27 设计创作,主要内容包括:本发明提供了一种播放进度修正方法、装置、电子设备及可读存储介质,属于计算机技术领域。该方法中,在播放群组视频的过程中,群成员终端会向服务器发送用于表示所述群成员终端当前的播放进度的播放进度消息,服务器基于接收到的该播放进度消息确定群成员终端的播放进度与群主终端的播放进度是否一致,在进度不一致的情况下,向群成员终端发送播放进度修正指令,群成员终端可以基于播放进度修正指令,调整播放进度。这样,可以确保与其他成员终端的播放进度一致,确保用户的观看体验。同时,无需用户手动对播放进行修正,群成员终端会自动向服务器发送播放进度消息来修正播放进度,进而可以降低播放进度修正的人工成本。(The invention provides a playing progress correction method and device, electronic equipment and a readable storage medium, and belongs to the technical field of computers. In the method, in the process of playing the group video, the group member terminal sends a playing progress message for indicating the current playing progress of the group member terminal to the server, the server determines whether the playing progress of the group member terminal is consistent with the playing progress of the group master terminal or not based on the received playing progress message, and sends a playing progress correction instruction to the group member terminal under the condition that the progress is inconsistent, and the group member terminal can adjust the playing progress based on the playing progress correction instruction. Therefore, the method and the device can ensure that the playing progress of the terminal is consistent with that of other member terminals, and ensure the watching experience of the user. Meanwhile, the group member terminal can automatically send a playing progress message to the server to correct the playing progress without manually correcting the playing by the user, and therefore the labor cost for correcting the playing progress can be reduced.)

1. A method for correcting playing progress is applied to a system comprising a group member terminal, a group owner terminal and a server, and comprises the following steps:

in the process of playing the group video, the group member terminal sends a playing progress message to the server; the playing progress message is used for representing the current playing progress of the group member terminal;

the server receives the playing progress message;

the server determines whether the playing progress of the group member terminal is consistent with the playing progress of the group main terminal or not based on the playing progress message;

the server sends a playing progress correction instruction to the group member terminal under the condition that the playing progress of the group member terminal is inconsistent with the playing progress of the group owner terminal;

the group member terminal receives the playing progress correction instruction;

and the group member terminal adjusts the playing progress based on the received playing progress correction instruction.

2. A playing progress correction method is applied to group member terminals, and comprises the following steps:

in the process of playing the group video, sending a playing progress message to a server; the playing progress message is used for representing the current playing progress of the group member terminal;

receiving a playing progress correction instruction sent by the server; the playing progress correction instruction is sent by the server when the playing progress of the group member terminal is determined to be inconsistent with the playing progress of the group owner terminal based on the playing progress message;

and adjusting the playing progress based on the playing progress correction instruction.

3. The method according to claim 2, wherein the sending the playing progress message to the server in the process of playing the group video comprises:

acquiring a current playing progress and a video identifier of the group video according to a preset period;

generating the playing progress message based on the current playing progress, the identifier of the group video and a preset playing progress message type identifier;

and sending the playing progress message to the server.

4. The method according to claim 2, wherein the playing progress correction instruction comprises a target playing progress and a video identifier to be corrected;

the adjusting the playing progress based on the playing progress correction instruction comprises:

extracting the target playing progress and the video identification to be corrected from the playing progress correction instruction;

adjusting the playing progress of the video indicated by the video identifier to be corrected to the target playing progress; the video to be modified identifier indicates the group video.

5. The method according to claim 2, wherein the play progress correction instruction further includes a correction operation type;

the adjusting the playing progress of the video indicated by the video identifier to be corrected to the target playing progress includes:

and executing the operation indicated by the correction operation type on the group video based on the target playing progress.

6. A playing progress correction method is applied to a server, and comprises the following steps:

if a playing progress message sent by a group member terminal is received, determining whether the playing progress of the group member terminal is consistent with the playing progress of a group owner terminal based on the playing progress message; the playing progress message is used for representing the current playing progress of the group member terminal;

and if the playing progress of the group member terminal is inconsistent with the playing progress of the group master terminal, sending a playing progress correction instruction to the group member terminal.

7. The method according to claim 6, wherein before receiving the play progress message sent by the group member terminal, the method further comprises:

analyzing each received message;

extracting message type identification in the analyzed message;

and if the message type identification is matched with a preset playing progress message type identification, confirming that the playing progress message sent by the group member terminal is received.

8. The method of claim 6, wherein the play progress message comprises a video identification of a group video;

the determining whether the playing progress of the group member terminal is consistent with the playing progress of the group owner terminal based on the playing progress message includes:

acquiring the playing progress of the group video indicated by the video identification by the group master terminal;

determining an absolute value of a difference value between the playing progress of the group member terminal and the playing progress of the group master terminal;

and if the absolute value of the difference exceeds a preset threshold, determining that the playing progress of the group member terminal is inconsistent with the playing progress of the group owner terminal.

9. A playback progress correction apparatus applied to a group member terminal, the apparatus comprising:

the sending module is used for sending a playing progress message to the server in the process of playing the group video; the playing progress message is used for representing the current playing progress of the group member terminal;

the receiving module is used for receiving the playing progress correction instruction sent by the server; the playing progress correction instruction is sent by the server when the playing progress of the group member terminal is determined to be inconsistent with the playing progress of the group owner terminal based on the playing progress message;

and the adjusting module is used for adjusting the playing progress based on the playing progress correcting instruction.

10. A playback progress correction apparatus, applied to a server, the apparatus comprising:

the determining module is used for determining whether the playing progress of the group member terminal is consistent with the playing progress of the group master terminal based on the playing progress message if the playing progress message sent by the group member terminal is received; the playing progress message is used for representing the current playing progress of the group member terminal;

and the sending module is used for sending a playing progress correction instruction to the group member terminal if the playing progress of the group member terminal is inconsistent with the playing progress of the group owner terminal.

11. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;

a memory for storing a computer program;

a processor adapted to perform the method steps of claim 1/8 when executing a program stored in memory.

12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 8.

Technical Field

The invention belongs to the technical field of computers, and particularly relates to a playing progress correction method and device, electronic equipment and a readable storage medium.

Background

In order to meet different requirements of users on video watching, the video platform side provides a group watching mode for the users. The group viewing mode includes a group owner user and a group member user, which can view the same video synchronously on the terminals used by the users, so that a plurality of users can discuss the video synchronously along with the video content.

In the group watching mode, the group owner user has the control right on the played video, and correspondingly, in the watching process, the group owner user can adjust the progress of the played video on the group member terminal used by each member through the group owner terminal. Specifically, the group owner terminal may send a play progress adjustment instruction to the server, and accordingly, the server may send the play progress adjustment instruction to all group member terminals in the group where the group owner user is located, thereby achieving synchronous adjustment of the play progress.

However, under the influence of external factors, it may happen that the group member terminal does not receive the play progress adjustment instruction forwarded by the server, and further, the play progress of the group member terminal is inconsistent with the play progress of other member terminals, thereby reducing the viewing experience of the user of the group member terminal.

Disclosure of Invention

The invention provides a playing progress correction method, a playing progress correction device, electronic equipment and a readable storage medium, which are used for solving the problem of poor watching experience of users of group member terminals due to inconsistent playing progress.

In a first aspect of the present invention, a method for correcting a play progress is provided, where the method is applied to a system including a group member terminal, a group owner terminal, and a server, and the method includes:

in the process of playing the group video, the group member terminal sends a playing progress message to the server; the playing progress message is used for representing the current playing progress of the group member terminal;

the server receives the playing progress message;

the server determines whether the playing progress of the group member terminal is consistent with the playing progress of the group main terminal or not based on the playing progress message;

the server sends a playing progress correction instruction to the group member terminal under the condition that the playing progress of the group member terminal is inconsistent with the playing progress of the group owner terminal;

the group member terminal receives the playing progress correction instruction;

and the group member terminal adjusts the playing progress based on the received playing progress correction instruction.

In a second aspect of the present invention, there is also provided a method for correcting a play progress, which is applied to a group member terminal, and includes:

in the process of playing the group video, sending a playing progress message to a server; the playing progress message is used for representing the current playing progress of the group member terminal;

receiving a playing progress correction instruction sent by the server; the playing progress correction instruction is sent by the server when the playing progress of the group member terminal is determined to be inconsistent with the playing progress of the group owner terminal based on the playing progress message;

and adjusting the playing progress based on the playing progress correction instruction.

In a third aspect of the present invention, there is provided a method for correcting a play progress, applied to a server, the method including:

if a playing progress message sent by a group member terminal is received, determining whether the playing progress of the group member terminal is consistent with the playing progress of a group owner terminal based on the playing progress message; the playing progress message is used for representing the current playing progress of the group member terminal;

and if the playing progress of the group member terminal is inconsistent with the playing progress of the group master terminal, sending a playing progress correction instruction to the group member terminal.

In a fourth aspect of the present invention, there is provided a device for correcting a playing progress, which is applied to a group member terminal, the device including:

the sending module is used for sending a playing progress message to the server in the process of playing the group video; the playing progress message is used for representing the current playing progress of the group member terminal;

the receiving module is used for receiving the playing progress correction instruction sent by the server; the playing progress correction instruction is sent by the server when the playing progress of the group member terminal is determined to be inconsistent with the playing progress of the group owner terminal based on the playing progress message;

and the adjusting module is used for adjusting the playing progress based on the playing progress correcting instruction.

In a fifth aspect of the present invention, there is provided a device for correcting a playing progress, which is applied to a server, the device including:

the determining module is used for determining whether the playing progress of the group member terminal is consistent with the playing progress of the group master terminal based on the playing progress message if the playing progress message sent by the group member terminal is received; the playing progress message is used for representing the current playing progress of the group member terminal;

and the sending module is used for sending a playing progress correction instruction to the group member terminal if the playing progress of the group member terminal is inconsistent with the playing progress of the group owner terminal.

In yet another aspect of the present invention, there is also provided a computer-readable storage medium having stored therein instructions, which when run on a computer, cause the computer to execute any one of the above-described play progress correction methods.

In another aspect of the present invention, there is also provided a computer program product including instructions, which when run on a computer, causes the computer to execute any one of the above-mentioned methods for correcting a play progress.

In the method for correcting the playing progress provided by the embodiment of the invention, in the process of playing the group video, the group member terminal sends a playing progress message for indicating the current playing progress of the group member terminal to the server, the server receives the playing progress message and determines whether the playing progress of the group member terminal is consistent with the playing progress of the group master terminal or not based on the playing progress message, and sends a playing progress correction instruction to the group member terminal under the condition that the playing progress is inconsistent, and the group member terminal can receive the playing progress correction instruction sent by the server and adjust the playing progress based on the playing progress correction instruction so as to enable the playing progress to be consistent with the playing progress of the group master terminal. Therefore, the group member terminals can correct the playing progress when the playing progress needs to be corrected by sending the playing progress message to the server, so that the playing progress can be ensured to be consistent with the playing progress of other member terminals, and the watching experience of a user is ensured. Meanwhile, the group member terminal can automatically send a playing progress message to the server to correct the playing progress without manually correcting the playing by the user, and therefore the labor cost for correcting the playing progress can be reduced.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.

Fig. 1 is a flowchart illustrating steps of a method for correcting a playing progress according to an embodiment of the present invention;

fig. 2 is a flowchart illustrating steps of another method for modifying a playing progress according to an embodiment of the present invention;

fig. 3 is a flowchart illustrating steps of another method for modifying a playing progress according to an embodiment of the present invention;

fig. 4-1 is an interaction flowchart of another method for correcting a playing progress according to an embodiment of the present invention;

FIG. 4-2 is a schematic diagram of an application provided by an embodiment of the present invention;

fig. 5 is a block diagram of a device for correcting a playing progress according to an embodiment of the present invention;

fig. 6 is a block diagram of another device for correcting the playing progress according to an embodiment of the present invention;

fig. 7 is a block diagram of a system for correcting a playing progress according to an embodiment of the present invention;

fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.

Fig. 1 is a flowchart of steps of a method for correcting a play progress according to an embodiment of the present invention, which is applied to a system including a group member terminal, a group owner terminal, and a server, and as shown in fig. 1, the method may include:

step 101, in the process of playing a group video, the group member terminal sends a playing progress message to the server; the playing progress message is used for representing the current playing progress of the group member terminals.

In this step, the group video refers to a video commonly viewed by the terminals in the group viewing mode. In the process of playing the group video, the group owner terminal may adjust the progress of the group video, so that problems that the playing progress of some group member terminals is not adjusted in time correspondingly, and the playing progress of the group member terminals is inconsistent with the playing progress of other member terminals may occur. Therefore, the group member terminal can send the playing progress message to the server in the process of the group video, so that the server can control the group member terminal to correct the playing progress when the playing progress of the group member terminal needs to be corrected.

And 102, the server receives the playing progress message.

In this step, the server may be a server that manages each of the terminals participating in the group viewing mode, and the server may establish a communication connection with the terminals. Accordingly, the server may receive the play progress message transmitted by the group member terminal based on the communication connections established in advance.

And 103, the server determines whether the playing progress of the group member terminal is consistent with the playing progress of the group owner terminal based on the playing progress message.

Whether the playing progress of the group member terminal is consistent with that of the group owner terminal or not is determined, and whether the playing progress of the group member terminal needs to be corrected or not is determined. Therefore, the server may determine whether the play progress of the group member terminal is consistent with the play progress of the group owner terminal based on the play progress message.

And 104, the server sends a playing progress correction instruction to the group member terminal under the condition that the playing progress of the group member terminal is inconsistent with the playing progress of the group owner terminal.

In this step, if the playing progress of the group member terminal is inconsistent with the playing progress of the group master terminal, it indicates that the playing progress of the group member terminal is inconsistent with the playing progress of other terminals, and the playing progress of the group member terminal needs to be corrected.

And 105, the group member terminal receives the playing progress correction instruction.

In this step, the play progress correction instruction may be sent by the server when it is determined that the play progress of the group member terminal is consistent with the play progress of the group owner terminal based on the play progress message, and accordingly, when the group member terminal receives the play progress correction instruction, it indicates that the group member terminal needs to correct the play progress.

And 106, adjusting the playing progress by the group member terminal based on the playing progress correction instruction.

In this step, the group member terminal may adjust the play progress through the play progress correction instruction to correct the play progress, so that the play progress is consistent with the play progress of the group owner terminal. Because the playing progress of the group member terminal which does not need to correct the playing progress is consistent with the playing progress of the group master terminal, the playing progress of the group member terminal which needs to correct the playing progress is adjusted based on the playing progress correction instruction and is consistent with the playing progress of the group master terminal, so that the effect of being consistent with the playing progress of other member terminals can be achieved.

In summary, in the method for correcting play progress provided in the embodiments of the present invention, in the process of playing the group video, the group member terminal sends a play progress message indicating a current play progress of the group member terminal to the server, and the server receives the play progress message and determines whether the play progress of the group member terminal is consistent with the play progress of the group host terminal based on the play progress message, and sends a play progress correction instruction to the group member terminal if the play progress of the group member terminal is inconsistent with the play progress of the group host terminal. Therefore, the group member terminals can correct the playing progress when the playing progress needs to be corrected by sending the playing progress message to the server, so that the playing progress can be ensured to be consistent with the playing progress of other member terminals, and the watching experience of a user is ensured. Meanwhile, the group member terminal can automatically send a playing progress message to the server to correct the playing progress without manually correcting the playing by the user, and therefore the labor cost for correcting the playing progress can be reduced.

Fig. 2 is a flowchart of another method for correcting a play progress according to an embodiment of the present invention, which is applied to a group member terminal, and as shown in fig. 2, the method may include:

step 201, in the process of playing the group video, sending a playing progress message to a server; the playing progress message is used for representing the current playing progress of the group member terminals.

Specifically, the implementation manner of this step may refer to step 101, which is not described herein again in this embodiment of the present invention.

Step 202, receiving a play progress correction instruction sent by the server; and the playing progress correction instruction is sent by the server when the playing progress of the group member terminal is determined to be inconsistent with the playing progress of the group owner terminal based on the playing progress message.

Specifically, the implementation manner of this step may refer to step 105, which is not described herein again in this embodiment of the present invention.

And step 203, adjusting the playing progress based on the playing progress correction instruction.

Specifically, the implementation manner of this step may refer to step 106, which is not described herein again in this embodiment of the present invention.

In summary, in the method for correcting play progress provided in the embodiments of the present invention, in the process of playing the group video, the group member terminal sends a play progress message indicating a current play progress of the group member terminal to the server, and receives a play progress correction instruction sent by the server, where the play progress correction instruction is sent by the server when it is determined that the play progress of the group member terminal is consistent with the play progress of the group owner terminal based on the play progress message, and the play progress is adjusted based on the play progress correction instruction, so that the play progress is consistent with the play progress of the group owner terminal. Therefore, the group member terminal can correct the playing progress when the playing progress needs to be corrected by sending the playing progress message to the server, so that the playing progress of the group member terminal is consistent with that of other member terminals, and the watching experience of a user is ensured. Meanwhile, the group member terminal can automatically send a playing progress message to the server to correct the playing progress without manually correcting the playing by the user, and therefore the labor cost for correcting the playing progress can be reduced.

Fig. 3 is a flowchart of steps of another method for correcting a play progress according to an embodiment of the present invention, which is applied to a server, and as shown in fig. 3, the method may include:

step 301, if a play progress message sent by a group member terminal is received, determining whether the play progress of the group member terminal is consistent with the play progress of a group owner terminal based on the play progress message; the playing progress message is used for representing the current playing progress of the group member terminals.

Specifically, the implementation manner of this step may refer to step 103, which is not described herein again in this embodiment of the present invention.

Step 302, if the playing progress of the group member terminal is inconsistent with the playing progress of the group owner terminal, sending a playing progress correction instruction to the group member terminal.

Specifically, the implementation manner of this step may refer to the step 104, and details of the embodiment of the present invention are not described herein.

In summary, the play progress correction method provided in the embodiment of the present invention can receive a play progress message sent by a group member terminal; the playing progress message is used for representing the current playing progress of the group member terminals; determining whether the playing progress of the group member terminals is consistent with the playing progress of the group owner terminal or not based on the playing progress message; and if the playing progress of the group member terminal is inconsistent with the playing progress of the group master terminal, sending a playing progress correction instruction to the group member terminal so that the group member terminal adjusts the playing progress based on the playing progress correction instruction. Therefore, the playing progress correction instruction is sent to the group member terminal, so that the group member terminal can correct the playing progress, the group member terminal can be consistent with the playing progress of other member terminals, and the watching experience of a user is ensured.

Fig. 4-1 is an interaction flowchart of another method for correcting a play progress according to an embodiment of the present invention, and as shown in fig. 4-1, the method may include:

step 401, the group member terminal sends a playing progress message to the server in the process of playing the group video.

Specifically, the step may include the following steps 4011 to 4012:

step 4011, the group member terminal obtains the current playing progress and the video identifier of the group video according to a preset period.

In this step, the preset period may be set according to actual requirements. The smaller the preset period is, the higher the frequency of sending the playing progress message to the server by the group member terminal is, so that whether the playing progress needs to be corrected by the group member terminal can be determined more comprehensively. However, since the frequency of sending the play progress message is higher, the terminal resource required to be consumed is also increased correspondingly. On the contrary, the larger the preset period is, the lower the frequency of sending the playing progress message to the server by the group member terminal is, and thus, the lower the frequency of sending the playing progress message is, correspondingly, the less terminal resources need to be consumed. However, accordingly, there may be a case where the missing group member terminals need to correct the playback progress.

Further, the current playing progress may indicate to what time the group video is played. For example, assuming that the group video is played for 300 seconds, the current play progress may be determined to be "300 seconds". The video identification of the group video may be an identification that can uniquely represent the group video. For example, the video identification may be a preset ID of the group video. Specifically, the group member terminal may obtain the current playing progress and the video identifier of the group video from background data of a playing application that plays the group video.

Step 4012, generating the playing progress message based on the current playing progress, the identifier of the group video and a preset playing progress message type identifier, and sending the playing progress message to the server.

In this step, the play progress message type identifier may be used to indicate that the message is a play progress message. Wherein, different types of messages correspond to different preset type identifications. For example, the type identifier corresponding to the video deletion message indicating that a certain video is deleted may be a video deletion message type identifier, and the type identifier corresponding to the video addition message indicating that a certain video is added may be a video addition message type identifier.

Further, since the group member terminal may join a plurality of groups at the same time, a plurality of group videos may be played at the same time in the group member terminal, and therefore, by combining the current play progress, the identifier of the group video, and the preset play progress message type identifier, a play progress message is generated, so that the server can accurately know that the message is a message for reporting the current play progress, what the current play progress is, and what the current play progress is, based on the play progress message, thereby improving the accuracy of server control. Further, in an actual application scenario, the identifier of the group member terminal may be combined, so that the server can determine which group member terminal sends the play progress message.

For example, the generated play progress message may be represented by the following format:

Figure RE-GDA0002347392610000091

step 402, if a play progress message sent by a group member terminal is received, the server determines whether the play progress of the group member terminal is consistent with the play progress of the group owner terminal based on the play progress message.

In an actual application scenario, a server often receives a large number of messages, in order to accurately determine a play progress message sent by a group member terminal, the server may analyze each received message, then extract a message type identifier of the message from the analyzed message, and finally, if the message type identifier matches a preset play progress message type identifier, the server may consider that the play progress message sent by the group member terminal is received. Therefore, the playing progress message can be accurately determined based on the message type identification in the message, and the playing progress message sent by each group member terminal can be timely processed.

Further, the playing progress message may further include a video identifier of the group video, and accordingly, the server may determine whether the playing progress of the group member terminal is consistent with the playing progress of the group master terminal through the following steps 4021 to 4023:

step 4021, acquiring the playing progress of the group video indicated by the video identification by the group master terminal.

In this step, the playing progress of the group video indicated by the video identifier by the group owner terminal may be actively reported by the group owner terminal. Specifically, the group owner terminal may periodically send, to the server, play progress information indicating a play progress of each group video to be played, according to a preset period. The playing progress of each group video includes the playing progress of the group video indicated by the video identifier, and the implementation manner of the group owner terminal sending the playing progress information may refer to the implementation manner of the group member terminal sending the playing progress information in the foregoing steps. Accordingly, the server may receive the play progress information sent by the group owner terminal according to the preset period. Further, since the latest play progress information sent by the group owner terminal can reflect the latest play progress of the group owner terminal, the play progress indicated by the latest play progress information sent by the group owner terminal can be determined, and the play progress of the group owner terminal can be obtained. Therefore, the server can conveniently and quickly determine the playing progress of the group video indicated by the video identification only by receiving the playing progress information sent by the group owner terminal and searching the playing progress information.

Further, the server may also obtain an adjustment progress corresponding to a target play progress adjustment operation, where the target play progress adjustment operation is a play progress adjustment operation that is executed by the group owner terminal on the group video last time. Then, the playing progress of the group owner terminal may be determined based on the corresponding adjustment progress and the duration of the current time from the execution time of the target playing progress adjustment operation.

Wherein, the execution time of the target playing progress adjustment operation refers to the time of executing the target playing progress adjustment operation. For example, it is assumed that the group owner terminal fast-forwards the playing progress of the group video to 200 th second at 5: 10 minutes, and fast-forwards the playing progress of the group video to 1000 th second at 5: 20 minutes. Both the adjustment operations belong to the play progress adjustment operation, and the execution time of the two play progress adjustment operations is 5: 10 and 5: 20, respectively. Further, assuming that the last play progress adjustment operation of the group owner terminal is an adjustment operation performed at 5 o' clock and 20 minutes, the 1000 th second may be taken as the adjustment progress corresponding to the target play progress adjustment operation. Further, assuming that the current time is 5 o' clock and 25 minutes, then based on the corresponding adjustment schedule: 1000 th second, and previous time: 5, point 25 and the execution time corresponding to the target playing progress adjusting operation: and 5, determining the playing progress of the group owner terminal after 20 minutes. Specifically, the sum of the two may be used as the playing progress of the group owner terminal. For example, the 1300 th second may be used as the play progress of the group owner terminal. Therefore, the group owner terminal does not need to additionally send the playing progress information, the server can determine the playing progress of the group owner terminal based on the playing progress adjusting operation of the group owner terminal, and further processing resources of the group owner terminal can be saved.

Step 4022, determining an absolute value of a difference between the playing progress of the group member terminals and the playing progress of the group owner terminal.

For example, assuming that the playing rate of the group member terminal is 500 seconds and the playing rate of the group owner terminal is 600 seconds, 100 seconds may be taken as the absolute value of the difference between the two.

Step 4023, if the absolute value of the difference exceeds a preset threshold, determining that the playing progress of the group member terminal is inconsistent with the playing progress of the group owner terminal.

In an actual application scenario, when the difference between the playing schedules of the two videos is greater than a certain threshold, the user may perceive that the playing schedules of the two videos are inconsistent, and therefore, in the embodiment of the present invention, the minimum difference required when the user can perceive that the playing schedules of the two videos are inconsistent may be used as the preset threshold.

Correspondingly, under the condition that the difference value between the playing progress of the group member terminal and the playing progress of the group master terminal exceeds the preset threshold value, the playing progress of the group member terminal is inconsistent with the playing progress of the group master terminal, so that the situation that the playing progress of the group member terminal is different from the playing progress of the group master terminal but the user cannot perceive the playing progress to be inconsistent is avoided, the situation that the playing progress of the group member terminal is inconsistent with the playing progress of the group master terminal is determined, the follow-up process is avoided, and under the situation that the user cannot perceive the playing progress to be inconsistent, a playing progress correction instruction is sent to the group member terminal, so that the group member terminal performs unnecessary correction on the playing progress, and the processing resources of the group member terminal are saved.

Step 403, if the playing progress of the group member terminal is inconsistent with the playing progress of the group owner terminal, the server sends a playing progress correction instruction to the group member terminal.

In this step, the server may use the playing progress of the group owner terminal as a target playing progress, use the video identifier in the playing progress message sent by the group member terminal as a video identifier to be corrected, and then determine the correction operation type based on the size relationship between the target playing progress and the playing progress of the group member terminal. Specifically, different types of correction operations correspond to different correction operations. The type of the correction operation may include a type corresponding to a fast forward operation and a type corresponding to a fast rewind operation. If the target playing progress is larger than the playing progress of the group member terminal, the type corresponding to the fast forward operation can be used as a correction operation type; if the target playing progress is smaller than the playing progress of the group member terminal, the type corresponding to the fast-rewinding operation can be used as the correction operation type.

Further, a plurality of group videos may be played in the group member terminal, and thus, the group member terminal may transmit a play progress message based on the plurality of group videos. Therefore, the server may insert, in the play progress correction instruction, a message type identifier indicating that the instruction is a play progress correction instruction. Therefore, the group member terminal can accurately know that the message is the instruction for indicating the group member terminal to correct the playing progress based on the playing progress correction instruction.

The server can be based on the correction operation type and the target playing progress. And generating the playing progress correction instruction by the video identifier to be corrected and the playing progress correction message type identifier. Further, in an actual application scenario, the identifier of the server may be combined, so that the group member terminal can determine which server sends the play progress correction instruction.

For example, the generated play progress correction instruction may be represented by the following format:

and step 404, the group member terminal receives the playing progress correction instruction sent by the server.

Specifically, the implementation manner of this step may refer to step 105, which is not described herein again in this embodiment of the present invention.

And 405, the group member terminal adjusts the playing progress based on the playing progress correction instruction.

Specifically, the playing progress correction instruction may include a target playing progress and a to-be-corrected video identifier. Accordingly, this step may include steps 4051 to 4052:

step 4051, the group member terminal extracts the target playing progress and the video identifier to be corrected from the playing progress correction instruction.

In this step, the target playing progress indicates a time at which the playing progress of the group member terminal needs to be adjusted, and the video identifier to be corrected indicates the identifier of the group video whose playing progress needs to be adjusted. Specifically, the group member terminal may analyze the play progress correction instruction, and then extract the target play progress and the video identifier to be corrected from the analyzed play progress correction instruction.

Step 4052, the group member terminal adjusts the playing progress of the video indicated by the video identifier to be corrected to the target playing progress; the video to be modified identifier indicates the group video.

In this step, a plurality of group videos may be played in the group member terminal, so that the group member terminal may determine the video indicated by the video identifier to be corrected based on the video identifier to be corrected, and then adjust the playing progress of the video. Specifically, during the adjustment, the video may be adjusted to the target playing progress based on the target playing progress, so that the playing progress of the group member terminal is consistent with the playing progress of the group owner terminal.

Further, the type of the modification operation included in the play progress modification instruction may indicate a modification operation that needs to be performed when the play progress is adjusted to the target play progress. Accordingly, the group member terminal may perform the operation indicated by the correction operation type on the group video based on the target playing progress, so as to adjust the playing progress to the target playing progress. For example, assuming that the operation indicated by the type of the correction operation is a fast forward operation and the target progress of playing is 700 th second, the group member terminals may fast forward the progress of playing of the video to 700 th second. Therefore, the group member terminal does not need to determine what correction operation needs to be executed based on the target playing progress to adjust the playing progress to the target playing progress, and directly executes the correction operation indicated by the correction operation type included in the playing progress correction instruction, so that the playing progress can be adjusted to the target playing progress, the operations needed to be executed by the group member terminal can be reduced, and the adjustment efficiency of the group member terminal is improved. It should be noted that, in practical applications, before the group member terminal adjusts the play progress based on the play progress correction instruction, the group member terminal may further display adjustment confirmation information, and if a confirmation operation of the user is received, the group member terminal may perform adjustment again. Thereby ensuring the flexibility of the user autonomous control.

For example, fig. 4-2 is a schematic diagram of an application provided by an embodiment of the present invention. Wherein, users A, B, C, D form a group to watch a video marked as '7777777'. User a is the group owner and users B, C, D are group members. The user a can control the playing progress of the group member terminal used by the group member through the backend service deployed on the server by using the used group owner terminal. Accordingly, the backend service may record the current playing progress of the group owner terminal used by the user a.

The group member terminals used by the users B, C, and D may call a back-end service interface (/ sync) of the server according to a preset period, for example, 1 second, through a Software Development Kit (SDK) in the group member terminal, and report the play progress message to the server:

suppose that the playing progress message reported by the user B is:

Figure RE-GDA0002347392610000141

the playing progress message reported by the user C is:

Figure RE-GDA0002347392610000142

the playing progress message reported by the user D is as follows:

Figure RE-GDA0002347392610000143

Figure RE-GDA0002347392610000151

then, through analysis, it can be known that the playing schedules of the group member terminals used by the users B, C, and D are respectively: 45634 th second, 45633 th second, 45624 th second.

Assuming that the current playing progress of the group owner terminal is 45634 th second, the server calculates that the absolute values of the differences between the playing progresses of the 3 group member terminals and the playing progress of the group owner terminal are: 0 second, 1 second, 10 seconds. Further, assuming that the preset threshold is 5s, the server may send a play progress correction instruction to the group member terminal used by the user D:

Figure RE-GDA0002347392610000152

correspondingly, after the group member terminal used by the user D receives the play progress correction instruction, the play progress correction instruction may be parsed by the built-in SDK, and the play progress of the video identified as "7777777" is fast-forwarded to the 45634 th second by the built-in player based on the play progress correction instruction.

In summary, in the method for correcting a play progress provided in the embodiment of the present invention, in the process of playing a group video, a group member terminal may send a play progress message used for indicating a current play progress of the group member terminal to a server, and the server may receive the play progress message sent by the group member terminal; the playing progress message is used for representing the current playing progress of the group member terminals; determining whether the playing progress of the group member terminals is consistent with the playing progress of the group owner terminal or not based on the playing progress message; and if the playing progress of the group member terminal is inconsistent with the playing progress of the group master terminal, sending a playing progress correction instruction to the group member terminal, and correspondingly, the group member terminal can receive the playing progress correction instruction sent by the server and adjust the playing progress based on the playing progress correction instruction so as to make the playing progress consistent with the playing progress of the group master terminal. Therefore, the playing progress correction instruction is sent to the group member terminal, so that the group member terminal can correct the playing progress, the group member terminal can be consistent with the playing progress of other member terminals, and the watching experience of a user is ensured.

Fig. 5 is a block diagram of a device for correcting a playing progress according to an embodiment of the present invention, and as shown in fig. 5, the device 50 may include:

a sending module 501, configured to send a play progress message to a server in a process of playing a group video; the playing progress message is used for representing the current playing progress of the group member terminals.

A receiving module 502, configured to receive a play progress correction instruction sent by the server; and the playing progress correction instruction is sent by the server when the playing progress of the group member terminal is determined to be inconsistent with the playing progress of the group owner terminal based on the playing progress message.

An adjusting module 503, configured to adjust the playing progress based on the playing progress correction instruction.

Optionally, the sending module 501 is specifically configured to:

and acquiring the current playing progress and the video identification of the group video according to a preset period.

And generating the playing progress message based on the current playing progress, the identifier of the group video and a preset playing progress message type identifier.

And sending the playing progress message to the server.

Optionally, the play progress correction instruction includes a target play progress and a video identifier to be corrected.

The adjusting module 503 is specifically configured to:

and extracting the target playing progress and the to-be-corrected video identification from the playing progress correction instruction.

Adjusting the playing progress of the video indicated by the video identifier to be corrected to the target playing progress; the video to be modified identifier indicates the group video.

Optionally, the play progress correction instruction further includes a correction operation type.

The adjusting module 503 is further specifically configured to:

and executing the operation indicated by the correction operation type on the group video based on the target playing progress.

In summary, in the playing progress correction apparatus provided in the embodiment of the present invention, in the process of playing the group video, the group member terminal sends a playing progress message indicating a current playing progress of the group member terminal to the server, and receives a playing progress correction instruction sent by the server, where the playing progress correction instruction is sent by the server when the playing progress of the group member terminal is determined to be consistent with the playing progress of the group owner terminal based on the playing progress message, and the playing progress is adjusted based on the playing progress correction instruction, so that the playing progress is consistent with the playing progress of the group owner terminal. Therefore, the group member terminal can correct the playing progress when the playing progress needs to be corrected by sending the playing progress message to the server, so that the playing progress of the group member terminal is consistent with that of other member terminals, and the watching experience of a user is ensured. Meanwhile, the group member terminal can automatically send a playing progress message to the server to correct the playing progress without manually correcting the playing by the user, and therefore the labor cost for correcting the playing progress can be reduced.

Fig. 6 is a block diagram of another apparatus for correcting a playing progress according to an embodiment of the present invention, and as shown in fig. 6, the apparatus 60 may include:

a determining module 601, configured to determine, based on a play progress message sent by a group member terminal, whether a play progress of the group member terminal is consistent with a play progress of a group owner terminal if the play progress message is received; the playing progress message is used for representing the current playing progress of the group member terminals.

A sending module 602, configured to send a play progress correction instruction to the group member terminal if the play progress of the group member terminal is inconsistent with the play progress of the group owner terminal.

Optionally, the apparatus 60 further includes:

and the analysis module is used for analyzing each received message.

And the extraction module is used for extracting the message type identifier in the analyzed message.

And the confirming module is used for confirming that the playing progress message sent by the group member terminal is received if the message type identifier is matched with a preset playing progress message type identifier.

Optionally, the play progress message includes a video identifier of the group video.

The determining module 601 is specifically configured to:

and acquiring the playing progress of the group video indicated by the video identification by the group master terminal.

And determining the absolute value of the difference value between the playing progress of the group member terminal and the playing progress of the group main terminal.

And if the absolute value of the difference exceeds a preset threshold, determining that the playing progress of the group member terminal is inconsistent with the playing progress of the group owner terminal.

Optionally, the determining module 601 is further specifically configured to:

and receiving the playing progress information sent by the group owner terminal according to a preset period.

And determining the playing progress indicated by the playing progress information sent by the group owner terminal last time to obtain the playing progress of the group owner terminal.

Optionally, the determining module 601 is further specifically configured to:

acquiring an adjustment progress corresponding to the target playing progress adjustment operation; the target playing progress adjusting operation is the playing progress adjusting operation which is executed on the group video by the group owner terminal last time.

And determining the playing progress of the group owner terminal based on the corresponding adjusting progress and the time length from the current time to the execution time of the target playing progress adjusting operation.

In summary, the play progress correction apparatus provided in the embodiment of the present invention may receive a play progress message sent by a group member terminal; the playing progress message is used for representing the current playing progress of the group member terminals; determining whether the playing progress of the group member terminals is consistent with the playing progress of the group owner terminal or not based on the playing progress message; and if the playing progress of the group member terminal is inconsistent with the playing progress of the group master terminal, sending a playing progress correction instruction to the group member terminal so that the group member terminal adjusts the playing progress based on the playing progress correction instruction. Therefore, the playing progress correction instruction is sent to the group member terminal, so that the group member terminal can correct the playing progress, the group member terminal can be consistent with the playing progress of other member terminals, and the watching experience of a user is ensured.

Fig. 7 is a block diagram of a system for correcting play progress according to an embodiment of the present invention, and as shown in fig. 7, the system 70 may include: a group member terminal 701, a group owner terminal 702, and a server 703.

The group member terminal 701 is configured to send a play progress message to the server 703 in the process of playing the group video; the play progress message is used to indicate the current play progress of the group member terminal 701.

The server 703 is configured to receive the play progress message.

The server 703 is configured to determine, based on the play progress message, whether the play progress of the group member terminal 701 is consistent with the play progress of the group owner terminal 702.

The server 703 is configured to send a play progress correction instruction to the group member terminal 701 when the play progress of the group member terminal 701 is inconsistent with the play progress of the group owner terminal 702.

The group member terminal 701 is configured to receive the play progress correction instruction.

The group member terminal 701 is configured to adjust the play progress based on the received play progress correction instruction.

In summary, in the playing progress correction system provided in the embodiment of the present invention, in the process of playing the group video, the group member terminal sends a playing progress message indicating a current playing progress of the group member terminal to the server, and the server receives the playing progress message and determines whether the playing progress of the group member terminal is consistent with the playing progress of the group master terminal based on the playing progress message, and sends a playing progress correction instruction to the group member terminal if the playing progress of the group member terminal is inconsistent with the playing progress of the group master terminal, and the group member terminal may receive the playing progress correction instruction sent by the server, and adjust the playing progress based on the playing progress correction instruction, so that the playing progress is consistent with the playing progress of the group master terminal. Therefore, the group member terminals can correct the playing progress when the playing progress needs to be corrected by sending the playing progress message to the server, so that the playing progress can be ensured to be consistent with the playing progress of other member terminals, and the watching experience of a user is ensured. Meanwhile, the group member terminal can automatically send a playing progress message to the server to correct the playing progress without manually correcting the playing by the user, and therefore the labor cost for correcting the playing progress can be reduced.

For the above device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for the relevant points, refer to the partial description of the method embodiment.

An embodiment of the present invention further provides an electronic device, as shown in fig. 8, which includes a processor 801, a communication interface 802, a memory 803, and a communication bus 804, where the processor 801, the communication interface 802, and the memory 803 complete mutual communication through the communication bus 804,

a memory 803 for storing a computer program;

the processor 801 is configured to implement the following steps when executing the program stored in the memory 803:

in the process of playing the group video, sending a playing progress message to a server; the playing progress message is used for representing the current playing progress of the group member terminal;

receiving a playing progress correction instruction sent by the server; the playing progress correction instruction is sent by the server when the playing progress of the group member terminal is determined to be inconsistent with the playing progress of the group owner terminal based on the playing progress message;

and adjusting the playing progress based on the playing progress correction instruction.

Or, the following steps are implemented:

if a playing progress message sent by a group member terminal is received, determining whether the playing progress of the group member terminal is consistent with the playing progress of a group owner terminal based on the playing progress message; the playing progress message is used for representing the current playing progress of the group member terminal;

and if the playing progress of the group member terminal is inconsistent with the playing progress of the group master terminal, sending a playing progress correction instruction to the group member terminal.

The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.

The communication interface is used for communication between the terminal and other equipment.

The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.

The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete gate or transistor logic device, or discrete hardware components.

In another embodiment of the present invention, there is also provided a computer-readable storage medium, having stored therein instructions, which when run on a computer, cause the computer to execute the play progress correction method according to any one of the above embodiments.

In another embodiment of the present invention, there is also provided a computer program product including instructions, which when run on a computer, causes the computer to execute the method for correcting a playing progress according to any one of the above embodiments.

In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.

It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.

The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

24页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:POV显像设备的控制及播放方法、装置、及电子设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类