WO2021143735A1 - 视频播放方法及装置 - Google Patents

视频播放方法及装置 Download PDF

Info

Publication number
WO2021143735A1
WO2021143735A1 PCT/CN2021/071562 CN2021071562W WO2021143735A1 WO 2021143735 A1 WO2021143735 A1 WO 2021143735A1 CN 2021071562 W CN2021071562 W CN 2021071562W WO 2021143735 A1 WO2021143735 A1 WO 2021143735A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
video
client
target client
information
Prior art date
Application number
PCT/CN2021/071562
Other languages
English (en)
French (fr)
Inventor
李金海
苍鹏
帅龙城
王涛
刘玉鑫
蒋鹏程
Original Assignee
北京达佳互联信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京达佳互联信息技术有限公司 filed Critical 北京达佳互联信息技术有限公司
Priority to EP21741678.3A priority Critical patent/EP4093040A4/en
Publication of WO2021143735A1 publication Critical patent/WO2021143735A1/zh
Priority to US17/825,686 priority patent/US20220286740A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44209Monitoring of downstream path of the transmission network originating from a server, e.g. bandwidth variations of a wireless network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4331Caching operations, e.g. of an advertisement for later insertion during playback
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2402Monitoring of the downstream path of the transmission network, e.g. bandwidth available
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2405Monitoring of the internal components or processes of the server, e.g. server load
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25808Management of client data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26208Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints
    • H04N21/26216Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints involving the channel capacity, e.g. network bandwidth
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26283Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for associating distribution time parameters to content, e.g. to generate electronic program guide data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44004Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video buffer management, e.g. video decoder buffer or video display buffer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • H04N21/64746Control signals issued by the network directed to the server or the client
    • H04N21/64761Control signals issued by the network directed to the server or the client directed to the server
    • H04N21/64769Control signals issued by the network directed to the server or the client directed to the server for rate control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/65Transmission of management data between client and server
    • H04N21/654Transmission by server directed to the client
    • H04N21/6547Transmission by server directed to the client comprising parameters, e.g. for client setup

Definitions

  • the present disclosure relates to the field of audio and video technology, and in particular to video playback methods and devices.
  • the present disclosure provides a video playback method and device.
  • the technical solutions of the present disclosure are as follows:
  • a video playback method including:
  • the target client In response to detecting that the target client displays a preset page, acquiring first configuration information of at least one target video associated with the preset page and local cache information of the target client, wherein the first configuration information includes The identification information of the target video, and the local cache information of the target client includes the identification information of the video that has been cached by the target client;
  • the at least one target video is played.
  • another video playback method including:
  • the time configuration information is delivered to the at least one target client, and the time configuration information is used to indicate the start time of the at least one target video that the at least one target client has not cached, so that the at least one target client is based on
  • the time configuration information downloads and caches at least one target video that is not completed, and plays the at least one target video in response to a user operation.
  • a video playback device including:
  • the acquiring unit is configured to perform, in response to detecting that the target client displays a preset page, acquiring first configuration information of at least one target video associated with the preset page and local cache information of the target client, wherein:
  • the first configuration information includes identification information of the target video, and the local cache information of the target client includes identification information of the video that has been cached by the target client;
  • the first determining unit is configured to perform determining the video caching state of the target client according to the first configuration information and the local caching information, where the video caching state is used to indicate that the target client is The cache progress of the target video;
  • the downloading unit is configured to execute downloading at least one target video whose cache is not completed according to the video cache state;
  • the playing unit is configured to perform, in response to a user operation, playing the at least one target video.
  • another video playback device including:
  • the grouping unit is configured to perform grouping of at least one client according to the client information of the at least one client and the network state information of the server, and determine at least one target client;
  • the sending unit is configured to issue time configuration information to the at least one target client, where the time configuration information is used to indicate the start time of the at least one target video that has not been cached by the at least one target client, so that all The at least one target client downloads at least one target video whose cache is not completed according to the time configuration information, and plays the at least one target video in response to a user operation.
  • a client including: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured to execute the instructions to achieve the following step:
  • the target client In response to detecting that the target client displays a preset page, acquiring first configuration information of at least one target video associated with the preset page and local cache information of the target client, wherein the first configuration information includes The identification information of the target video, and the local cache information of the target client includes the identification information of the video that has been cached by the target client;
  • the at least one target video is played.
  • a server including: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured to execute the instructions to implement the following steps :
  • the time configuration information is delivered to the at least one target client, and the time configuration information is used to indicate the start time of the at least one target video that the at least one target client has not cached, so that the at least one target client is based on
  • the time configuration information downloads and caches at least one target video that is not completed, and plays the at least one target video in response to a user operation.
  • a storage medium When instructions in the storage medium are executed by a processor of a client, the client can execute the following steps:
  • the target client In response to detecting that the target client displays a preset page, acquiring first configuration information of at least one target video associated with the preset page and local cache information of the target client, wherein the first configuration information includes The identification information of the target video, and the local cache information of the target client includes the identification information of the video that has been cached by the target client;
  • the at least one target video is played.
  • another storage medium is provided.
  • the server can execute the following steps:
  • the time configuration information is delivered to the at least one target client, and the time configuration information is used to indicate the start time of the at least one target video that the at least one target client has not cached, so that the at least one target client is based on
  • the time configuration information downloads and caches at least one target video that is not completed, and plays the at least one target video in response to a user operation.
  • Fig. 1 is a diagram showing an application environment of a video playing method according to an exemplary embodiment.
  • Fig. 2 is a flow chart showing a method for playing a video according to an exemplary embodiment.
  • Fig. 3 is a schematic diagram showing a preset page according to an exemplary embodiment.
  • Fig. 4 is a flow chart showing a method for playing a video according to an exemplary embodiment.
  • Fig. 5 is a block diagram showing a video playing device according to an exemplary embodiment.
  • Fig. 6 is a block diagram showing a video playing device according to an exemplary embodiment.
  • Fig. 7 is a block diagram showing an electronic device according to an exemplary embodiment.
  • the video playback method provided by the present disclosure can be applied to the application environment as shown in FIG. 1.
  • the client 110 interacts with the server 120 through the network.
  • the client 110 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
  • the server 120 may be implemented as an independent server or a server cluster composed of multiple servers.
  • the target client 110 in response to detecting that the target client displays a preset page, obtains first configuration information of at least one target video associated with the preset page and the local cache information of the target client from the server 120, where the first The configuration information includes the identification information of the target video, and the local cache information of the target client includes the identification information of the video that the target client has cached.
  • the video cache status of the target client is determined according to the first configuration information and the local cache information, and the video cache status is used to indicate The target client's cache progress of at least one target video, the target client 110 downloads at least one target video whose cache is not completed according to the video cache status; and in response to a user operation, plays the at least one target video.
  • Fig. 2 is a flow chart showing a method for playing a video according to an exemplary embodiment. As shown in Fig. 2, the method for playing a video is applied to the client 110 in Fig. 1 and includes the following steps:
  • step S21 in response to detecting that the target client displays a preset page, first configuration information of at least one target video associated with the preset page and local cache information of the target client are acquired, wherein the The first configuration information includes identification information of the target video, and the local cache information of the target client includes identification information of a video that has been cached by the target client.
  • the interface of the target client may include several video information components.
  • the video information component is an interface component that displays video (including the video under the preset page and the video under the non-preset page) related information.
  • the displayed content includes one or more video-related information, such as video-related text, hyperlinks, pictures, overview videos, buttons, icons, etc.
  • video-related information such as video-related text, hyperlinks, pictures, overview videos, buttons, icons, etc.
  • the "XXX1", "XXX2", and "XXX3" shown in the block diagram in Figure 3 are all video information components.
  • the first configuration information is pre-stored in the server, and the first configuration information acquired by each client (including the target client) is the same.
  • the first configuration information includes the identification information of the target video, and the identification information of the target video Including the video duration and video name of the target video.
  • the local cache information includes the video name and video duration that have been cached locally, where the video name in the local cache information may be the same as or different from the video name in the first configuration information.
  • step S22 the video caching state of the target client is determined according to the first configuration information and the local caching information, and the video caching state is used to indicate the caching of the at least one target video by the target client schedule.
  • the first configuration information can be matched with the local cache information.
  • matching the first configuration information with the local cache information may include: Match the video name in the local cache information with the video name in the local cache information. If the matching video name A is stored, it means that the target client pre-caches the video of the video name A under the preset page to the local. At this time, you can also compare the first video name. The video duration of the video of video name A in the configuration information and the video duration of the video of video name A in the local cache information are used to determine the local cached capacity of the video of video name A (that is, whether the video has been fully cached or Partial cache).
  • the first configuration information includes the video name A and the corresponding duration of 2 minutes.
  • the local cache information includes the video name A and the corresponding duration of 1 minute. After the first configuration information and the local cache information are matched, it is determined The video cache status of the video with video name A under the preset page is partially cached.
  • step S23 at least one target video whose caching is not completed is downloaded according to the video caching state.
  • the target client may continue to download at least one unfinished target video in the case of determining the video cache state.
  • step S24 in response to a user operation, at least one target video is played.
  • a user operation is a user-triggered operation, and the user operation is used to play a target video.
  • the user operation may be a user-triggered click operation, sliding operation, selection operation, etc.
  • the target client when it detects a user operation, it can play at least one target video that has been downloaded and cached in response to the user operation.
  • the first configuration information of at least one target video associated with the preset page and the local cache information of the target client are acquired, wherein the first configuration information includes the target The identification information of the video.
  • the local cache information of the target client includes the identification information of the video that the target client has cached.
  • the video caching state of the target client is determined according to the first configuration information and the local caching information. The video caching state is used to indicate that the target client is The cache progress of at least one target video, the target client downloads at least one target video that has not been cached according to the video cache status, and plays at least one target video in response to a user operation, thereby realizing pre-caching of the video.
  • the above solution can A large number of clients are flooded into the network video on demand in an instant, the cached videos do not need to be cached from the server, and the local video is played directly, reducing network pressure and reducing the probability of stuttering in the video playback process, so that the client can Watch online videos smoothly and clearly.
  • detecting that the target client terminal displays a preset page in step S21 may include:
  • the target client terminal displays the preset page within at least one first time period.
  • the first time period may be a preset specific period, for example, the first time period may be a specific period such as a festival or a holiday.
  • the preset page may be a page made for the video played at a specific time.
  • the first time period may be a legal holiday, such as New Year's Day, and the preset page may be a page made for a video played on New Year's Day.
  • the number of at least one may be one or more than one.
  • step S21 it can be detected whether the target client displays the preset page in at least one first time period, and when it is detected that the target client displays the preset page in at least one first time period, step S21 may be executed. And the next steps.
  • step S23 before the target client downloads at least one target video whose cache is not completed according to the video cache state, it also needs to determine the target download bit rate.
  • determining the target download rate may include: determining the target download rate of the target client according to network state information, and the network state information includes the network state information of the target client and the network of the server.
  • Status information; step S23 may include: the target client downloads at least one target video whose cache is not completed at the target download bit rate according to the video cache status.
  • the network status information of the target client can be the network bandwidth of the target client.
  • the server will determine the server's network status information (ie network status) in real time or regularly based on the server's real-time bandwidth, the number of online users, and the number of new users, so as to determine the real-time Bit rate.
  • the real-time bit rate is the highest bit rate for video download and playback determined according to the network conditions.
  • the client will periodically obtain the real-time code rate of the server from the server, and determine the target download code rate according to the network bandwidth of the target client and the real-time code rate of the server.
  • determining the target download rate of the target client according to the network status information may include:
  • the real-time bit rate or the bit rate of the cached video is determined Download code rate for the target;
  • determining a bit rate less than the real-time bit rate as the target download bit rate of the target client In response to the network bandwidth of the target client being less than the first preset threshold, determining a bit rate less than the real-time bit rate as the target download bit rate of the target client.
  • the network bandwidth of the target client when the network bandwidth of the target client is greater than or equal to the first preset threshold, and the real-time bit rate is greater than or equal to the bit rate of the cached video, it means that the network bandwidth of the client and the server is not available.
  • the real-time bit rate can be determined as the target download bit rate; the network bandwidth of the target client is less than the first preset threshold In this case, it means that the client’s network bandwidth is under pressure.
  • a bit rate that is less than the real-time bit rate can be determined as the target download bit rate.
  • the bit rate usually includes 480P, 720P, 1024P, and 1080P. In the case of 720P, the bit rate lower than the real-time bit rate can be 480P.
  • the method may further include:
  • Receive time configuration information sent by the server where the time configuration information is used to indicate the start time of at least one target video whose download and caching is not completed by the target client.
  • the target client when it is monitored that the target client opens the application APP and enters the application program interface, the target client will periodically obtain time configuration information from the server.
  • the time configuration information may include the start time or may be empty. If the target client obtains the time configuration information including the start time, it can cache at least one target video that has not been cached according to the time configuration information.
  • the video playback method may further include: in response to detecting that the target client caches at least one target video associated with the active page at a time before the first time period, determining all The download bit rate of the target video is the highest bit rate supported by the client, so that the target client caches the target video at the highest bit rate supported by the target client.
  • the first time period is a preset specific period (for example, it may be a period such as a festival), and the preset page is a page made for a video played in a specific period.
  • the time period before the first time period is an inactive period.
  • the server will not flood a large number of clients instantaneously during the inactive period, so there is no network pressure, and it can be downloaded instantly at the highest bit rate supported by the target client.
  • the event videos related to the event page may have been determined. Before the event starts, when the user opens the APP, the user can be prompted to cache the videos related to the event. After the user agrees, some videos can be cached before the event starts.
  • Related event videos for playing at the beginning of the event to improve the smoothness of the video playback at the beginning of the event.
  • Fig. 4 is a flow chart showing a method for playing a video according to an exemplary embodiment. As shown in Fig. 2, the method for playing a video is applied to the server 120 in Fig. 1 and includes the following steps:
  • step S41 at least one client is grouped according to the client information of the at least one client and the network state information of the server, and at least one target client is determined.
  • step S42 time configuration information is issued to the at least one target client, and the time configuration information is used to indicate the start time of the at least one target video that has not been cached by the at least one target client, so that the at least A target client downloads at least one target video whose cache is not completed according to the time configuration information, and plays the at least one target video in response to a user operation.
  • a user operation is a user-triggered operation, and the user operation is used to play a target video.
  • the user operation may be a user-triggered click operation, sliding operation, selection operation, etc.
  • the target client when it is monitored that the target client opens the application APP and enters the application program interface, the target client will periodically pull time configuration information from the server, and the server will also obtain at least the pull time configuration information.
  • the client information of a client and the network status information of the server ie, real-time bandwidth
  • the client information includes geographic location information of the client (for example, the province where the user is located) and network attributes (for example, the operator network to which the user belongs).
  • each client can be grouped for the first time, for example, divided into three groups, the first group-the client of the operator A in city A, and the second group-the operator of the operator B in city A Clients and the third group-B city A operator's client, further, according to the number of clients in each group and the real-time bandwidth of the server, the clients in the group are divided again to obtain the target client group.
  • the real-time bandwidth of the server is less than the preset threshold (the real-time bandwidth is less than the preset threshold means the bandwidth pressure is low)
  • the first group can be grouped into a group regardless of the number of clients in the first group.
  • the real-time bandwidth of the server is greater than the preset threshold (real-time bandwidth greater than the preset threshold indicates that the server has a high bandwidth pressure), regardless of the number of clients in the first group, it may be necessary to group the first group into two groups evenly Or three groups, etc., so that the client can download at least one target video that has not been cached according to the time configuration information.
  • the client terminal detects a user operation, it can play at least one target video that has been downloaded and cached in response to the user operation.
  • Fig. 5 is a block diagram showing a video playing device according to an exemplary embodiment.
  • the device may include an acquiring unit 51, a first determining unit 52, a downloading unit 53, and a playing unit 54.
  • the obtaining unit 51 is configured to perform, in response to detecting that the target client displays a preset page, obtain first configuration information of at least one target video associated with the preset page and local cache information of the target client, where The first configuration information includes the identification information of the target video, and the local cache information of the target client includes the identification information of the video that has been cached by the target client.
  • the first determining unit 52 is configured to perform determining the video caching state of the target client according to the first configuration information and the local caching information, where the video caching state is used to indicate that the target client is The cache progress of a target video.
  • the downloading unit 53 is configured to download at least one target video whose caching is not completed according to the video caching state.
  • the playing unit 54 is configured to perform, in response to a user operation, playing the at least one target video.
  • the acquiring unit 51 may be further configured to execute:
  • the target client terminal displays the preset page in at least one first time period.
  • the first determining unit 52 may also be configured to execute:
  • the target download rate of the target client is determined according to the network status information, and the network status information includes the network status information of the target client and the network status information of the server.
  • the download unit 53 may be specifically configured to execute:
  • the download unit 53 may also be configured to execute:
  • Receive time configuration information sent by the server where the time configuration information is used to indicate the start time of at least one target video whose download and caching is not completed by the target client.
  • the video playback device may further include:
  • the second determining unit is configured to perform, in response to detecting that the target client caches at least one target video associated with the active page at a time before the first time period, determining the download bit rate of the target video The highest bit rate supported by the client, so that the target client caches the target video at the highest bit rate supported by the target client.
  • the network status information of the target client includes network bandwidth
  • the network status information of the server corresponds to a real-time bit rate
  • the download unit 53 may also be configured to execute:
  • the real-time bit rate or the bit rate of the cached video is determined Download code rate for the target;
  • determining a bit rate less than the real-time bit rate as the target download bit rate of the target client In response to the network bandwidth of the target client being less than the first preset threshold, determining a bit rate less than the real-time bit rate as the target download bit rate of the target client.
  • Fig. 6 is a block diagram showing a video playing device according to an exemplary embodiment.
  • the device may include a grouping unit 61 and a sending unit 62.
  • the grouping unit 61 is configured to perform grouping of at least one client according to the client information of the at least one client and the network state information of the server to determine at least one target client.
  • the sending unit 62 is configured to issue time configuration information to the at least one target client, where the time configuration information is used to indicate the start time of the at least one target video that has not been cached by the at least one target client, so that The at least one target client downloads at least one target video whose cache is not completed according to the time configuration information, and plays the at least one target video in response to a user operation.
  • Fig. 7 is a block diagram showing an electronic device Z00 according to an exemplary embodiment.
  • the electronic device Z00 may be the client or server in the foregoing embodiment.
  • the electronic device Z00 may be a server, a mobile phone, a computer, a digital broadcast client, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
  • the electronic device Z00 may include one or more of the following components: a processing component Z02, a memory Z04, a power component Z06, a multimedia component Z08, an audio component Z10, an input/output (I/O) interface Z12, and a sensor component Z14 And communication component Z16.
  • the processing component Z02 generally controls the overall operations of the electronic device Z00, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • the processing component Z02 may include one or more processors Z20 to execute instructions to complete all or part of the steps of the foregoing method.
  • the processing component Z02 may include one or more modules to facilitate the interaction between the processing component Z02 and other components.
  • the processing component Z02 may include a multimedia module to facilitate the interaction between the multimedia component Z08 and the processing component Z02.
  • the memory Z04 is configured to store various types of data to support operations in the electronic device Z00. Examples of these data include instructions for any application or method operating on the electronic device Z00, contact data, phone book data, messages, pictures, videos, etc.
  • the memory Z04 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read-only memory
  • EPROM erasable Programmable read only memory
  • PROM programmable read only memory
  • ROM read only memory
  • magnetic memory flash memory
  • flash memory magnetic or optical disk.
  • the power supply component Z06 provides power for various components of the electronic device Z00.
  • the power supply component Z06 may include a power management system, one or more power supplies, and other components associated with the generation, management, and distribution of power for the electronic device Z00.
  • the multimedia component Z08 includes a screen that provides an output interface between the electronic device Z00 and the user.
  • the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touch, sliding, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure related to the touch or slide operation.
  • the multimedia component Z08 includes a front camera and/or a rear camera. When the electronic device Z00 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component Z10 is configured to output and/or input audio signals.
  • the audio component Z10 includes a microphone (MIC), and when the electronic device Z00 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive external audio signals.
  • the received audio signal can be further stored in the memory Z04 or sent via the communication component Z16.
  • the audio component Z10 further includes a speaker for outputting audio signals.
  • the I/O interface Z12 provides an interface between the processing component Z02 and the peripheral interface module.
  • the above-mentioned peripheral interface module may be a keyboard, a click wheel, a button, and so on. These buttons may include, but are not limited to: home button, volume button, start button, and lock button.
  • the sensor assembly Z14 includes one or more sensors, which are used to provide various aspects of the state evaluation for the electronic device Z00.
  • the sensor component Z14 can detect the on/off status of the electronic device Z00 and the relative positioning of the components.
  • the component is the display and keypad of the electronic device Z00, and the sensor component Z14 can also detect the electronic device Z00 or the electronic device Z00.
  • the position of the component changes, the presence or absence of contact between the user and the electronic device Z00, the orientation or acceleration/deceleration of the electronic device Z00, and the temperature change of the electronic device Z00.
  • the sensor assembly Z14 may include a proximity sensor configured to detect the presence of nearby objects when there is no physical contact.
  • the sensor component Z14 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor component Z14 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • the communication component Z16 is configured to facilitate wired or wireless communication between the electronic device Z00 and other devices.
  • the electronic device Z00 can access a wireless network based on a communication standard, such as WiFi, an operator network (such as 2G, 3G, 4G, or 5G), or a combination thereof.
  • the communication component Z16 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel.
  • the communication component Z16 further includes a near field communication (NFC) module to facilitate short-range communication.
  • the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • the electronic device Z00 may be used by one or more application-specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field A programmable gate array (FPGA), controller, microcontroller, microprocessor, or other electronic components are implemented to implement the above methods.
  • ASIC application-specific integrated circuits
  • DSP digital signal processors
  • DSPD digital signal processing devices
  • PLD programmable logic devices
  • FPGA field A programmable gate array
  • controller microcontroller, microprocessor, or other electronic components are implemented to implement the above methods.
  • Some embodiments of the present disclosure provide an electronic device including: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured to execute the instructions to implement the following steps:
  • the target client In response to detecting that the target client displays a preset page, acquiring first configuration information of at least one target video associated with the preset page and local cache information of the target client, wherein the first configuration information includes The identification information of the target video, and the local cache information of the target client includes the identification information of the video that has been cached by the target client;
  • the at least one target video is played.
  • the target client terminal displays the preset page in at least one first time period.
  • the target download rate of the target client according to the network status information, where the network status information includes the network status information of the target client and the network status information of the server;
  • the downloading at least one target video whose cache is not completed according to the video cache state includes:
  • Receive time configuration information sent by the server where the time configuration information is used to indicate the start time of at least one target video whose download and caching is not completed by the target client.
  • the target client In response to detecting that the target client caches at least one target video associated with the active page at a time before the first time period, it is determined that the download bit rate of the target video is the highest bit rate supported by the client , So that the target client caches the target video at the highest bit rate supported by the target client.
  • the network status information of the target client includes network bandwidth, and the network status information of the server corresponds to a real-time bit rate;
  • the real-time bit rate or the bit rate of the cached video is determined Download code rate for the target;
  • determining a bit rate less than the real-time bit rate as the target download bit rate of the target client In response to the network bandwidth of the target client being less than the first preset threshold, determining a bit rate less than the real-time bit rate as the target download bit rate of the target client.
  • Some embodiments of the present disclosure provide an electronic device including: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured to execute the instructions to implement the following steps:
  • the time configuration information is delivered to the at least one target client, and the time configuration information is used to indicate the start time of the at least one target video that the at least one target client has not cached, so that the at least one target client is based on
  • the time configuration information downloads and caches at least one target video that is not completed, and plays the at least one target video in response to a user operation.
  • a storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the following steps are implemented when the electronic device can be executed:
  • the target client In response to detecting that the target client displays a preset page, acquiring first configuration information of at least one target video associated with the preset page and local cache information of the target client, wherein the first configuration information includes The identification information of the target video, and the local cache information of the target client includes the identification information of the video that has been cached by the target client;
  • the at least one target video is played.
  • a storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the following steps are implemented when the electronic device can be executed:
  • the target client terminal displays the preset page in at least one first time period.
  • the target download rate of the target client according to the network status information, where the network status information includes the network status information of the target client and the network status information of the server;
  • the downloading at least one target video whose cache is not completed according to the video cache state includes:
  • Receive time configuration information sent by the server where the time configuration information is used to indicate the start time of at least one target video whose download and caching is not completed by the target client.
  • the target client In response to detecting that the target client caches at least one target video associated with the active page at a time before the first time period, it is determined that the download bit rate of the target video is the highest bit rate supported by the client , So that the target client caches the target video at the highest bit rate supported by the target client.
  • the network status information of the target client includes network bandwidth, and the network status information of the server corresponds to a real-time bit rate;
  • the real-time bit rate or the bit rate of the cached video is determined Download code rate for the target;
  • determining a bit rate less than the real-time bit rate as the target download bit rate of the target client In response to the network bandwidth of the target client being less than the first preset threshold, determining a bit rate less than the real-time bit rate as the target download bit rate of the target client.
  • a storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the following steps are implemented when the electronic device can be executed:
  • the time configuration information is delivered to the at least one target client, and the time configuration information is used to indicate the start time of the at least one target video that the at least one target client has not cached, so that the at least one target client is based on
  • the time configuration information downloads and caches at least one target video that is not completed, and plays the at least one target video in response to a user operation.
  • Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Graphics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本公开关于一种视频播放方法及装置。该方法包括:响应于检测到目标客户端显示预设页面,获取与预设页面相关联的至少一个目标视频的第一配置信息和目标客户端的本地缓存信息,其中,第一配置信息包括目标视频的标识信息,目标客户端的本地缓存信息包括目标客户端已缓存的视频的标识信息,根据第一配置信息和本地缓存信息确定目标客户端的视频缓存状态,视频缓存状态用于表示目标客户端对至少一个目标视频的缓存进度,根据视频缓存状态下载缓存未完成的至少一个目标视频,响应于用户操作,播放至少一个目标视频,由此,实现了对视频的预缓存,降低视频播放过程中的卡顿的概率,使得客户端可以流畅清晰的观看网络视频。

Description

视频播放方法及装置
相关申请的交叉引用
本公开要求北京达佳互联信息技术有限公司于2020年01月17日提交的、申请名称为“视频播放方法、装置、电子设备及存储介质”的、中国专利申请号“202010055828.2”的优先权。
技术领域
本公开涉及音视频技术领域,尤其涉及视频播放方法及装置。
背景技术
目前,随着宽带网络的发展,网络视频点播已经成为一种潮流趋势,其能够接入网络为用户提供更加丰富的播放体验。但如果瞬时涌入大量客户端进行网络视频点播,会对网络带宽造成压力,会造成网络视频的卡顿,使得客户端无法流畅清晰的观看网络视频。
发明内容
本公开提供一种视频播放方法及装置。本公开的技术方案如下:
根据本公开的一些实施例,提供了一种视频播放方法,包括:
响应于检测到目标客户端显示预设页面,获取与所述预设页面相关联的至少一个目标视频的第一配置信息和所述目标客户端的本地缓存信息,其中,所述第一配置信息包括所述目标视频的标识信息,所述目标客户端的本地缓存信息包括所述目标客户端已缓存的视频的标识信息;
根据所述第一配置信息和所述本地缓存信息确定所述目标客户端的视频缓存状态,所述视频缓存状态用于表示所述目标客户端对所述至少一个目标视频的缓存进度;
根据所述视频缓存状态下载缓存未完成的至少一个目标视频;
响应于用户操作,播放所述至少一个目标视频。
根据本公开的一些实施例,提供了另一种视频播放方法,包括:
根据至少一个客户端的客户端信息和服务器的网络状态信息,对至少一个客户端进行分组,确定出至少一个目标客户端;
对所述至少一个目标客户端下发时间配置信息,所述时间配置信息用于指示所述至少一个目标客户端缓存未完成的至少一个目标视频的开始时间,使得所述至少一个目标客户端根据时间配置信息下载缓存未完成的至少一个目标视频,响应于用户操作,播放所述至少一个目标视频。
根据本公开的一些实施例,提供了一种视频播放装置,包括:
获取单元,被配置为执行响应于检测到目标客户端显示预设页面,获取与所述预设页面相关联的至少一个目标视频的第一配置信息和所述目标客户端的本地缓存信息,其中,所述第一配置信息包括所述目标视频的标识信息,所述目标客户端的本地缓存信息包括所述目标客户端已缓存的视频的标识信息;
第一确定单元,被配置为执行根据所述第一配置信息和所述本地缓存信息确定所述目标客户端的视频缓存状态,所述视频缓存状态用于表示所述目标客户端对所述至少一个目标视频的缓存进度;
下载单元,被配置为执行根据所述视频缓存状态下载缓存未完成的至少一个目标视频;
播放单元,被配置为执行响应于用户操作,播放所述至少一个目标视频。
根据本公开的一些实施例,提供了另一种视频播放装置,包括:
分组单元,被配置为执行根据至少一个客户端的客户端信息和服务器的网络状态信息,对至少一个客户端进行分组,确定出至少一个目标客户端;
发送单元,被配置为执行对所述至少一个目标客户端下发时间配置信息,所述时间配置信息用于指示所述至少一个目标客户端缓存未完成的至少一个目标视频的开始时间,使得所述至少一个目标客户端根据时间配置信息下载缓存未完成的至少一个目标视频,响应于用户操作,播放所述至少一个目标视频。
根据本公开的一些实施例,提供了一种客户端,包括:处理器;用于存储所述处理器可执行指令的存储器;其中,所述处理器被配置为执行所述指令,以实现以下步骤:
响应于检测到目标客户端显示预设页面,获取与所述预设页面相关联的至少一个目标视频的第一配置信息和所述目标客户端的本地缓存信息,其中,所述第一配置信息包括所述目标视频的标识信息,所述目标客户端的本地缓存信息包括所述目标客户端已缓存的视频的标识信息;
根据所述第一配置信息和所述本地缓存信息确定所述目标客户端的视频缓存状态,所述视频缓存状态用于表示所述目标客户端对所述至少一个目标视频的缓存进度;
根据所述视频缓存状态下载缓存未完成的至少一个目标视频;
响应于用户操作,播放所述至少一个目标视频。
根据本公开的一些实施例,提供了一种服务器,包括:处理器;用于存储所述处理器 可执行指令的存储器;其中,所述处理器被配置为执行所述指令,以实现以下步骤:
根据至少一个客户端的客户端信息和服务器的网络状态信息,对至少一个客户端进行分组,确定出至少一个目标客户端;
对所述至少一个目标客户端下发时间配置信息,所述时间配置信息用于指示所述至少一个目标客户端缓存未完成的至少一个目标视频的开始时间,使得所述至少一个目标客户端根据时间配置信息下载缓存未完成的至少一个目标视频,响应于用户操作,播放所述至少一个目标视频。
根据本公开的一些实施例,提供了一种存储介质,当所述存储介质中的指令由客户端的处理器执行时,使得客户端能够执行以下步骤:
响应于检测到目标客户端显示预设页面,获取与所述预设页面相关联的至少一个目标视频的第一配置信息和所述目标客户端的本地缓存信息,其中,所述第一配置信息包括所述目标视频的标识信息,所述目标客户端的本地缓存信息包括所述目标客户端已缓存的视频的标识信息;
根据所述第一配置信息和所述本地缓存信息确定所述目标客户端的视频缓存状态,所述视频缓存状态用于表示所述目标客户端对所述至少一个目标视频的缓存进度;
根据所述视频缓存状态下载缓存未完成的至少一个目标视频;
响应于用户操作,播放所述至少一个目标视频。
根据本公开的一些实施例,提供了另一种存储介质,当所述存储介质中的指令由服务器的处理器执行时,使得服务器能够执行以下步骤:
根据至少一个客户端的客户端信息和服务器的网络状态信息,对至少一个客户端进行分组,确定出至少一个目标客户端;
对所述至少一个目标客户端下发时间配置信息,所述时间配置信息用于指示所述至少一个目标客户端缓存未完成的至少一个目标视频的开始时间,使得所述至少一个目标客户端根据时间配置信息下载缓存未完成的至少一个目标视频,响应于用户操作,播放所述至少一个目标视频。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理,并不构成对本公开的不当限定。
图1是根据一示例性实施例示出的一种视频播放方法的应用环境图。
图2是根据一示例性实施例示出的一种视频播放方法的流程图。
图3是根据一示例性实施例示出的预设页面的示意图。
图4是根据一示例性实施例示出的一种视频播放方法的流程图。
图5是根据一示例性实施例示出的一种视频播放装置框图。
图6是根据一示例性实施例示出的一种视频播放装置框图。
图7是根据一示例性实施例示出的一种电子设备的框图。
具体实施方式
为了使本领域普通人员更好地理解本公开的技术方案,下面将结合附图,对本公开实施例中的技术方案进行清楚、完整地描述。
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。需要说明的是,本公开的所有实施例均可以单独被执行,也可以与其他实施例相结合共同被执行,本公开对此不做限制。
本公开所提供的视频播放方法,可以应用于如图1所示的应用环境中。其中,客户端110通过网络与服务器120进行交互。其中,客户端110可以是但不限于各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备,服务器120可以用独立的服务器或者是多个服务器组成的服务器集群来实现。
其中,目标客户端110响应于检测到目标客户端显示预设页面,从服务器120获取与预设页面相关联的至少一个目标视频的第一配置信息和目标客户端的本地缓存信息,其中,第一配置信息包括目标视频的标识信息,目标客户端的本地缓存信息包括目标客户端已缓存的视频的标识信息,根据第一配置信息和本地缓存信息确定目标客户端的视频缓存状态,视频缓存状态用于表示目标客户端对至少一个目标视频的缓存进度,目标客户端110根据所述视频缓存状态下载缓存未完成的至少一个目标视频;响应于用户操作,播放至少一个目标视频。
图2是根据一示例性实施例示出的一种视频播放方法的流程图,如图2所示,视频播放方法应用于图1的客户端110中,包括以下步骤:
在步骤S21中,响应于检测到目标客户端显示预设页面,获取与所述预设页面相关联的至少一个目标视频的第一配置信息和所述目标客户端的本地缓存信息,其中,所述第一 配置信息包括所述目标视频的标识信息,所述目标客户端的本地缓存信息包括所述目标客户端已缓存的视频的标识信息。
在本公开实施例中,目标客户端的界面上可以包括若干视频信息组件,视频信息组件是展示视频(包括预设页面下的视频和非预设页面下的视频)相关信息的界面组件,该组件展示的内容包括一个或多个与视频相关的信息,比如,视频相关的文字、超链接、图片、概览小视频、按钮、图标等。为了便于理解,此处举例说明,如图3方框图中所示的“XXX1”、“XXX2”、“XXX3”等均为视频信息组件,当用户点击某目标视频信息组件的情况下,目标客户端响应于点击操作,进入预设页面,并获取预设页面相关联的至少一个目标视频的第一配置信息和目标客户端的本地缓存信息。
其中,第一配置信息预先存储于服务器中,每个客户端(包括目标客户端)获取到的第一配置信息都是相同的,第一配置信息包括目标视频的标识信息,目标视频的标识信息包括目标视频的视频时长和视频名称。本地缓存信息包括已缓存于本地的视频名称和视频时长,其中,本地缓存信息中的视频名称可能和第一配置信息中的视频名称相同,也可能不同。
在步骤S22中,根据所述第一配置信息和所述本地缓存信息确定所述目标客户端的视频缓存状态,所述视频缓存状态用于表示所述目标客户端对所述至少一个目标视频的缓存进度。
在本公开实施例中,可以将第一配置信息和本地缓存信息进行匹配,在本公开的一些实施例中,将第一配置信息和本地缓存信息进行匹配,可以包括:将第一配置信息中的视频名称和本地缓存信息中的视频名称进行匹配,若存储匹配的视频名称A,则表示目标客户端预先将预设页面下的视频名称A的视频缓存到本地,此时,还可以比较第一配置信息中的视频名称A的视频的视频时长和本地缓存信息中的视频名称A的视频的视频时长,从而确定本地对视频名称A的视频的已缓存容量(即该视频是否已全部缓存或部分缓存)。
为了便于理解,此处举例说明,第一配置信息包括视频名称A和对应时长2分钟,本地缓存信息包括视频名称A和对应时长1分钟,则经过第一配置信息和本地缓存信息的匹配,确定预设页面下的视频名称A的视频的视频缓存状态为部分缓存。
在步骤S23中,根据所述视频缓存状态下载缓存未完成的至少一个目标视频。
在本公开实施例中,目标客户端在确定视频缓存状态的情况下,可继续下载未完成的至少一个目标视频。
在步骤S24中,响应于用户操作,播放至少一个目标视频。
在本公开实施例中,用户操作为用户触发的操作,该用户操作用于播放目标视频,比如,该用户操作可以为用户触发的点击操作、滑动操作、选取操作等。
在本公开实施例中,当目标客户端监测到用户操作时,可以响应于用户操作,播放上述已下载缓存的至少一个目标视频。
作为一种应用场景,在某一活动期间,可能发生在瞬时涌入大量客户端进行网络视频点播的情况,因此,为了减少网络压力,降低视频播放过程中的卡顿的概率,使得客户端可以流畅清晰的观看网络视频,可以在活动开始之前,预先缓存一些相关的活动视频,从而在活动开始时,用户可以通过点击并播放已缓存的活动视频,提高活动开始时视频播放的流畅性。
上述视频播放方法,响应于检测到目标客户端显示预设页面,获取与预设页面相关联的至少一个目标视频的第一配置信息和目标客户端的本地缓存信息,其中,第一配置信息包括目标视频的标识信息,目标客户端的本地缓存信息包括目标客户端已缓存的视频的标识信息,根据第一配置信息和本地缓存信息确定目标客户端的视频缓存状态,视频缓存状态用于表示目标客户端对至少一个目标视频的缓存进度,目标客户端根据视频缓存状态下载缓存未完成的至少一个目标视频,响应于用户操作,播放至少一个目标视频,由此,实现了对视频的预缓存,上述方案可以在瞬时涌入大量客户端进行网络视频点播,对已缓存的视频不需要再从服务器进行视频缓存,直接播放本地视频,减少网络压力,降低视频播放过程中的卡顿的概率,使得客户端可以流畅清晰的观看网络视频。
在本公开的一些实施例中,步骤S21中的检测到目标客户端显示预设页面,可以包括:
检测到目标客户端在至少一个第一时间段内显示预设页面。
在本公开的一些实施例中,第一时间段可以为预设的特定时期,例如,第一时间段可以为节日、假日等特定时期。预设页面可以是为特定时期时播放的视频所制作的页面。举例而言,第一时间段可以为法定节假日,比如元旦,预设页面可以是为元旦时播放的视频所制作的页面。
其中,至少一个的个数可以为一个,或者也可以为多个。
在本公开实施例中,可以检测目标客户端是否在至少一个第一时间段内显示预设页面,当检测到目标客户端在至少一个第一时间段内显示预设页面时,可以执行步骤S21以及后续步骤。
作为一种示例,如图3所示,点击“XXX1”、“XXX2”会进入预设页面,点击“XXX3”不会进入预设页面。
在本公开的一些实施例中,步骤S23中目标客户端根据所述视频缓存状态下载缓存未完成的至少一个目标视频之前,还需要确定目标下载码率。在本公开的一些实施例中,确定目标下载码率可以包括:根据网络状态信息确定所述目标客户端的目标下载码率,所述网络状态信息包括所述目标客户端的网络状态信息和服务器的网络状态信息;步骤S23可 以包括:所述目标客户端根据所述视频缓存状态以所述目标下载码率下载缓存未完成的至少一个目标视频。
其中,目标客户端的网络状态信息可以为目标客户端的网络带宽,服务器会实时或定时根据服务器实时带宽、在线用户数、新增用户数确定服务器的网络状态信息(即网络状况),从而确定出实时码率。实时码率是根据网络状况确定的视频下载播放的最高码率。客户端会定时从服务器获取服务器的实时码率,根据目标客户端的网络带宽和服务器的实时码率,确定目标下载码率。
在本公开的一些实施例中,根据网络状态信息确定目标客户端的目标下载码率,可以包括:
响应于所述目标客户端的网络带宽大于或等于第一预设阈值,且所述实时码率大于或等于已缓存视频的码率,将所述实时码率或所述已缓存视频的码率确定为所述目标下载码率;
响应于所述目标客户端的网络带宽大于或等于第一预设阈值,且所述实时码率小于所述已缓存视频的码率,将所述实时码率确定为所述目标客户端的目标下载码率;
响应于所述目标客户端的网络带宽小于所述第一预设阈值,将小于所述实时码率的码率确定为所述目标客户端的目标下载码率。
在本公开实施例中,在目标客户端的网络带宽大于或等于第一预设阈值,且实时码率大于或等于已缓存视频的码率的情况下,则表示客户端和服务器的网络带宽都无压力,可以将已缓存视频的码率确定为目标下载码率,按照已缓存视频的码率继续下载视频,或者,可以将实时码率确定为目标下载码率,重新下载更高清的视频;在目标客户端的网络带宽大于或等于第一预设阈值,但实时码率小于已缓存视频的码率的情况下,则表示客户端网络带宽无压力,服务器带宽可能有压力,此时,无法按照之前较高的已缓存视频的码率继续缓存视频,需要按照实时码率从服务器缓存该视频,则可以将实时码率确定为目标下载码率;在目标客户端的网络带宽小于第一预设阈值的情况下,则表示客户端的网络带宽有压力,可以将小于实时码率的码率确定为目标下载码率,其中,根据实际情况,码率通常包括480P、720P、1024P、1080P,在实时码率为720P的情况下,则小于实时码率的码率可以为480P。
在本公开的一些实施例中,在所述目标客户端根据所述视频缓存状态下载缓存未完成的至少一个目标视频之前,还可以包括:
接收服务器发送的时间配置信息,所述时间配置信息用于指示所述目标客户端下载缓存未完成的至少一个目标视频的开始时间。
在本公开实施例中,当监测到目标客户端打开应用程序APP,进入应用程序界面时, 目标客户端就会定时从服务器获取时间配置信息,该时间配置信息可能包括开始时间也可能为空,目标客户端若获取到包括开始时间的时间配置信息,可以根据时间配置信息对缓存未完成的至少一个目标视频进行缓存。
在本公开的一些实施例中,该视频播放方法还可以包括:响应于检测到目标客户端在所述第一时间段之前的时刻缓存与所述活动页面相关联的至少一个目标视频,确定所述目标视频的下载码率为所述客户端支持的最高码率,以使得所述目标客户端以其支持的最高码率缓存所述目标视频。
其中,第一时间段为预设的特定时期(例如,可以为节日等时期),预设页面是为特定时期时播放的视频所制作的页面。第一时间段之前的时间段为非活动时段,非活动时段通常情况下服务器不会瞬时涌入大量客户端,则没有网络压力,可以按照目标客户端支持的最高码率即时下载。例如在活动开始之前,与活动页面相关的活动视频可能是已经确定的,在活动开始之前,用户打开APP时,可以提示用户缓存与活动相关的视频,经过用户同意后可以在活动开始之前缓存一些相关的活动视频,以供活动开始时播放使用,以提高活动开始时视频播放的流畅性。
图4是根据一示例性实施例示出的一种视频播放方法的流程图,如图2所示,视频播放方法应用于图1的服务器120中,包括以下步骤:
在步骤S41中,根据至少一个客户端的客户端信息和服务器的网络状态信息,对至少一个客户端进行分组,确定出至少一个目标客户端。
在步骤S42中,对所述至少一个目标客户端下发时间配置信息,所述时间配置信息用于指示所述至少一个目标客户端缓存未完成的至少一个目标视频的开始时间,使得所述至少一个目标客户端根据时间配置信息下载缓存未完成的至少一个目标视频,响应于用户操作,播放至少一个目标视频。
在本公开实施例中,用户操作为用户触发的操作,该用户操作用于播放目标视频,比如,该用户操作可以为用户触发的点击操作、滑动操作、选取操作等。
在本公开实施例中,当监测到目标客户端打开应用程序APP,进入应用程序界面时,目标客户端就会定时从服务器拉取时间配置信息,服务器也会获取到拉取时间配置信息的至少一个客户端的客户端信息和服务器的网络状态信息(即实时带宽),其中,客户端信息包括该客户端的地理位置信息(例如,用户所在省份)和网络属性(例如,用户所属运营商网络)。然后,根据各客户端的客户端信息可以先将各个客户端进行第一次分组,例如,分成三组,第一组-A城市A运营商的客户端、第二组-A城市B运营商的客户端和第三组-B城市A运营商的客户端,进一步地,根据每组的客户端数量和服务器实时带宽,对该组中的客户端再次进行划分,得到目标客户端群体。可选的,当服务器实时带宽小于预设阈 值(实时带宽小于预设阈值表示带宽压力小),则无论第一组中的客户端数量多还是少,都可以将第一组分成一组,当服务器实时带宽大于预设阈值(实时带宽大于预设阈值表示该服务器带宽压力大),则无论第一组中的客户端数量多还是少,都可能需要对第一组进行分组,平均分成两组或者三组等,使得客户端可以根据时间配置信息下载缓存未完成的至少一个目标视频。当客户端监测到用户操作时,可以响应于用户操作,播放上述已下载缓存的至少一个目标视频。
应该理解的是,虽然图2、图4的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2、图4中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。
图5是根据一示例性实施例示出的一种视频播放装置框图。参照图5,该装置可以包括获取单元51、第一确定单元52、下载单元53和播放单元54。
获取单元51,被配置为执行响应于检测到目标客户端显示预设页面,获取与所述预设页面相关联的至少一个目标视频的第一配置信息和所述目标客户端的本地缓存信息,其中,所述第一配置信息包括所述目标视频的标识信息,所述目标客户端的本地缓存信息包括所述目标客户端已缓存的视频的标识信息。
第一确定单元52,被配置为执行根据所述第一配置信息和所述本地缓存信息确定所述目标客户端的视频缓存状态,所述视频缓存状态用于表示所述目标客户端对所述至少一个目标视频的缓存进度。
下载单元53,被配置为执行根据所述视频缓存状态下载缓存未完成的至少一个目标视频。
播放单元54,被配置为执行响应于用户操作,播放所述至少一个目标视频。
在一示例性实施例中,所述获取单元51还可以被配置为执行:
检测到目标客户端在至少一个第一时间段内显示预设页面。
在一示例性实施例中,所述第一确定单元52还可以被配置为执行:
根据网络状态信息确定所述目标客户端的目标下载码率,所述网络状态信息包括所述目标客户端的网络状态信息和服务器的网络状态信息。
在一示例性实施例中,下载单元53具体可以被配置为执行:
根据所述视频缓存状态以所述目标下载码率下载缓存未完成的至少一个目标视频。
在一示例性实施例中,所述下载单元53还可以被配置为执行:
接收服务器发送的时间配置信息,所述时间配置信息用于指示所述目标客户端下载缓存未完成的至少一个目标视频的开始时间。
在一示例性实施例中,所述视频播放装置还可以包括:
第二确定单元,被配置为执行响应于检测到目标客户端在所述第一时间段之前的时刻缓存与所述活动页面相关联的至少一个目标视频,确定所述目标视频的下载码率为所述客户端支持的最高码率,以使得所述目标客户端以其支持的最高码率缓存所述目标视频。
在一示例性实施例中,所述目标客户端的网络状态信息包括网络带宽,所述服务器的网络状态信息对应实时码率。
在一示例性实施例中,所述下载单元53还可以被配置为执行:
响应于所述目标客户端的网络带宽大于或等于第一预设阈值,且所述实时码率大于或等于已缓存视频的码率,将所述实时码率或所述已缓存视频的码率确定为所述目标下载码率;
响应于所述目标客户端的网络带宽大于或等于第一预设阈值,且所述实时码率小于所述已缓存视频的码率,将所述实时码率确定为所述目标客户端的目标下载码率;
响应于所述目标客户端的网络带宽小于所述第一预设阈值,将小于所述实时码率的码率确定为所述目标客户端的目标下载码率。
图6是根据一示例性实施例示出的一种视频播放装置框图。参照图6,该装置可以包括分组单元61和发送单元62。
分组单元61,被配置为执行根据至少一个客户端的客户端信息和服务器的网络状态信息,对至少一个客户端进行分组,确定出至少一个目标客户端。
发送单元62,被配置为执行对所述至少一个目标客户端下发时间配置信息,所述时间配置信息用于指示所述至少一个目标客户端缓存未完成的至少一个目标视频的开始时间,使得所述至少一个目标客户端根据时间配置信息下载缓存未完成的至少一个目标视频,响应于用户操作,播放所述至少一个目标视频。
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
图7是根据一示例性实施例示出的一种电子设备Z00的框图。其中,该电子设备Z00可以为上述实施例中的客户端或服务器。例如,电子设备Z00可以是服务器、移动电话、计算机、数字广播客户端、消息收发设备、游戏控制台、平板设备、医疗设备、健身设备、个人数字助理等。
参照图7,电子设备Z00可以包括以下一个或多个组件:处理组件Z02、存储器Z04、 电力组件Z06、多媒体组件Z08、音频组件Z10、输入/输出(I/O)的接口Z12、传感器组件Z14以及通信组件Z16。
处理组件Z02通常控制电子设备Z00的整体操作,诸如与显示、电话呼叫、数据通信、相机操作和记录操作相关联的操作。处理组件Z02可以包括一个或多个处理器Z20来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件Z02可以包括一个或多个模块,便于处理组件Z02和其他组件之间的交互。例如,处理组件Z02可以包括多媒体模块,以方便多媒体组件Z08和处理组件Z02之间的交互。
存储器Z04被配置为存储各种类型的数据以支持在电子设备Z00的操作。这些数据的示例包括用于在电子设备Z00上操作的任何应用程序或方法的指令、联系人数据、电话簿数据、消息、图片、视频等。存储器Z04可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM)、电可擦除可编程只读存储器(EEPROM)、可擦除可编程只读存储器(EPROM)、可编程只读存储器(PROM)、只读存储器(ROM)、磁存储器、快闪存储器、磁盘或光盘。
电源组件Z06为电子设备Z00的各种组件提供电力。电源组件Z06可以包括电源管理系统,一个或多个电源,及其他与为电子设备Z00生成、管理和分配电力相关联的组件。
多媒体组件Z08包括在所述电子设备Z00和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件Z08包括一个前置摄像头和/或后置摄像头。当电子设备Z00处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件Z10被配置为输出和/或输入音频信号。例如,音频组件Z10包括一个麦克风(MIC),当电子设备Z00处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器Z04或经由通信组件Z16发送。在一些实施例中,音频组件Z10还包括一个扬声器,用于输出音频信号。
I/O接口Z12为处理组件Z02和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。
传感器组件Z14包括一个或多个传感器,用于为电子设备Z00提供各个方面的状态评 估。例如,传感器组件Z14可以检测到电子设备Z00的打开/关闭状态,组件的相对定位,例如所述组件为电子设备Z00的显示器和小键盘,传感器组件Z14还可以检测电子设备Z00或电子设备Z00一个组件的位置改变,用户与电子设备Z00接触的存在或不存在,电子设备Z00方位或加速/减速和电子设备Z00的温度变化。传感器组件Z14可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件Z14还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件Z14还可以包括加速度传感器、陀螺仪传感器、磁传感器、压力传感器或温度传感器。
通信组件Z16被配置为便于电子设备Z00和其他设备之间有线或无线方式的通信。电子设备Z00可以接入基于通信标准的无线网络,如WiFi,运营商网络(如2G、3G、4G或5G),或它们的组合。在一个示例性实施例中,通信组件Z16经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件Z16还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,电子设备Z00可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。
本公开的一些实施例提供了一种电子设备,包括:处理器;用于存储所述处理器可执行指令的存储器;其中,所述处理器被配置为执行所述指令,以实现以下步骤:
响应于检测到目标客户端显示预设页面,获取与所述预设页面相关联的至少一个目标视频的第一配置信息和所述目标客户端的本地缓存信息,其中,所述第一配置信息包括所述目标视频的标识信息,所述目标客户端的本地缓存信息包括所述目标客户端已缓存的视频的标识信息;
根据所述第一配置信息和所述本地缓存信息确定所述目标客户端的视频缓存状态,所述视频缓存状态用于表示所述目标客户端对所述至少一个目标视频的缓存进度;
根据所述视频缓存状态下载缓存未完成的至少一个目标视频;
响应于用户操作,播放所述至少一个目标视频。
在本公开的一些实施例中,处理器被配置为执行所述指令时还可以实现以下步骤:
检测到目标客户端在至少一个第一时间段内显示预设页面。
在本公开的一些实施例中,处理器被配置为执行所述指令时还可以实现以下步骤:
根据网络状态信息确定所述目标客户端的目标下载码率,所述网络状态信息包括所述目标客户端的网络状态信息和服务器的网络状态信息;
所述根据所述视频缓存状态下载缓存未完成的至少一个目标视频,包括:
根据所述视频缓存状态以所述目标下载码率下载缓存未完成的至少一个目标视频。
在本公开的一些实施例中,处理器被配置为执行所述指令时还可以实现以下步骤:
接收服务器发送的时间配置信息,所述时间配置信息用于指示所述目标客户端下载缓存未完成的至少一个目标视频的开始时间。
在本公开的一些实施例中,处理器被配置为执行所述指令时还可以实现以下步骤:
响应于检测到目标客户端在所述第一时间段之前的时刻缓存与所述活动页面相关联的至少一个目标视频,确定所述目标视频的下载码率为所述客户端支持的最高码率,以使得所述目标客户端以其支持的最高码率缓存所述目标视频。
在本公开的一些实施例中,处理器被配置为执行所述指令时还可以实现以下步骤:
所述目标客户端的网络状态信息包括网络带宽,所述服务器的网络状态信息对应实时码率;
响应于所述目标客户端的网络带宽大于或等于第一预设阈值,且所述实时码率大于或等于已缓存视频的码率,将所述实时码率或所述已缓存视频的码率确定为所述目标下载码率;
响应于所述目标客户端的网络带宽大于或等于第一预设阈值,且所述实时码率小于所述已缓存视频的码率,将所述实时码率确定为所述目标客户端的目标下载码率;
响应于所述目标客户端的网络带宽小于所述第一预设阈值,将小于所述实时码率的码率确定为所述目标客户端的目标下载码率。
本公开的一些实施例提供了一种电子设备,包括:处理器;用于存储所述处理器可执行指令的存储器;其中,所述处理器被配置为执行所述指令,以实现以下步骤:
根据至少一个客户端的客户端信息和服务器的网络状态信息,对至少一个客户端进行分组,确定出至少一个目标客户端;
对所述至少一个目标客户端下发时间配置信息,所述时间配置信息用于指示所述至少一个目标客户端缓存未完成的至少一个目标视频的开始时间,使得所述至少一个目标客户端根据时间配置信息下载缓存未完成的至少一个目标视频,响应于用户操作,播放所述至少一个目标视频。
在本公开的一些实施例中,提供了一种存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行时实现以下步骤:
响应于检测到目标客户端显示预设页面,获取与所述预设页面相关联的至少一个目标 视频的第一配置信息和所述目标客户端的本地缓存信息,其中,所述第一配置信息包括所述目标视频的标识信息,所述目标客户端的本地缓存信息包括所述目标客户端已缓存的视频的标识信息;
根据所述第一配置信息和所述本地缓存信息确定所述目标客户端的视频缓存状态,所述视频缓存状态用于表示所述目标客户端对所述至少一个目标视频的缓存进度;
根据所述视频缓存状态下载缓存未完成的至少一个目标视频;
响应于用户操作,播放所述至少一个目标视频。
在本公开的一些实施例中,提供了一种存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行时实现以下步骤:
检测到目标客户端在至少一个第一时间段内显示预设页面。
在本公开的一些实施例中,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备还能够执行时实现以下步骤:
根据网络状态信息确定所述目标客户端的目标下载码率,所述网络状态信息包括所述目标客户端的网络状态信息和服务器的网络状态信息;
所述根据所述视频缓存状态下载缓存未完成的至少一个目标视频,包括:
根据所述视频缓存状态以所述目标下载码率下载缓存未完成的至少一个目标视频。
在本公开的一些实施例中,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备还能够执行时实现以下步骤:
接收服务器发送的时间配置信息,所述时间配置信息用于指示所述目标客户端下载缓存未完成的至少一个目标视频的开始时间。
在本公开的一些实施例中,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备还能够执行时实现以下步骤:
响应于检测到目标客户端在所述第一时间段之前的时刻缓存与所述活动页面相关联的至少一个目标视频,确定所述目标视频的下载码率为所述客户端支持的最高码率,以使得所述目标客户端以其支持的最高码率缓存所述目标视频。
在本公开的一些实施例中,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备还能够执行时实现以下步骤:
所述目标客户端的网络状态信息包括网络带宽,所述服务器的网络状态信息对应实时码率;
响应于所述目标客户端的网络带宽大于或等于第一预设阈值,且所述实时码率大于或等于已缓存视频的码率,将所述实时码率或所述已缓存视频的码率确定为所述目标下载码率;
响应于所述目标客户端的网络带宽大于或等于第一预设阈值,且所述实时码率小于所述已缓存视频的码率,将所述实时码率确定为所述目标客户端的目标下载码率;
响应于所述目标客户端的网络带宽小于所述第一预设阈值,将小于所述实时码率的码率确定为所述目标客户端的目标下载码率。
在本公开的一些实施例中,提供了一种存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行时实现以下步骤:
根据至少一个客户端的客户端信息和服务器的网络状态信息,对至少一个客户端进行分组,确定出至少一个目标客户端;
对所述至少一个目标客户端下发时间配置信息,所述时间配置信息用于指示所述至少一个目标客户端缓存未完成的至少一个目标视频的开始时间,使得所述至少一个目标客户端根据时间配置信息下载缓存未完成的至少一个目标视频,响应于用户操作,播放所述至少一个目标视频。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本公开所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本公开的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本公开构思的前提下,还可以做出若干变形和改进,这些都属于本公开的保护范围。因此,本公开专利的保护范围应以所附权利要求为准。

Claims (18)

  1. 一种视频播放方法,其中,包括:
    响应于检测到目标客户端显示预设页面,获取与所述预设页面相关联的至少一个目标视频的第一配置信息和所述目标客户端的本地缓存信息,其中,所述第一配置信息包括所述目标视频的标识信息,所述目标客户端的本地缓存信息包括所述目标客户端已缓存的视频的标识信息;
    根据所述第一配置信息和所述本地缓存信息确定所述目标客户端的视频缓存状态,所述视频缓存状态用于表示所述目标客户端对所述至少一个目标视频的缓存进度;
    根据所述视频缓存状态下载缓存未完成的至少一个目标视频;
    响应于用户操作,播放所述至少一个目标视频。
  2. 根据权利要求1所述的视频播放方法,其中,所述检测到目标客户端显示预设页面,包括:
    检测到目标客户端在至少一个第一时间段内显示预设页面。
  3. 根据权利要求2所述的视频播放方法,其中,还包括:
    根据网络状态信息确定所述目标客户端的目标下载码率,所述网络状态信息包括所述目标客户端的网络状态信息和服务器的网络状态信息;
    所述根据所述视频缓存状态下载缓存未完成的至少一个目标视频,包括:
    根据所述视频缓存状态以所述目标下载码率下载缓存未完成的至少一个目标视频。
  4. 根据权利要求2或3所述的视频播放方法,其中,还包括:
    接收服务器发送的时间配置信息,所述时间配置信息用于指示所述目标客户端下载缓存未完成的至少一个目标视频的开始时间。
  5. 根据权利要求1所述的视频播放方法,其中,还包括:
    响应于检测到目标客户端在所述第一时间段之前的时刻缓存与所述活动页面相关联的至少一个目标视频,确定所述目标视频的下载码率为所述客户端支持的最高码率,以使得所述目标客户端以其支持的最高码率缓存所述目标视频。
  6. 根据权利要求3所述的视频播放方法,其中,所述目标客户端的网络状态信息包括网络带宽,所述服务器的网络状态信息对应实时码率;
    所述根据网络状态信息确定所述目标客户端的目标下载码率,包括:
    响应于所述目标客户端的网络带宽大于或等于第一预设阈值,且所述实时码率大于或等于已缓存视频的码率,将所述实时码率或所述已缓存视频的码率确定为所述目标下载码率;
    响应于所述目标客户端的网络带宽大于或等于第一预设阈值,且所述实时码率小于所述已缓存视频的码率,将所述实时码率确定为所述目标客户端的目标下载码率;
    响应于所述目标客户端的网络带宽小于所述第一预设阈值,将小于所述实时码率的码率确定为所述目标客户端的目标下载码率。
  7. 一种视频播放方法,其中,包括:
    根据至少一个客户端的客户端信息和服务器的网络状态信息,对至少一个客户端进行分组,确定出至少一个目标客户端;
    对所述至少一个目标客户端下发时间配置信息,所述时间配置信息用于指示所述至少一个目标客户端缓存未完成的至少一个目标视频的开始时间,使得所述至少一个目标客户端根据时间配置信息下载缓存未完成的至少一个目标视频,响应于用户操作,播放所述至少一个目标视频。
  8. 一种视频播放装置,其中,包括:
    获取单元,被配置为执行响应于检测到目标客户端显示预设页面,获取与所述预设页面相关联的至少一个目标视频的第一配置信息和所述目标客户端的本地缓存信息,其中,所述第一配置信息包括所述目标视频的标识信息,所述目标客户端的本地缓存信息包括所述目标客户端已缓存的视频的标识信息;
    第一确定单元,被配置为执行根据所述第一配置信息和所述本地缓存信息确定所述目标客户端的视频缓存状态,所述视频缓存状态用于表示所述目标客户端对所述至少一个目标视频的缓存进度;
    下载单元,被配置为执行根据所述视频缓存状态下载缓存未完成的至少一个目标视频;
    播放单元,被配置为执行响应于用户操作,播放所述至少一个目标视频。
  9. 根据权利要求8所述的视频播放装置,其中,所述获取单元还被配置为执行:
    检测到目标客户端在至少一个第一时间段内显示预设页面。
  10. 根据权利要求9所述的视频播放装置,其中,所述第一确定单元还被配置为执行:
    根据网络状态信息确定所述目标客户端的目标下载码率,所述网络状态信息包括所述目标客户端的网络状态信息和服务器的网络状态信息;
    所述下载单元具体被配置为执行:
    根据所述视频缓存状态以所述目标下载码率下载缓存未完成的至少一个目标视频。
  11. 根据权利要求9或10所述的视频播放装置,其中,所述下载单元还被配置为执行:
    接收服务器发送的时间配置信息,所述时间配置信息用于指示所述目标客户端下载缓存未完成的至少一个目标视频的开始时间。
  12. 根据权利要求8所述的视频播放装置,其中,所述视频播放装置还包括:
    第二确定单元,被配置为执行响应于检测到目标客户端在所述第一时间段之前的时刻缓存与所述活动页面相关联的至少一个目标视频,确定所述目标视频的下载码率为所述客户端支持的最高码率,以使得所述目标客户端以其支持的最高码率缓存所述目标视频。
  13. 根据权利要求10所述的视频播放装置,其中,所述目标客户端的网络状态信息包括网络带宽,所述服务器的网络状态信息对应实时码率;
    所述下载单元还被配置为执行:
    响应于所述目标客户端的网络带宽大于或等于第一预设阈值,且所述实时码率大于或等于已缓存视频的码率,将所述实时码率或所述已缓存视频的码率确定为所述目标下载码率;
    响应于所述目标客户端的网络带宽大于或等于第一预设阈值,且所述实时码率小于所述已缓存视频的码率,将所述实时码率确定为所述目标客户端的目标下载码率;
    响应于所述目标客户端的网络带宽小于所述第一预设阈值,将小于所述实时码率的码率确定为所述目标客户端的目标下载码率。
  14. 一种视频播放装置,其中,包括:
    分组单元,被配置为执行根据至少一个客户端的客户端信息和服务器的网络状态信息,对至少一个客户端进行分组,确定出至少一个目标客户端;
    发送单元,被配置为执行对所述至少一个目标客户端下发时间配置信息,所述时间配置信息用于指示所述至少一个目标客户端缓存未完成的至少一个目标视频的开始时间,使得所述至少一个目标客户端根据时间配置信息下载缓存未完成的至少一个目标视频,响应于用户操作,播放所述至少一个目标视频。
  15. 一种客户端,其特征在于,包括:
    处理器;
    用于存储所述处理器可执行指令的存储器;
    其中,所述处理器被配置为执行所述指令,以实现以下步骤:
    响应于检测到目标客户端显示预设页面,获取与所述预设页面相关联的至少一个目标视频的第一配置信息和所述目标客户端的本地缓存信息,其中,所述第一配置信息包括所述目标视频的标识信息,所述目标客户端的本地缓存信息包括所述目标客户端已缓存的视频的标识信息;
    根据所述第一配置信息和所述本地缓存信息确定所述目标客户端的视频缓存状态,所述视频缓存状态用于表示所述目标客户端对所述至少一个目标视频的缓存进度;
    根据所述视频缓存状态下载缓存未完成的至少一个目标视频;
    响应于用户操作,播放所述至少一个目标视频。
  16. 一种服务器,其特征在于,包括:
    处理器;
    用于存储所述处理器可执行指令的存储器;
    其中,所述处理器被配置为执行所述指令,以实现以下步骤:
    根据至少一个客户端的客户端信息和服务器的网络状态信息,对至少一个客户端进行分组,确定出至少一个目标客户端;
    对所述至少一个目标客户端下发时间配置信息,所述时间配置信息用于指示所述至少一个目标客户端缓存未完成的至少一个目标视频的开始时间,使得所述至少一个目标客户端根据时间配置信息下载缓存未完成的至少一个目标视频,响应于用户操作,播放所述至少一个目标视频。
  17. 一种存储介质,当所述存储介质中的指令由客户端的处理器执行时,使得客户端能够执行以下步骤:
    响应于检测到目标客户端显示预设页面,获取与所述预设页面相关联的至少一个目标视频的第一配置信息和所述目标客户端的本地缓存信息,其中,所述第一配置信息包括所述目标视频的标识信息,所述目标客户端的本地缓存信息包括所述目标客户端已缓存的视频的标识信息;
    根据所述第一配置信息和所述本地缓存信息确定所述目标客户端的视频缓存状态,所述视频缓存状态用于表示所述目标客户端对所述至少一个目标视频的缓存进度;
    根据所述视频缓存状态下载缓存未完成的至少一个目标视频;
    响应于用户操作,播放所述至少一个目标视频。
  18. 一种存储介质,当所述存储介质中的指令由服务器的处理器执行时,使得服务器能够执行以下步骤:
    根据至少一个客户端的客户端信息和服务器的网络状态信息,对至少一个客户端进行分组,确定出至少一个目标客户端;
    对所述至少一个目标客户端下发时间配置信息,所述时间配置信息用于指示所述至少一个目标客户端缓存未完成的至少一个目标视频的开始时间,使得所述至少一个目标客户端根据时间配置信息下载缓存未完成的至少一个目标视频,响应于用户操作,播放所述至少一个目标视频。
PCT/CN2021/071562 2020-01-17 2021-01-13 视频播放方法及装置 WO2021143735A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP21741678.3A EP4093040A4 (en) 2020-01-17 2021-01-13 METHOD AND APPARATUS FOR PLAYING VIDEO
US17/825,686 US20220286740A1 (en) 2020-01-17 2022-05-26 Method and apparatus for video playing

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010055828.2A CN111246278B (zh) 2020-01-17 2020-01-17 视频播放方法、装置、电子设备及存储介质
CN202010055828.2 2020-01-17

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/825,686 Continuation US20220286740A1 (en) 2020-01-17 2022-05-26 Method and apparatus for video playing

Publications (1)

Publication Number Publication Date
WO2021143735A1 true WO2021143735A1 (zh) 2021-07-22

Family

ID=70876214

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/071562 WO2021143735A1 (zh) 2020-01-17 2021-01-13 视频播放方法及装置

Country Status (4)

Country Link
US (1) US20220286740A1 (zh)
EP (1) EP4093040A4 (zh)
CN (1) CN111246278B (zh)
WO (1) WO2021143735A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111246278B (zh) * 2020-01-17 2023-02-24 北京达佳互联信息技术有限公司 视频播放方法、装置、电子设备及存储介质
CN112565906A (zh) * 2020-11-05 2021-03-26 深圳市麦谷科技有限公司 一种在线视频的点播处理方法及系统
CN115834697A (zh) * 2022-11-16 2023-03-21 北京奇艺世纪科技有限公司 一种文件存储方法、系统、装置及电子设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103561283A (zh) * 2013-10-30 2014-02-05 乐视致新电子科技(天津)有限公司 一种智能电视的码率切换方法及装置
CN106162233A (zh) * 2016-07-08 2016-11-23 合网络技术(北京)有限公司 码率推荐方法及装置
US20190140340A1 (en) * 2017-11-03 2019-05-09 Dell Products, Lp System and method for operating an antenna adaptation controller module
CN110022498A (zh) * 2018-01-08 2019-07-16 深圳市中兴微电子技术有限公司 一种实现码率切换的方法及装置
CN110636367A (zh) * 2019-07-12 2019-12-31 北京无限光场科技有限公司 一种视频加载方法、装置、终端设备及介质
CN111246278A (zh) * 2020-01-17 2020-06-05 北京达佳互联信息技术有限公司 视频播放方法、装置、电子设备及存储介质

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090125634A1 (en) * 2007-11-08 2009-05-14 Microsoft Corporation Network media streaming with partial syncing
US9661357B2 (en) * 2012-03-12 2017-05-23 Cisco Technology, Inc. Method and system to locally cache and inform users of partial video segments and data objects
KR102047495B1 (ko) * 2013-02-22 2019-11-21 삼성전자주식회사 클라이언트에서 캐시를 이용하여 서버의 멀티 미디어 컨텐트를 스트리밍 재생하는 방법 및 이를 위한 장치
CN105430425B (zh) * 2015-11-18 2018-11-16 深圳Tcl新技术有限公司 单分片视频播放加速方法及装置
US10506262B2 (en) * 2015-12-29 2019-12-10 Telefonaktiebolaget Lm Ericsson (Publ) Method and system for optimized media delivery
CN105744342B (zh) * 2016-01-28 2019-04-12 腾讯科技(深圳)有限公司 移动终端的数据传输方法和装置
CN108513094B (zh) * 2017-02-24 2020-02-07 腾讯科技(深圳)有限公司 视频监控方法和装置
CN110198495B (zh) * 2019-06-28 2022-03-22 广州市百果园信息技术有限公司 一种视频下载和播放的方法、装置、设备和存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103561283A (zh) * 2013-10-30 2014-02-05 乐视致新电子科技(天津)有限公司 一种智能电视的码率切换方法及装置
CN106162233A (zh) * 2016-07-08 2016-11-23 合网络技术(北京)有限公司 码率推荐方法及装置
US20190140340A1 (en) * 2017-11-03 2019-05-09 Dell Products, Lp System and method for operating an antenna adaptation controller module
CN110022498A (zh) * 2018-01-08 2019-07-16 深圳市中兴微电子技术有限公司 一种实现码率切换的方法及装置
CN110636367A (zh) * 2019-07-12 2019-12-31 北京无限光场科技有限公司 一种视频加载方法、装置、终端设备及介质
CN111246278A (zh) * 2020-01-17 2020-06-05 北京达佳互联信息技术有限公司 视频播放方法、装置、电子设备及存储介质

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4093040A4 *

Also Published As

Publication number Publication date
US20220286740A1 (en) 2022-09-08
EP4093040A4 (en) 2024-01-24
CN111246278B (zh) 2023-02-24
EP4093040A1 (en) 2022-11-23
CN111246278A (zh) 2020-06-05

Similar Documents

Publication Publication Date Title
WO2021143735A1 (zh) 视频播放方法及装置
CN111246283B (zh) 视频播放方法、装置、电子设备及存储介质
CN110611829B (zh) 视频预加载的方法、装置、电子设备及存储介质
CN111405302B (zh) 直播间关注提醒方法、装置、电子设备及存储介质
CN109521918B (zh) 一种信息分享方法、装置、电子设备及存储介质
CN107743244B (zh) 视频直播方法及装置
WO2016026270A1 (zh) 传输图片的方法及装置
CN112104883A (zh) 直播间分享方法、装置、系统和服务器
US20180007420A1 (en) Method, device and system for recording television program
TW201837751A (zh) 搜索結果顯示方法及裝置
CN111182328B (zh) 一种视频剪辑方法、装置、服务器、终端及存储介质
CN106792024B (zh) 多媒体信息的分享方法及装置
US20220256230A1 (en) Method and apparatus for video playing
CN113596175A (zh) 场景同步方法、终端、服务器及系统
US20220159336A1 (en) Method and system for displaying screen
CN111246303B (zh) 视频播放方法、装置、电子设备及存储介质
CN106528442B (zh) 缓存清理方法和装置
CN112616053A (zh) 直播视频的转码方法、装置及电子设备
US20120071142A1 (en) Generation of multi-media ringtones from a friend's recent social data
WO2021103742A1 (zh) 一种资源管理方法、装置及电子设备
CN106790450B (zh) 缓存处理方法、装置及服务器
CN110769282A (zh) 短视频生成方法、终端及服务器
CN110909075B (zh) 数据的同步方法、装置、电子设备及存储介质
CN107564038B (zh) 偏移参数确定方法和装置以及偏移控制方法和装置
CN111182327B (zh) 一种视频剪辑方法、装置、视频分发服务器及终端

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21741678

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2021741678

Country of ref document: EP

Effective date: 20220817