CN113518247A - Video playing method, related equipment and computer readable storage medium - Google Patents

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

Info

Publication number
CN113518247A
CN113518247A CN202110585989.7A CN202110585989A CN113518247A CN 113518247 A CN113518247 A CN 113518247A CN 202110585989 A CN202110585989 A CN 202110585989A CN 113518247 A CN113518247 A CN 113518247A
Authority
CN
China
Prior art keywords
client
identification
target
video
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110585989.7A
Other languages
Chinese (zh)
Other versions
CN113518247B (en
Inventor
王兆仲
林默
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202110585989.7A priority Critical patent/CN113518247B/en
Publication of CN113518247A publication Critical patent/CN113518247A/en
Application granted granted Critical
Publication of CN113518247B publication Critical patent/CN113518247B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
    • H04N21/43078Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen for seamlessly watching content streams when changing device, e.g. when watching the same program sequentially on a TV and then on a tablet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/437Interfacing the upstream path of the transmission network, e.g. for transmitting client requests to a VOD server

Abstract

The application discloses a video playing method, related equipment and a computer readable storage medium, and belongs to the technical field of multimedia. The method comprises the following steps: under the condition of receiving a playing request sent by a client, acquiring identification information corresponding to the client; determining an equipment identification set corresponding to a target user identification based on the identification information and a first incidence relation, wherein the first incidence relation is used for indicating the corresponding relation between the user identification and the equipment identification, and the target user identification is determined based on the identification information; determining the latest playing progress of the target video based on the equipment identification set; and sending indication information to the client, wherein the indication information is used for indicating the client to play the target video according to the latest playing progress. In this way, the replaced client can synchronously play the target video based on the latest playing progress.

Description

Video playing method, related equipment and computer readable storage medium
Technical Field
The application belongs to the technical field of multimedia, and particularly relates to a video playing method, related equipment and a computer readable storage medium.
Background
With the development of multimedia technology, video viewing is becoming more and more popular in people's lives, such as general video, interactive video, and so on. When a user uses a certain client to watch a video and then uses other clients to continue watching the video, the playing data of the video cannot be synchronized to the currently used client, so that the video cannot be normally and synchronously played.
Disclosure of Invention
An object of the embodiments of the present application is to provide a video playing method, a related device, and a computer-readable storage medium, which can solve the problem that playing data of a video cannot be synchronized among multiple clients, so that the video cannot be played synchronously.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a video playing method, executed on a server, where the method includes:
under the condition of receiving a playing request sent by a client, acquiring identification information corresponding to the client;
determining an equipment identification set corresponding to a target user identification based on the identification information and a first incidence relation, wherein the first incidence relation is used for indicating the corresponding relation between the user identification and the equipment identification, and the target user identification is determined based on the identification information;
determining the latest playing progress of the target video based on the equipment identification set;
and sending indication information to the client, wherein the indication information is used for indicating the client to play the target video according to the latest playing progress.
In a second aspect, an embodiment of the present application provides a video playing method, executed on a client, where the method includes:
sending a playing request to a server;
receiving indication information sent by the server, wherein the indication information is used for indicating the latest playing progress of a target video, the latest playing progress is determined by the server based on the identification information of the client and a first association relation, and the first association relation is used for indicating a corresponding relation between a user identification and an equipment identification;
and playing the target video according to the playing progress indicated by the indication information.
In a third aspect, an embodiment of the present application provides a server, where the server includes:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring identification information corresponding to a client under the condition of receiving a play request sent by the client;
a first determining module, configured to determine, based on the identification information and a first association relationship, an equipment identifier set corresponding to a target user identifier, where the first association relationship is used to indicate a correspondence relationship between a user identifier and an equipment identifier, and the target user identifier is determined based on the identification information;
the second determination module is used for determining the latest playing progress of the target video based on the equipment identification set;
and the first sending module is used for sending indication information to the client, wherein the indication information is used for indicating the client to play the target video according to the latest playing progress.
In a fourth aspect, an embodiment of the present application provides a client, where the client includes:
the second sending module is used for sending a playing request to the server;
a receiving module, configured to receive indication information sent by the server, where the indication information is used to indicate a latest playing progress of a target video, the latest playing progress is determined by the server based on identification information of the client and a first association relationship, and the first association relationship is used to indicate a correspondence between a user identifier and an equipment identifier;
and the playing module is used for playing the target video according to the playing progress indicated by the indication information.
In a fifth aspect, an embodiment of the present application provides a video playing system, where the system includes:
a client for executing the video playing method according to the second aspect;
a server for executing the video playing method according to the first aspect.
In a sixth aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the video playing method according to the first aspect; or the program or instructions, when executed by the processor, implement the steps of the video playback method according to the second aspect.
In a seventh aspect, an embodiment of the present application provides a readable storage medium, on which a program or instructions are stored, where the program or instructions, when executed by a processor, implement the steps of the video playing method according to the first aspect; or the program or instructions, when executed by the processor, implement the steps of the video playback method according to the second aspect.
In the embodiment of the application, under the condition of receiving a playing request sent by a client, acquiring identification information corresponding to the client; determining an equipment identification set corresponding to a target user identification based on the identification information and a first incidence relation, wherein the first incidence relation is used for indicating the corresponding relation between the user identification and the equipment identification, and the target user identification is determined based on the identification information; determining the latest playing progress of the target video based on the equipment identification set; and sending indication information to the client, wherein the indication information is used for indicating the client to play the target video according to the latest playing progress. In this way, since the server stores the first association relation indicating the corresponding relation between the user identifier and the device identifier, when the client is replaced to continue playing the target video, the server can determine the device identifier set corresponding to the target user identifier according to the identifier information corresponding to the replaced client and the first association relation, and determine the latest playing progress of the target video according to the playing progress of the target video corresponding to each device identifier of the device identifier set, so that the client after replacement can synchronously play the target video based on the latest playing progress.
Drawings
Fig. 1 is a flowchart of a video playing method according to an embodiment of the present application;
fig. 2 is a flowchart of an update process of a first association provided in an embodiment of the present application;
fig. 3 is a flowchart illustrating a process of determining a latest playing progress of a target video by a server according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a server according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a client according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a video playing system according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes in detail a video playing method provided by the embodiment of the present application through a specific embodiment and an application scenario thereof with reference to the accompanying drawings.
The video playing method provided by the embodiment of the application can be applied to playing scenes such as common video playing and interactive video playing. For example, the video playing scene of the embodiment of the present invention may include, but is not limited to: the method includes playing video by using an Application program (APP) for playing video, playing video by using Augmented Reality (AR) equipment, Virtual Reality (VR) equipment, playing video by using equipment such as a television and a set top box, and the like.
As background art, the existing video playing data cannot be synchronized among multiple clients, because in the prior art, the video playing data is stored in association with the device identifier of a client, and each client can only obtain the video playing data corresponding to its device identifier according to its own device identifier, so that when a user switches to different clients to play videos, the video can not be played synchronously.
In view of the foregoing problems in the prior art, embodiments of the present invention provide the following design ideas: on the basis of the prior art, a first association relationship between the user identifier and the device identifier is established, so that all device identifiers associated with a certain user identifier can be obtained through the first association relationship, and then the playing progress of the target video on each client is obtained according to all associated device identifiers, thereby realizing synchronous playing of the video.
Specifically, the video playing method provided by the embodiment of the present invention can be applied to a video playing system, and the system includes: the server is in communication connection with the client. The client is used for interacting with the user, and the server is used for providing background support for the client. In the video playing system, a client can be used for initiating a playing request to a server. The server is used for acquiring the identification information corresponding to the client after receiving the playing request from the client, determining the latest playing progress of the target video based on the identification information and the association relationship between the pre-stored user identification and the equipment identification, and feeding back the latest playing progress to the client.
It is to be understood that, in the embodiment of the present invention, the server may be a server in a client-side/server mode (i.e., C/S mode), or may be a server in a browser-side/server-side mode (i.e., B/S mode), and the present invention is not limited in particular.
Referring to fig. 1, fig. 1 is a flowchart of a video playing method provided in an embodiment of the present application. As shown in fig. 1, the video playing method, executed on a server, specifically includes the following steps:
step 101, acquiring identification information corresponding to a client under the condition of receiving a playing request sent by the client.
The playing request is sent to the server by the user based on the client and is used for requesting the server to play the target video. The identification information is identification information corresponding to the client, specifically, the identification information may be an equipment identification of the client, or a user identification of a user account currently logged in by the client, and the application is not particularly limited. The device Identifier corresponding to the client includes, but is not limited to, an International Mobile Equipment Identity (IMEI) of the device, a Mobile Equipment Identity (MEID), an Electronic Serial Number (ESN), an Identity document identification number (ID) of the device, and the like.
It should be noted that the identification information may be carried in the play request, and sent to the server at the same time as the play request, and the server then obtains the identification information by parsing from the play request; or not carried in the playing request, after the server receives the playing request, the server sends an identification information acquisition request to the client and receives the identification information fed back by the client based on the request.
Step 102, determining an equipment identity set corresponding to a target user identity based on the identity information and a first association relation, wherein the first association relation is used for indicating a corresponding relation between the user identity and the equipment identity, and the target user identity is determined based on the identity information.
Specifically, the first association relationship may be configured in advance on the server, or may be created and maintained by the server, and the application is not limited in particular. When the first association relationship is created by the server, the server can acquire the user identifier corresponding to the client when the client logs in the user account, so that the server can create and maintain the first association relationship based on the acquired user identifier and the device identifier of the client. That is to say, the server may determine to obtain the first association relationship according to the user login state of the client, for example, when the user uses a certain client to log in two user accounts, the user identifiers corresponding to the two user accounts and the device identifier of the client may be associated after logging in, and updated to the first association relationship. It should be noted that the first association relationship may include one or more user identifiers, and each user identifier may correspond to one or more device identifiers, which is not specifically limited in this application.
It should be noted that the user identifier here refers to an identifier of a user account logged in on the client, and thus the server needs to log in the user account on the client before creating or maintaining the first association relationship based on the identifier.
The target user identifier may be obtained by the server itself, or obtained by the client sending to the server, which is not specifically limited in the present application. When the target user identifier is obtained by the server, the server may determine the target user identifier according to the identifier information. Specifically, when the identification information is a user identifier currently logged in on the client, the target user identifier may be the user identifier currently logged in on the client; when the identification information is the device identifier of the client, the target user identifier may be a user identifier corresponding to the device identifier of the client, and the like.
After determining the target user identifier, the server may match all the device identifiers associated with the target user identifier based on the first association relationship to form a device identifier set. The device identifier set is used to indicate a set of all device identifiers associated with the target user identifier, and when one device identifier is associated with the target user identifier, the device identifier set includes one device identifier; when the device identifications associated with the target user identification are multiple, the device identification set comprises multiple device identifications.
And 103, determining the latest playing progress of the target video based on the equipment identification set.
In practical application, when a user uses different clients to play a target video, a server can obtain the association relationship between the device identifiers corresponding to the different clients and the playing progress of the target video, and store and update the association relationship. Therefore, the server can obtain the playing progress corresponding to each device identifier in the device identifier set, and determine the latest playing progress of the target video from the playing progress corresponding to each device identifier.
And step 104, sending indication information to the client, wherein the indication information is used for indicating the client to play the target video according to the latest playing progress.
Specifically, the indication information is obtained by the server based on the latest playing progress of the target video, and the indication information may be different according to the type of the target video.
When the target video is a normal video, the indication information may be latest playing data, such as a time node, frame data, and the like that was played last time.
When the target video is an interactive video, the indication information may be the latest playing node or the latest interactive data. It should be noted that the interactive video herein refers to a video capable of interacting with a user, and when the user watches the interactive video, the plot trend of the interactive video can be selected, so that the plot of the interactive video develops towards the direction expected by the user.
After the server acquires the indication information, the indication information can be sent to the client, so that the client can control the target video to jump to the latest playing progress for playing according to the indication information after receiving the indication information, and synchronization of the target video among different clients is achieved.
In this embodiment, since the server stores the first association relationship indicating the correspondence between the user identifier and the device identifier, when the client is replaced to continue playing the target video, the server can determine the device identifier set corresponding to the target user identifier according to the identifier information corresponding to the replaced client and the first association relationship, and determine the latest playing progress of the target video according to the playing progress of the target video corresponding to each device identifier of the device identifier set, so that the client after replacement can synchronously play the target video based on the latest playing progress.
Based on the embodiment shown in fig. 1, the step 102 of determining, based on the identification information and the first association relationship, an equipment identification set corresponding to the target user identification may specifically include the following steps:
determining a target user identifier based on the identification information;
and determining a device identification set corresponding to the target user identification based on the first incidence relation.
In an embodiment, after acquiring the identification information of the client, the server may determine to obtain the target user identification based on the identification information. And matching the target user identification with each user identification in the first association relation, and acquiring an equipment identification set corresponding to the target user identification under the condition of successful matching. Therefore, the server can obtain the equipment identifications of all the clients related to the target user identification, and the latest playing progress of the target video can be conveniently determined from the equipment identifications of the clients in the follow-up process, so that the obtained latest playing progress is consistent with the latest playing of the actual target video.
Specifically, the identification information includes a device identifier of the client and/or a user identifier corresponding to the client. That is to say, the device identifier of the client may be used as the identification information, the user identifier corresponding to the client may be used as the identification information, and the device identifier of the client and the user identifier corresponding to the client may be used together as the identification information.
When the device identifier of the client is used alone as the identifier information, the user identifier associated with the device identifier of the client may be determined and obtained according to the first association relationship, and the obtained user identifier is used as the target user identifier.
It should be noted that, in an actual scenario, there may be a plurality of user identifiers associated with the device identifier of the client, for example, a user may log in an account of the user on a mobile phone of the user, and may also log in an account of a friend or a family of the user. In this case, based on the first association relationship, a plurality of user identifiers associated with the device identifier of the client may be obtained, and at this time, the user identifier that has logged in recently may be used as the target user identifier, or the user identifier associated with the device identifier of the client may be displayed on the user interface, and the user identifier selected by the user may be used as the target user identifier.
When the user identifier corresponding to the client is used alone as the identification information, the user identifier corresponding to the client can be directly used as the target user identifier.
When the device identifier of the client and the user identifier corresponding to the client are used together as the identification information, any one of the device identifier and the user identifier may be selected to determine the target user identifier. In order to relieve the processing pressure of the server, the user identifier corresponding to the client may be preferably selected as the target user identifier.
As can be seen from the foregoing embodiments, the identification information acquired by the server is related to the user login status of the client, and thus, when the server acquires the identification information, the identification information can be determined based on the user login status. Based on this, the step 101 of obtaining the identification information corresponding to the client may include the following steps:
acquiring a user login state of a client;
when the client is in a user login state, acquiring a user identifier of the current login of the client to obtain identifier information;
and when the client is not in the user login state, acquiring the equipment identification of the client to obtain identification information.
Specifically, the server may obtain a user login state of the client when receiving a play request sent by the client, obtain a user identifier of the client currently logged in when the client is in the user login state, and use the user identifier of the client currently logged in as the identification information. It should be noted that, in a scenario of a user login state, the server may also obtain the device identifier of the client alone as the identification information, or obtain the device identifier of the client and the user identifier of the client as the identification information.
When the client is not in the user login state, the server cannot acquire the user identifier of the client at the moment and can acquire the device identifier of the client, so that the device identifier of the client can be used as the identification information.
In the embodiment, the identification information can be flexibly determined according to the user login state of the client, and the problem that the server cannot confirm the identification information when the client is not in the user login state is avoided.
In an embodiment, the first association relationship may be further updated based on a user login status of the client, so that the first association relationship is kept in a latest state. Based on this, in the above steps, when the client is in the user login state, the method further includes the following steps after obtaining the user identifier of the client currently logged in and obtaining the identifier information:
verifying whether a target association relationship exists in the first association relationship, wherein the target association relationship is the association relationship between the currently logged user identifier and the equipment identifier of the client;
and when the first incidence relation does not have the target incidence relation, establishing the target incidence relation and updating the target incidence relation into the first incidence relation.
In this way, when the user logs in the user identifier using a new client to play the video, the user identifier and the new device identifier may be stored in an associated manner, so that when the above step 102 is executed in the back stream, the device identifier set corresponding to the target user identifier may be determined based on the updated first association relationship and the identifier information.
In practical applications, the updating process of the first association relationship can be seen in fig. 2. As shown in fig. 2, the process of updating the first association relationship may specifically include the following steps:
step 201, judging whether a client is in a user login state;
if the client is in the user login state, executing step 202; otherwise, if the client is not in the user login state, the server may determine the device identifier of the client as the identifier information corresponding to the client, and perform the above step 102 and subsequent steps of the embodiment shown in fig. 1.
Step 202, judging whether a target incidence relation exists in the first incidence relation;
and the target association relationship is the association relationship between the currently logged-in user identifier and the device identifier of the client. If the first association relationship does not have the target association relationship, step 203 is executed, and after step 203 is executed, step 102 and the subsequent steps of the embodiment shown in fig. 1 are executed.
On the contrary, if the first association relationship has the target association relationship, the server may determine the device identifier of the client and/or the currently logged-in user identifier as the identifier information corresponding to the client, and perform the step 102 and the subsequent steps in the embodiment shown in fig. 1. In the scene, the user identifier of the current login can be preferentially selected as the identifier information corresponding to the client, so that the system resource is reduced, and the processing efficiency is improved.
Step 203, establishing a target association relationship, and updating the target association relationship into the first association relationship.
In this embodiment, the server may update the first association relationship according to the user login state of the client, so that as long as the user logs in the client to watch the target video, the user identifier and the device identifier of the client can be associated, and thus, when the device identifier set corresponding to the target user identifier is subsequently determined, the determination may be performed based on the latest first association relationship.
In one embodiment, the play request carries identification information. That is to say, when the client sends the play request to the server, the client sends the carried identification information to the server, so that the server can directly acquire the identification information corresponding to the client from the play request when receiving the play request. By the method, the interaction process between the client and the server can be simplified, and the client is prevented from having larger time delay when the target video is synchronously played.
In an embodiment, when the identification information includes the device identifier of the client, the server may determine the target user identifier based on the device identifier of the client. Specifically, the step of determining the target user identifier based on the identifier information may include the following steps:
and in the first incidence relation, matching the equipment identification of the client to obtain the target user identification.
When the server obtains the device identifier of the client, the server may determine to obtain the user identifier associated with the device identifier of the client according to the first association relationship, and use the obtained user identifier as the target user identifier. It should be noted that, assuming that there are multiple user identifiers associated with the device identifier of the client, the user identifier that has logged in recently may be used as the target user identifier, or the user identifier associated with the device identifier of the client may be displayed on the user interface, and the user identifier selected by the user is used as the target user identifier. In this way, even if the client does not log in the user account, the target user identifier can be determined through the device identifier of the client.
In an embodiment, after the obtained device identifier set, the server may further obtain a latest playing progress of the target video, specifically, the determining, in the step 103, the latest playing progress of the target video based on the device identifier set may include the following steps:
acquiring the playing progress corresponding to each candidate client in the equipment identifier set based on a second incidence relation, wherein the second incidence relation is used for indicating the corresponding relation between the equipment identifier and the playing progress of the target video;
and determining the latest playing progress of the target video in the playing progress corresponding to each candidate client.
It should be noted that, the second association relationship is to store the playing progress of the target video with the device identifier as a dimension. That is, as long as the user plays the target video using a certain client, the server may update the playing progress corresponding to the device identifier of the client.
In this embodiment, since the server stores the second association relationship in advance, the server may match the device identifier of each candidate client in the device identifier set with the second association relationship, so as to obtain the playing progress of the target video corresponding to each candidate client, and then determine the latest playing progress according to the timestamp of each playing progress.
In an embodiment, the server determines a flow chart of the latest playing progress of the target video, which can be seen in fig. 3. As shown in fig. 3, the process of determining the latest playing progress of the target video by the server may specifically include the following steps:
step 301, judging whether the client is in a user login state.
If the client is in the user login state, executing step 302; if the client is not in the user login state, step 303 is executed.
Step 302, obtaining the user identifier of the current login of the client to obtain the identifier information.
And 303, acquiring the equipment identifier of the client to obtain the identifier information.
And step 304, determining a device identification set corresponding to the target user identification based on the identification information and the first association relation.
And 305, acquiring the playing progress corresponding to each candidate client in the device identifier set based on the second association relation.
And step 306, determining the latest playing progress of the target video in the playing progress corresponding to each candidate client.
The above steps 301 to 306 are already described in detail in the above embodiments, and are not described in detail herein.
In this embodiment, since the server stores the first association relationship and the second association relationship, the server may obtain the device identifier set associated with the user identifier based on the first association relationship, and then determine the latest playing progress of the target video from the device identifier set based on the second association relationship, thereby implementing synchronous playing of the target video.
In an embodiment, the target video may be an interactive video, and the server may implement synchronous playing on the interactive video by using the video playing method described in the above embodiment. Specifically, the server may determine the latest playing progress of the interactive video according to the first association relationship and the second association relationship, and send the indication information to the client. Specifically, the step 104 of sending the indication information to the client includes:
sending historical interactive data of the interactive video to a client; and/or
And sending the played plot playing node of the interactive video to the client.
Specifically, the indication information is obtained by the server based on the latest playing progress of the target video, and the indication information may be different according to the type of the target video.
When the target video is a normal video, the indication information may be latest playing data, such as a time node, frame data, and the like that was played last time. When the target video is an interactive video, the indication information may be the latest historical interactive data or the latest scenario playing node. Compared with the common video, the interactive video has the advantages that the user interaction function is added, and when the user watches the interactive video, the plot trend of the interactive video can be selected, so that the plot of the interactive video develops towards the direction expected by the user.
It should be noted that, for any video, the server may send the historical interaction data to the client. The historical interactive data here may be interactive data of fast forward, rewind, pause, double speed play of the video by the user. On the basis, the historical interactive data can also be historical interactive data and scenario playing nodes obtained after a user selects a scenario of an interactive video. Therefore, when the interactive video is played, the latest playing progress of the interactive video can be obtained based on the historical interactive data of the interactive video and/or the played plot playing node of the interactive video.
In this embodiment, the server may send the historical interactive data of the interactive video to the client, may also send the played scenario playing node of the interactive video to the client, and may also send the historical interactive data of the interactive video and the played scenario playing node of the interactive video to the client at the same time, which is not limited in this embodiment. Therefore, after the client receives the historical interactive data of the interactive video and/or the played plot playing node sent by the server, the client can synchronously play the interactive video based on the historical interactive data of the interactive video and/or the played plot playing node.
For the first association relation and the second association relation mentioned in the above embodiments, there may be a plurality of storage locations on the server, so as to achieve the purpose of data backup. The first correlation is described as an example below. The first incidence relation is stored in a bottom database and a cache storage space of the server;
the step 102 of determining, based on the identification information and the first association relationship, an equipment identification set corresponding to the target user identification may include the following steps:
judging whether a first association relation cached in a cache storage space is expired;
if the first association relation cached in the cache storage space is expired, acquiring the first association relation in the bottom-layer database;
and determining a device identification set corresponding to the target user identification based on the identification information and the first incidence relation in the bottom database.
Specifically, the cache storage space includes a cache layer and a local cache space, and in an embodiment, a redis database may be used as the cache layer storage and the local storage. Because the data in the cache storage space has certain timeliness, the original data after being expired can be covered, so that important data can be synchronously backed up to the bottom database, and the data is requested from the bottom database after the cache storage space does not have the required data. In one embodiment, a Hikv database may be employed as the underlying storage.
Therefore, when the server needs the first association relationship, whether the first association relationship in the cache storage space is expired or not can be judged, and if the first association relationship in the cache storage space is expired, the first association relationship is acquired from the bottom database; and if the first association relation in the cache storage space is not expired, directly obtaining the first association relation from the cache storage space. Therefore, the acquisition efficiency of the first incidence relation can be improved, and the access pressure of the bottom-layer database can be effectively reduced.
Besides, the application also provides a video playing method. With continued reference to fig. 1, the video playing method, executed on a client, includes:
step 100, sending a playing request to a server, wherein the server is used for acquiring identification information under the condition of receiving the playing request;
105, receiving indication information sent by a server, wherein the indication information is used for indicating the latest playing progress broadcast of the target video, the latest playing progress is determined by the server based on identification information of the client and a first association relation, and the first association relation is used for indicating a corresponding relation between a user identification and an equipment identification;
and 106, playing the target video according to the playing progress indicated by the indication information.
It should be noted that, this embodiment is implemented as a client corresponding to the above method embodiment, and therefore, reference may be made to relevant descriptions in the above method embodiment, and the same beneficial effects may be achieved. To avoid repetition of the description, the description is omitted.
In this embodiment, since the server stores the first association relationship indicating the correspondence between the user identifier and the device identifier, when the client is replaced to continue playing the target video, the server can determine the device identifier set corresponding to the target user identifier according to the identifier information corresponding to the replaced client and the first association relationship, and determine the latest playing progress of the target video according to the playing progress of the target video corresponding to each device identifier of the device identifier set, so that the client after replacement can synchronously play the target video based on the latest playing progress.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a server according to an embodiment of the present application. As shown in fig. 4, the server 400 includes:
an obtaining module 401, configured to obtain, when a play request sent by a client is received, identification information corresponding to the client;
a first determining module 402, configured to determine, based on the identification information and a first association relationship, an equipment identifier set corresponding to a target user identifier, where the first association relationship is used to indicate a correspondence relationship between the user identifier and the equipment identifier, and the target user identifier is determined based on the identification information;
a second determining module 403, configured to determine a latest playing progress of the target video based on the device identifier set;
the first sending module 404 is configured to send indication information to the client, where the indication information is used to indicate the client to play the target video according to the latest playing progress.
Optionally, the first determining module 402 includes:
the first determining submodule is used for determining a target user identifier based on the identification information;
and the second determining submodule is used for determining an equipment identification set corresponding to the target user identification based on the first incidence relation.
Optionally, the identification information includes a device identifier of the client and/or a user identifier corresponding to the client.
Optionally, the obtaining module 401 includes:
the first obtaining submodule is used for obtaining the user login state of the client;
the second obtaining submodule is used for obtaining the user identification of the current login of the client when the client is in the user login state to obtain identification information;
and the third obtaining submodule is used for obtaining the equipment identification of the client to obtain the identification information when the client is not in the user login state.
Optionally, the obtaining module 401 further includes:
the verification submodule is used for verifying whether a target incidence relation exists in the first incidence relation, and the target incidence relation is the incidence relation between the currently logged user identification and the equipment identification of the client;
and the processing sub-module is used for establishing the target association relationship and updating the target association relationship into the first association relationship when the first association relationship does not have the target association relationship.
Optionally, the play request carries identification information.
Optionally, when the identification information includes a device identification of the client, the first determining sub-module is further configured to:
and in the first incidence relation, matching the equipment identification of the client to obtain the target user identification.
Optionally, the second determining module 403 includes:
the fourth obtaining submodule is used for obtaining the playing progress corresponding to each candidate client in the equipment identifier set based on a second incidence relation, and the second incidence relation is used for indicating the corresponding relation between the equipment identifier and the playing progress of the target video;
and the third determining submodule is used for determining the latest playing progress of the target video in the playing progress corresponding to each candidate client.
Optionally, the target video is an interactive video; the first transmitting module 404 includes:
the first sending submodule is used for sending historical interactive data of the interactive video to the client; and/or
And the second sending submodule is used for sending the played plot playing node of the interactive video to the client.
Optionally, the first association relationship is stored in an underlying database and a cache storage space of the server 400; the first determining module 402 further includes:
the judgment submodule is used for judging whether the first association relation cached in the cache storage space is overdue or not;
the fifth obtaining submodule is used for obtaining the first incidence relation in the bottom database if the first incidence relation cached in the cache storage space is overdue;
and the fourth determining submodule is used for determining an equipment identification set corresponding to the target user identification based on the identification information and the first incidence relation in the bottom database.
The server 400 provided in this embodiment of the application can implement each process implemented by the above video playing method embodiment, and is not described here again to avoid repetition.
Besides, the embodiment of the application also provides the client. Referring to fig. 5, fig. 5 is a schematic structural diagram of a client according to an embodiment of the present disclosure. As shown in fig. 5, the client 500 includes:
a second sending module 501, configured to send a play request to a server;
a receiving module 502, configured to receive indication information sent by a server, where the indication information is used to indicate a latest playing progress of a target video, the latest playing progress is determined by the server based on identification information of a client and a first association relationship, and the first association relationship is used to indicate a correspondence between a user identifier and an equipment identifier;
and the playing module 503 is configured to play the target video according to the playing progress indicated by the indication information.
The client 500 provided in this embodiment of the application can implement each process implemented by the above-mentioned video playing method embodiment, and is not described here again to avoid repetition.
In addition, an embodiment of the present application further provides a video playing system 600, where the system 600 includes:
the client 601 is configured to execute a video playing method executed by the client side in any of the above embodiments. And will not be described in detail herein.
The server 602 is configured to execute a video playing method executed by the server side in any of the above embodiments. And will not be described in detail herein.
Through the video playing system 600, the server 602 can enable the client 601 currently in use to synchronize video data of other clients, so as to realize synchronous playing of videos, thereby solving the problem of different synchronization of interactive data among different clients and improving the viewing experience of users.
Optionally, as shown in fig. 7, an electronic device 700 is further provided in this embodiment of the present application, and includes a processor 701, a memory 702, and a program or an instruction stored in the memory 702 and executable on the processor 701, where the program or the instruction is executed by the processor 701 to implement each process of the above-mentioned embodiment of the interactive video playing method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned interactive video playing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device in the above embodiment. Readable storage media, including computer-readable storage media, such as Read-Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, etc.
It should be noted that, in this document, 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 like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the methods of the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (16)

1. A video playing method, executed on a server, the method comprising:
under the condition of receiving a playing request sent by a client, acquiring identification information corresponding to the client;
determining an equipment identification set corresponding to a target user identification based on the identification information and a first incidence relation, wherein the first incidence relation is used for indicating the corresponding relation between the user identification and the equipment identification, and the target user identification is determined based on the identification information;
determining the latest playing progress of the target video based on the equipment identification set;
and sending indication information to the client, wherein the indication information is used for indicating the client to play the target video according to the latest playing progress.
2. The method according to claim 1, wherein the determining a device identifier set corresponding to a target user identifier based on the identifier information and the first association relationship comprises:
determining the target user identification based on the identification information;
and determining a device identification set corresponding to the target user identification based on the first incidence relation.
3. The method according to claim 2, wherein the identification information includes a device identifier of the client and/or a corresponding user identifier of the client.
4. The method according to claim 3, wherein the obtaining the identification information corresponding to the client comprises:
acquiring a user login state of the client;
when the client is in a user login state, acquiring a user identifier of the current login of the client to obtain the identifier information;
and when the client is not in the user login state, acquiring the equipment identification of the client to obtain the identification information.
5. The method according to claim 4, wherein after obtaining the user identifier of the current login of the client when the client is in the user login state, and obtaining the identification information, the method further comprises:
verifying whether a target incidence relation exists in the first incidence relation, wherein the target incidence relation is the incidence relation between the currently logged-in user identification and the equipment identification of the client;
and when the first incidence relation does not have the target incidence relation, establishing the target incidence relation, and updating the target incidence relation into the first incidence relation.
6. The method of claim 3, wherein the playback request carries the identification information.
7. The method of claim 2, 3, 4 or 6, wherein when the identification information comprises a device identification of the client, the determining the target user identification based on the identification information comprises:
and in the first incidence relation, matching the equipment identification of the client to obtain the target user identification.
8. The method according to any one of claims 1 to 6, wherein the determining a latest playing progress of a target video based on the set of device identifications comprises:
acquiring the playing progress corresponding to each candidate client in the equipment identifier set based on a second incidence relation, wherein the second incidence relation is used for indicating the corresponding relation between the equipment identifier and the playing progress of the target video;
and determining the latest playing progress of the target video in the playing progress corresponding to each candidate client.
9. The method of claim 1, wherein the target video is an interactive video;
the sending the indication information to the client includes:
sending historical interaction data of the interactive video to the client; and/or
And sending the played plot playing node of the interactive video to the client.
10. The method according to any one of claims 1-5, wherein the first association relationship is stored in an underlying database and cache storage space of the server;
the determining, based on the identification information and the first association relationship, an equipment identification set corresponding to the target user identification includes:
judging whether the first association relation cached in the cache storage space is expired;
if the first association relation cached in the cache storage space is expired, acquiring the first association relation in the bottom-layer database;
and determining an equipment identification set corresponding to the target user identification based on the identification information and the first incidence relation in the bottom database.
11. A video playing method, executed on a client, the method comprising:
sending a playing request to a server;
receiving indication information sent by the server, wherein the indication information is used for indicating the latest playing progress of a target video, the latest playing progress is determined by the server based on the identification information of the client and a first association relation, and the first association relation is used for indicating a corresponding relation between a user identification and an equipment identification;
and playing the target video according to the playing progress indicated by the indication information.
12. A server, characterized in that the server comprises:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring identification information corresponding to a client under the condition of receiving a play request sent by the client;
a first determining module, configured to determine, based on the identification information and a first association relationship, an equipment identifier set corresponding to a target user identifier, where the first association relationship is used to indicate a correspondence relationship between a user identifier and an equipment identifier, and the target user identifier is determined based on the identification information;
the second determination module is used for determining the latest playing progress of the target video based on the equipment identification set;
and the first sending module is used for sending indication information to the client, wherein the indication information is used for indicating the client to play the target video according to the latest playing progress.
13. A client, the client comprising:
the second sending module is used for sending a playing request to the server;
a receiving module, configured to receive indication information sent by the server, where the indication information is used to indicate a latest playing progress of a target video, the latest playing progress is determined by the server based on identification information of the client and a first association relationship, and the first association relationship is used to indicate a correspondence between a user identifier and an equipment identifier;
and the playing module is used for playing the target video according to the playing progress indicated by the indication information.
14. A video playback system, the system comprising:
a client for executing the video playback method according to claim 11;
a server for performing the video playback method of any one of claims 1 to 10.
15. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the video playback method of any of claims 1 to 10; or which program or instructions, when executed by the processor, carry out the steps of the video playback method as claimed in claim 11.
16. A computer-readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the video playback method according to any one of claims 1 to 10; or which program or instructions, when executed by the processor, carry out the steps of the video playback method as claimed in claim 11.
CN202110585989.7A 2021-05-27 2021-05-27 Video playing method, related equipment and computer readable storage medium Active CN113518247B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110585989.7A CN113518247B (en) 2021-05-27 2021-05-27 Video playing method, related equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110585989.7A CN113518247B (en) 2021-05-27 2021-05-27 Video playing method, related equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113518247A true CN113518247A (en) 2021-10-19
CN113518247B CN113518247B (en) 2023-06-02

Family

ID=78065038

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110585989.7A Active CN113518247B (en) 2021-05-27 2021-05-27 Video playing method, related equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113518247B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114051162A (en) * 2022-01-12 2022-02-15 飞狐信息技术(天津)有限公司 Caching method and device based on play records
CN114071111A (en) * 2021-12-27 2022-02-18 北京百度网讯科技有限公司 Video playing method and device
CN114173169A (en) * 2021-11-03 2022-03-11 北京奇艺世纪科技有限公司 Video playing method, device and system and computer readable storage medium
CN114390007A (en) * 2021-12-23 2022-04-22 西安诺瓦星云科技股份有限公司 Data processing method, device, storage medium and processor
CN114501111A (en) * 2022-01-14 2022-05-13 维沃移动通信有限公司 Video playing method and device
CN114760503A (en) * 2022-04-15 2022-07-15 北京爱奇艺科技有限公司 Video playing method, device, system, electronic equipment and storage medium
CN115334360A (en) * 2022-07-14 2022-11-11 中关村科学城城市大脑股份有限公司 Audio and video playing method and device, electronic equipment, readable medium and program product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090164516A1 (en) * 2007-12-21 2009-06-25 Concert Technology Corporation Method and system for generating media recommendations in a distributed environment based on tagging play history information with location information
CN101964787A (en) * 2010-09-17 2011-02-02 深圳市同洲电子股份有限公司 Method, device and system for implementation of multiple-terminal breakpoint broadcast of programs
CN104185039A (en) * 2013-05-27 2014-12-03 腾讯科技(深圳)有限公司 Method and device for audio and video synchronous playing
CN105933723A (en) * 2016-06-29 2016-09-07 乐视控股(北京)有限公司 Video continuous playing method, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090164516A1 (en) * 2007-12-21 2009-06-25 Concert Technology Corporation Method and system for generating media recommendations in a distributed environment based on tagging play history information with location information
CN101964787A (en) * 2010-09-17 2011-02-02 深圳市同洲电子股份有限公司 Method, device and system for implementation of multiple-terminal breakpoint broadcast of programs
CN104185039A (en) * 2013-05-27 2014-12-03 腾讯科技(深圳)有限公司 Method and device for audio and video synchronous playing
CN105933723A (en) * 2016-06-29 2016-09-07 乐视控股(北京)有限公司 Video continuous playing method, device and system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114173169A (en) * 2021-11-03 2022-03-11 北京奇艺世纪科技有限公司 Video playing method, device and system and computer readable storage medium
CN114390007A (en) * 2021-12-23 2022-04-22 西安诺瓦星云科技股份有限公司 Data processing method, device, storage medium and processor
CN114390007B (en) * 2021-12-23 2024-03-15 西安诺瓦星云科技股份有限公司 Data processing method, device, storage medium and processor
CN114071111A (en) * 2021-12-27 2022-02-18 北京百度网讯科技有限公司 Video playing method and device
CN114051162A (en) * 2022-01-12 2022-02-15 飞狐信息技术(天津)有限公司 Caching method and device based on play records
CN114501111A (en) * 2022-01-14 2022-05-13 维沃移动通信有限公司 Video playing method and device
CN114760503A (en) * 2022-04-15 2022-07-15 北京爱奇艺科技有限公司 Video playing method, device, system, electronic equipment and storage medium
CN114760503B (en) * 2022-04-15 2023-12-05 北京爱奇艺科技有限公司 Video playing method, device, system, electronic equipment and storage medium
CN115334360A (en) * 2022-07-14 2022-11-11 中关村科学城城市大脑股份有限公司 Audio and video playing method and device, electronic equipment, readable medium and program product

Also Published As

Publication number Publication date
CN113518247B (en) 2023-06-02

Similar Documents

Publication Publication Date Title
CN113518247B (en) Video playing method, related equipment and computer readable storage medium
EP2602760B1 (en) Providing synchronous content and supplemental experiences
CN105933375B (en) Method and device for monitoring microphone connection session and server
CN108495152B (en) Video live broadcast method and device, electronic equipment and medium
CN109391851B (en) Video live broadcast method and device, computer equipment and storage medium
CN105027578A (en) Connected-media end user experience using an overlay network
CN112752114B (en) Method and device for generating live broadcast playback interactive message, server and storage medium
CN108600850B (en) Video sharing method, client, server and storage medium
CN111107390B (en) Live broadcast service system and live broadcast connection establishment method
CN108667798A (en) A kind of method and system of virtual viewing
CN104998412A (en) Single-player game realization method and apparatus
CN106791975A (en) A kind of method of net cast, terminal device and video living transmission system
CN112672179A (en) Method, device and equipment for live game
CN104317898B (en) A kind of information processing method and server
CN112383794A (en) Live broadcast method, live broadcast system, server and computer storage medium
CN104917754A (en) Video data sending and receiving methods, servers and clients
CN110049360B (en) Cross-platform content control method, device, terminal, server and storage medium
US20150026711A1 (en) Method and apparatus for video content distribution
CN108668140B (en) Audio and video interaction state synchronization method and device
CN105898435A (en) Data synchronizing method and device
CN114760485B (en) Video carousel method, system and related equipment
CN105979333B (en) Data synchronous display method and device
EP4002860A1 (en) Method and device for processing public event by means of key distribution, and set top box
US20220417619A1 (en) Processing and playing control over interactive video
CN109999490B (en) Method and system for reducing networking cloud application delay

Legal Events

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