CN110099293B - Method, device and equipment for playing video and readable storage medium - Google Patents

Method, device and equipment for playing video and readable storage medium Download PDF

Info

Publication number
CN110099293B
CN110099293B CN201910361575.9A CN201910361575A CN110099293B CN 110099293 B CN110099293 B CN 110099293B CN 201910361575 A CN201910361575 A CN 201910361575A CN 110099293 B CN110099293 B CN 110099293B
Authority
CN
China
Prior art keywords
video
target
server
client
initial
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
CN201910361575.9A
Other languages
Chinese (zh)
Other versions
CN110099293A (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.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer 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 Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201910361575.9A priority Critical patent/CN110099293B/en
Publication of CN110099293A publication Critical patent/CN110099293A/en
Application granted granted Critical
Publication of CN110099293B publication Critical patent/CN110099293B/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/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/23424Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for inserting or substituting an advertisement
    • 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/235Processing of additional data, e.g. scrambling of additional data or processing content descriptors
    • 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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26291Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for providing content or additional data updates, e.g. updating software modules, stored at the client
    • 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/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The application discloses a method, a device and equipment for playing videos and a readable storage medium, and belongs to the field of network live broadcast. The method comprises the following steps: receiving a target identification which is sent by a management server and used for indicating a target video, and acquiring the target video indicated by the target identification from a video server according to the target identification; updating the initial video according to the target video to obtain an updated video, wherein the initial video and the updated video are both indicated by the reference identifier; and sending the updated video to a video server, wherein the video server is used for sending the updated video to the client according to the acquisition instruction sent by the client so as to convert the video played by the client from the initial video to the updated video. According to the mixed-flow server, the initial video indicated by the reference identifier is updated according to the video pushed by the anchor terminal, so that the client acquires the same path of flow from the video server according to the reference identifier all the time under the conditions of anchor terminal replacement and the like, the smoothness of the video played by the client is higher, and the playing effect is better.

Description

Method, device and equipment for playing video and readable storage medium
Technical Field
The present application relates to the field of live webcasting, and in particular, to a method, an apparatus, a device, and a readable storage medium for playing a video.
Background
With the development of network live broadcast, various live broadcast forms are continuously appeared, and channel house live broadcast is one of the live broadcast forms. In the channel room live broadcasting process, different anchor broadcasters broadcast in the same channel room in turn, namely, the channel room videos are pushed by different anchor broadcasters in turn. When the client detects that the channel room is selected, the channel room video needs to be played.
The related art provides a method of playing a video. Wherein, the anchor terminal pushes the video to the video server in turn. After detecting that a channel room is selected, the client acquires a first identifier used for indicating a video pushed by a main broadcast currently live in the channel room from the management server, and pulls and plays the video from the video server according to the first identifier. And if the main broadcast in the channel room is changed, the management server sends notification information to the client, wherein the notification information carries a second identifier for indicating the video pushed by the changed main broadcast, so that the client pulls the video from the video server again according to the second identifier and plays the video, and the video in the channel room is played at the client.
However, if the notification information sent by the management server is lost or delayed, the client does not pull or delays to pull the video pushed by the replaced anchor indicated by the second identifier. The process of pulling from the video server again after the client receives the notification message also causes the channel room video played by the client to be blocked. Therefore, videos played by the related technology are not smooth enough, have low smoothness and poor playing effect, and influence the user experience.
Content of application
The embodiment of the application provides a method, a device and equipment for playing a video and a readable storage medium, so as to solve the problems that the video played by the related technology is not smooth enough and the playing effect is not good. The technical scheme is as follows:
in one aspect, a method for playing a video is provided, where the method includes:
receiving a target identification which is sent by a management server and used for indicating a target video, and sending the target identification to a video server so as to obtain the target video indicated by the target identification from the video server;
updating an initial video according to the target video to obtain an updated video, wherein the initial video and the updated video are both indicated by a reference identifier;
and sending the updated video to the video server, wherein the video server is used for sending the updated video to the client according to an acquisition instruction sent by the client so as to convert the video played by the client from the initial video to the updated video.
Optionally, before receiving the target identifier sent by the management server to indicate the target video, the method further includes:
and receiving a playing instruction sent by the management server, and sending the initial video to the video server according to the playing instruction, wherein the video server is used for sending the initial video to the client according to an acquisition instruction sent by the client so as to enable the client to play the initial video.
Optionally, the updating the initial video according to the target video to obtain an updated video includes:
splicing the target video after the initial video to obtain a spliced video, and taking the spliced video as the updated video.
Optionally, after receiving the target identifier sent by the management server to indicate the target video, the method further includes:
if the target video indicated by the target identifier is not obtained from the video server according to the target identifier, obtaining a reference video, and updating the initial video according to the reference video to obtain a standby video, wherein both the initial video and the standby video are indicated by the reference identifier;
and sending the standby video to the video server, wherein the video server is used for sending the standby video to the client according to the acquisition instruction sent by the client so as to enable the client to play the standby video.
In one aspect, a method for playing a video is provided, where the method includes:
receiving a target identifier which is sent by the mixed flow server and used for indicating a target video, and acquiring the target video indicated by the target identifier according to the target identifier;
sending the target video to the mixed flow server, wherein the mixed flow server is used for updating an initial video according to the target video to obtain an updated video;
and receiving the updated video sent by the mixed-flow server, and sending the updated video to the client according to an acquisition instruction sent by the client, wherein the client is used for switching from playing the initial video to playing the updated video.
Optionally, before receiving a target identifier sent by the mixed flow server for indicating a target video, the method further includes:
and receiving the initial video sent by the mixed-flow server, and sending the initial video to the client according to an acquisition instruction sent by the client, wherein the client is used for playing the initial video.
Optionally, after receiving a target identifier sent by the mixed flow server for indicating a target video, the method further includes:
and if the target video indicated by the target identifier is not acquired according to the target identifier, receiving a standby video sent by the mixed-flow server, wherein the standby video comprises a video obtained by the mixed-flow server updating the initial video according to a reference video, so as to send the standby video to the client according to an acquisition instruction sent by the client, and the client is used for playing the standby video.
In one aspect, a method for playing a video is provided, where the method includes:
acquiring a target identifier for indicating a target video;
and sending a target identifier for indicating a target video to a mixed flow server, wherein the mixed flow server is used for acquiring the target video indicated by the target identifier from a video server according to the target identifier and updating an initial video according to the target video to obtain an updated video, so that the video played by a client is converted from the initial video to the updated video.
Optionally, before the obtaining a target identifier indicating a target video, the method further includes:
sending a broadcasting instruction to the mixed flow server so that the mixed flow server sends the initial video to a video server according to the broadcasting instruction;
and if a playing request of the client is received, sending a reference identifier for indicating the initial video to the client, wherein the client is used for sending an acquisition instruction to the video server based on the reference identifier so as to play the initial video indicated by the reference identifier.
In one aspect, an apparatus for playing a video is provided, the apparatus comprising:
the first receiving module is used for receiving a target identifier which is sent by a management server and used for indicating a target video, and sending the target identifier to a video server so as to obtain the target video indicated by the target identifier from the video server;
the updating module is used for updating an initial video according to the target video to obtain an updated video, and the initial video and the updated video are both indicated by reference identifiers;
and the sending module is used for sending the updated video to the video server, and the video server is used for sending the updated video to the client according to an acquisition instruction sent by the client so as to convert the video played by the client from the initial video to the updated video.
Optionally, the apparatus further comprises: the second receiving module is configured to receive a broadcast command sent by the management server, and send the initial video to the video server according to the broadcast command, where the video server is configured to send the initial video to the client according to an acquisition command sent by the client, so that the client plays the initial video.
Optionally, the update module is configured to splice the target video after the initial video to obtain a spliced video, and use the spliced video as the updated video.
Optionally, the apparatus further comprises: the acquisition module is used for acquiring a reference video if the target video indicated by the target identifier is not acquired from the video server according to the target identifier, updating the initial video according to the reference video to obtain a standby video, and both the initial video and the standby video are indicated by the reference identifier; and sending the standby video to the video server, wherein the video server is used for sending the standby video to the client according to the acquisition instruction sent by the client so as to enable the client to play the standby video.
In one aspect, an apparatus for playing a video is provided, the apparatus comprising:
the first receiving module is used for receiving a target identifier which is sent by the mixed flow server and used for indicating a target video, and acquiring the target video indicated by the target identifier according to the target identifier;
the sending module is used for sending the target video to the mixed flow server, and the mixed flow server is used for updating an initial video according to the target video to obtain an updated video;
the second receiving module is used for receiving the updated video sent by the mixed-flow server so as to send the updated video to the client according to an acquisition instruction sent by the client, and the client is used for switching from playing the initial video to playing the updated video.
Optionally, the apparatus further comprises: and the third receiving module is used for receiving the initial video sent by the mixed flow server so as to send the initial video to the client according to the acquisition instruction sent by the client, and the client is used for playing the initial video.
Optionally, the apparatus further comprises: a fourth receiving module, configured to receive a standby video sent by the mixed-flow server if the target video indicated by the target identifier is not obtained according to the target identifier, where the standby video includes a video obtained by the mixed-flow server updating the initial video according to a reference video, so as to send the standby video to the client according to an obtaining instruction sent by the client, and the client is used to play the standby video.
In one aspect, an apparatus for playing a video is provided, the apparatus comprising:
the acquisition module is used for acquiring a target identifier for indicating a target video;
the mixed flow server is used for acquiring the target video indicated by the target identifier from a video server according to the target identifier and updating the initial video according to the target video to obtain an updated video, so that the video played by the client is converted from the initial video to the updated video.
Optionally, the apparatus further comprises: the second sending module is used for sending a broadcast command to the mixed flow server so that the mixed flow server sends the initial video to a video server according to the broadcast command;
a third sending module, configured to send, to the client, a reference identifier indicating the initial video if a play request of the client is received, where the client is configured to send, to the video server, an acquisition instruction based on the reference identifier, so as to play the initial video indicated by the reference identifier.
In one aspect, an apparatus for playing a video is provided, the apparatus comprising a memory and a processor; the memory has stored therein at least one instruction that is loaded and executed by the processor to implement a method of playing video in any of the possible implementations of aspects or aspects of the embodiments of the application.
In another aspect, a readable storage medium is provided, which stores at least one instruction, which is loaded and executed by a processor to implement the method for playing back video in any one of the possible implementations of the aspects or aspects of the embodiments of the present application.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
according to the mixed-flow server, the initial video indicated by the reference mark is updated according to the video pushed by the anchor terminal, so that the client can always obtain the same flow from the video server according to the reference mark under the conditions of anchor terminal replacement and the like, the processes that the management server sends the notification information and the client pulls the video again according to the notification information are omitted, the video played by the client is smooth, the smoothness is higher, the playing effect is better, and the user experience is better.
Drawings
FIG. 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application;
fig. 2 is a flowchart of a method for playing a video according to an embodiment of the present application;
FIG. 3 is an interaction diagram of a method for playing a video according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an apparatus for playing a video according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an apparatus for playing a video according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an apparatus for playing a video according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
With the development of network live broadcast, channel house live broadcast is widely applied to life as a new live broadcast form. In the channel room live broadcasting process, different anchor broadcasters broadcast in the same channel room in turn, namely, the channel room videos are pushed by different anchor broadcasters in turn. Therefore, the client can play the channel room video so that the user can watch the channel room live broadcast.
The related art provides a method of playing a video. Wherein, the anchor terminal pushes the video to the video server in turn. After detecting that a channel room is selected, the client acquires a first identifier used for indicating a video pushed by a main broadcast currently live in the channel room from the management server, and pulls and plays the video from the video server according to the first identifier. And if the main broadcast in the channel room is changed, the management server sends notification information to the client, wherein the notification information carries a second identifier for indicating the video pushed by the changed main broadcast, so that the client pulls the video from the video server again according to the second identifier and plays the video.
And if the notification information sent by the management server is lost or delayed, the client does not pull or delays to pull the video pushed by the replaced anchor terminal indicated by the second identifier. Therefore, the channel room video played by the client is blocked in the process of converting the video indicated by the first identifier into the video indicated by the second identifier. In addition, the process of pulling from the video server again after the client receives the notification message also causes the video of the channel room played by the client to be blocked. Therefore, videos played by the related technology are not smooth enough, have low smoothness and poor playing effect, and influence the user experience.
The embodiment of the application provides a method for playing a video, which can be applied to the implementation environment shown in fig. 1. In fig. 1, a management server 11, a video server 12, a mixed-flow server 13, a client 14 and at least two anchor terminals 15 are included. The management server 11 is in communication connection with the mixed-flow server 13, the client 14 and the at least two anchor terminals 15, respectively, so as to send instructions to the mixed-flow server 13, the client 14 and the at least two anchor terminals 15. The video server 12 is in communication connection with the mixed-flow server 13, the client 14 and the at least two anchor terminals 15 respectively, so as to perform video interaction with the mixed-flow server 13, receive videos sent by the at least two anchor terminals 15 and send videos to the client 14.
The client 14 and the at least two anchor terminals 15 may be terminals, and the terminals include any electronic product capable of performing human-Computer interaction with a user through one or more modes such as a keyboard, a touch pad, a touch screen, a remote controller, voice interaction or handwriting equipment, for example, a PC (Personal Computer), a mobile phone, a smart phone, a PDA (Personal Digital Assistant), a wearable device, a pocket PC (pocket PC), a tablet PC, a smart car machine, a smart television, a smart sound box, and the like.
The management server 11, the video server 12 and the mixed-flow server 13 may be one server, or may be a server cluster composed of a plurality of servers, or may be one cloud computing service center.
It should be understood by those skilled in the art that the above terminals and servers are only examples, and other existing or future terminals or servers may be suitable for the present application and are included within the scope of the present application and are hereby incorporated by reference.
Based on the implementation environment shown in fig. 1, referring to fig. 2, an embodiment of the present application provides a method for playing a video, which can be applied to the implementation environment shown in fig. 1. As shown in fig. 2, the method includes:
in step 201, a management server obtains a target identifier for indicating a target video.
Wherein, the management server is a server for managing the channel room. Thus, the management server can manage two or more anchor terminals within the channel room. The management server controls the time and the sequence of pushing the videos to the video server by each anchor terminal in a mode of sending instructions, so that the anchor terminals push the videos to the video server in turn, and the video server can store the videos pushed by the anchor terminals. The target video is a video pushed to the video server by any anchor terminal, and the target identifier is used for indicating the target video.
It should be noted that the video server may include one or more sub servers. Under the condition that the video server comprises a plurality of sub-servers, the management server does not need to control another anchor end to start video pushing after one anchor end finishes pushing all videos, and can realize that a plurality of anchor ends synchronously push videos to the video server, namely, different anchor ends are controlled to push videos to different sub-servers, so that the management flexibility is improved. In an alternative embodiment, the video server may be a CDN (Content Delivery Network) server.
For the way of acquiring the target identifier by the management server, the management server may send a management instruction to the anchor terminal to instruct the anchor terminal to push the target video to the video server, and return the target identifier to the management server. Or the anchor terminal can directly push the target video to the video server and actively send the target identifier to the management server.
No matter which mode is adopted, the management server can receive the target identification sent by the anchor terminal, and therefore the target identification can be obtained.
Step 202, the management server sends a target identifier for indicating a target video to the mixed-flow server.
After the management server acquires the target identifier, the management server can be triggered to send the target identifier to the mixed-flow server, so that the mixed-flow server can acquire the target video indicated by the target identifier from the video server according to the target identifier. Optionally, the management server may implement sending of the target identifier by sending a form of a group packet carrying the target identifier.
It can be seen that the management server, in addition to being used for managing two or more anchor terminals in the channel room, may also be used for managing the mixed-flow server, so that the mixed-flow server acquires the target video pushed by the anchor terminals.
And step 203, the mixed flow server receives a target identifier which is sent by the management server and used for indicating the target video, and sends the target identifier to the video server so as to acquire the video indicated by the target identifier from the video server.
Since the management server sends the target identifier to the mixed-flow server, the mixed-flow server can receive the target identifier. If the management server sends the target identifier through the group package, correspondingly, the mixed flow server receives the group package, obtains the target identifier carried by the group package through analyzing the group package, and obtains the video indicated by the target identifier from the video server according to the target identifier. The acquisition mode comprises the following steps: and sending the target identifier to a video server so that the video server acquires a target video indicated by the target identifier according to the target identifier, and returning the target video to the mixed-flow server so that the mixed-flow server acquires the target video.
And 204, the video server receives a target identifier which is sent by the mixed flow server and used for indicating the target video, and acquires the target video indicated by the target identifier according to the target identifier.
After the mixed-flow server sends the target identifier to the video server, the video server acquires the target video pushed by the anchor terminal according to the target identifier. Since the video server may include a plurality of sub-servers, the manner for the video server to obtain the target video pushed by the anchor terminal includes: the video server respectively detects the plurality of sub-servers, and if any sub-server is detected to store the target video indicated by the target identification, the target video is acquired from the sub-server, so that the target video is acquired.
Step 205, the video server sends the target video to the mixed-flow server.
After the video server acquires the target video, the acquired target video may be sent to the mixed-flow server, so as to trigger the mixed-flow server to update the initial video according to the target video, as detailed in step 206.
And step 206, the mixed flow server updates the initial video according to the target video to obtain an updated video, and the initial video and the updated video are both indicated by the reference identifier.
According to the content, the target video is the video pushed to the video server by the anchor terminal, and the mixed-flow server acquires the target video from the video server through the target identifier sent by the management server. And the initial video is the video sent to the video server by the mixed flow server before the mixed flow server receives the target identifier sent by the management server. Therefore, optionally, before the mixed-flow server receives the target identifier sent by the management server, the method provided in this embodiment further includes: and the management server sends a broadcasting instruction to the mixed-flow server. The mixed flow server receives the broadcasting command sent by the management server and sends the initial video to the video server according to the broadcasting command. The video server receives the initial video sent by the mixed-flow server to send the initial video to the client according to the acquisition instruction sent by the client, and the client is used for playing the initial video.
The starting instruction is used for indicating the management server to control the channel room to enter an active state, and if the client detects that the channel room in the active state is selected, the client acquires a channel room video of the channel room from the video server to play. That is, the video server should store the channel room video of the channel room in the active state. Thus, the mixed-flow server sends the initial video to the video server to treat the initial video as the channel room video.
And if the client detects that the channel room in the active state is selected, sending a playing request to the management server. Since the initial video is indicated by the reference identifier, the management server transmits the reference identifier to the client after receiving the play request transmitted by the client. The client sends an acquisition instruction to the video server based on the reference identifier, and the video server acquires the initial video indicated by the reference identifier according to the acquisition instruction (the acquisition mode is described in step 204) and returns the initial video to the client, so that the client plays the received initial video.
It should be noted that, in the process of sending the initial video to the video server by the mixed-flow server, the initial video is sent in a streaming form. The stream form means: the mixed-flow server sends the initial video segments to the video server according to the time sequence of the initial video, and the video server can also return the initial video segments to the client, so that the client can receive the initial video in segments and play the initial video in real time, and the initial video does not need to be played after being downloaded, and the playing effect of the client is ensured.
In this embodiment, the content of the initial video is not limited. For example, the initial video includes, but is not limited to, a promotional video of a webcast platform where the channel room is located, a video pushed by a main broadcast in the channel room during the past time, or a preview video of the main broadcast in the channel room about to start live.
Further, after the anchor terminal pushes the target video to the video server, the target video needs to replace the initial video as the channel room video. Therefore, the mixed-flow server updates the initial video according to the target video to obtain an updated video, and the updated video is used as the channel room video. Optionally, the updating method includes: and the mixed flow server splices the target video after the initial video to obtain a spliced video, and the spliced video is used as an updated video.
The target video is the video acquired by the mixed-flow server after the initial video is sent to the video server, so that the target video is spliced after the initial video according to the time sequence, the formed spliced video is used as the updated video, and the video indicated by the reference identifier is converted from the initial video to the updated video. That is, both the initial video and the updated video are indicated by the reference identifier.
After the mixed-flow server obtains the updated video according to the method, the updated video can be further sent to the video server.
And step 207, the mixed flow server sends the updated video to the video server.
The updated video may also be sent to the video server in a streaming form, and the sending process may refer to step 206, which is not described herein again.
And step 208, the video server receives the updated video sent by the mixed-flow server, so as to send the updated video to the client according to the acquisition instruction sent by the client, and the client is used for switching from playing the initial video to playing the updated video.
And after the mixed flow server sends the video, the video server receives the updated video. Because the updated video is indicated by the reference identifier and the acquisition instruction sent by the client includes the reference identifier, the video server continues to return the updated video to the client, so that the video played by the client is converted from the initial video to the updated video, that is, the video content played by the client is converted into the content of the target video pushed by the anchor terminal.
It can be seen that the above process is a process between the channel room starting to move until any one of the anchor terminals managed by the management server pushes the target video to the video server. After the anchor terminal in the channel room is changed, that is, the anchor terminal that pushes the target video is changed to another anchor terminal, the method provided by this embodiment may also be used to play the video. Next, referring to fig. 3, taking the anchor terminal that pushes the target video as an anchor terminal a and the changed anchor terminal as an anchor terminal B as an example, the method provided in this embodiment will be described:
before the main broadcasting end B does not push the video to the video server, the video output by the mixed flow server is the updated video, and the video played by the client is the target video pushed by the main broadcasting end A. After the management server controls the anchor terminal A to be switched to the anchor terminal B by sending a replacement instruction, an identifier for indicating the anchor terminal B to push a video B to the video server is sent to the mixed-flow server, and the mixed-flow server acquires the video B pushed by the anchor terminal B from the video server according to the identifier.
And then, the mixed-flow server updates the updated video according to the video B pushed by the anchor terminal B, namely, the video B pushed by the anchor terminal B is spliced with the target video to obtain a secondary updated video, and the secondary updated video is still indicated by the reference identifier. Then, the mixed-flow server sends the secondary updated video to the video server, and the client can acquire the secondary updated video from the video server according to the reference identifier sent by the management server, so that the video played by the client is converted from the target video pushed by the anchor terminal a to the video B pushed by the anchor terminal B.
Therefore, no matter the first anchor starts live broadcast after the channel room starts to play, or the anchor in the channel room is changed, the client always pulls a video indicated by the reference identifier from the video server through the reference identifier sent by the management server, so that videos pushed by different anchors can be continuously played at the client. In the related art, the client first pulls one path of video pushed by one anchor side, and if the anchor side is replaced, the client further receives notification information sent by the management server, and pulls the other path of video pushed by the replaced anchor side according to the notification information. Therefore, compared with the related art, the method and the device for playing the video have the advantages that the process that the management server sends the notification information to the client is omitted, the process that the client pulls the replaced video pushed by the anchor terminal from the video server according to the notification information is omitted, the video played by the client is smooth, the smoothness is high, the playing effect is good, and the using experience of a user is improved.
Of course, the above description is only for the case where the video server acquires the target video indicated by the target identifier in step 204. If the target video cannot be successfully pushed to the video server at the anchor terminal, or if the pushing is interrupted by the anchor terminal due to reasons such as a network in the process of pushing the target video, the video server cannot acquire the target video indicated by the target identifier according to the target identifier, so that the mixed-flow server cannot acquire the target video indicated by the target identifier from the video server according to the target identifier.
For such a situation, optionally, the method provided in this embodiment further includes: the mixed flow server obtains a reference video, updates the initial video according to the reference video to obtain a standby video, and the initial video and the standby video are indicated by the reference identifier. And the mixed flow server sends the standby video to the video server. The video server receives the standby video sent by the mixed-flow server to send the standby video to the client according to the acquisition instruction sent by the client, and the client is used for playing the standby video.
The reference video includes, but is not limited to, a promotional video of a live webcast platform where the channel room is located, a video pushed by a main broadcast in the channel room in past time, or a video used for prompting a user that a failure occurs at the main broadcast end. After the reference video is acquired, if the reason that the mixed flow server cannot acquire the target video is that the anchor end fails to push the target video to the video server, the mixed flow server can splice the reference video behind the initial video to form a standby video. If the reason that the mixed-flow server cannot acquire the target video is that the process of pushing the target video by the main broadcasting end is interrupted, the mixed-flow server splices the reference video behind the target video pushed by the main broadcasting end to form a standby video. Whichever way above is used for splicing, the standby video and the initial video are indicated by reference identifiers.
After the standby video is formed, the mixed-flow server sends the standby video to the video server, and the video server sends the standby video to the client according to an acquisition instruction sent by the client, so that the video played by the client is converted from the initial video to the standby video.
It can be seen that, in this embodiment, when the anchor terminal fails and cannot push the target video, the client can still obtain the standby video from the video server through the reference identifier and play the standby video. And after the host side restores the fault and pushes the target video again, the client side can continue to pull the target video through the reference identifier, so that the use experience of a user is guaranteed. In the related art, if the anchor terminal fails, the client cannot obtain the video and cannot play the video, and after the anchor terminal fails to repair, the client needs to pull the target video again according to the notification information sent by the management server. Therefore, compared with the related art, the method provided by the embodiment also ensures the fluency of the video played by the client under the condition of the failure of the anchor terminal, thereby improving the use experience of the user.
To sum up, the mixed-flow server updates the initial video indicated by the reference identifier according to the video pushed by the anchor terminal, so that the client can always acquire the same path of stream from the video server according to the reference identifier under the conditions of anchor terminal replacement and the like, and the processes of sending the notification information by the management server and pulling the video again by the client according to the notification information are omitted, so that the video played by the client is smooth, the smoothness is higher, the playing effect is better, and the user experience is better.
Based on the same conception, the embodiment of the present application provides an apparatus for playing a video, referring to fig. 4, the apparatus includes:
a first receiving module 401, configured to receive a target identifier sent by the management server and used for indicating a target video, and send the target identifier to the video server, so as to obtain the target video indicated by the target identifier from the video server;
an updating module 402, configured to update an initial video according to a target video to obtain an updated video, where the initial video and the updated video are both indicated by a reference identifier;
the sending module 403 is configured to send the updated video to the video server, where the video server is configured to send the updated video to the client according to the acquisition instruction sent by the client, so that the video played by the client is converted from the initial video to the updated video.
Optionally, the apparatus further comprises: and the second receiving module is used for receiving the playing command sent by the management server and sending the initial video to the video server according to the playing command, and the video server is used for sending the initial video to the client according to the acquisition command sent by the client so that the client plays the initial video.
Optionally, the updating module 402 is configured to splice the target video after the initial video to obtain a spliced video, and use the spliced video as an updated video.
Optionally, the apparatus further comprises: the acquisition module is used for acquiring a reference video if the target video indicated by the target identifier is not acquired from the video server according to the target identifier, updating the initial video according to the reference video to obtain a standby video, and indicating both the initial video and the standby video by the reference identifier; and sending the standby video to a video server, wherein the video server is used for sending the standby video to the client according to the acquisition instruction sent by the client so as to enable the client to play the standby video.
To sum up, the mixed-flow server updates the initial video indicated by the reference identifier according to the video pushed by the anchor terminal, so that the client can always acquire the same path of stream from the video server according to the reference identifier under the conditions of anchor terminal replacement and the like, and the processes of sending the notification information by the management server and pulling the video again by the client according to the notification information are omitted, so that the video played by the client is smooth, the smoothness is higher, the playing effect is better, and the user experience is better.
Based on the same concept, the embodiment of the present application provides an apparatus for playing a video, referring to fig. 5, the apparatus includes:
a first receiving module 501, configured to receive a target identifier sent by the mixed-flow server and used for indicating a target video, and obtain the target video indicated by the target identifier according to the target identifier;
a sending module 502, configured to send a target video to a mixed-flow server, where the mixed-flow server is configured to update an initial video according to the target video to obtain an updated video;
the second receiving module 503 is configured to receive the updated video sent by the mixed-flow server, so as to send the updated video to the client according to the acquisition instruction sent by the client, where the client is configured to switch from playing the initial video to playing the updated video.
Optionally, the apparatus further comprises: and the third receiving module is used for receiving the initial video sent by the mixed flow server so as to send the initial video to the client according to the acquisition instruction sent by the client, and the client is used for playing the initial video.
Optionally, the apparatus further comprises: and the fourth receiving module is used for receiving a standby video sent by the mixed-flow server if the target video indicated by the target identifier is not obtained according to the target identifier, wherein the standby video comprises a video obtained by the mixed-flow server updating the initial video according to the reference video so as to send the standby video to the client according to the obtaining instruction sent by the client, and the client is used for playing the standby video.
To sum up, the mixed-flow server updates the initial video indicated by the reference identifier according to the video pushed by the anchor terminal, so that the client can always acquire the same path of stream from the video server according to the reference identifier under the conditions of anchor terminal replacement and the like, and the processes of sending the notification information by the management server and pulling the video again by the client according to the notification information are omitted, so that the video played by the client is smooth, the smoothness is higher, the playing effect is better, and the user experience is better.
Based on the same concept, an embodiment of the present application provides an apparatus for playing a video, with reference to fig. 6, the apparatus includes:
an obtaining module 601, configured to obtain a target identifier for indicating a target video;
a first sending module 602, configured to send a target identifier for indicating a target video to a mixed-flow server, where the mixed-flow server is configured to obtain the target video indicated by the target identifier from a video server according to the target identifier, and update an initial video according to the target video to obtain an updated video, so that a video played by a client is converted from the initial video to the updated video.
Optionally, the apparatus further comprises: the second sending module is used for sending a broadcast command to the mixed-flow server so that the mixed-flow server sends an initial video to the video server according to the broadcast command;
and the third sending module is used for sending a reference identifier for indicating the initial video to the client if a playing request of the client is received, and the client is used for sending an acquisition instruction to the video server based on the reference identifier so as to play the initial video indicated by the reference identifier.
To sum up, the mixed-flow server updates the initial video indicated by the reference identifier according to the video pushed by the anchor terminal, so that the client can always acquire the same path of stream from the video server according to the reference identifier under the conditions of anchor terminal replacement and the like, and the processes of sending the notification information by the management server and pulling the video again by the client according to the notification information are omitted, so that the video played by the client is smooth, the smoothness is higher, the playing effect is better, and the user experience is better.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus may be divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
Referring to fig. 7, a schematic structural diagram of a terminal 700 for playing a video according to an embodiment of the present application is shown. The terminal 700 may be a portable mobile terminal such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Terminal 700 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, and so on.
In general, terminal 700 includes: a processor 701 and a memory 702.
The processor 701 may include one or more processing cores, such as a 4-core processor, a 7-core processor, and so on. The processor 701 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 701 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 701 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 701 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 702 may include one or more computer-readable storage media, which may be non-transitory. Memory 702 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 702 is used to store at least one instruction for execution by processor 701 to implement a method of playing video as provided by method embodiments herein.
In some embodiments, the terminal 700 may further optionally include: a peripheral interface 703 and at least one peripheral. The processor 701, the memory 702, and the peripheral interface 703 may be connected by buses or signal lines. Various peripheral devices may be connected to peripheral interface 703 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 704, a display screen 705, a camera assembly 706, an audio circuit 707, a positioning component 708, and a power source 709.
The peripheral interface 703 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 701 and the memory 702. In some embodiments, processor 701, memory 702, and peripheral interface 703 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 701, the memory 702, and the peripheral interface 703 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 704 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 704 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 704 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 704 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 704 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 7G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 704 may also include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 705 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 705 is a touch display screen, the display screen 705 also has the ability to capture touch signals on or over the surface of the display screen 705. The touch signal may be input to the processor 701 as a control signal for processing. At this point, the display 705 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 705 may be one, providing the front panel of the terminal 700; in other embodiments, the display 705 can be at least two, respectively disposed on different surfaces of the terminal 700 or in a folded design; in still other embodiments, the display 705 may be a flexible display disposed on a curved surface or on a folded surface of the terminal 700. Even more, the display 705 may be arranged in a non-rectangular irregular pattern, i.e. a shaped screen. The Display 705 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or the like.
The camera assembly 706 is used to capture images or video. Optionally, camera assembly 706 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 706 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuitry 707 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 701 for processing or inputting the electric signals to the radio frequency circuit 704 to realize voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones may be provided at different portions of the terminal 700. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 701 or the radio frequency circuit 704 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 707 may also include a headphone jack.
The positioning component 708 is used to locate the current geographic Location of the terminal 700 for navigation or LBS (Location Based Service). The Positioning component 708 can be a Positioning component based on the GPS (Global Positioning System) in the united states, the beidou System in china, the graves System in russia, or the galileo System in the european union.
Power supply 709 is provided to supply power to various components of terminal 700. The power source 709 may be alternating current, direct current, disposable batteries, or rechargeable batteries. When power source 709 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 700 also includes one or more sensors 710. The one or more sensors 710 include, but are not limited to: acceleration sensor 711, gyro sensor 712, pressure sensor 713, fingerprint sensor 714, optical sensor 717, and proximity sensor 716.
The acceleration sensor 710 may detect the magnitude of acceleration in three coordinate axes of a coordinate system established with the terminal 700. For example, the acceleration sensor 711 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 701 may control the touch screen 705 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 711. The acceleration sensor 711 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 712 may detect a body direction and a rotation angle of the terminal 700, and the gyro sensor 712 may cooperate with the acceleration sensor 711 to acquire a 3D motion of the terminal 700 by the user. From the data collected by the gyro sensor 712, the processor 701 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 713 may be disposed on a side bezel of terminal 700 and/or an underlying layer of touch display 705. When the pressure sensor 713 is disposed on a side frame of the terminal 700, a user's grip signal on the terminal 700 may be detected, and the processor 701 performs right-left hand recognition or shortcut operation according to the grip signal collected by the pressure sensor 713. When the pressure sensor 713 is disposed at a lower layer of the touch display 705, the processor 701 controls the operability control on the UI interface according to the pressure operation of the user on the touch display 705. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 714 is used for collecting a fingerprint of a user, and the processor 701 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 714, or the fingerprint sensor 714 identifies the identity of the user according to the collected fingerprint. When the user identity is identified as a trusted identity, the processor 701 authorizes the user to perform relevant sensitive operations, including unlocking a screen, viewing encrypted information, downloading software, paying, changing settings, and the like. The fingerprint sensor 714 may be disposed on the front, back, or side of the terminal 700. When a physical button or a vendor Logo is provided on the terminal 700, the fingerprint sensor 714 may be integrated with the physical button or the vendor Logo.
Optical sensor 717 is used to collect ambient light intensity. In one embodiment, the processor 701 may control the display brightness of the touch display 705 based on the ambient light intensity collected by the optical sensor 717. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 705 is increased; when the ambient light intensity is low, the display brightness of the touch display 705 is turned down. In another embodiment, the processor 701 may also dynamically adjust the shooting parameters of the camera assembly 706 according to the ambient light intensity collected by the optical sensor 717.
A proximity sensor 716, also referred to as a distance sensor, is typically disposed on a front panel of the terminal 700. The proximity sensor 716 is used to collect the distance between the user and the front surface of the terminal 700. In one embodiment, when the proximity sensor 716 detects that the distance between the user and the front surface of the terminal 700 gradually decreases, the processor 701 controls the touch display 705 to switch from the bright screen state to the dark screen state; when the proximity sensor 716 detects that the distance between the user and the front surface of the terminal 700 gradually becomes larger, the processor 701 controls the touch display 705 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 7 is not intended to be limiting of terminal 700 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
Based on the same concept, the embodiment of the present application provides a system for playing a video, where the system includes a management server, a video server, a mixed-flow server, and a client, so as to implement a method for playing a video in any possible implementation manner of various aspects or aspects of the embodiment of the present application.
Based on the same conception, the embodiment of the application provides a device for playing videos, which comprises a memory and a processor; the memory has stored therein at least one instruction that is loaded and executed by the processor to implement the method of playing video in any of the possible implementations of the aspects or aspects of the embodiments of the application.
Based on the same concept, the present application provides a readable storage medium, in which at least one instruction is stored, and the instruction is loaded and executed by a processor to implement the method for playing back video in any possible implementation manner of the aspects or aspects of the present application.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (18)

1. A method of playing a video, the method comprising:
receiving a target identification which is sent by a management server and used for indicating a target video, and sending the target identification to a video server so as to obtain the target video indicated by the target identification from the video server;
updating an initial video according to the target video to obtain an updated video, wherein the initial video and the updated video are both indicated by a reference identifier, and the initial video is a video sent to the video server before the target identifier is received;
sending the updated video to the video server, wherein the video server is used for sending the updated video to the client according to an acquisition instruction sent by the client so as to convert the video played by the client from the initial video to the updated video;
wherein, the updating the initial video according to the target video to obtain an updated video includes:
splicing the target video after the initial video to obtain a spliced video, and taking the spliced video as the updated video.
2. The method of claim 1, wherein before receiving the target identifier sent by the management server to indicate the target video, the method further comprises:
and receiving a playing instruction sent by the management server, and sending the initial video to the video server according to the playing instruction, wherein the video server is used for sending the initial video to the client according to an acquisition instruction sent by the client so as to enable the client to play the initial video.
3. The method according to any of claims 1-2, wherein after receiving the target identifier sent by the management server for indicating the target video, the method further comprises:
if the target video indicated by the target identifier is not obtained from the video server according to the target identifier, obtaining a reference video, and updating the initial video according to the reference video to obtain a standby video, wherein both the initial video and the standby video are indicated by the reference identifier;
and sending the standby video to the video server, wherein the video server is used for sending the standby video to the client according to the acquisition instruction sent by the client so as to enable the client to play the standby video.
4. A method of playing a video, the method comprising:
receiving a target identifier which is sent by the mixed flow server and used for indicating a target video, and acquiring the target video indicated by the target identifier according to the target identifier;
sending the target video to the mixed flow server, wherein the mixed flow server is used for updating an initial video according to the target video to obtain an updated video, and the initial video is the video sent by the mixed flow server before the mixed flow server receives a target identifier sent by a management server;
receiving the updated video sent by the mixed-flow server, and sending the updated video to a client according to an acquisition instruction sent by the client, wherein the client is used for switching from playing the initial video to playing the updated video;
wherein, the updating the initial video according to the target video to obtain an updated video includes:
splicing the target video after the initial video to obtain a spliced video, and taking the spliced video as the updated video.
5. The method of claim 4, wherein before receiving a target identifier sent by the mixed flow server for indicating a target video, the method further comprises:
and receiving the initial video sent by the mixed-flow server, and sending the initial video to the client according to an acquisition instruction sent by the client, wherein the client is used for playing the initial video.
6. The method according to claim 4 or 5, wherein after receiving a target identifier sent by the mixed flow server for indicating a target video, the method further comprises:
and if the target video indicated by the target identifier is not acquired according to the target identifier, receiving a standby video sent by the mixed-flow server, wherein the standby video comprises a video obtained by the mixed-flow server updating the initial video according to a reference video, so as to send the standby video to the client according to an acquisition instruction sent by the client, and the client is used for playing the standby video.
7. A method of playing a video, the method comprising:
acquiring a target identifier for indicating a target video;
sending a target identifier for indicating a target video to a mixed flow server, wherein the mixed flow server is used for acquiring the target video indicated by the target identifier from a video server according to the target identifier and updating an initial video according to the target video to obtain an updated video, so that the video played by a client is converted from the initial video to the updated video, and the initial video is the video sent to the video server by the mixed flow server before the mixed flow server receives the target identifier;
wherein, the updating the initial video according to the target video to obtain an updated video comprises:
splicing the target video after the initial video to obtain a spliced video, and taking the spliced video as the updated video.
8. The method of claim 7, wherein prior to obtaining the target identifier indicating the target video, the method further comprises:
sending a broadcasting instruction to the mixed flow server so that the mixed flow server sends the initial video to a video server according to the broadcasting instruction;
and if a playing request of the client is received, sending a reference identifier for indicating the initial video to the client, wherein the client is used for sending an acquisition instruction to the video server based on the reference identifier so as to play the initial video indicated by the reference identifier.
9. An apparatus for playing video, the apparatus comprising:
the first receiving module is used for receiving a target identifier which is sent by a management server and used for indicating a target video, and sending the target identifier to a video server so as to obtain the target video indicated by the target identifier from the video server;
the updating module is used for updating an initial video according to the target video to obtain an updated video, the initial video and the updated video are both indicated by a reference identifier, and the initial video is a video sent to the video server before the target identifier is received;
the sending module is used for sending the updated video to the video server, and the video server is used for sending the updated video to the client according to an acquisition instruction sent by the client so as to convert the video played by the client from the initial video to the updated video;
wherein, the updating the initial video according to the target video to obtain an updated video includes:
splicing the target video after the initial video to obtain a spliced video, and taking the spliced video as the updated video.
10. The apparatus of claim 9, further comprising:
the second receiving module is configured to receive a broadcast command sent by the management server, and send the initial video to the video server according to the broadcast command, where the video server is configured to send the initial video to the client according to an acquisition command sent by the client, so that the client plays the initial video.
11. The apparatus of any of claims 9-10, further comprising:
the acquisition module is used for acquiring a reference video if the target video indicated by the target identifier is not acquired from the video server according to the target identifier, updating the initial video according to the reference video to obtain a standby video, and both the initial video and the standby video are indicated by the reference identifier; and sending the standby video to the video server, wherein the video server is used for sending the standby video to the client according to the acquisition instruction sent by the client so as to enable the client to play the standby video.
12. An apparatus for playing video, the apparatus comprising:
the first receiving module is used for receiving a target identifier which is sent by the mixed flow server and used for indicating a target video, and acquiring the target video indicated by the target identifier according to the target identifier;
the mixed flow server is used for updating an initial video according to the target video to obtain an updated video, and the initial video is the video sent by the mixed flow server before the mixed flow server receives a target identifier sent by a management server;
the second receiving module is used for receiving the updated video sent by the mixed-flow server so as to send the updated video to the client according to an acquisition instruction sent by the client, and the client is used for switching from playing the initial video to playing the updated video;
wherein, the updating the initial video according to the target video to obtain an updated video includes:
splicing the target video after the initial video to obtain a spliced video, and taking the spliced video as the updated video.
13. The apparatus of claim 12, further comprising:
and the third receiving module is used for receiving the initial video sent by the mixed flow server so as to send the initial video to the client according to the acquisition instruction sent by the client, and the client is used for playing the initial video.
14. The apparatus of claim 12 or 13, further comprising:
a fourth receiving module, configured to receive a standby video sent by the mixed-flow server if the target video indicated by the target identifier is not obtained according to the target identifier, where the standby video includes a video obtained by the mixed-flow server updating the initial video according to a reference video, so as to send the standby video to the client according to an obtaining instruction sent by the client, and the client is used to play the standby video.
15. An apparatus for playing video, the apparatus comprising:
the acquisition module is used for acquiring a target identifier for indicating a target video;
a first sending module, configured to send a target identifier for indicating a target video to a mixed-flow server, where the mixed-flow server is configured to obtain the target video indicated by the target identifier from a video server according to the target identifier, and update an initial video according to the target video to obtain an updated video, so that a video played by a client is converted from the initial video to the updated video, where the initial video is a video sent to the video server by the mixed-flow server before the mixed-flow server receives the target identifier;
wherein, the updating the initial video according to the target video to obtain an updated video comprises:
splicing the target video after the initial video to obtain a spliced video, and taking the spliced video as the updated video.
16. The apparatus of claim 15, further comprising:
the second sending module is used for sending a broadcast command to the mixed flow server so that the mixed flow server sends the initial video to a video server according to the broadcast command;
a third sending module, configured to send, to the client, a reference identifier indicating the initial video if a play request of the client is received, where the client is configured to send, to the video server, an acquisition instruction based on the reference identifier, so as to play the initial video indicated by the reference identifier.
17. An apparatus for playing video, the apparatus comprising a memory and a processor; the memory has stored therein at least one instruction that is loaded and executed by the processor to implement the method of playing video of any of claims 1-8.
18. A readable storage medium having stored therein at least one instruction, which is loaded and executed by a processor, to implement a method of playing back video according to any one of claims 1-8.
CN201910361575.9A 2019-04-30 2019-04-30 Method, device and equipment for playing video and readable storage medium Active CN110099293B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910361575.9A CN110099293B (en) 2019-04-30 2019-04-30 Method, device and equipment for playing video and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910361575.9A CN110099293B (en) 2019-04-30 2019-04-30 Method, device and equipment for playing video and readable storage medium

Publications (2)

Publication Number Publication Date
CN110099293A CN110099293A (en) 2019-08-06
CN110099293B true CN110099293B (en) 2021-06-01

Family

ID=67446538

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910361575.9A Active CN110099293B (en) 2019-04-30 2019-04-30 Method, device and equipment for playing video and readable storage medium

Country Status (1)

Country Link
CN (1) CN110099293B (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9521437B2 (en) * 2009-06-17 2016-12-13 Google Technology Holdings LLC Insertion of recorded secondary digital video content during playback of primary digital video content
CN101990126B (en) * 2009-08-07 2015-01-07 传线网络科技(上海)有限公司 Method for spotting advertisement in dynamic switching of internet on-demand or live broadcast signals
CN102158758B (en) * 2011-02-28 2013-08-07 四川长虹电器股份有限公司 Push system realization method based on digital television
US8698874B2 (en) * 2011-06-10 2014-04-15 Microsoft Corporation Techniques for multiple video source stitching in a conference room
US9154361B2 (en) * 2012-07-18 2015-10-06 Opera Software Ireland Limited Just-in-time distributed video cache
CN106686397A (en) * 2016-12-31 2017-05-17 北京星辰美豆文化传播有限公司 Multi-person network broadcasting method and device and electronic equipment thereof
CN107995187A (en) * 2017-11-30 2018-05-04 上海哔哩哔哩科技有限公司 Video main broadcaster, live broadcasting method, terminal and system based on HTML5 browsers

Also Published As

Publication number Publication date
CN110099293A (en) 2019-08-06

Similar Documents

Publication Publication Date Title
CN109246466B (en) Video playing method and device and electronic equipment
CN110971930B (en) Live virtual image broadcasting method, device, terminal and storage medium
CN109600678B (en) Information display method, device and system, server, terminal and storage medium
CN111147878B (en) Stream pushing method and device in live broadcast and computer storage medium
CN109348247B (en) Method and device for determining audio and video playing time stamp and storage medium
CN108966008B (en) Live video playback method and device
CN110278464B (en) Method and device for displaying list
CN109729411B (en) Live broadcast interaction method and device
CN110368689B (en) Game interface display method, system, electronic equipment and storage medium
CN110213608B (en) Method, device, equipment and readable storage medium for displaying virtual gift
CN111083507B (en) Method and system for connecting to wheat, first main broadcasting terminal, audience terminal and computer storage medium
CN108737897B (en) Video playing method, device, equipment and storage medium
CN108881286B (en) Multimedia playing control method, terminal, sound box equipment and system
CN111464830B (en) Method, device, system, equipment and storage medium for image display
CN111107389B (en) Method, device and system for determining live broadcast watching time length
CN111246236B (en) Interactive data playing method, device, terminal, server and storage medium
CN107896337B (en) Information popularization method and device and storage medium
CN110418152B (en) Method and device for carrying out live broadcast prompt
CN111083526B (en) Video transition method and device, computer equipment and storage medium
CN111045945A (en) Live broadcast simulating method, device, terminal, storage medium and program product
CN110958464A (en) Live broadcast data processing method and device, server, terminal and storage medium
CN110337042B (en) Song on-demand method, on-demand order processing method, device, terminal and medium
CN111818358A (en) Audio file playing method and device, terminal and storage medium
CN108833970B (en) Live broadcast recording method and device, computer equipment and storage medium
CN111131272B (en) Scheduling method, device and system of stream server, computing equipment and storage medium

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