CN113518247B - 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
CN113518247B
CN113518247B CN202110585989.7A CN202110585989A CN113518247B CN 113518247 B CN113518247 B CN 113518247B CN 202110585989 A CN202110585989 A CN 202110585989A CN 113518247 B CN113518247 B CN 113518247B
Authority
CN
China
Prior art keywords
client
user
identifier
identification
target
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.)
Active
Application number
CN202110585989.7A
Other languages
Chinese (zh)
Other versions
CN113518247A (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

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 that a play request sent by a client is received, acquiring identification information corresponding to the client; determining a device identifier set corresponding to a target user identifier based on the identifier information and a first association relationship, wherein the first association relationship is used for indicating the correspondence relationship between the user identifier and the device identifier, and the target user identifier is determined based on the identifier 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. By the method, 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 also 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 a plurality of clients, resulting in that the video cannot be played normally and synchronously.
In order to solve the technical problems, the application is realized as follows:
in a first aspect, an embodiment of the present application provides a video playing method, which is executed in a server, where the method includes:
under the condition that a play request sent by a client is received, acquiring identification information corresponding to the client;
determining a device identifier set corresponding to a target user identifier based on the identifier information and a first association relationship, wherein the first association relationship is used for indicating the correspondence relationship between the user identifier and the device identifier, and the target user identifier is determined based on the identifier 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, which is executed on a client, and the method includes:
sending a play 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 relationship, and the first association relationship is used for indicating the corresponding relationship between a user identifier and a device identifier;
and playing the target video according to the playing progress indicated by the indication information.
In a third aspect, embodiments of the present application provide a server, including:
the system comprises an acquisition module, a client and a control 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;
the first determining module is used for determining a device identifier set corresponding to a target user identifier based on the identifier information and a first association relation, wherein the first association relation is used for indicating the correspondence relation between the user identifier and the device identifier, and the target user identifier is determined based on the identifier information;
The second determining module is used for determining the latest playing progress of the target video based on the equipment identification set;
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, embodiments of the present application provide a client, where the client includes:
the second sending module is used for sending a playing request to the server;
the receiving module is used for receiving indication information sent by the server, wherein the indication information is used for indicating the latest playing progress of the 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 the corresponding relation between the user identification and the equipment identification;
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, embodiments of the present application provide a video playing system, including:
a client for performing the video playing method as described in 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, including 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 as described in the second aspect.
In a seventh aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which, 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 as described in the second aspect.
In the embodiment of the application, under the condition that a play request sent by a client is received, the identification information corresponding to the client is acquired; determining a device identifier set corresponding to a target user identifier based on the identifier information and a first association relationship, wherein the first association relationship is used for indicating the correspondence relationship between the user identifier and the device identifier, and the target user identifier is determined based on the identifier 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 first association relationship indicating the correspondence between the user identifier and the device identifier is stored in the server, 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 replaced client can realize synchronous playing of the target video based on the latest playing progress.
Drawings
Fig. 1 is a flowchart of a video playing method provided in an embodiment of the present application;
fig. 2 is a flowchart of an updating process of a first association relationship provided in an embodiment of the present application;
fig. 3 is a flowchart 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 following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type and not limited to the number of objects, e.g., the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The video playing method provided by the embodiment of the application is described in detail below through specific embodiments and application scenes 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, interactive video playing and the like. Exemplary, video playback scenarios of embodiments of the present invention may include, but are not limited to: application (APP) for playing video, augmented Reality (Augmented Reality, AR) device, virtual Reality (VR) device, television, set-top box, and the like.
As described above, in the prior art, the video playing data cannot be synchronized among a plurality of clients, because in the prior art, the video playing data is stored in association with the device identifier of the client, each client can only obtain the video playing data corresponding to the respective device identifier according to the device identifier of the client, and thus when the user switches to a different client to play the video, synchronous playing of the video cannot be achieved.
Aiming at the problems existing in the prior art, the embodiment of the invention provides the following design ideas: on the basis of the prior art, a first association relation between the user identifier and the device identifier is established, so that all the device identifiers associated with a certain user identifier can be obtained through the first association relation, and further, the playing progress of the target video on each client can be obtained according to all the associated device identifiers, and synchronous playing of the video is realized.
Specifically, the video playing method provided by the embodiment of the invention can be applied to a video playing system, and the system comprises the following steps: 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 playback system, a client may be used to initiate a playback 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 relation between the prestored user identification and the equipment identification, and feeding back the latest playing progress to the client.
It will be appreciated that in the embodiment of the present invention, the server may be a server in a client/server mode (i.e. a C/S mode) or a server in a browser/server mode (i.e. a 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 is executed in a server, and specifically includes the following steps:
step 101, under the condition that a play request sent by a client is received, obtaining identification information corresponding to 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 a device identification of the client, or may be a user identification of a user account currently logged in by the client, which is not specifically limited in this application. The device identifier corresponding to the client includes, but is not limited to, an international mobile equipment identifier (International Mobile Equipment Identity, abbreviated as IMEI) of the device, a mobile equipment identifier (Mobile Equipment Identifier, abbreviated as MEID), an electronic serial number (Electronic Serial Numbe, abbreviated as ESN), an identification number (Identity document, abbreviated as ID) of the device, and the like.
It should be noted that, the above identification information may be carried in the play request, and sent to the server simultaneously with the play request, and then the server analyzes the play request to obtain the identification information; the method can also be carried out without the play request, after the server receives the play 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 a device identifier set corresponding to a target user identifier based on the identifier information and a first association relationship, wherein the first association relationship is used for indicating the correspondence relationship between the user identifier and the device identifier, and the target user identifier is determined based on the identifier information.
Specifically, the first association relationship may be preconfigured on the server, or may be created and maintained by the server, which is not specifically limited in this application. When the first association is created by the server, the server can acquire the user identification corresponding to the client under the condition that the client logs in the user account, so that the server can create and maintain the first association based on the acquired user identification and the equipment identification of the client. That is, the server may determine to obtain the first association according to the user login status of the client, for example, when the user logs in two user accounts using a certain client, the user identifiers corresponding to the two user accounts may be associated with the device identifiers of the client after logging in, and updated into the first association. 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 herein refers to an identifier of a user account logged in on the client, so the server needs to create or maintain the first association relationship based on the user account logged in on the client.
The target user identifier may be obtained by the server by itself or may be obtained by sending the client to the server, which is not specifically limited in this application. When the target user identifier is obtained by the server, the server can determine according to the identifier information. Specifically, when the identification information is a user identification currently logged in on the client, the target user identification may be the user identification currently logged in on the client; when the identification information is the device identification of the client, the target user identification may be a user identification corresponding to the device identification 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 set of device identifiers herein is used to represent a set of all device identifiers associated with the target user identifier, where the set of device identifiers includes one device identifier when the device identifier associated with the target user identifier is one; when the device identity associated with the target user identity is a plurality of device identities, the set of device identities comprises a plurality of device identities.
Step 103, determining the latest playing progress of the target video based on the equipment identification set.
In practical application, when a user plays a target video by using different clients, the server can acquire 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 acquire 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 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 may be different according to the type of the target video.
When the target video is a normal video, the indication information may be the latest play data, such as the time node, frame data, etc. that was last played.
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 that can interact with a user, and when the user views the interactive video, the user can select the scenario trend of the interactive video, so that the scenario 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 the synchronization of the target video among different clients is realized.
In this embodiment, since the first association relationship indicating the correspondence between the user identifier and the device identifier is stored in the server, 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 replaced client can realize synchronous playing of 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, a device identification set corresponding to the target user identification may specifically include the following steps:
Determining a target user identification based on the identification information;
and determining a device identifier set corresponding to the target user identifier based on the first association relation.
In an embodiment, after the server obtains 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 identifier with each user identifier in the first association relationship, and acquiring a device identifier set corresponding to the target user identifier under the condition of successful matching. In this way, the server can obtain the device identifiers of all the clients associated with the target user identifier, so that the latest playing progress of the target video can be conveniently determined from the device identifiers of the clients, and the obtained latest playing progress is matched with the latest playing of the actual target video.
Specifically, the identification information includes a device identification of the client, and/or a user identification corresponding to the client. That is, 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 independently used as the identification information, the user identifier associated with the device identifier of the client can be determined and obtained according to the first association relation, and the obtained user identifier is used as the target user identifier.
In the actual scenario, there may be a plurality of user identifiers associated with the device identifier of the client, for example, the user may log in his own account on his own mobile phone, or may log in his own friend or family account again. In this case, based on the first association relationship, a plurality of user ids associated with the device id of the client may be obtained, and at this time, the user id that has recently logged in may be used as the target user id, or the user id associated with the device id of the client may be displayed on the user interface, with the user id selected by the user as the target user id.
When the user identifier corresponding to the client is independently used 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 as the identification information together, any one of the two can be selected to determine the target user identifier. To alleviate 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 can be determined based on the user login status when the server acquires the identification information. 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, and acquiring identification information;
and when the client is not in the user login state, acquiring the equipment identifier of the client to obtain the identifier information.
Specifically, the server may obtain a user login state of the client under the condition that a play request sent by the client is received, and when the client is in the user login state, obtain a user identifier of the current login of the client, and use the user identifier of the current login of the client as identification information. In the case of the 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 identification of the client at the moment and can acquire the equipment identification of the client, so that the equipment identification of the client can be used as identification information.
In this embodiment, the identification information may be flexibly determined according to the user login state of the client, so as to avoid that the server cannot confirm the identification information when the client is not in the user login state.
In an embodiment, the first association relationship may be updated based on the user login state of the client, so that the first association relationship is kept in the latest state. Based on this, in the above step, when the client is in the user login state, the user identifier of the current login of the client is obtained, and after the identifier information is obtained, the method further includes the following steps:
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 identifier and the equipment identifier of the client;
when the first association relation does not have the target association relation, the target association relation is established, and the target association relation is updated into the first association relation.
Thus, when the user logs in the user identifier by using the new client to play the video, the user identifier and the new equipment identifier can be stored in an associated mode, and when the step 102 is executed in the back stream, the equipment identifier set corresponding to the target user identifier can be determined based on the updated first association relation and the identifier information.
In practical application, the updating process of the first association relationship can be seen in fig. 2. As shown in fig. 2, the updating process of the first association relationship may specifically include the following steps:
step 201, judging whether the 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 execute the step 102 and the subsequent steps in the embodiment shown in fig. 1.
Step 202, judging whether a target association exists in the first association;
the target association relationship is an association relationship between a currently logged-in user identifier and a 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 subsequent steps described above in the embodiment shown in fig. 1 are executed.
Otherwise, 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 execute the step 102 and the subsequent steps in the embodiment shown in fig. 1. In the scene, the user identifier which is logged in at present can be preferentially selected as the corresponding identifier information of 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 as long as the user logs in to 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 determined later, the server may determine based on the latest first association relationship.
In an embodiment, the play request carries identification information. That is, when the client sends a play request to the server, the client sends the carried identification information to the server, so that the server can directly obtain the identification information corresponding to the client from the play request under the condition of receiving the play request. By the method, the interaction process between the client and the server can be simplified, and the situation that a large time delay exists when the client synchronously plays the target video is avoided.
In an embodiment, when the identification information includes a device identification of the client, the server may determine the target user identification based on the device identification 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 association relation, the equipment identification of the client is matched to obtain the target user identification.
When the server obtains the equipment identifier of the client, the user identifier associated with the equipment identifier of the client can be determined and obtained according to the first association relation, and the obtained user identifier is used as the target user identifier. It should be noted that, when a plurality of user identifiers associated with the device identifier of the client exist, the user identifier that has recently logged in 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. In this way, the target user identification may be determined by the device identification of the client even if the client is not logged into the user account.
In an embodiment, the server may further obtain the latest playing progress of the target video after the obtained device identifier set, specifically, step 103, determining the latest playing progress of the target video based on the device identifier set may include the following steps:
acquiring playing progress corresponding to each candidate client in the equipment identification set based on a second association relationship, wherein the second association relationship is used for indicating the correspondence between the equipment identification 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 stores the playing progress of the target video by using 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 second association relationship is stored in the server in advance, the server may match the device identifiers of the candidate clients in the device identifier set with the second association relationship, thereby obtaining the playing progress of the target video corresponding to each candidate client, and then determining the latest playing progress according to the time stamp of each playing progress.
In an embodiment, the server determines the latest playing progress of the target video, see 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 performed.
Step 302, obtaining the user identifier of the current login of the client to obtain the identification information.
Step 303, obtaining the device identifier of the client to obtain the identifier information.
Step 304, determining a device identifier set corresponding to the target user identifier based on the identifier information and the first association relation.
Step 305, based on the second association relationship, obtaining the playing progress corresponding to each candidate client in the equipment identification set.
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 described in detail in the above embodiments, and are not described in detail herein.
In this embodiment, since the first association relationship and the second association relationship are stored on the server, the server may acquire the device identifier set associated with the user identifier based on the first association relationship, and 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 of the interactive video by using the video playing method described in the foregoing embodiment. Specifically, the server may determine the latest playing progress of the interactive video with the first association relationship and the second association relationship, and send indication information to the client. Specifically, the step 104 of sending the indication information to the client includes:
Transmitting historical interaction data of the interaction video to the client; and/or
And sending the played scenario 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 may be different according to the type of the target video.
When the target video is a normal video, the indication information may be the latest play data, such as the time node, frame data, etc. that was last played. When the target video is an interactive video, the indication information can be the latest historical interaction data or the latest scenario playing node. Compared with the common video, the interactive video has the advantages that the interactive video has the added user interaction function, 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 historical interaction data to the client. The historical interaction data can be interaction data of fast forward, backward, pause and double-speed playing of the video by a user. On the basis, the historical interaction data can also be the obtained historical interaction data and scenario playing nodes after the user selects the scenario of the interactive video. Therefore, when the interactive video is played, the latest playing progress of the interactive video can be obtained based on the historical interaction data of the interactive video and/or the played scenario playing nodes of the interactive video.
In this embodiment, the server may send the historical interaction data of the interactive video to the client, may send the played scenario playing node of the interactive video to the client, and may also send the historical interaction data of the interactive video and the played scenario playing node of the interactive video to the client simultaneously. In this way, after the client receives the historical interaction data of the interactive video and/or the played scenario playing node sent by the server, synchronous playing of the interactive video can be achieved based on the historical interaction data of the interactive video and/or the played scenario playing node.
For the first association relationship and the second association relationship mentioned in the above embodiments, there may be multiple storage locations on the server, so as to achieve the purpose of data backup. The first association relationship will be described below as an example. The first association relation is stored in a bottom database and a cache storage space of the server;
the step 102 of determining the device identifier set corresponding to the target user identifier based on the identifier information and the first association relationship may include the following steps:
judging whether a first association relationship cached in a cache storage space is out of date;
If the first association relationship cached in the cache storage space is out of date, acquiring the first association relationship in the bottom database;
and determining a device identification set corresponding to the target user identification based on the identification information and the first association relation in the underlying 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 memory space has certain timeliness, the original data can be covered after expiration, so that important data is generally backed up synchronously to the bottom database, and the data is requested to the bottom database after the data which is not needed in the cache memory space. In one embodiment, the Hikv database may be employed as the underlying store.
In this way, when the server needs the first association relationship, whether the first association relationship in the cache storage space is out of date can be judged first, and if the first association relationship in the cache storage space is out of date, the first association relationship is obtained from the bottom database; if the first association relationship in the cache storage space is not expired, the first association relationship is directly obtained from the cache storage space. Therefore, the acquisition efficiency of the first association relation can be improved, and the access pressure of the bottom database can be effectively reduced.
In addition, the application also provides a video playing method. With continued reference to fig. 1, the video playing method is executed on the client, and the method includes:
step 100, sending a play request to a server, wherein the server is used for acquiring identification information under the condition of receiving the play request;
step 105, receiving indication information sent by a server, wherein the indication information is used for indicating the latest playing progress of a target video, the latest playing progress is determined and obtained by the server based on identification information of a client and a first association relationship, and the first association relationship is used for indicating a corresponding relationship between a user identification and a device identification;
and 106, playing the target video according to the playing progress indicated by the indication information.
Note that this embodiment is an implementation manner of the client corresponding to the above-described method embodiment, and therefore, reference may be made to the description related to the above-described method embodiment, and the same beneficial effects may be achieved. In order to avoid repetition of the description, a description thereof will be omitted.
In this embodiment, since the first association relationship indicating the correspondence between the user identifier and the device identifier is stored in the server, 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 replaced client can realize synchronous playing of 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 identification information corresponding to a client when receiving a play request sent by the client;
a first determining module 402, configured to determine a device identifier set corresponding to a target user identifier based on the identifier information and a first association relationship, where the first association relationship is used to indicate a correspondence between the user identifier and the device identifier, and the target user identifier is determined based on the identifier information;
a second determining module 403, configured to determine, based on the device identifier set, a latest playing progress of the target video;
the first sending module 404 is configured to send indication information to the client, where the indication information is used to instruct 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 the target user identification based on the identification information;
and the second determining submodule is used for determining a device identifier set corresponding to the target user identifier based on the first association relation.
Optionally, the identification information includes a device identification of the client, and/or a user identification corresponding to the client.
Optionally, the obtaining module 401 includes:
the first acquisition sub-module is used for acquiring the user login state of the client;
the second acquisition sub-module is used for acquiring a user identifier of the current login of the client when the client is in a user login state, and acquiring identification information;
and the third acquisition sub-module is used for acquiring the equipment identifier of the client when the client is not in the user login state, and acquiring the identifier information.
Optionally, the obtaining module 401 further includes:
the verification sub-module is used for verifying whether a target incidence relation exists in the first incidence relation, wherein the target incidence relation is an incidence relation between a currently logged-in user identifier and a device identifier of a client;
and the processing sub-module is used for establishing a 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 submodule is further configured to:
and in the first association relation, the equipment identification of the client is matched to obtain the target user identification.
Optionally, the second determining module 403 includes:
A fourth obtaining sub-module, configured to obtain a playing progress corresponding to each candidate client in the device identifier set based on a second association relationship, where the second association relationship is used to indicate a correspondence between the device 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 sub-module is used for sending historical interaction data of the interaction video to the client; and/or
And the second sending submodule is used for sending the played scenario playing node of the interactive video to the client.
Optionally, the first association is stored in an underlying database and a cache storage space of the server 400; the first determination module 402 further includes:
the judging submodule is used for judging whether the first association relation cached in the cache storage space is out of date or not;
a fifth obtaining sub-module, configured to obtain the first association relationship in the underlying database if the first association relationship cached in the cache storage space expires;
and the fourth determining submodule is used for determining a device identifier set corresponding to the target user identifier based on the identifier information and the first association relation in the underlying database.
The server 400 provided in the embodiment of the present application can implement each process implemented by the embodiment of the video playing method, and in order to avoid repetition, a description is omitted here.
In addition, the embodiment of the application also provides a client. Referring to fig. 5, fig. 5 is a schematic structural diagram of a client according to an embodiment of the present application. As shown in fig. 5, the client 500 includes:
a second sending module 501, configured to send a play request to a server;
the receiving module 502 is 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 and obtained 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 a device 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 present application can implement each process implemented by the foregoing embodiment of the video playing method, and in order to avoid repetition, a description is omitted here.
In addition, the embodiment of the present application further provides a video playing system 600, where the system 600 includes:
The client 601 is configured to perform the video playing method performed by the client in any one of the embodiments. And will not be described in detail here.
A server 602, configured to perform a video playing method performed on the server side in implementing any of the foregoing embodiments. And will not be described in detail here.
Through the video playing system 600, the server 602 can enable the currently used client 601 to synchronize to video data of other clients, so that synchronous playing of videos is realized, the problem of different synchronization of interactive data between different clients is solved, and viewing experience of a user is improved.
Optionally, as shown in fig. 7, the embodiment of the present application further provides an electronic device 700, including a processor 701, a memory 702, and a program or an instruction stored in the memory 702 and capable of running on the processor 701, where the program or the instruction implements each process of the embodiment of the interactive video playing method when executed by the processor 701, and the process can achieve the same technical effects, and for avoiding repetition, a description is omitted herein.
The embodiment of the application further provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the embodiment of the interactive video playing method, and can achieve the same technical effects, so that repetition is avoided, and no further description is given here.
The processor is a processor in the electronic device in the above embodiment. Readable storage media include computer readable storage media such as Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic or optical disks, and the like.
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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), including several instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method of the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (13)

1. A video playing method, which is executed by a server, the method comprising:
under the condition that a play request sent by a client is received, acquiring identification information corresponding to the client;
determining a device identifier set corresponding to a target user identifier based on the identifier information and a first association relationship, wherein the first association relationship is used for indicating the correspondence relationship between the user identifier and the device identifier, and the target user identifier is determined based on the identifier information;
determining the latest playing progress of the target video based on the equipment identification set;
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;
the identification information comprises equipment identification of the client and/or user identification corresponding to the client;
the determining the latest playing progress of the target video based on the equipment identification set comprises the following steps:
acquiring the playing progress corresponding to each candidate client in the equipment identification set based on a second association relationship, wherein the second association relationship is used for indicating the corresponding relationship between the equipment identification and the playing progress of the target video;
Determining the latest playing progress of the target video in the playing progress corresponding to each candidate client;
the obtaining the identification information corresponding to the client includes:
acquiring a user login state of the client;
when the client is not in a user login state, acquiring a device identifier of the client to acquire the identifier information;
the determining the equipment identifier set corresponding to the target user identifier based on the identifier information and the first association relation comprises the following steps:
determining the target user identification based on the identification information;
determining a device identifier set corresponding to the target user identifier based on the first association relation;
and under the condition that the equipment identifier of the client is associated with a plurality of user identifiers, the user identifier which is recently logged in is used as the target user identifier, or the user identifier which is associated with the equipment identifier of the client is displayed on a user interface, and the user identifier selected by a user is used as the target user identifier.
2. The method of claim 1, wherein the obtaining the identification information corresponding to the client further comprises:
when the client is in a user login state, the user identification of the current login of the client is obtained, and the identification information is obtained.
3. The method according to claim 2, wherein after obtaining the identification information after obtaining the user identification currently logged in by the client when the client is in the user login state, the method further comprises:
verifying whether a target association relationship exists in the first association relationship, wherein the target association relationship is an association relationship between the currently logged-in user identifier and the device identifier of the client;
when the first association relation does not have the target association relation, the target association relation is established, and the target association relation is updated into the first association relation.
4. The method of claim 1, wherein the play request carries the identification information.
5. The method of claim 1, 2 or 4, wherein when the identification information includes a device identification of the client, the determining the target user identification based on the identification information comprises:
and in the first association relation, matching the equipment identifier of the client to obtain the target user identifier.
6. The method of claim 1, wherein the target video is an interactive video;
The sending the indication information to the client side includes:
transmitting historical interaction data of the interaction video to the client; and/or
And sending the played scenario playing node of the interactive video to the client.
7. A method according to any one of claims 1-3, wherein the first association is stored in an underlying database and a cache memory space of the server;
the determining the equipment identifier set corresponding to the target user identifier based on the identifier information and the first association relation comprises the following steps:
judging whether a first association relationship cached in the cache storage space is outdated or not;
if the first association relationship cached in the cache storage space is out of date, acquiring the first association relationship in the bottom database;
and determining a device identification set corresponding to the target user identification based on the identification information and the first association relation in the underlying database.
8. A video playing method, performed at a client, the method comprising:
sending a play 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 a set of equipment identifiers corresponding to target user identifiers based on the identification information of the client and a first association relation, and the server is used for indicating the playing progress determined in the playing progress corresponding to each candidate client in the set of equipment identifiers based on a second association relation, the first association relation is used for indicating the corresponding relation between the user identifiers and the equipment identifiers, and the second association relation is used for indicating the corresponding relation between the equipment identifiers and the playing progress of the target video;
Playing the target video according to the playing progress indicated by the indication information;
the identification information comprises equipment identification of the client and/or user identification corresponding to the client;
the target user identification is determined based on the identification information, wherein when the client is not in a user login state, the identification information is obtained based on the device identification of the client, and when the device identification of the client is associated with a plurality of user identifications, the latest logged-in user identification is used as the target user identification, or the user identification associated with the device identification of the client is displayed on a user interface, and the user identification selected by a user is used as the target user identification.
9. A server, the server comprising:
the system comprises an acquisition module, a client and a control 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;
the first determining module is used for determining a device identifier set corresponding to a target user identifier based on the identifier information and a first association relation, wherein the first association relation is used for indicating the correspondence relation between the user identifier and the device identifier, and the target user identifier is determined based on the identifier information;
The second determining module is used for determining the latest playing progress of the target video based on the equipment identification set;
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;
the identification information comprises equipment identification of the client and/or user identification corresponding to the client;
the determining the latest playing progress of the target video based on the equipment identification set comprises the following steps:
acquiring the playing progress corresponding to each candidate client in the equipment identification set based on a second association relationship, wherein the second association relationship is used for indicating the corresponding relationship between the equipment identification and the playing progress of the target video;
determining the latest playing progress of the target video in the playing progress corresponding to each candidate client;
the acquisition module is specifically configured to:
acquiring a user login state of the client;
when the client is not in a user login state, acquiring a device identifier of the client to acquire the identifier information;
the first determining module is specifically configured to:
determining the target user identification based on the identification information;
Determining a device identifier set corresponding to the target user identifier based on the first association relation;
and under the condition that the equipment identifier of the client is associated with a plurality of user identifiers, the user identifier which is recently logged in is used as the target user identifier, or the user identifier which is associated with the equipment identifier of the client is displayed on a user interface, and the user identifier selected by a user is used as the target user identifier.
10. A client, the client comprising:
the second sending module is used for sending a playing request to the server;
the receiving module is used for receiving indication information sent by the server, wherein the indication information is used for indicating the latest playing progress of the target video, the latest playing progress is a set of equipment identifiers corresponding to the target user identifiers based on the identification information of the client and a first association relation, and the server is used for indicating the playing progress determined in the playing progress corresponding to each candidate client in the set of equipment identifiers based on a second association relation, the first association relation is used for indicating the corresponding relation between the user identifiers and the equipment identifiers, and the second association relation is used for indicating the corresponding relation between the equipment identifiers and the playing progress of the target video;
The playing module is used for playing the target video according to the playing progress indicated by the indication information;
the identification information comprises equipment identification of the client and/or user identification corresponding to the client;
the target user identification is determined based on the identification information, wherein when the client is not in a user login state, the identification information is obtained based on the device identification of the client, and when the device identification of the client is associated with a plurality of user identifications, the latest logged-in user identification is used as the target user identification, or the user identification associated with the device identification of the client is displayed on a user interface, and the user identification selected by a user is used as the target user identification.
11. A video playback system, the system comprising:
a client for performing the video playing method as claimed in claim 8;
a server for performing the video playing method according to any one of claims 1 to 7.
12. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, the program or instruction when executed by the processor implementing the steps of the video playback method of any one of claims 1 to 7; or the program or instructions when executed by the processor implement the steps of the video playback method as claimed in claim 8.
13. A computer readable storage medium, wherein a program or instructions is stored on the computer readable storage medium, which when executed by a processor, implements the steps of the video playback method of any one of claims 1 to 7; or the program or instructions when executed by the processor implement the steps of the video playback method as claimed in claim 8.
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 CN113518247A (en) 2021-10-19
CN113518247B true 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)

Families Citing this family (8)

* 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
CN114390007B (en) * 2021-12-23 2024-03-15 西安诺瓦星云科技股份有限公司 Data processing method, device, storage medium and processor
CN114071111B (en) * 2021-12-27 2023-08-15 北京百度网讯科技有限公司 Video playing method and device
CN114051162B (en) * 2022-01-12 2022-04-26 飞狐信息技术(天津)有限公司 Caching method and device based on play records
CN114501111B (en) * 2022-01-14 2024-06-21 维沃移动通信有限公司 Video playing method and device
CN114760503B (en) * 2022-04-15 2023-12-05 北京爱奇艺科技有限公司 Video playing method, device, system, electronic equipment and storage medium
CN115334360B (en) * 2022-07-14 2023-07-25 中关村科学城城市大脑股份有限公司 Audio and video playing method and device, electronic equipment and readable medium
CN116193210B (en) * 2023-03-03 2024-08-23 北京奇艺世纪科技有限公司 Video playing method and device, electronic equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8060525B2 (en) * 2007-12-21 2011-11-15 Napo Enterprises, Llc Method and system for generating media recommendations in a distributed environment based on tagging play history information with location information
CN101964787B (en) * 2010-09-17 2013-07-10 深圳市同洲电子股份有限公司 Method, device and system for implementation of multiple-terminal breakpoint broadcast of programs
CN104185039B (en) * 2013-05-27 2019-07-02 腾讯科技(深圳)有限公司 The method and apparatus that audio-visual synchronization plays
CN105933723A (en) * 2016-06-29 2016-09-07 乐视控股(北京)有限公司 Video continuous playing method, device and system

Also Published As

Publication number Publication date
CN113518247A (en) 2021-10-19

Similar Documents

Publication Publication Date Title
CN113518247B (en) Video playing method, related equipment and computer readable storage medium
CN108737405B (en) Method, CCL server and system for guiding direct broadcasting video stream
KR102057107B1 (en) Receiving device, receiving method, program, and information processing system
CN101868793B (en) A kind of peer playback devices and method of operating thereof
CN102170584B (en) Method, device and system for playing media between synchronic HS (HTTP (HyperText Transfer Protocol) Streaming) terminal equipment
CN105933375B (en) Method and device for monitoring microphone connection session and server
JP2017108389A (en) Method and system for providing time machine function in live program
CN106301865B (en) Data processing method and device applied to service providing device
CN109391851B (en) Video live broadcast method and device, computer equipment and storage medium
CN111182321B (en) Method, device and system for processing information
CN108667798A (en) A kind of method and system of virtual viewing
CN111107390B (en) Live broadcast service system and live broadcast connection establishment method
CN112057846B (en) Interaction method, device, equipment and storage medium for cloud game service scheduling
CN113741762A (en) Multimedia playing method, device, electronic equipment and storage medium
CN104317898B (en) A kind of information processing method and server
CN106331763A (en) Method of playing slicing media files seamlessly and device of realizing the method
CN112383794A (en) Live broadcast method, live broadcast system, server and computer storage medium
CN111225248A (en) On-demand content management method and content distribution network on-demand server
CN108366097A (en) Resource access control method and system
CN110049360B (en) Cross-platform content control method, device, terminal, server and storage medium
CN109600635B (en) System and method for pushing information according to intelligent television video on demand
CN104243469A (en) Playing control method, device and system
CN106162234A (en) A kind of method and device sharing TV programme
CN108668140B (en) Audio and video interaction state synchronization method and device
CN105898435A (en) Data synchronizing method and device

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