Video playback method, device, electronic device and storage medium

By setting on-demand windows and live broadcast windows in the video playback page, users can selectively watch on-demand video and live video streams in the same page, solving the problem of low video playback efficiency in the existing technology, and achieving convenient video switching and efficient playback experience.

CN115834915BActive Publication Date: 2025-05-09TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111093407.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-17
Publication Date
2025-05-09
Estimated Expiration
2041-09-17

AI Technical Summary

Technical Problem

When users want to switch to live videos when watching on-demand videos, they need to perform tedious page and application switching, resulting in low video playback efficiency.

Method used

Set on-demand window and live broadcast window in the video playback page. Users can selectively watch on-demand video and live video streams in the same page, and play live video streams in the live window by obtaining live playback instructions.

Benefits of technology

The coexistence of on-demand and live broadcast is realized, and users do not need to switch pages or applications, which improves video playback efficiency, facilitates users to watch on-demand and live video streams at the same time, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115834915B_ABST
    Figure CN115834915B_ABST
Patent Text Reader

Abstract

The present application discloses a video playback method, device, electronic device and storage medium, the method comprising: displaying a video playback page, the video playback page having a video-on-demand window and a live broadcast window, the video-on-demand window being used to play the video-on-demand; if a live broadcast instruction is obtained, playing the live video stream in the live broadcast window. The solution achieves playing the live video stream and the video-on-demand video in the same page, improving the video playback efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and more specifically, to a video playback method, device, electronic device and storage medium. Background Art

[0002] In the related art, if a user wants to watch a live video while watching a video on demand, he needs to switch from the page currently watching the video on demand to the page of the live video. Furthermore, he may need to exit the application for watching the video on demand, enter the application for watching the live video, and then enter the page of the live video. This process is cumbersome for users to operate, takes a lot of time, and has low video playback efficiency. Summary of the invention

[0003] In view of the above problems, the embodiments of the present application propose a video playback method, device, electronic device and storage medium to improve the above problems.

[0004] According to one aspect of an embodiment of the present application, a video playback method is provided, the method comprising: displaying a video playback page, the video playback page being provided with a video-on-demand window and a live broadcast window, the video-on-demand window being used to play the video-on-demand video; if a live broadcast playback instruction is obtained, playing the live video stream in the live broadcast window.

[0005] According to one aspect of an embodiment of the present application, a video playback device is provided, the device comprising: a display module, used to display a video playback page, the video playback page is provided with a video-on-demand window and a live broadcast window, the video-on-demand window is used to play the video-on-demand video; a live broadcast playback module, used to play the live video stream in the live broadcast window if a live broadcast playback instruction is obtained.

[0006] In some embodiments of the present application, based on the aforementioned scheme, the live broadcast module includes: a live video stream request unit, which is used to respond to the live broadcast instruction and initiate a live video stream request to the live broadcast server according to the target live broadcast address; a live video stream receiving unit, which is used to receive the live video stream returned by the live broadcast server according to the live video stream request; a live video stream playback unit, which is used to play the received live video stream in the live broadcast window.

[0007] In some embodiments of the present application, based on the aforementioned scheme, the video playback device also includes: a live preview image request unit, which is used to request a live preview image associated with the target live broadcast address from the live broadcast server at a preset time interval if the live broadcast instruction is not obtained; a live preview image display unit, which is used to display the live preview image in the live broadcast window.

[0008] In some embodiments of the present application, based on the aforementioned scheme, the video playback device further includes: a live broadcast introduction information display unit, used to display the live broadcast introduction information in the live broadcast window of the video playback page; a switching unit, used to switch the live broadcast introduction information displayed in the live broadcast window to the live broadcast preview image in response to a first operation triggered in the video playback page.

[0009] In some embodiments of the present application, based on the aforementioned solution, the video playback device further includes: a first determination unit, configured to determine that the live broadcast instruction is obtained if it is detected that the mouse cursor is located in the live broadcast window.

[0010] In other embodiments of the present application, based on the aforementioned scheme, the live video stream includes a specified live video segment; the specified live video segment is a live video segment of the live room associated with the video playback page in the marked time period; the video playback device also includes: a second determination unit, if the specified live video segment actively pushed by the live broadcast server is received, it is determined that the live broadcast instruction is obtained; wherein, upon detecting that the live broadcast time is in the marked time period, the live broadcast server actively pushes the specified live video segment corresponding to the marked time period to the live broadcast window; in this embodiment, the live broadcast playback module is further configured to: in response to the live broadcast playback instruction, play the specified live video segment in the live broadcast window.

[0011] In some embodiments of the present application, based on the aforementioned scheme, the video playback device further includes: a volume information acquisition module, which is used to obtain the volume information of the live broadcast window and the volume information of the on-demand window in response to the live broadcast instruction; a volume adjustment module, which is used to adjust the volume in the target playback window according to the volume information of the on-demand window and the volume information of the live broadcast window, so that the volume in the on-demand window after adjustment is lower than the volume in the live broadcast window, and the target playback window is at least one playback window of the live broadcast window and the on-demand window.

[0012] In some embodiments of the present application, based on the aforementioned scheme, the target playback window includes a video-on-demand window, and the video playback device also includes: a first recovery module, which is used to restore the volume in the video-on-demand window to the volume before adjustment in response to a live broadcast pause playback instruction if a live broadcast pause playback instruction is obtained.

[0013] In some embodiments of the present application, based on the aforementioned scheme, the video playback device further includes: a display size information acquisition module, which is used to obtain the display size information of the live broadcast window in the video playback interface if the live broadcast instruction is obtained; a display size increase module, which is used to increase the display size of the live broadcast window in the video playback page according to the display size information of the live broadcast window in the video playback interface.

[0014] In some embodiments of the present application, based on the aforementioned scheme, the video playback device further includes: a second recovery module, which is used to restore the display size of the live broadcast window in the video playback page to the display size indicated by the display size information before the increase in response to the live broadcast pause playback instruction if a live broadcast pause playback instruction is obtained.

[0015] In some embodiments of the present application, based on the aforementioned scheme, the video playback device further includes: a video file request module, used to request the video file of the target on-demand video from the on-demand server; a video file receiving module, used to receive the video file of the target on-demand video returned by the on-demand server, and cache the video file.

[0016] In some embodiments of the present application, based on the aforementioned scheme, the video playback device further includes: an on-demand playback module, which is used to play the target on-demand video in the on-demand window according to the cached video file if no on-demand playback pause instruction is obtained during the playback of the live video stream in the live window.

[0017] According to one aspect of an embodiment of the present application, an electronic device is provided, including: a processor; a memory, wherein computer-readable instructions are stored in the memory, and when the computer-readable instructions are executed by the processor, the video playback method described above is implemented.

[0018] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor, the video playback method as described above is implemented.

[0019] According to one aspect of an embodiment of the present application, a computer program product is provided, including computer instructions, which implement the video playback method described above when executed by a processor.

[0020] In the scheme of the present application, a video-on-demand window for playing the on-demand video and a live window for playing the live video stream are set in the video playback page of the on-demand video, so that the on-demand video and the live broadcast can coexist on the same page. Therefore, the user can selectively watch the on-demand video and the live video stream in the same video playback page without switching pages or switching applications, or opening the video playback page for playing the on-demand video and the live video page for playing the live video stream at the same time, thereby improving the video playback efficiency and facilitating the user to watch the live video stream while watching the on-demand video, thereby meeting the diverse needs of users and improving the user experience.

[0021] In the related art, if a user needs to switch between watching on-demand videos and live videos conveniently, the user needs to first open the page of the on-demand video and the page of the live video, and adjust the page of the on-demand video and the page of the live video before the page of the on-demand video and the page of the live video can be displayed on the display screen at the same time, and then the on-demand video and / or the live video can be selectively watched. However, in the present solution, since the on-demand window and the live window are set on the same page, the user does not need to adjust the two pages to selectively watch the on-demand video and the live video, which greatly shortens the user's video playback waiting time and improves the video playback efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0023] Figure 1 It is a schematic diagram of an implementation environment according to an embodiment of the present application.

[0024] Figure 2 It is a flowchart of a video playback method according to an embodiment of the present application.

[0025] Figure 3 It is a schematic diagram of displaying a live broadcast window and a video-on-demand window in a video playback page according to an embodiment of the present application.

[0026] Figure 4 It is a flowchart of step 220 according to an embodiment of the present application.

[0027] Figure 5 It is a flowchart of automatically triggering a live broadcast window according to an implementation of the present application.

[0028] Figure 6It is a flowchart of the steps after step 210 according to an embodiment of the present application.

[0029] Figure 7 It is a schematic diagram of a video playback interface shown according to an implementation of the present application.

[0030] Figure 8 It is a flowchart of video playback in a live window and a video-on-demand window according to an embodiment of the present application.

[0031] Fig. 9 is a flowchart of a video playback method according to another embodiment of the present application.

[0032] Fig.10 It is a schematic diagram showing the display of the live broadcast window in the video playback page before and after adjustment according to a specific embodiment of the present application.

[0033] Fig.11 A- Fig.11 B is a schematic diagram of switching content display in a live broadcast window specifically shown in accordance with the present application.

[0034] Fig.12 is a block diagram of a video playback device according to an embodiment of the present application.

[0035] Fig.13 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION

[0036] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.

[0037] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0038] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0039] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0040] It should be noted that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0041] Before going into details, the terms involved in this solution are explained as follows:

[0042] Hover state: refers to the control response state triggered when the cursor moves over a control.

[0043] Live window: refers to the area on the interface used to play live videos.

[0044] Video-on-demand window: refers to the area on the interface used to play video-on-demand videos.

[0045] Live broadcast room: mainly refers to an online live broadcast program opened by a certain individual or organization.

[0046] On-demand: Upload the video to the backend storage, and when the frontend initiates a viewing signal, the video will be downloaded and played from the backend in real time.

[0047] Figure 1 is a schematic diagram of an implementation environment according to an embodiment of the present application. Figure 1 As shown, the implementation environment includes a terminal 110, a video-on-demand server 120 and a live broadcast server 130. The terminal device 110 can establish a communication connection with the video-on-demand server 120 and the live broadcast server 130 through a wired or wireless network. The terminal 110 can be an electronic device that can play videos, such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart TV, etc., but is not limited thereto.

[0048] The terminal 110 can run a video playback application as a client of the video playback application. The terminal 110 can display a video playback page. In the solution of the present application, the video playback page is provided with a video-on-demand window 111 and a live window 112, the video-on-demand window 111 is used to play the video-on-demand, and the live window 112 is used to play the live video stream.

[0049] In a specific embodiment, in the video playback page, only the on-demand window 111 can be triggered to play the on-demand video, or only the live video window 112 can be triggered to play the live video stream, or the on-demand window 111 can be triggered to play the on-demand video while also triggering the live video window 112 to play the live video stream. Thus, the on-demand video and the live video stream can be selectively played without switching interfaces or pages.

[0050] Among them, the on-demand server 120 can provide a video on demand service for the terminal 110. For example, if the terminal 110 initiates a video on demand request, the on-demand server 120 can return the requested video on demand to the terminal 110 according to the video on demand request, and the terminal 110 caches the video on demand accordingly to play the video on demand in the on-demand window 111 based on the cached video on demand.

[0051] The live broadcast server 130 can provide a live broadcast service for the terminal 110. Specifically, when a live broadcast trigger operation is triggered in the video playback page of the terminal 110, the terminal 110 initiates a live video stream request to the live broadcast server 130 according to the target live broadcast address associated with the video playback page, and the live broadcast server 130 transmits the live video stream to the terminal 110 accordingly; after receiving the live video stream, the live video stream is played in the live broadcast window 112. It can be understood that during the live broadcast process, the live video stream returned by the live broadcast server 130 to the terminal 110 corresponds to the real-time video stream in the live broadcast room, and correspondingly, the live video stream is also played in real time in the live broadcast window 112.

[0052] In the solution of the present application, the on-demand server 120 and the live server 130 can be independent physical servers, or a server cluster or distributed system composed of multiple physical servers. They can also be cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms.

[0053] The implementation details of the technical solution of the embodiment of the present application are described in detail below:

[0054] Figure 2is a flowchart of a video playback method according to an embodiment of the present application, which can be executed by a computer device with processing capabilities, such as Figure 1 The terminals, etc., are not specifically limited here. Figure 2 As shown, the method at least includes steps 210 to 220, which are described in detail as follows:

[0055] Step 210, displaying a video playing page, wherein the video playing page is provided with a video-on-demand window and a live broadcast window, and the video-on-demand window is used to play the video-on-demand.

[0056] In this solution, at least two video players are embedded in the video playback page, one of which corresponds to the on-demand window and is used to play the on-demand video; and the other corresponds to the live broadcast window and is used to play the live video stream.

[0057] In some embodiments, a video playback page can be associated with a video on demand, that is, the page address of the video playback page is the video playback address of the video on demand. In this case, the video playback page displayed in step 210 is the playback page of the target video on demand video selected to be played. Correspondingly, the video on demand window in the video playback page is used to play the target video on demand. Figure 1 In the on-demand service end of the video-on-demand service, a page play address corresponding to each on-demand video is pre-set, and the page play address corresponds to the video play page pointing to the on-demand video, so that the page play address of the on-demand video and the video identifier of the on-demand video are associated and stored; in the video play client, the page play address of the on-demand video is linked to the display icon corresponding to the on-demand video, so that when the user clicks the display icon of the on-demand video, the user can enter the video play page of the on-demand video based on the page play address linked to the display icon.

[0058] In some embodiments of the present application, the video playback page may further display basic video information of the associated target on-demand video, such as the video name, video introduction, actors, director, etc. of the target on-demand video. Similarly, the video playback page may further display information of the live broadcast room associated with the video playback page, such as the live broadcast theme, etc., which is not specifically limited here.

[0059] Step 220: If a live broadcast instruction is obtained, the live video stream is played in the live broadcast window.

[0060] In some embodiments of the present application, a live broadcast trigger operation detection can be performed in the video playback page, and if the live broadcast trigger operation is detected, it is determined that the live broadcast instruction is obtained.

[0061] In some embodiments of the present application, a live trigger area can be set in advance in the video playback page, and a specified operation triggered in the live trigger area can be set as a live trigger operation. The specified operation can be a click operation (such as a single click operation, a double click operation, a right click operation, a left click operation, etc.), a touch operation, a sliding operation, an operation of drawing a specified pattern in the live trigger area, an operation of placing the cursor in the live trigger area, etc., which are not specifically limited here.

[0062] The live broadcast trigger area can be the entire area where the live broadcast window is located in the video playback page, or a partial area of ​​the area where the live broadcast window is located in the video playback page, a set range area surrounding the area where the live broadcast window is located, other areas in the video playback page except the display area of ​​the live broadcast window, the area where the live broadcast trigger button is located, etc., and no specific limitation is made here.

[0063] In some embodiments, the live broadcast trigger area may be the area where the live broadcast window is located, and the specified operation may be that the mouse cursor is located in the area where the live broadcast window is located. In this case, if it is detected that the mouse cursor is located in the live broadcast window, it is confirmed that the live broadcast instruction is obtained. Further, if it is detected that the mouse cursor is located outside the live broadcast window, it is confirmed that the live broadcast pause instruction is obtained, and the live video stream in the live broadcast window is paused.

[0064] Figure 3 FIG. 1 is a schematic diagram showing the display of the live window and the on-demand window in the video playback page according to an embodiment of the present application. Figure 3 As shown, the first area 310 in the video playback page 300 is the area where the on-demand window is located, and the second area 320 is the area where the live broadcast window is located. In this embodiment, the area defined by the dotted frame 330 surrounding the second area 320 is set as the live broadcast trigger area. It can be seen that the live broadcast trigger area is slightly larger than the second area. When a specified operation is detected in the live broadcast trigger area, it is determined that a live broadcast trigger operation is detected. For example, if it is detected that the cursor is located in the live broadcast trigger area, it is determined that a live broadcast trigger operation is detected. Further, if it is detected that the cursor is not in the live broadcast trigger area, it is determined that a live broadcast pause operation is detected, and the live video stream is stopped accordingly.

[0065] Figure 3 The video playback page shown can be a web page or a client page, which is not specifically limited here. It is worth mentioning that Figure 3 The setting positions, window sizes, window shapes, etc. of the on-demand window and the live window in the video playback page shown in the figure are merely illustrative examples and should not be considered as limitations on the scope of use of this solution.

[0066] In some implementations of the present application, in the video playback page, if the live broadcast instruction is not obtained, the content displayed in the live broadcast window can be text content or image content. The text content can be, for example, the live broadcast introduction information of the associated live broadcast room; the image content can be, for example, the live broadcast preview image of the live broadcast room, the local image of the client, the pre-configured image, etc., which are not specifically limited here. After the live broadcast instruction is obtained, since the live video stream needs to be played, the content displayed in the live broadcast window is replaced with the live video stream.

[0067] In some embodiments of the present application, if a live broadcast instruction is obtained, a live video stream request is made to the live broadcast server, and the live video stream is played in real time in the live broadcast window. Figure 4 As shown, step 220 further includes:

[0068] Step 410: In response to the live broadcast instruction, a live video stream request is initiated to the live broadcast server according to the target live broadcast address. Step 420: The live video stream returned by the live broadcast server according to the live video stream request is received. Step 430: The received live video stream is played in the live broadcast window.

[0069] In some embodiments, the target live broadcast address may be a live broadcast address associated with a video playback page. On the on-demand service end, the page address of the video playback page is associated with the live broadcast address and stored, and the live broadcast address stored in association with the page address of the video playback page is the live broadcast address associated with the video playback page.

[0070] The live broadcast address (i.e., the target live broadcast address) associated with the video playback page indicates the pull stream address of the video stream of the corresponding live broadcast room in the live broadcast server. Therefore, during the live broadcast process, the corresponding live broadcast video stream can be requested from the corresponding live broadcast server according to the live broadcast address. After the client obtains the live broadcast instruction, the client initiates a live video stream request to the live broadcast server according to the target live broadcast address associated with the current video playback page. Based on the live video stream request, the live broadcast server can push the live video stream to the client where the video playback page of the target on-demand video is located in real time to display the live video stream in the live broadcast window until the live broadcast pause instruction is obtained, or until the live broadcast room corresponding to the target live broadcast address stops the live broadcast.

[0071] In some embodiments of the present application, the on-demand service end can obtain live broadcast information from the live broadcast server, and the live broadcast information may include the live broadcast theme, live broadcast content introduction, and live broadcast address of the live broadcast room in the current time period. Thus, the on-demand server can filter the live broadcast rooms according to the obtained live broadcast information, select the target live broadcast room from the live broadcast rooms at the current time, and associate the target live broadcast address of the target live broadcast room with the video playback page of the target on-demand video. Thus, after the terminal obtains the video playback page of the target on-demand video, it can determine the target live broadcast room associated with the video playback page of the target on-demand video.

[0072] In other embodiments of the present application, the on-demand server can also obtain live broadcast preview information from the live broadcast server. The live broadcast preview information may include the live broadcast theme, live broadcast content introduction, live broadcast room identification, etc., so that the on-demand server can filter the live broadcast room according to the live broadcast preview information, select the target live broadcast room, and associate the target live broadcast address of the target live broadcast room with the video playback page of the target on-demand video.

[0073] In some embodiments, the on-demand service end may select a live broadcast room with the same content classification as the target on-demand video associated with the video playback page as the target live broadcast room. For example, if the target on-demand video associated with the video playback page is a basketball game video, and the content classification of the target on-demand video is a basketball game, then the live broadcast room with the content classification of the live content as a basketball game may be selected as the target live broadcast room. Of course, in other embodiments, the target live broadcast room may also be selected based on other principles, such as the number of people in the live broadcast room, etc., which are not specifically limited here.

[0074] In a specific embodiment, the on-demand server may store the page address of the video playback page of the target on-demand video in association with the live broadcast address of the target live broadcast room, so that after the client requests the video playback page of the target on-demand video, the associated live broadcast address is sent to the client. Alternatively, when the user triggers a live broadcast trigger operation on the video playback page, the client responds to the live broadcast trigger operation and makes a live broadcast request to the on-demand server. The on-demand server obtains the target live broadcast address stored in association with the current video playback page, and initiates a live broadcast video stream request to the live broadcast server based on the target live broadcast address, so that the live broadcast server returns the live video stream to the client.

[0075] It is understandable that the live broadcast rooms opened at different time points and the live broadcast contents in each live broadcast room are different, and the live broadcast information and live broadcast preview information obtained by the on-demand server from the live broadcast server are also different. Therefore, the on-demand server re-screens the live broadcast room according to the live broadcast information (or live broadcast preview information) obtained from the live broadcast server, and updates the live broadcast address associated with the video playback page of the target on-demand video. Therefore, for the client, the live broadcast room entered from the video playback page of the target on-demand video may be different at different time points. Since the on-demand server updates the live broadcast address associated with the video playback page of each on-demand video according to the live broadcast information obtained from the live broadcast server, it is ensured that the live broadcast room entered by the user based on the video playback page of the on-demand video is the live broadcast room that is broadcasting live, thereby improving the user experience.

[0076] In some embodiments of the present application, the on-demand service end may also combine the client user's historical playback records, user interest tags, etc., with the live broadcast information to perform targeted live broadcast room screening for the client user, and screen the live broadcast room whose live broadcast content is the same type as the client user's historical playback content, or matches the client user's user interest tags as the target live broadcast room. In this case, the on-demand service end may associate and store the live broadcast room identifier or live broadcast address of the screened target live broadcast room with the user identifier of the client user. Thus, after receiving a page request initiated by the client (the page request is used to request the video playback page of the target on-demand video), the on-demand service end configures the video playback page according to the live broadcast room identifier or live broadcast address stored in association with the user identifier of the client user, so as to display content related to the target live broadcast room in the video playback page, such as the live broadcast introduction information of the target live broadcast room, the live broadcast preview image, etc.

[0077] In some embodiments of the present application, the target live broadcast room screened and determined by the on-demand service end may be one or more. When there are multiple target live broadcast rooms, a live broadcast list may be further displayed in the video playback page of the target on-demand video. The live broadcast list is used to display information of multiple target live broadcast rooms. Users can select a target live broadcast room from the live broadcast list to play the live video stream of the target live broadcast room selected by the user in the live broadcast window.

[0078] In some embodiments of the present application, the live video stream includes a specified live video segment; the specified live video segment is a live video segment of the live broadcast room associated with the video playback page in the marked time period; in this embodiment, before step 220, the method further includes: if a specified live video segment actively pushed by the live broadcast server is received, it is determined that a live broadcast instruction is obtained; wherein, when the live broadcast server detects that the live broadcast time is in the marked time period, it actively pushes the specified live video segment corresponding to the marked time period to the live broadcast window; in this embodiment, step 220 further includes: in response to the live broadcast instruction, playing the specified live video segment in the live broadcast window.

[0079] When the video playback page is associated with the target live broadcast address, since the target live broadcast address uniquely points to one live broadcast room, the live broadcast room indicated by the target live broadcast address associated with the video playback page is the live broadcast room associated with the video playback page.

[0080] In some embodiments of the present application, during the live broadcast process, the operator can mark the time period according to the live broadcast progress, and the marked time period can be the time period corresponding to the high-energy stage or key content in the live broadcast room. The operator marks the time period for the corresponding live broadcast room according to the live broadcast progress, which can also be called the operator marking. The marked time period is the marked time period, and correspondingly, the live video clip generated by the live broadcast room in the marked time period is the designated live video clip. In a specific embodiment, in the operation client of the live broadcast application, a time period marking option can be displayed. Based on the time period marking option, the operator can select a period of time from the current time to the current time as the high-energy stage, and correspondingly, the selected period of time from the current time to the current time is the marked time period. For example, if the live broadcast content of the live broadcast room is a live broadcast of a basketball game, if the current time is 20 minutes and 15 seconds (this time can be the live broadcast duration of the live broadcast room), the operator can mark 20 minutes and 15 seconds to 23 minutes as the high-energy stage, and correspondingly, the time period from 20 minutes and 15 seconds to 23 minutes is the marked time period.

[0081] Then, the client where the operator is located sends the marking information indicating the marked time period to the live broadcast server. Thus, when the live broadcast server detects that the current live broadcast time of the corresponding live broadcast room is in the marked time period, it will actively push the designated live video segment in the marked time period to the on-demand client associated with the live broadcast room. Correspondingly, the live broadcast window in the video playback page of the target on-demand video plays the designated live segment.

[0082] In some embodiments of the present application, the client where the operator is located is provided with an active intervention button for the live broadcast room. If the client where the operator is located turns on the active intervention button and sends indication information indicating turning on the active intervention button to the live broadcast server, the live broadcast server will, based on the indication information, after receiving the marking information sent by the operation client, if it detects that the current live broadcast time of the corresponding live broadcast room is in the marked time period, actively push the specified live broadcast segment in the marked time period to the on-demand client associated with the live broadcast room, so as to automatically trigger the live broadcast window in the on-demand client to play the specified live broadcast segment.

[0083] Figure 5 is a flowchart of automatically triggering a live broadcast window according to a specific implementation of the present application, such as Figure 5 As shown, it specifically includes: step 510, the live broadcast room operator manages the live broadcast room; step 520, the operation client turns on the "active intervention" control button; step 530, the live broadcast server actively sends the specified live broadcast segment in the marked time period; step 540, the client receives the specified live broadcast segment; step 550, the live broadcast window automatically plays the specified live broadcast segment.

[0084] In this embodiment, the live broadcast server can actively push the live video stream to the client where the video playback page of the target on-demand video is located when it detects that the current live broadcast time is in the marked time period, and play the live video stream in the marked time period in the live broadcast window, thereby making it easier for users to understand important video clips in the live broadcast room.

[0085] In the scheme of the present application, a video-on-demand window for playing the on-demand video and a live window for playing the live video stream are set in the video playback page of the on-demand video, so that the on-demand video and the live broadcast can coexist on the same page. Therefore, the user can selectively watch the on-demand video and the live video stream in the same video playback page without switching pages or switching applications, or opening the video playback page for playing the on-demand video and the live video page for playing the live video stream at the same time, thereby improving the video playback efficiency and facilitating the user to watch the live video stream while watching the on-demand video, thereby meeting the diverse needs of users and improving the user experience.

[0086] In the related art, if a user needs to switch between watching on-demand videos and live videos conveniently, the user needs to first open the page of the on-demand video and the page of the live video, and adjust the page of the on-demand video and the page of the live video before the page of the on-demand video and the page of the live video can be displayed on the display screen at the same time, and then the on-demand video and / or the live video can be selectively watched. However, in the present solution, since the on-demand window and the live window are set on the same page, the user does not need to adjust the two pages to selectively watch the on-demand video and the live video, which greatly shortens the user's video playback waiting time and improves the video playback efficiency.

[0087] For on-demand video, the on-demand server stores the video file of the on-demand video. Therefore, after the on-demand server receives the first request for the on-demand video initiated by the client, the on-demand server sends the video file of the on-demand video to the client. After receiving the video file of the on-demand video, the client caches the video file of the on-demand video and plays the on-demand video according to the cached video file of the on-demand video. Therefore, in the case where the video playback page is the playback page of the target on-demand video, in order to play the target on-demand video in the on-demand window, such as Figure 6 As shown, the method also includes:

[0088] Step 610: Request the video file of the target video-on-demand video from the video-on-demand server.

[0089] Step 620: Receive the video file of the target video-on-demand video returned by the video-on-demand server, and cache the video file.

[0090] Furthermore, even if the on-demand window is triggered to pause the video, the client will still request the video file of the target on-demand video from the on-demand server, and cache the requested video file locally on the client, so that when it is needed to be played, it can continue to play based on the cached target on-demand video. It is understandable that the continued playback can be continued from the progress position where the playback was paused last time, and if the user triggers the progress jump operation, it jumps to the new progress position for playback.

[0091] For live video, after receiving the live video stream request, the live server sends the live video stream to the client in real time and displays the live video stream in real time in the live window. If the live pause command is obtained, the client stops requesting the live video stream from the live server.

[0092] Furthermore, in some embodiments of the present application, after step 620, the method further includes: during the playback of the live video stream in the live window, if no on-demand playback pause instruction is obtained, playing the target on-demand video in the on-demand window according to the cached video file.

[0093] In this embodiment, the live window and the on-demand window in the video playback page can play videos simultaneously, so the user can watch on-demand videos and live video streams as needed without switching pages or applications.

[0094] Figure 7 is a schematic diagram of a video playback interface according to an embodiment of the present application. Figure 7 In the video playback interface 700 shown, videos are played simultaneously in the on-demand window 111 and the live broadcast window 112, that is, the on-demand window 111 is playing the target on-demand video, and the live broadcast window 112 is playing the live video stream of the corresponding live broadcast room.

[0095] Figure 8 This is a flowchart of video playback in a live window and a video-on-demand window according to an embodiment of the present application. Specifically, Figure 8 A shows a flowchart of video playback in the on-demand window. Figure 8 As shown in A, it includes: step 811, activation of on-demand play. In a specific embodiment, a on-demand play button can be set in the video play page. If the user triggers the on-demand play button, the on-demand play button switches to a Hover state, and it is determined that the on-demand play instruction is obtained.

[0096] Step 812, request the on-demand server to send the video file of the target on-demand video; Step 813, detect whether the on-demand window is paused; if yes, execute step 814, if not, execute step 817, and the on-demand window plays the target on-demand video.

[0097] Step 814, pausing the playback of the on-demand window; Step 815, detecting whether to close the video playback page; if yes, executing step 816, if not, executing step 818, pausing the request to the on-demand server to send the video file of the target on-demand video after the target on-demand video is downloaded.

[0098] Step 816: suspend requesting the on-demand video server to send the video file of the target on-demand video.

[0099] Figure 8 B shows a flowchart of video playback in the live window. Figure 8 As shown in B, after detecting that the live broadcast is not activated, the video is played in the live broadcast window according to the following steps, including:

[0100] Step 821, detect whether the cursor is located in the area where the live broadcast window is located; if yes, execute step 822, if not, repeat step 821. If it is detected that the cursor is located in the area where the live broadcast window is located, it is confirmed that the live broadcast trigger operation is detected.

[0101] Step 822, request a live video stream from the live broadcast server.

[0102] Step 823, play the live video stream in real time in the live window.

[0103] Step 824, detect whether the cursor moves out of the area where the live broadcast window is located; if yes, execute step 825, if not, execute step 822. If it is detected that the cursor moves out of the area where the live broadcast window is located, it is confirmed that the live broadcast playback pause operation is detected.

[0104] Step 825, the live broadcast window pauses.

[0105] In this embodiment, it is achieved that on-demand video and live video stream can be played simultaneously in the same video playback page, and the playback of on-demand video does not affect the playback status (play or pause) of the live video stream, and the playback of the live video stream does not affect the playback of on-demand video (play or pause). The playback of on-demand video and the playback of the live video stream can be controlled separately, which is convenient for users to control video playback according to actual needs and improve user experience.

[0106] In some embodiments of the present application, Fig. 9 As shown, the method also includes: step 910, in response to the live broadcast instruction, obtaining the volume information of the live broadcast window and the volume information of the on-demand window, the target playback window is at least one of the live broadcast window and the on-demand window; step 920, according to the volume information of the on-demand window and the volume information of the live broadcast window, adjusting the volume in the target playback window so that the volume in the on-demand window after adjustment is lower than the volume in the live broadcast window.

[0107] In the solution of this embodiment, only the volume in the live window can be adjusted, or only the volume in the on-demand window can be adjusted, or the volumes in the live window and the on-demand window can be adjusted simultaneously, so that the volume in the on-demand window after adjustment is lower than the volume in the live window. Of course, if the volume indicated by the acquired volume information of the live window is higher than the volume indicated by the volume information of the on-demand window, the volume adjustment may not be performed.

[0108] In some embodiments of the present application, a first volume range for a live broadcast window and a second volume range for a video-on-demand window may be pre-set, wherein the volume in the first volume range is higher than the volume in the second volume range. If the volume indicated by the volume information obtained in the live broadcast window is lower (for example, lower than the minimum volume in the first volume range), and the volume indicated by the volume information obtained in the video-on-demand window is higher (for example, higher than the maximum volume in the first volume range), the volume in the live broadcast window may be adjusted to the first volume range, and / or the volume in the video-on-demand window may be adjusted to the second volume range.

[0109] In a specific scenario, if a user triggers a live video playback operation, it indicates that the user is currently paying attention to the live video stream in the live broadcast room. Therefore, in this case, the volume in the on-demand window and / or the live broadcast window is adjusted according to the live broadcast instruction, so that the volume in the on-demand window is lower than the volume in the live broadcast window after adjustment, thereby avoiding the excessive volume in the on-demand window affecting the user's listening to the audio in the live broadcast window, thereby improving the user's viewing experience.

[0110] In some embodiments of the present application, the target playback window includes a video-on-demand window. Fig. 9 As shown, after step 920, the method further includes: step 930, if a live broadcast pause instruction is obtained, in response to the live broadcast pause instruction, the volume in the on-demand window is restored to the volume before adjustment.

[0111] In some embodiments, the live broadcast pause playback instruction can be generated based on a live broadcast pause playback operation triggered by a user in a video playback interface. The live broadcast pause playback operation is, for example, a user triggering a live broadcast pause playback trigger area in the video playback interface. The live broadcast pause playback trigger area can be the display area where the live broadcast pause button is located, or it can be a preset area in the live broadcast window, which is not specifically limited here.

[0112] In the scenario where the live broadcast server actively pushes a specified live video segment in a marked time period to the client, if the client receives the specified live video segment, if it does not receive the live video stream pushed by the live broadcast server within a first set time interval, the client confirms that it has obtained the live broadcast pause instruction.

[0113] In this embodiment, after the volume in the on-demand window is adjusted in response to a live broadcast instruction, the volume in the on-demand window is restored to the volume before adjustment according to a live broadcast pause instruction. Thus, the volume in the on-demand window can be automatically restored to the volume before adjustment without the user manually adjusting the volume in the on-demand window again, thereby facilitating quick restoration to the state before the on-demand window adjustment.

[0114] In some embodiments, only the volume of the on-demand window may be adjusted in step 920 , and correspondingly, in step 930 , only the volume in the on-demand window is restored to the volume before the adjustment.

[0115] In some embodiments, if the volume in the on-demand window and the live broadcast window is adjusted in step 920, after the live broadcast pause instruction is obtained, only the volume in the on-demand window can be restored to the volume before adjustment, while the volume in the live broadcast window is not restored to the volume before adjustment; or the volume in the on-demand window can be restored to the volume before adjustment, and the volume in the live broadcast window can be restored to the volume before adjustment.

[0116] In some embodiments, if only the volume in the live broadcast window is adjusted in step 920, after the live broadcast pause instruction is obtained, the volume in the live broadcast window can be restored to the volume before adjustment; or the volume of the live broadcast window may not be restored to the volume before adjustment.

[0117] In some embodiments of the present application, the method also includes: if a live broadcast instruction is obtained, obtaining the display size information of the live broadcast window in the video playback interface; according to the display size information of the live broadcast window in the video playback interface, increasing the display size of the live broadcast window in the video playback page.

[0118] The display size information indicates the size of the area where the live broadcast window is located in the video playback interface. In a specific embodiment, a first display size range can be pre-set. If the display size indicated by the display size information of the live broadcast window is within the first display size range, the display size of the live broadcast window may not be adjusted. If the acquired display size information indicates that the display size of the live broadcast window in the video playback interface is lower than the minimum size value in the first display size range, the display size of the live broadcast window in the video playback page may be increased, so that after the increase, the display size of the live broadcast window in the video playback interface is within the first display size range. Since the display size of the live broadcast window in the video playback interface is increased, the user's viewing experience of watching the live video stream can be improved.

[0119] In some embodiments, the display range of the first display size can be set in combination with the display size of the on-demand window in the video playback interface, that is, the display area of ​​the live window defined by the maximum display size defined by the first display size does not interfere with the display area where the on-demand window is located in the video playback page.

[0120] In some embodiments of the present application, in order to avoid interference between the area where the live window is located and the area where the on-demand window is located in the video playback interface after the increase, before increasing the display size of the live window in the video playback interface, the display size of the live window can also be adjusted in combination with the display size information of the on-demand window in the video playback interface. In a specific embodiment, if the display size of the on-demand window in the video playback interface is determined, the display size of the on-demand window in the video playback interface can be reduced while increasing the display size of the live window in the video playback interface.

[0121] In some embodiments of the present application, a second display size range may be pre-set. If the display size indicated by the acquired display size information of the live broadcast window is lower than the minimum size value in the first display size range, and the display size indicated by the acquired display size information of the on-demand window in the video playback interface is greater than the maximum value in the second display size range, then not only the display size of the live broadcast window is increased according to the first display size range, but also the display size of the on-demand window in the video playback interface may be reduced according to the second display size range, so that the display size of the on-demand window in the video playback interface after reduction is within the second display size range. Of course, if the display size indicated by the acquired display size information of the on-demand window in the video playback interface is not greater than the maximum value in the second display size range, the display size of the on-demand window may not be adjusted.

[0122] In some embodiments, in order to ensure that after adjusting the display size (the display size of the live window and / or the on-demand window), the display area where the live window is located does not interfere with the display area where the on-demand window is located, the display area indicated by the maximum display size defined by the set first display size range and the display area indicated by the maximum display size defined by the second display size range do not interfere with each other in the video playback page.

[0123] In some embodiments of the present application, the first display position of the live broadcast window in the video playback interface can also be pre-set, and the first display position can be the position of the position reference point corresponding to the live broadcast window, and the position reference point can be one or more, and the position reference point corresponding to the live broadcast window can be a vertex on the outer edge of the live broadcast window, or it can be the center point corresponding to the live broadcast window, which is not specifically limited here. Thus, the live broadcast window with an increased display size is displayed in the video playback interface according to the first display position. Among them, the first display position can be the same as the display position of the live broadcast window when the live broadcast operation is not triggered in the video playback interface, or it can be different, which is not specifically limited here. Similarly, the second display position of the on-demand window can also be pre-set to display the on-demand window with a reduced display size in the video playback interface according to the second display position. The second display position can be the same as the display position of the on-demand window when the live broadcast operation is not triggered in the video playback interface, or it can be different, and it can be set according to actual needs.

[0124] Fig.10 It is a schematic diagram showing the display of the live broadcast window in the video playback page before and after adjustment according to a specific embodiment of the present application. Fig.10 A shows a schematic diagram of the display of the live broadcast window and the on-demand window in the video playback page before adjustment. Fig.10B shows a schematic diagram of the display of the live window and the on-demand window in the video playback page after the display size is adjusted. Fig.10 A), according to the acquired display size information of the on-demand window 111 in the video playback page and the display size information of the live broadcast window 112 in the video playback page, such as Fig.10 As shown in B, the display size of the on-demand window 111 in the video playback page is reduced, and the display size of the live broadcast window 112 in the video playback page is increased.

[0125] In some embodiments of the present application, after increasing the display size of the live broadcast window in the video playback page according to the display size information of the live broadcast window in the video playback interface, the method further includes: if a live broadcast pause playback instruction is obtained, in response to the live broadcast pause playback instruction, the display size of the live broadcast window in the video playback page is restored to the display size indicated by the display size information before the increase.

[0126] It is understandable that if the display size of the on-demand window is also adjusted during the process of increasing the display size of the live broadcast window in the video playback page, then in response to the live broadcast pause instruction, the display size of the on-demand window will also be restored to the display size before the adjustment.

[0127] In this embodiment, the display size of the live window in the video playback page is automatically restored to the display size before the increase according to the live broadcast pause instruction, without the user having to manually adjust the display size of the live window or the on-demand window. Therefore, it is convenient for users to watch videos in the on-demand window.

[0128] It is understandable that after obtaining the live broadcast instruction, you can only adjust the volume in the live broadcast window and / or the on-demand window; or only adjust the display size of the live broadcast window and / or the on-demand window; or you can adjust both the volume in the live broadcast window and / or the on-demand window and the display size of the live broadcast window and / or the on-demand window.

[0129] In some embodiments of the present application, during the process of playing the live video stream in the live window and the target on-demand video in the on-demand window, the user can selectively pause the live window or pause the video in the on-demand window as needed. That is, in this case, the play status in the live window and the play status in the on-demand window can be controlled separately, and the play status in one play window will not be affected by the play status in another play window, so that the user can flexibly trigger and control the play and pause in the live window and the on-demand window according to actual needs.

[0130] In some embodiments of the present application, if the on-demand window is in the playing state when the live broadcast instruction is obtained, the on-demand window can also be controlled to pause the playback, and the live video stream is played only in the live broadcast window, so as to avoid affecting the user's viewing of the live video stream due to playing the target on-demand video in the on-demand window. Furthermore, after playing the live video stream in the live broadcast window, if the live broadcast pause instruction is obtained, the on-demand window can be automatically triggered to replay the target on-demand video. Thus, only one playback window of the live broadcast window and the on-demand window is used for video playback at the same time, so as to avoid affecting the user's video viewing experience.

[0131] In some embodiments of the present application, after step 210, the method further includes: if no live broadcast instruction is obtained, requesting a live broadcast preview image associated with the target live broadcast address from the live broadcast server at a preset time interval; and displaying the live broadcast preview image in the live broadcast window.

[0132] The live preview image is a video frame selected from the live video stream in the live broadcast room indicated by the target live broadcast address. Since the live preview image is a video frame in the live video stream in the live broadcast room indicated by the target live broadcast address, the live preview image is associated with the target live broadcast address, that is, the live preview image comes from the video stream in the live broadcast room indicated by the target live broadcast address.

[0133] Since the live broadcast server receives the live video stream pushed by the anchor client in real time, the live preview images for the same live broadcast room obtained from the live broadcast server at different times are different. In other words, after the client obtains the live preview image returned by the live broadcast server at a preset time interval, the image displayed in the corresponding live broadcast window is replaced with the currently obtained live preview image. In this embodiment, since the live preview image of the corresponding live broadcast room is obtained at a preset time interval and updated and displayed in the live broadcast window, it is convenient for the user to know the progress in the live broadcast room according to the updated live preview image.

[0134] In some embodiments of the present application, after obtaining the live preview image requested from the live broadcast server, the client directly displays the live preview image, or displays the live preview image according to an operation triggered by the user.

[0135] In some embodiments of the present application, after step 220, the method further includes: if a live broadcast pause instruction is obtained, stopping requesting a live video stream from the live broadcast room associated with the video playback page, and displaying the live broadcast preview image most recently requested from the live broadcast server in the live broadcast window.

[0136] In some embodiments of the present application, the method also includes: displaying live broadcast introduction information in the live broadcast window of the video playback page; in response to a first operation triggered in the video playback page, switching the live broadcast introduction information displayed in the live broadcast window to a live broadcast preview image.

[0137] In this implementation, the live broadcast window initially displays textual live broadcast introduction information, such as live broadcast theme name, live broadcast introduction, number of viewers in the live broadcast room, whether the live broadcast has ended, etc. For example, if the content broadcasted in the live broadcast room is a sports game, the live broadcast introduction information may include the name of the game, the names of the contestants, the current score, etc. It is understandable that if the live broadcast introduction information needs to be updated in real time, the client will correspondingly make an information request to the live broadcast server to update the live broadcast introduction information. For example, for a live broadcast of a game, if the live broadcast introduction information includes the scores of the contestants, since the scores are constantly updated, the client will request the scores of the contestants from the server at a set time interval.

[0138] If a first operation triggered by a user is detected in the video playback interface, the live broadcast introduction information displayed in the live broadcast window is replaced with the latest acquired live broadcast preview image in response to the first operation.

[0139] In some embodiments of the present application, a display area in a video playback page can be set as a first trigger area. If a first operation is detected in the first trigger area, the live broadcast introduction information displayed in the live broadcast window is switched to a live broadcast preview image. The first trigger area can be part or all of the display area where the live broadcast introduction information of the live broadcast window is located, or it can be a display area outside the live broadcast window. For example, if a preview image display trigger button is provided in the video playback page, the area where the preview image display trigger button is located can be regarded as the first trigger area. The first operation can be a single click, double click, touch, left click of the mouse, right click of the mouse, cursor movement into the first trigger area, etc., which are not specifically limited here.

[0140] In some embodiments of the present application, after step 220, the method further includes: if a live broadcast pause instruction is obtained, stopping requesting a live video stream from the live broadcast room associated with the video playback page, and displaying text live broadcast introduction information in the live broadcast window.

[0141] On the video playback page of the target on-demand video, users can switch the live broadcast introduction information displayed in the live broadcast window to display the live broadcast preview image according to actual needs, so that users can know the progress of the live broadcast room through the live broadcast preview image. Compared with the live broadcast introduction information in text, the image form is more vivid and lively to express the progress in the live broadcast room, which can meet the diverse viewing needs of users.

[0142] Fig.11 A- Fig.11 B is a schematic diagram of switching content display in a live broadcast window specifically shown in the present application. In this embodiment, the content broadcasted by the live broadcast room associated with the video playback interface is a sports game. Fig.11 A is a schematic diagram showing the live broadcast introduction information displayed in the live broadcast window. Fig.11 As shown in FIG. 1 , the display area where the live broadcast window is located includes a first display area 1110 and a second display area 1120. The first display area 1110 displays live broadcast introduction information, including: game name "XX basketball game I team vs II team", live broadcast room viewer information "56734 people are watching", live broadcast process information "video live broadcast", game progress information "4th quarter", remaining game time information "06:36", score information of the game "105:108", identification information of both sides of the game (including icons and names), historical win-loss situation ( Fig.11 In A, team I wins 2 games, and team II wins 1 game). In this embodiment, the first display area 1110 may be a first trigger area, so that if a first designated operation is detected in the first display area 1110, such as a cursor moving into the first display area 1110, it may be considered that a live preview image display trigger operation is triggered, so that the content of the live window is switched to display Fig.11 B shows a live preview image. In a specific embodiment, the first trigger area may include multiple areas. For example, in this embodiment, the first trigger area may include, in addition to the first display area 1110, a display area where a member button is located in the video playback page, or other display areas in the video playback page, which are not specifically limited here.

[0143] Fig.11 The second display area 1120 in A is a button area, which is a "return to live broadcast room" button. If the second display area 1120 is triggered (for example, clicked, double-clicked, the cursor moves into the area, is touched, etc.), it can be determined that a live broadcast trigger operation is detected. Therefore, a live video stream of the corresponding live broadcast room can be requested from the live broadcast server, and the live broadcast introduction information displayed in the live broadcast window can be switched to display the live video stream.

[0144] Fig.11 B shows a schematic diagram of displaying a live preview image in a live window. Fig.11 As shown in B, the display area of ​​the live broadcast window still includes the first display area 1110 and the second display area 1120. Fig.11In B, the second display area 1110 displays a live preview image, and the second display area 1120 is a button area, which is a "return to live broadcast room" button. If the second display area 1120 is triggered (for example, clicked, double-clicked, the cursor moves into the area, touched, etc.), it can be determined that a live broadcast trigger operation is detected, so that a request can be made to the live broadcast server for the live video stream of the corresponding live broadcast room, and the live preview image displayed in the live broadcast window can be switched to display the live video stream. Fig.11 A and Fig.11 B can be seen that when switching to Fig.11 B, the second display area 1120 is transformed into a solid area. It is understandable that if the live broadcast window is always in the state of displaying the live broadcast preview image, the live broadcast preview image displayed in the live broadcast window will be dynamically updated according to the new live broadcast preview image obtained from the live broadcast server.

[0145] In an embodiment, the display content in the live broadcast window can be switched among text-based live broadcast introduction information, live broadcast preview images, and live broadcast video streams, thereby meeting the diverse needs of users. Users can switch the content displayed in the live broadcast window according to actual needs.

[0146] The following describes an apparatus embodiment of the present application, which can be used to execute the method in the above-mentioned embodiment of the present application. For details not disclosed in the apparatus embodiment of the present application, please refer to the above-mentioned method embodiment of the present application.

[0147] Fig.12 is a block diagram of a video playback device according to an embodiment of the present application. Fig.12 As shown, the video playback device includes: a display module 1210, which is used to display a video playback page, and the video playback page is provided with a video-on-demand window and a live broadcast window, and the video-on-demand window is used to play the video-on-demand video; a live broadcast playback module 1220, which is used to play the live video stream in the live broadcast window if a live broadcast playback instruction is obtained.

[0148] In some embodiments of the present application, the live broadcast module 1220 includes: a live video stream request unit, which is used to respond to the live broadcast instruction and initiate a live video stream request to the live broadcast server according to the target live broadcast address; a live video stream receiving unit, which is used to receive the live video stream returned by the live broadcast server according to the live video stream request; a live video stream playback unit, which is used to play the received live video stream in the live broadcast window.

[0149] In some embodiments of the present application, the video playback device also includes: a live preview image request unit, which is used to request a live preview image associated with a target live broadcast address from a live broadcast server at a preset time interval if no live broadcast playback instruction is obtained; and a live preview image display unit, which is used to display the live preview image in a live broadcast window.

[0150] In some embodiments of the present application, the video playback device also includes: a live broadcast introduction information display unit, which is used to display the live broadcast introduction information in the live broadcast window of the video playback page; and a switching unit, which is used to switch the live broadcast introduction information displayed in the live broadcast window to a live broadcast preview image in response to a first operation triggered in the video playback page.

[0151] In some embodiments of the present application, the video playback device further includes: a first determination unit, configured to determine that a live broadcast instruction has been acquired if it is detected that the mouse cursor is located in the live broadcast window.

[0152] In other embodiments of the present application, the live video stream includes a specified live video segment; the specified live video segment is a live video segment of a live broadcast room associated with a video playback page in a marked time period; the video playback device also includes: a second determination unit, if receiving a specified live video segment actively pushed by a live broadcast server, it determines that a live broadcast instruction is obtained; wherein, when the live broadcast server detects that the live broadcast time is in the marked time period, it actively pushes the specified live video segment corresponding to the marked time period to the live broadcast window; in this embodiment, the live broadcast playback module is further configured to: in response to the live broadcast playback instruction, play the specified live video segment in the live broadcast window.

[0153] In some embodiments of the present application, the video playback device also includes: a volume information acquisition module, which is used to obtain the volume information of the live window and the volume information of the on-demand window in response to the live playback instruction; a volume adjustment module, which is used to adjust the volume in the target playback window according to the volume information of the on-demand window and the volume information of the live window, so that the volume in the on-demand window after adjustment is lower than the volume in the live window, and the target playback window is at least one playback window of the live window and the on-demand window.

[0154] In some embodiments of the present application, the target playback window includes a video-on-demand window, and the video playback device also includes: a first recovery module, which is used to restore the volume in the video-on-demand window to the volume before adjustment in response to the live broadcast pause playback instruction if a live broadcast pause playback instruction is obtained.

[0155] In some embodiments of the present application, the video playback device also includes: a display size information acquisition module, which is used to obtain the display size information of the live broadcast window in the video playback interface if a live broadcast playback instruction is obtained; a display size increase module, which is used to increase the display size of the live broadcast window in the video playback page according to the display size information of the live broadcast window in the video playback interface.

[0156] In some embodiments of the present application, the video playback device also includes: a second recovery module, which is used to restore the display size of the live broadcast window in the video playback page to the display size indicated by the display size information before the increase in response to the live broadcast pause playback instruction if a live broadcast pause playback instruction is obtained.

[0157] In some embodiments of the present application, the video playback device also includes: a video file request module, used to request the video file of the target on-demand video from the on-demand server; a video file receiving module, used to receive the video file of the target on-demand video returned by the on-demand server, and cache the video file.

[0158] In some embodiments of the present application, the video playback device also includes: an on-demand playback module, which is used to play the target on-demand video in the on-demand window according to the cached video file if no on-demand playback pause instruction is obtained during the playback of the live video stream in the live window.

[0159] Fig.13 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.

[0160] It should be noted that Fig.13 The computer system 1300 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0161] like Fig.13 As shown, the computer system 1300 includes a central processing unit (CPU) 1301, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1302 or the program loaded from the storage part 1308 to the random access memory (RAM) 1303, such as executing the method in the above embodiment. In RAM 1303, various programs and data required for system operation are also stored. CPU 1301, ROM 1302 and RAM 1303 are connected to each other through bus 1304. Input / output (I / O) interface 1305 is also connected to bus 1304.

[0162] The following components are connected to the I / O interface 1305: an input section 1306 including a keyboard, a mouse, etc.; an output section 1307 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1308 including a hard disk, etc.; and a communication section 1309 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1309 performs communication processing via a network such as the Internet. A drive 1310 is also connected to the I / O interface 1305 as needed. A removable medium 1311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1310 as needed so that a computer program read therefrom is installed into the storage section 1308 as needed.

[0163] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 1309, and / or installed from a removable medium 1311. When the computer program is executed by a central processing unit (CPU) 1301, various functions defined in the system of the present application are executed.

[0164] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0165] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0166] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0167] As another aspect, the present application further provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiments; or may exist independently without being assembled into the electronic device. The above computer-readable storage medium carries computer-readable instructions, and when the computer-readable storage instructions are executed by a processor, the method in any of the above embodiments is implemented.

[0168] According to one aspect of the present application, an electronic device is also provided, which includes: a processor; a memory, wherein computer-readable instructions are stored in the memory, and when the computer-readable instructions are executed by the processor, the method in any of the above embodiments is implemented.

[0169] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method in any of the above embodiments.

[0170] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0171] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.

[0172] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.

[0173] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A video playback method, characterized in that: The method comprises: Display a video playback page of a target on-demand video, wherein the video playback page is provided with an on-demand window and a live broadcast window, wherein the on-demand window is used to play the target on-demand video; the video playback page is associated with a target live broadcast address of a target live broadcast room, wherein the target live broadcast room is a live broadcast room whose content classification is the same as that of the target on-demand video after the on-demand server screens the live broadcast room according to the live broadcast message obtained from the live broadcast server; If a live broadcast instruction is obtained, a live video stream is played in the live broadcast window; the live video stream is from the target live broadcast room; Wherein, if a designated live video clip actively pushed by the live broadcast service end is received, it is determined that the live broadcast instruction is obtained; the designated live video clip is a live video clip of the target live broadcast room in the marked time period; after receiving the marking information indicating the marked time period sent by the client where the operator is located for the target live broadcast room, the live broadcast service end actively pushes the designated live video clip corresponding to the marked time period to the live broadcast window upon detecting that the live broadcast time is in the marked time period; the client where the operator is located sends the marking information to the live broadcast service end during the live broadcast of the target live broadcast room, and the marked time period is the time period corresponding to the key content in the target live broadcast room; If a live broadcast instruction is obtained, playing the live video stream in the live broadcast window includes: responding to the live broadcast instruction, playing the specified live video segment in the live broadcast window.

2. The method according to claim 1, characterized in that The method further comprises: If the live broadcast instruction is not obtained, requesting a live broadcast preview image associated with the target live broadcast address from the live broadcast server at a preset time interval; The live broadcast preview image is displayed in the live broadcast window.

3. The method according to claim 2, characterized in that The method further comprises: Initially displaying live broadcast introduction information in the live broadcast window of the video playback page; In response to a first operation triggered in the video playback page, the live broadcast introduction information displayed in the live broadcast window is switched to the live broadcast preview image.

4. The method according to claim 1, characterized in that: The method further comprises: In response to the live broadcast instruction, obtaining volume information of the live broadcast window and volume information of the on-demand window; According to the volume information of the on-demand window and the volume information of the live broadcast window, the volume in the target playback window is adjusted so that the volume in the on-demand window is lower than the volume in the live broadcast window after adjustment, and the target playback window is at least one playback window of the live broadcast window and the on-demand window.

5. The method according to claim 4, characterized in that The target playback window includes a video-on-demand window, and after adjusting the volume in the target playback window according to the volume information of the video-on-demand window and the volume information of the live broadcast window, the method further includes: If a live broadcast pause instruction is obtained, in response to the live broadcast pause instruction, the volume in the on-demand window is restored to the volume before adjustment.

6. The method according to claim 1, characterized in that The method further comprises: If the live broadcast instruction is obtained, obtaining the display size information of the live broadcast window in the video playback page; According to the display size information of the live broadcast window in the video playback page, the display size of the live broadcast window in the video playback page is increased.

7. The method according to claim 6, characterized in that After increasing the display size of the live broadcast window in the video playback page according to the display size information of the live broadcast window in the video playback page, the method further includes: If a live broadcast pause instruction is obtained, in response to the live broadcast pause instruction, the display size of the live broadcast window in the video playback page is restored to the display size indicated by the display size information before the increase.

8. The method according to any one of claims 1 to 7, characterized in that The method further comprises: Requesting the video file of the target video-on-demand video from the video-on-demand server; The video file of the target video-on-demand video returned by the video-on-demand service end is received, and the video file is cached, so as to play the target video-on-demand video in the video-on-demand window based on the cached video file.

9. The method according to claim 8, characterized in that The method further comprises: During the playing of the live video stream in the live window, if no on-demand play pause instruction is obtained, the target on-demand video is played in the on-demand window according to the cached video file.

10. A video playback device, characterized in that: The device comprises: A display module is used to display a video playback page of a target on-demand video, wherein the video playback page is provided with an on-demand window and a live broadcast window, wherein the on-demand window is used to play the target on-demand video; the video playback page is associated with a target live broadcast address of a target live broadcast room, wherein the target live broadcast room is a live broadcast room whose content classification is the same as that of the target on-demand video after the on-demand server screens the live broadcast room according to the live broadcast message obtained from the live broadcast server; A live broadcast module, for playing a live video stream in the live broadcast window if a live broadcast instruction is obtained; the live video stream is from the target live broadcast room; The video playback device further includes: a second determining unit, configured to determine that the live broadcast instruction is obtained if a designated live video clip actively pushed by the live broadcast service end is received; the designated live video clip is a live video clip of the target live broadcast room in a marked time period; after the live broadcast service end receives the marking information indicating the marked time period sent by the client where the operator is located for the target live broadcast room, upon detecting that the live broadcast time is in the marked time period, the designated live video clip corresponding to the marked time period is actively pushed to the live broadcast window; the client where the operator is located sends the marking information to the live broadcast service end during the live broadcast of the target live broadcast room, and the marked time period is a time period corresponding to the key content in the target live broadcast room; Correspondingly, the live broadcast module is used to: respond to the live broadcast instruction and play the specified live video segment in the live broadcast window.

11. The device according to claim 10, characterized in that The live broadcast module is further configured to respond to the live broadcast instruction and initiate a live video stream request to the live broadcast server according to the target live broadcast address; Receiving the live video stream returned by the live streaming service end according to the live video stream request; The received live video stream is played in the live window.

12. The device according to claim 10, characterized in that The video playback device further includes: a live preview image request unit, which is used to request a live preview image associated with a target live broadcast address from a live broadcast server at a preset time interval if the live broadcast instruction is not obtained; A live preview image display unit is used to display the live preview image in the live window.

13. The device according to claim 12, characterized in that The video playback device further comprises: a live broadcast introduction information display unit, configured to initially display live broadcast introduction information in the live broadcast window of the video playback page; A switching unit is used to switch the live broadcast introduction information displayed in the live broadcast window to the live broadcast preview image in response to a first operation triggered in the video playback page.

14. The device according to claim 10, characterized in that The video playback device also includes: a first determination unit, which is used to determine that the live broadcast instruction is obtained if it is detected that the mouse cursor is located in the live broadcast window.

15. The device according to claim 10, characterized in that The video playback device further includes: a volume information acquisition module, configured to acquire the volume information of the live broadcast window and the volume information of the on-demand window in response to the live broadcast instruction; The volume adjustment module is used to adjust the volume in the target playback window according to the volume information of the on-demand window and the volume information of the live broadcast window, so that the volume in the on-demand window is lower than the volume in the live broadcast window after adjustment, and the target playback window is at least one playback window of the live broadcast window and the on-demand window.

16. The device according to claim 15, characterized in that The target playback window includes a video-on-demand window, and the video playback device further includes: a first recovery module, which is used to restore the volume in the video-on-demand window to the volume before adjustment in response to a live broadcast pause playback instruction if a live broadcast pause playback instruction is obtained.

17. The device according to claim 10, characterized in that The video playback device further includes: a display size information acquisition module, which is used to acquire display size information of the live broadcast window in the video playback page if the live broadcast instruction is acquired; The display size increasing module is used to increase the display size of the live broadcast window in the video playback page according to the display size information of the live broadcast window in the video playback page.

18. The device according to claim 17, characterized in that The video playback device also includes: a second recovery module, which is used to restore the display size of the live broadcast window in the video playback page to the display size indicated by the display size information before the increase in response to the live broadcast pause playback instruction if a live broadcast pause playback instruction is obtained.

19. The device according to any one of claims 10 to 18, characterized in that The video playback device further comprises: a video file request module, configured to request the video file of the target on-demand video from the on-demand service end; The video file receiving module is used to receive the video file of the target video-on-demand returned by the video-on-demand service end, and cache the video file, so as to play the target video-on-demand in the video-on-demand window based on the cached video file.

20. The device according to claim 19, characterized in that The video playback device further includes: a playback on demand module, which is used to play the target video on demand in the video window according to the cached video file if no playback on demand pause instruction is obtained during the playback of the live video stream in the live window.

21. An electronic device, characterized in that: include: processor; A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the method according to any one of claims 1 to 9 is implemented.

22. A computer-readable storage medium having computer-readable instructions stored thereon, characterized in that: When the computer-readable instructions are executed by a processor, the method according to any one of claims 1 to 9 is implemented.

23. A computer program product comprising computer instructions, characterized in that When the computer instructions are executed by a processor, the method according to any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Teaching-based live streaming method and device, and live streaming server

    CN106375800A

  • Simultaneous Content Data Streaming And Interaction System

    US20140195675A1