WO2018201746A1 - 预加载视频的方法、设备、视频播放器、电子设备 - Google Patents

预加载视频的方法、设备、视频播放器、电子设备 Download PDF

Info

Publication number
WO2018201746A1
WO2018201746A1 PCT/CN2017/120179 CN2017120179W WO2018201746A1 WO 2018201746 A1 WO2018201746 A1 WO 2018201746A1 CN 2017120179 W CN2017120179 W CN 2017120179W WO 2018201746 A1 WO2018201746 A1 WO 2018201746A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
queue
task queue
scrolling
preload
Prior art date
Application number
PCT/CN2017/120179
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 广州优视网络科技有限公司
Publication of WO2018201746A1 publication Critical patent/WO2018201746A1/zh

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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4333Processing operations in response to a pause request
    • 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/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/44213Monitoring of end-user related 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/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4435Memory management
    • 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/482End-user interface for program selection
    • H04N21/4825End-user interface for program selection using a list of items to be played back in a given order, e.g. playlists

Definitions

  • Embodiments of the present invention relate to the field of video playback, and in particular, to a method, a device, a video player, an electronic device, and a storage medium for preloading video.
  • the function of preloading the video is provided, that is, a small piece of content from the beginning of each video in the video list is pre-downloaded. In this way, when the user clicks on the video for video playback, there is no need to wait for the network to load but directly start playing the video.
  • a method for preloading a video comprising the steps of: monitoring a scrolling event of a video list; and adding a video displayed in the video list window to the preloading when the scrolling stops when the scrolling stops. a task queue; and preloading the video in the preload task queue.
  • the scrolling event is triggered by an operation of a scroll control of the video list.
  • the scrolling event includes scrolling of the scrolling control and scrolling of the scrolling control.
  • the same number of videos as the number of queue length thresholds are removed from the preload task queue.
  • the queue length threshold of the preload task queue is set according to the number of videos that can be displayed by the video list window.
  • the queue length threshold of the preload task queue is set to a predetermined value.
  • the preload task queue is a first in first out queue.
  • the video that first joins the queue is removed from the preload task queue.
  • the preload task queue is a priority queue.
  • the video with the lowest priority is removed from the preload task queue.
  • an apparatus for preloading video comprising: means for monitoring a scrolling event of a video list; for displaying in a video list window when scrolling is stopped, when scrolling is stopped Means for adding video to a preloaded task queue; and means for preloading video in the preloaded task queue.
  • a video player comprising an apparatus for preloading video according to an embodiment, or an operation in a method for performing preloaded video according to an embodiment.
  • an electronic device comprising the video player according to the embodiment.
  • an electronic device comprising: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and Configuring to be executed by the one or more processors, the one or more programs configured to: listen for a scrolling event of the video list; when the scrolling stop is monitored, the video displayed in the video list window when the scrolling stops Join a preload task queue; and preload the video in the preload task queue.
  • a computer readable storage medium carrying one or more computer instruction programs, the one or more computer program programs being executed by one or more processors, the one or more The processor performs the method as described in the first aspect.
  • network traffic consumption for preloading video can be significantly reduced while achieving a faster video playback experience.
  • FIG. 1 is a schematic flow chart of a method of preloading video according to an embodiment of the present invention.
  • FIG. 2 is a schematic flow chart of a method of preloading video according to another embodiment of the present invention.
  • FIG. 3 is a schematic block diagram of an electronic device in accordance with one embodiment of the present invention.
  • FIG. 4 is a schematic block diagram of an electronic device in accordance with another embodiment of the present invention.
  • FIG. 5 is a block diagram showing the internal structure of an electronic device according to one embodiment of the present invention.
  • FIG. 1 is a schematic flow chart of a method of preloading video according to an embodiment of the present invention.
  • a scrolling event of the video list can be monitored.
  • a computer software or mobile application that provides video playback can display a video that the user can click to play through the video list. Users can select the video of interest from the list of videos to play. For example, the name of the video may be displayed in the form of a list in the video list, or a certain frame of the video or a poster may be displayed in the form of an icon.
  • the scrolling control of the video list can be operated for browsing, such as a scrolling control that slides the video list, thereby triggering a scrolling event.
  • Scrolling events include scrolling of scrolling controls and scrolling of scrolling controls.
  • Scrolling scrolling can indicate the scrolling state of the scrolling control under user action.
  • Scrolling the scrolling stop can indicate that the scrolling control stops scrolling and is in an idle state that is not operated by the user.
  • the scrolling control can be, for example, a scroll bar of a video list.
  • the scroll event of the listener video list can be implemented by the OnScrollListener listener of the ListView control.
  • Scrolling control scrolling can correspond to event callbacks for SCROLL_STATE_TOUCH_SCROLL and SCROLL_STATE_FLING.
  • the scrolling control scroll stop can correspond to the event callback of SCROLL_STATE_IDLE.
  • step S200 when the scroll stop is monitored, the video displayed in the video list window when the scroll is stopped may be added to the preload task queue.
  • a scrolling event of the scroll stop can be triggered. This means that the video displayed in the video list window at this time is the video that the user is most likely to click to play.
  • a preload task queue can be built for these videos.
  • the video in the preloaded task queue is preloaded to avoid all the videos in the video list being preloaded at one time, resulting in a large amount of unnecessary consumption of network traffic.
  • step S300 the video in the preload task queue may be preloaded.
  • the video list window can display 4 videos at a time.
  • the four videos displayed in the current video list window are the videos that the user is most likely to click to play. Therefore, these 4 videos are added to the preload task queue and the 4 videos are preloaded.
  • a scroll event of a video list is monitored.
  • the scroll stop is monitored, it is assumed that the number of videos displayed in the video list window is four as described above, and only the four videos are added to the preload task queue and preloaded. In this way, even if the user finally only clicks on the two videos, the number of extra preloaded videos is only two. This can significantly reduce network traffic consumption for preloading video.
  • FIG. 2 is a schematic flow chart of a method of preloading video according to another embodiment of the present invention.
  • step S1000 similar to the first embodiment, a scroll event of the video list can be monitored. This step is explained in detail in the first embodiment, and details are not described herein again.
  • step S2000 when the scroll stop is monitored, the video displayed in the video list window when the scroll is stopped may be added to the preload task queue, and the preload task queue may be managed.
  • step S3000 the video in the preload task queue may be preloaded.
  • scrolling stopped scroll events may be triggered multiple times, causing too much video to be added to the preload task queue for preloading, which may also result in excessive network traffic consumption. For example, sometimes the user wants to browse the video names of all the videos listed in the video list before deciding which video to last click to play. Assume that the user has triggered two scroll stops. When the first scroll stops, there are 4 videos added to the preload task queue. When the second scroll stops, there are 4 more videos to join, then there are 8 videos in the preload task queue. Preloaded. This can cause problems with excessive network traffic consumption.
  • the preload task queue can be managed.
  • a queue length threshold can be set for the preload task queue and the video in the queue can be loaded with the number of thresholds, thereby avoiding that each video that is queued in due to multiple scroll stops is preloaded.
  • the queue length of the preload task queue is greater than the queue length threshold, the same number of videos as the number of queue length thresholds are removed from the preload task queue.
  • the queue length threshold of the preload task queue can be set according to the number of videos that can be displayed per screen in the video list window.
  • the queue length threshold of the preload task queue can be set to 4.
  • the video list window screen can display the number of videos depending on the attributes of the video list itself, and thus can have different values according to different designs of the video list.
  • the video playing area is generally adjusted to be relatively large, so that the number of videos that can be displayed on the screen is only three or four.
  • the queue length threshold of the preload task queue can be set to 3 or 4 depending on the number of videos that can be displayed in the video list window.
  • the queue length threshold of the preload task queue can be set to a predetermined value.
  • the queue length threshold of the preload task queue is also set to 10 according to the above method, all 10 videos will be preloaded, which may cause excessive traffic consumption.
  • the queue length threshold may be set to a predetermined value, for example, five, to reduce the number of preloaded videos, and to save network traffic consumption. For example, you can select a video located at the top of the video list window to join the preload task queue to increase the hit rate of the preload.
  • the queue form of the preload task queue can be set.
  • the preload task queue can be a first in first out queue.
  • the use of the FIFO queue facilitates the management of the video in the queue according to the order in which the video enters the queue, ensuring that the preloaded video is the video range currently selected by the user.
  • the queue length of the preload task queue is greater than the queue length threshold, the same number of videos that are queued first and the number of queue length thresholds are removed from the preload task queue.
  • the number of videos added to the preload task queue is 4 when the first scroll stops, and 4 videos are added when the second scroll stops, so that the queue length of the preload task queue is 8.
  • the first 4 videos that are added to the queue are removed from the preload task queue, that is, the 4 videos that are added to the queue when the first scroll stops.
  • the preload task queue can be a priority queue. This is advantageous if the queue length threshold of the preload task queue is set to a predetermined value.
  • the video list window can display the number of videos per screen greater than the queue length threshold, preloading the video according to the number of queue length thresholds can reduce network traffic consumption.
  • the same number of videos with the lowest priority as the number of queue length thresholds can be removed from the preload task queue.
  • the video list window screen can display 10 videos, and when listening to scroll stop, these 10 videos are added to the preload task queue.
  • the queue length threshold is set to 4
  • the first 6 videos with the lowest priority are removed from the 10 videos, 4 videos are reserved in the queue, and the 4 videos are preloaded, thereby reducing network traffic consumption.
  • the priority may be set based on whether the video popularity and/or video hits the user's favorite video type.
  • the preload task queue by setting a queue length threshold for the preload task queue and setting a queue form. Therefore, even in the case where the scrolling stop scroll event is triggered multiple times, it can be ensured that the preloaded video is the video range that the user currently intends to select, and the network traffic consumption generated for preloading the video can be reduced.
  • the apparatus can include means for implementing the various operations in the method of preloading video as described above.
  • the device may include: means for monitoring a scroll event of the video list; means for adding a video displayed in the video list window to the preload task queue when the scroll stop is detected; and A device that loads the video in the preloaded task queue.
  • the device for preloading the video described above may be a standalone device (eg, an application in the client) or integrated into the video player as part of the video player. In this case, the video player is able to provide a new way to preload video.
  • the video player may be a separate application, such as storm video, QQ video, etc., or may also refer to an application integrated with the video player function, such as PP. Assistant, 91 assistant, etc.
  • a video player designed to perform operations in a method of preloading video according to an embodiment of the present invention.
  • the electronic device is, for example, a notebook computer, a smart phone, a tablet computer, or the like.
  • the illustrated electronic device includes the video player shown previously.
  • FIG. 3 is a schematic block diagram of an electronic device in accordance with one embodiment of the present invention.
  • electronic device 3000 includes a video player 3010.
  • the video player 3010 is, for example, any of the video players described above.
  • FIG. 4 is a schematic block diagram of an electronic device in accordance with another embodiment of the present invention.
  • the electronic device 4000 can include a processor 4010, a memory 4020, an interface device 4030, a communication device 4040, a display device 4050, an input device 4060, a speaker 4070, a microphone 4080, and the like.
  • the processor 4010 can be, for example, a central processing unit CPU, a microprocessor MCU, or the like.
  • the memory 4020 includes, for example, a ROM (Read Only Memory), a RAM (Random Access Memory), a nonvolatile memory such as a hard disk, and the like.
  • ROM Read Only Memory
  • RAM Random Access Memory
  • nonvolatile memory such as a hard disk, and the like.
  • the interface device 4030 includes, for example, a USB interface, a headphone jack, and the like.
  • the communication device 4040 can perform wired or wireless communication, for example.
  • the display device 4050 is, for example, a liquid crystal display, a touch display, or the like.
  • Input device 4060 can include, for example, a touch screen, a keyboard, and the like.
  • the user can input/output voice information through the speaker 4070 and the microphone 4080.
  • the memory 4020 is for storing instructions for controlling the processor 4010 to operate to perform the method of preloading video as described above with respect to FIG.
  • the memory 4020 is for storing instructions for controlling the processor 4010 to operate to perform the method of preloading video as described above with respect to FIG.
  • an embodiment of the present invention provides an electronic device, including: one or more processors; a memory; one or more applications, where the one or more An application is stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: monitor a scrolling event of a video list; when listening to a scroll stop, The video displayed in the video list window is added to the preload task queue when scrolling stops; and the video in the preload task queue is preloaded.
  • the electronic device includes a processor 510, a memory 520, an internal memory 530, a network interface 540, and a display screen 550 that are connected by a system bus.
  • the processor 510 is configured to implement a computing function and a function of controlling the operation of the electronic device, and the processor 510 is configured to perform the method of preloading the video provided by the above embodiments.
  • the processor 510 is configured to monitor a scroll event of the video list; when monitoring the scroll stop, add the video displayed in the video list window to the preload task queue when the scroll stops; and preload the video in the preload task queue.
  • the memory 520 is a non-volatile storage medium storing an operating system 521, a database 522, and a computer program for implementing the method of preloading the video provided by the above embodiments, and executing candidate intermediate data and result data generated by the computer program.
  • Network interface 540 is used to communicate with the server, and network interface 540 includes a radio frequency transceiver.
  • Embodiments of the present invention further provide a computer readable storage medium carrying one or more computer instruction programs thereon, the one or more processors executing the program when the computer instruction program is executed by one or more processors
  • the method for preloading video includes: monitoring a scrolling event of a video list; adding a video displayed in the video list window to the preloading task queue when the scrolling stops when the scrolling stops; and preloading the preloading task queue In the video.
  • Embodiments of the invention may be apparatus, methods, and/or computer program products.
  • the computer program product can comprise a computer readable storage medium having computer readable program instructions embodied thereon for causing a processor to implement various aspects of embodiments of the present invention.
  • the computer readable storage medium can be a tangible device that can hold and store the instructions used by the instruction execution device.
  • the computer readable storage medium can be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing.
  • Non-exhaustive list of computer readable storage media include: portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM) Or flash memory), static random access memory (SRAM), portable compact disk read only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanical encoding device, for example, with instructions stored thereon A raised structure in the hole card or groove, and any suitable combination of the above.
  • a computer readable storage medium as used herein is not to be interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (eg, a light pulse through a fiber optic cable), or through a wire The electrical signal transmitted.
  • the computer readable program instructions described herein can be downloaded from a computer readable storage medium to various computing/processing devices or downloaded to an external computer or external storage device over a network, such as the Internet, a local area network, a wide area network, and/or a wireless network.
  • the network may include copper transmission cables, fiber optic transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and/or edge servers.
  • a network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium in each computing/processing device .
  • Computer program instructions for performing operations of an embodiment of the invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine related instructions, microcode, firmware instructions, state setting data, or programmed in one or more Source code or object code written in any combination of languages, including object oriented programming languages such as Smalltalk, C++, etc., as well as conventional procedural programming languages such as the "C" language or similar programming languages.
  • the computer readable program instructions can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer, partly on the remote computer, or entirely on the remote computer or server. carried out.
  • the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or wide area network (WAN), or can be connected to an external computer (eg, using an Internet service provider to access the Internet) connection).
  • the customized electronic circuit such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), can be customized by utilizing state information of computer readable program instructions.
  • Computer readable program instructions are executed to implement various aspects of the embodiments of the invention.
  • the computer readable program instructions can be provided to a general purpose computer, a special purpose computer, or a processor of other programmable data processing apparatus to produce a machine such that when executed by a processor of a computer or other programmable data processing apparatus Means for implementing the functions/acts specified in one or more of the blocks of the flowcharts and/or block diagrams.
  • the computer readable program instructions can also be stored in a computer readable storage medium that causes the computer, programmable data processing device, and/or other device to operate in a particular manner, such that the computer readable medium storing the instructions includes An article of manufacture that includes instructions for implementing various aspects of the functions/acts recited in one or more of the flowcharts.
  • the computer readable program instructions can also be loaded onto a computer, other programmable data processing device, or other device to perform a series of operational steps on a computer, other programmable data processing device or other device to produce a computer-implemented process.
  • instructions executed on a computer, other programmable data processing apparatus, or other device implement the functions/acts recited in one or more of the flowcharts and/or block diagrams.
  • each block in the flowchart or block diagram can represent a module, a program segment, or a portion of an instruction that includes one or more components for implementing the specified logical functions.
  • Executable instructions can also occur in a different order than those illustrated in the drawings. For example, two consecutive blocks may be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts can be implemented in a dedicated hardware-based system that performs the specified function or function. Or it can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, implementation by software, and implementation by a combination of software and hardware are equivalent.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Social Psychology (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本发明公开了一种预加载视频的方法、设备、视频播放器、电子设备及存储介质。所述方法包括以下步骤:监听视频列表的滚动事件;当监听到滚动停止时,将滚动停止时视频列表窗口内显示的视频加入预加载任务队列;以及预加载所述预加载任务队列中的视频。根据本发明,能够在获得更快的视频播放体验的同时显著减少用于预加载视频的网络流量消耗。

Description

预加载视频的方法、设备、视频播放器、电子设备 技术领域
本发明实施例涉及视频播放领域,更具体地,涉及一种预加载视频的方法、设备、视频播放器、电子设备及存储介质。
背景技术
在现有技术中,在视频播放中,为了获得更快的视频播放体验,提供预加载视频的功能,即预先下载视频列表中每个视频从开头起的一小段内容。这样,当用户点击视频进行视频播放时,无需再等待网络加载而是直接开始播放视频。
然而,用户一般不会观看视频列表里的每个视频。用户会根据自身兴趣或爱好选择性地观看视频。当用户未使用免费的WiFi而是通过手机流量连接网络时,如果仍然预加载视频列表里的每个视频,这会大大增加网络流量消耗。
因此,需要一种新的预加载视频的技术方案来针对现有技术中的至少一个技术问题。
发明内容
本发明实施例的一个目的是提供一种预加载视频的新技术方案。
根据本发明的第一方面,提供了一种预加载视频的方法,包括以下步骤:监听视频列表的滚动事件;当监听到滚动停止时,将滚动停止时视频列表窗口内显示的视频加入预加载任务队列;以及预加载所述预加载任务队列中的视频。
优选地,所述滚动事件由所述视频列表的滚动控件的操作触发。
优选地,所述滚动事件包括所述滚动控件滚动和所述滚动控件滚动停止。
优选地,当所述预加载任务队列的队列长度大于队列长度阈值时,从所述预加载任务队列里移除与超出所述队列长度阈值的数量相同数量的视频。
优选地,根据视频列表窗口毎屏可显示视频数量来设定所述预加载任务队列的队列长度阈值。
优选地,所述预加载任务队列的队列长度阈值设定为预定值。
优选地,所述预加载任务队列是先进先出队列。
优选地,当所述预加载任务队列的队列长度大于所述队列长度阈值时,从所述预加载任务队列里移除先加入所述队列的视频。
优选地,所述预加载任务队列是优先级队列。
优选地,当所述预加载任务队列的队列长度大于所述队列长度阈值时,从所述预加载任务队列里移除优先级最低的视频。
根据本发明的第二方面,提供了一种预加载视频的设备,包括:用于监听视频列表的滚动事件的装置;用于当监听到滚动停止时、将滚动停止时视频列表窗口内显示的视频加入预加载任务队列的装置;以及用于预加载所述预加载任务队列中的视频的装置。
根据本发明的第三方面,提供了一种视频播放器,包括根据实施例的预加载视频的设备,或被设计成用于执行根据实施例的预加载视频的方法中的操作。
根据本发明的第四方面,提供了一种电子设备,包括根据实施例所述的视频播放器。
根据本发明的第五方面,提供了一种电子设备,包括:一个或多个处理器;存储器;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于:监听视频列表的滚动事件;当监听到滚动停止时,将滚动停止时视频列表窗口内显示的视频加入预加载任务队列;以及预加载所述预加载任务队列中的视频。
根据本发明的第六方面,提供了一种计算机可读存储介质,其上承载一个或多个计算机指令程序,所述计算机指令程序被一个或多个处理器执 行时,所述一个或多个处理器执行如第一方面所述的方法。
根据本发明的实施例,能够在获得更快的视频播放体验的同时显著减少用于预加载视频的网络流量消耗。
因此,本发明实施例所要实现的技术任务或者所要解决的技术问题是本领域技术人员从未想到的或者没有预期到的,故本发明实施例是一种新的技术方案。
通过以下参照附图对本发明的示例性实施例的详细描述,本发明实施例的其它特征及其优点将会变得清楚。
附图说明
被结合在说明书中并构成说明书的一部分的附图示出了本发明的实施例,并且连同其说明一起用于解释本发明实施例的原理。
图1是根据本发明一个实施例的预加载视频的方法的示意性流程图。
图2是根据本发明另一个实施例的预加载视频的方法的示意性流程图。
图3是根据本发明一个实施例的电子设备的示意性框图。
图4是根据本发明另一个实施例的电子设备的示意性框图;以及
图5是根据本发明其中一个实施例的电子设备的内部结构框图。
具体实施方式
现在将参照附图来详细描述本发明的各种示例性实施例。应注意到:除非另外具体说明,否则在这些实施例中阐述的部件和步骤的相对布置、数字表达式和数值不限制本发明实施例的范围。
以下对至少一个示例性实施例的描述实际上仅仅是说明性的,决不作为对本发明实施例及其应用或使用的任何限制。
对于相关领域普通技术人员已知的技术、方法和设备可能不作详细讨论,但在适当情况下,所述技术、方法和设备应当被视为说明书的一部分。
在这里示出和讨论的所有例子中,任何具体值应被解释为仅仅是示例性的,而不是作为限制。因此,示例性实施例的其它例子可以具有不同的 值。
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步讨论。
在本发明的实施例中,提出了一种预加载视频的新方式。
下面,参照附图描述根据本发明的实施例和例子。
<方法>
实施例一
图1是根据本发明一个实施例的预加载视频的方法的示意性流程图。
在步骤S100,可以监听视频列表的滚动事件。
提供视频播放功能的计算机软件或手机应用程序可以通过视频列表显示可供用户点击播放的视频。用户可以从视频列表里选择感兴趣的视频进行播放。例如,在视频列表里可以以列表的形式显示视频的名称,或者可以以图标的形式显示视频的某一帧画面或海报。
当用户意图选择视频进行播放时,可以操作视频列表的滚动控件进行浏览,例如滑动视频列表的滚动控件,由此可以触发滚动事件。滚动事件包括滚动控件滚动、滚动控件滚动停止。滚动控件滚动可以表示滚动控件在用户操作下的滚动状态。滚动控件滚动停止可以表示滚动控件停止滚动,处于未被用户操作的空闲状态。滚动控件例如可以是视频列表的滚动条。
例如,在安卓系统中,监听视频列表的滚动事件可以通过ListView控件的OnScrollListener监听器来实现。滚动控件滚动可以对应于SCROLL_STATE_TOUCH_SCROLL和SCROLL_STATE_FLING的事件回调。滚动控件滚动停止可以对应于SCROLL_STATE_IDLE的事件回调。
通过监听视频列表的滚动事件,可以获悉用户停止操作滚动控件时的视频范围,该视频范围最有可能是用户意图点击播放的视频。
在步骤S200,当监听到滚动停止时,可以将滚动停止时视频列表窗口内显示的视频加入预加载任务队列。
如上所述,当用户停止操作视频列表的滚动控件时,可以触发滚动停止的滚动事件。这意味着此时视频列表窗口里显示的视频是用户最有可能 点击播放的视频。
因此,可以针对这些视频构建预加载任务队列。对预加载任务队列中的视频进行预加载,从而避免一次性预加载视频列表中的全部视频,造成网络流量的大量不必要消耗。
在步骤S300,可以预加载所述预加载任务队列中的视频。
例如,假设视频列表里的视频总数为20个,视频列表窗口每次能够显示4个视频。当用户停止操作视频列表的滚动控件时,当前视频列表窗口里显示的4个视频就是用户最有可能点击播放的视频。因此,将这4个视频加入预加载任务队列,并且预加载这4个视频。
在传统的预加载视频方法中,当视频列表里的视频总数为20个时,需要预加载全部20个视频。然而,用户最终可能只点击播放其中2个视频。这样,额外预加载18个视频可能会造成网络流量的大量不必要消耗。
根据本实施例的方法,监听视频列表的滚动事件。当监听到滚动停止时,假设如上所述视频列表窗口里显示的视频个数为4个,则只将这4个视频加入预加载任务队列并进行预加载。这样,即便用户最终只点击播放其中的2个视频,额外预加载的视频个数只有2个。这能够显著减少为了预加载视频而产生的网络流量消耗。
实施例二
图2是根据本发明另一个实施例的预加载视频的方法的示意性流程图。
在步骤S1000,与实施例一类似,可以监听视频列表的滚动事件。由于在实施例一中已对本步骤进行详细说明,在此不再赘述。
在步骤S2000,当监听到滚动停止时,可以将滚动停止时视频列表窗口内显示的视频加入预加载任务队列,并且可以管理所述预加载任务队列。
在步骤S3000,可以预加载所述预加载任务队列中的视频。
以下详细说明实施例二与实施例一的不同之处。
在一些情况下,滚动停止的滚动事件可能被多次触发,造成过多视频被加入到预加载任务队列中进行预加载,由此也可能造成过多的网络流量消耗。例如,有时候用户想先浏览视频列表里列出的全部视频的视频名称, 再决定最后选择点击播放的视频。假设用户因此触发了两次滚动停止,第一次滚动停止时有4个视频加入预加载任务队列,第二次滚动停止时又有4个视频加入,则预加载任务队列中共有8个视频将被预加载。这可能造成网络流量过多消耗的问题。
为了解决这个问题,可以对预加载任务队列进行管理。
优选地,可以为预加载任务队列设定队列长度阈值,并且以所述阈值的数量来加载队列中的视频,由此避免因为多次滚动停止而加入队列中的每个视频都被预加载。当所述预加载任务队列的队列长度大于队列长度阈值时,从所述预加载任务队列里移除与超出所述队列长度阈值的数量相同数量的视频。
预加载任务队列的队列长度阈值可以根据视频列表窗口每屏可显示视频数量来设定。
例如,假设视频列表里的视频总数为20个,视频列表窗口毎屏可显示4个视频,则预加载任务队列的队列长度阈值可以设定为4。
本领域技术人员可以理解,视频列表窗口毎屏可显示视频数量取决于视频列表本身的属性,因此可以根据视频列表的不同设计而具有不同的值。例如,对于在视频列表上可直接播放视频的情形,考虑到观看体验,一般会将视频播放区域调整得相对较大,这样毎屏可显示视频数量例如仅为3个或4个。在此情况下,预加载任务队列的队列长度阈值可以根据视频列表窗口毎屏可显示视频数量而设定为3或4。
另外,预加载任务队列的队列长度阈值可以设定为预定值。
例如,假设视频列表窗口每屏可显示视频数量为10个。如果按照以上方法将预加载任务队列的队列长度阈值也设定为10,则将会对这10个视频全部进行预加载,由此可能造成过多的流量消耗。在此情况下,可以采用将队列长度阈值设定为预定值,例如5个,以减少预加载视频的数量,节省网络流量消耗。例如,可以选择位于视频列表窗口上部的视频加入到预加载任务队列,以提高预加载的命中率。
优选地,可以设定预加载任务队列的队列形式。
预加载任务队列可以是先进先出队列。采用先进先出队列,有利于根 据视频进入队列的先后顺序对队列中的视频进行管理,保证预加载的视频是用户当前意图选择的视频范围。
当预加载任务队列的队列长度大于队列长度阈值时,可以从预加载任务队列里移除先加入队列的、与超出队列长度阈值的数量相同数量的视频。
例如,假设因为用户的操作连续触发了两次滚动停止。第一次滚动停止时加入预加载任务队列的视频数量为4个,第二次滚动停止时又加入4个视频,使得预加载任务队列的队列长度为8。在此情况下,不是预加载这8个视频,而是首先从预加载任务队列里移除先加入队列的4个视频,即第一次滚动停止时加入队列的4个视频。由此,预加载任务队列里仅保留第二次滚动停止时加入的4个视频,并预加载这4个视频。
预加载任务队列可以是优先级队列。这在预加载任务队列的队列长度阈值设定为预定值的情况下是有利的。当视频列表窗口每屏可显示视频数量大于队列长度阈值时,根据所述队列长度阈值的数量来预加载视频,能够减少网络流量消耗。
在此情况下,可以从预加载任务队列里移除优先级最低的、与超出队列长度阈值的数量相同数量的视频。
例如,假设视频列表窗口毎屏可显示视频数量为10个,当监听到滚动停止时,这10个视频被加入预加载任务队列中。当队列长度阈值设定为4时,首先从这10个视频中移除优先级最低的6个视频,在队列中保留4个视频,最后预加载这4个视频,由此减少网络流量消耗。
优选地,优先级可以根据视频热度和/或视频是否命中用户往常喜爱视频类型来设定。
根据本实施例的方法,通过为预加载任务队列设定队列长度阈值以及设定队列形式,有利于对预加载任务队列进行管理。因此,即使在滚动停止的滚动事件被多次触发的情况下,也可以确保预加载的视频是用户当前意图选择的视频范围,并且能够减少为了预加载视频而产生的网络流量消耗。
<设备>
本领域技术人员应当理解,在电子技术领域中,可以通过软件、硬件 以及软件和硬件结合的方式,将上述方法体现在产品中。本领域技术人员很容易基于上面公开的方法,产生一种预加载视频的设备。该设备可以包括用于实现前面所述的预加载视频的方法中的各个操作的装置。例如,该设备可以包括:用于监听视频列表的滚动事件的装置;用于当监听到滚动停止时、将滚动停止时视频列表窗口内显示的视频加入预加载任务队列的装置;以及用于预加载所述预加载任务队列中的视频的装置。
<视频播放器>
上面描述的预加载视频的设备可以是一个独立的设备(例如,客户端中的应用),也可以被集成在视频播放器中,成为视频播放器的一部分。在这种情况下,所述视频播放器能够提供一种预加载视频的新方式。
本领域技术人员应当理解,随着技术的发展,视频播放器可以是一个单独的应用程序,例如暴风影音、QQ影音等,或者也可以指的是集成了视频播放器功能的应用程序,例如PP助手、91助手等。
另一方面,本领域技术人员公知的是,随着诸如大规模集成电路技术的电子信息技术的发展和软件硬件化的趋势,要明确划分计算机系统软、硬件界限已经显得比较困难了。因为,任何操作可以软件来实现,也可以硬件来实现。任何指令的执行可以由硬件完成,同样也可以由软件来完成。对于某一机器功能采用硬件实现方案还是软件实现方案,取决于价格、速度、可靠性、存储容量、变更周期等非技术性因素。因此,对于电子信息技术领域的普通技术人员来说,更为直接和清楚地描述一个技术方案的方式是描述该方案中的各个操作。在知道所要执行的操作的情况下,本领域技术人员可以基于对所述非技术性因素的考虑直接设计出期望的产品。从这个方面来说,在本发明的实施例中,还提供了一种视频播放器,该视频播放器被设计成用于执行根据本发明实施例所述的预加载视频的方法中的操作。
<电子设备>
可以在电子设备中实现根据本发明的各个实施例。所述电子设备例如是笔记本电脑、智能手机、平板电脑等。例如,所示电子设备包括前面所示的视频播放器。
图3是根据本发明一个实施例的电子设备的示意性框图。如图3所述,电子设备3000包括视频播放器3010。视频播放器3010例如是前面所述的视频播放器中的任何一个。
图4是根据本发明另一个实施例的电子设备的示意性框图。
如图4所示,电子设备4000可以包括处理器4010、存储器4020、接口装置4030、通信装置4040、显示装置4050、输入装置4060、扬声器4070、麦克风4080,等等。
处理器4010例如可以是中央处理器CPU、微处理器MCU等。
存储器4020例如包括ROM(只读存储器)、RAM(随机存取存储器)、诸如硬盘的非易失性存储器等。
接口装置4030例如包括USB接口、耳机接口等。
通信装置4040例如能够进行有有线或无线通信。
显示装置4050例如是液晶显示屏、触摸显示屏等。
输入装置4060例如可以包括触摸屏、键盘等。
用户可以通过扬声器4070和麦克风4080输入/输出语音信息。
图4所示的电子设备仅是解释性的,并且决不是为了要限制本发明实施例、其应用或用途。
在这个实施例中,所述存储器4020用于存储指令,所述指令用于控制所述处理器4010进行操作以执行前面参照图1所述的预加载视频的方法。本领域技术人员应当理解,尽管在图4中示出了多个装置,但是,本发明实施例可以仅涉及其中的部分装置,例如,处理器4010和存储装置4020等。技术人员可以根据本发明实施例所公开方案设计指令。指令如何控制处理器进行操作,这是本领域公知,故在此不再详细描述。
为进一步说明本发明实施例提供的预加载视频的方法,本发明实施例提供一种电子设备,包括:一个或多个处理器;存储器;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于:监听视频列表的滚动事件;当监听到滚动停止时,将滚动停止时视频列表窗口内显示的视频加入预加载任务队列;以及预加载所述预加载任务队列中的视频。
具体如下:
如图5所示,电子设备包括通过系统总线连接的处理器510、存储器520、内存储器530、网络接口540和显示屏550。处理器510用于实现计算功能和控制电子设备工作的功能,处理器510被配置为执行上述实施例提供的预加载视频的方法。处理器510用于监听视频列表的滚动事件;当监听到滚动停止时,将滚动停止时视频列表窗口内显示的视频加入预加载任务队列;以及预加载所述预加载任务队列中的视频。存储器520是一种非易失性存储介质,存储有操作系统521、数据库522和用于实现上述实施例提供的预加载视频的方法的计算机程序,以及执行计算机程序产生的候选中间数据以及结果数据。网络接口540用于与服务器通信,网络接口540包括射频收发器。
本发明实施例还提供一种计算机可读存储介质,其上承载一个或多个计算机指令程序,所述计算机指令程序被一个或多个处理器执行时,所述一个或多个处理器执行所述的预加载视频的方法,包括:监听视频列表的滚动事件;当监听到滚动停止时,将滚动停止时视频列表窗口内显示的视频加入预加载任务队列;以及预加载所述预加载任务队列中的视频。
本发明实施例可以是设备、方法和/或计算机程序产品。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器实现本发明实施例的各个方面的计算机可读程序指令。
计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是――但不限于――电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由 传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。
这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。
用于执行本发明实施例操作的计算机程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言—诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本发明实施例的各个方面。
这里参照根据本发明实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本发明实施例的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。
这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通 过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。
也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。
附图中的流程图和框图显示了根据本发明的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,所述模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。对于本领域技术人员来说公知的是,通过硬件方式实现、通过软件方式实现以及通过软件和硬件结合的方式实现都是等价的。
以上已经描述了本发明的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。本发明的范围由所附权利要求来限定。

Claims (26)

  1. 一种预加载视频的方法,包括以下步骤:
    监听视频列表的滚动事件;
    当监听到滚动停止时,将滚动停止时视频列表窗口内显示的视频加入预加载任务队列;以及
    预加载所述预加载任务队列中的视频。
  2. 如权利要求1所述的方法,其中,所述滚动事件由所述视频列表的滚动控件的操作触发。
  3. 如权利要求2所述的方法,其中,所述滚动事件包括所述滚动控件滚动和所述滚动控件滚动停止。
  4. 如权利要求1所述的方法,其中,当所述预加载任务队列的队列长度大于队列长度阈值时,从所述预加载任务队列里移除与超出所述队列长度阈值的数量相同数量的视频。
  5. 如权利要求4所述的方法,其中,根据视频列表窗口毎屏可显示视频数量来设定所述预加载任务队列的队列长度阈值。
  6. 如权利要求4所述的方法,其中,所述预加载任务队列的队列长度阈值设定为预定值。
  7. 如权利要求5或6所述的方法,其中,所述预加载任务队列是先进先出队列。
  8. 如权利要求7所述的方法,其中,当所述预加载任务队列的队列长度大于所述队列长度阈值时,从所述预加载任务队列里移除先加入所述队列的视频。
  9. 如权利要求5或6所述的方法,其中,所述预加载任务队列是优先级队列。
  10. 如权利要求9所述的方法,其中,当所述预加载任务队列的队列长度大于所述队列长度阈值时,从所述预加载任务队列里移除优先级最低的视频。
  11. 如权利要求10所述的方法,其中,所述优先级根据视频热度和/ 或视频是否是用户喜爱的视频类型来设定。
  12. 一种预加载视频的设备,包括:
    用于监听视频列表的滚动事件的装置;
    用于当监听到滚动停止时、将滚动停止时视频列表窗口内显示的视频加入预加载任务队列的装置;以及
    用于预加载所述预加载任务队列中的视频的装置。
  13. 一种视频播放器,包括根据权利要求12所述的预加载视频的设备,或被设计成用于执行根据权利要求1所述的预加载视频的方法中的操作。
  14. 一种电子设备,包括根据权利要求13所述的视频播放器。
  15. 一种电子设备,包括:
    一个或多个处理器;
    存储器;
    一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于:
    监听视频列表的滚动事件;
    当监听到滚动停止时,将滚动停止时视频列表窗口内显示的视频加入预加载任务队列;以及
    预加载所述预加载任务队列中的视频。
  16. 如权利要求15所述的电子设备,其中,所述滚动事件由所述视频列表的滚动控件的操作触发。
  17. 如权利要求16所述的电子设备,其中,所述滚动事件包括所述滚动控件滚动和所述滚动控件滚动停止。
  18. 如权利要求15所述的电子设备,其中,当所述预加载任务队列的队列长度大于队列长度阈值时,从所述预加载任务队列里移除与超出所述队列长度阈值的数量相同数量的视频。
  19. 如权利要求18所述的电子设备,其中,根据视频列表窗口毎屏可显示视频数量来设定所述预加载任务队列的队列长度阈值。
  20. 如权利要求18所述的电子设备,其中,所述预加载任务队列的队列长度阈值设定为预定值。
  21. 如权利要求19或20所述的电子设备,其中,所述预加载任务队列是先进先出队列。
  22. 如权利要求21所述的电子设备,其中,当所述预加载任务队列的队列长度大于所述队列长度阈值时,从所述预加载任务队列里移除先加入所述队列的视频。
  23. 如权利要求19或20所述的电子设备,其中,所述预加载任务队列是优先级队列。
  24. 如权利要求23所述的电子设备,其中,当所述预加载任务队列的队列长度大于所述队列长度阈值时,从所述预加载任务队列里移除优先级最低的视频。
  25. 如权利要求24所述的电子设备,其中,所述优先级根据视频热度和/或视频是否是用户喜爱的视频类型来设定。
  26. 一种计算机可读存储介质,其上承载一个或多个计算机指令程序,所述计算机指令程序被一个或多个处理器执行时,所述一个或多个处理器执行权利要求1~11任一项所述的方法。
PCT/CN2017/120179 2017-05-05 2017-12-29 预加载视频的方法、设备、视频播放器、电子设备 WO2018201746A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710311774.X 2017-05-05
CN201710311774.XA CN107241639A (zh) 2017-05-05 2017-05-05 预加载视频的方法、设备、视频播放器、电子设备

Publications (1)

Publication Number Publication Date
WO2018201746A1 true WO2018201746A1 (zh) 2018-11-08

Family

ID=59984767

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/120179 WO2018201746A1 (zh) 2017-05-05 2017-12-29 预加载视频的方法、设备、视频播放器、电子设备

Country Status (2)

Country Link
CN (1) CN107241639A (zh)
WO (1) WO2018201746A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4030283A1 (en) * 2021-01-14 2022-07-20 Beijing Xiaomi Mobile Software Co., Ltd. Method and apparatus for loading picture
WO2022237461A1 (zh) * 2021-05-13 2022-11-17 北京字节跳动网络技术有限公司 视频的预加载方法、装置、设备及存储介质
RU2821840C2 (ru) * 2021-01-14 2024-06-26 Бейдзин Сяоми Мобайл Софтвэр Ко., Лтд. Способ и устройство для загрузки изображения

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107241639A (zh) * 2017-05-05 2017-10-10 广州优视网络科技有限公司 预加载视频的方法、设备、视频播放器、电子设备
CN109683991B (zh) * 2018-12-28 2022-05-27 广东亿迅科技有限公司 一种多策略快速获取大量设备信息的方法及装置
CN109874044B (zh) * 2019-01-30 2021-07-16 广州方硅信息技术有限公司 一种数据预存方法、系统、设备及计算机可读介质
CN110636367A (zh) * 2019-07-12 2019-12-31 北京无限光场科技有限公司 一种视频加载方法、装置、终端设备及介质
CN110719523A (zh) * 2019-10-22 2020-01-21 深圳墨世科技有限公司 一种视频预加载方法、装置、计算机设备及存储介质
CN111107438B (zh) * 2019-12-30 2022-04-22 北京奇艺世纪科技有限公司 一种视频加载方法、装置及电子设备
CN112667935A (zh) * 2020-12-08 2021-04-16 贝壳技术有限公司 列表加载方法及系统、电子设备及可读存储介质
CN112631752B (zh) * 2020-12-28 2024-04-19 中金数据(武汉)超算技术有限公司 一种基于操作优先度的列表操作方法及装置
CN113779461B (zh) * 2021-09-02 2024-09-27 北京有竹居网络技术有限公司 数据加载方法、装置和电子设备

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1550962A1 (fr) * 2004-06-01 2005-07-06 France Telecom Système et procédé informatiques de chargement de données
CN102724585A (zh) * 2012-06-29 2012-10-10 Tcl集团股份有限公司 一种用于终端设备网络视频播放预加载的方法及装置
CN103517154A (zh) * 2012-06-26 2014-01-15 深圳中兴网信科技有限公司 一种视频文件预加载方法及系统
CN103616991A (zh) * 2013-11-29 2014-03-05 乐视网信息技术(北京)股份有限公司 一种浮窗播放器多媒体预加载的方法及装置
CN104050172A (zh) * 2013-03-12 2014-09-17 腾讯科技(深圳)有限公司 网页图片加载方法和系统
CN104965659A (zh) * 2015-07-06 2015-10-07 无锡天脉聚源传媒科技有限公司 一种页面信息的预加载方法及装置
CN105338409A (zh) * 2014-06-30 2016-02-17 小米科技有限责任公司 一种网络视频预加载方法及装置
CN107241639A (zh) * 2017-05-05 2017-10-10 广州优视网络科技有限公司 预加载视频的方法、设备、视频播放器、电子设备

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1550962A1 (fr) * 2004-06-01 2005-07-06 France Telecom Système et procédé informatiques de chargement de données
CN103517154A (zh) * 2012-06-26 2014-01-15 深圳中兴网信科技有限公司 一种视频文件预加载方法及系统
CN102724585A (zh) * 2012-06-29 2012-10-10 Tcl集团股份有限公司 一种用于终端设备网络视频播放预加载的方法及装置
CN104050172A (zh) * 2013-03-12 2014-09-17 腾讯科技(深圳)有限公司 网页图片加载方法和系统
CN103616991A (zh) * 2013-11-29 2014-03-05 乐视网信息技术(北京)股份有限公司 一种浮窗播放器多媒体预加载的方法及装置
CN105338409A (zh) * 2014-06-30 2016-02-17 小米科技有限责任公司 一种网络视频预加载方法及装置
CN104965659A (zh) * 2015-07-06 2015-10-07 无锡天脉聚源传媒科技有限公司 一种页面信息的预加载方法及装置
CN107241639A (zh) * 2017-05-05 2017-10-10 广州优视网络科技有限公司 预加载视频的方法、设备、视频播放器、电子设备

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4030283A1 (en) * 2021-01-14 2022-07-20 Beijing Xiaomi Mobile Software Co., Ltd. Method and apparatus for loading picture
KR20220103005A (ko) * 2021-01-14 2022-07-21 베이징 시아오미 모바일 소프트웨어 컴퍼니 리미티드 이미지 로딩 방법 및 장치
US11762675B2 (en) 2021-01-14 2023-09-19 Beijing Xiaomi Mobile Software Co., Ltd. Method and apparatus for loading picture
RU2821840C2 (ru) * 2021-01-14 2024-06-26 Бейдзин Сяоми Мобайл Софтвэр Ко., Лтд. Способ и устройство для загрузки изображения
KR102703375B1 (ko) 2021-01-14 2024-09-06 베이징 시아오미 모바일 소프트웨어 컴퍼니 리미티드 이미지 로딩 방법 및 장치
WO2022237461A1 (zh) * 2021-05-13 2022-11-17 北京字节跳动网络技术有限公司 视频的预加载方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN107241639A (zh) 2017-10-10

Similar Documents

Publication Publication Date Title
WO2018201746A1 (zh) 预加载视频的方法、设备、视频播放器、电子设备
JP6318232B2 (ja) ユーザ通知及び制御のためのタブレベルでの音声管理
US10394437B2 (en) Custom widgets based on graphical user interfaces of applications
US9432314B2 (en) Quick navigation of message conversation history
US9514553B2 (en) Personalized content layout
US9032309B2 (en) Temporal task-based tab management
WO2018130220A1 (zh) 消息推送方法、设备及可编程设备
US20140186009A1 (en) Streaming media buffer points reflecting user behavior and interests
US9860306B2 (en) Component-specific application presentation histories
WO2018157850A1 (zh) 多线程分段下载方法、设备、客户端设备、电子设备及存储介质
WO2019007327A1 (zh) 视频播放方法、装置、计算设备以及存储介质
US20240171801A1 (en) Video processing method and apparatus, and electronic device and storage medium
AU2014250635A1 (en) Apparatus and method for editing synchronous media
US20170169599A1 (en) Methods and electronic devices for displaying picture
US20140297836A1 (en) Tracking usage metrics for a mobile application
US20200028961A1 (en) Switching presentations of representations of objects at a user interface
WO2024056040A1 (zh) 多媒体信息展示方法、装置和电子设备
WO2023273562A1 (zh) 视频播放方法及装置、电子设备和介质
EP2731011A1 (en) Shared instant media access for mobile devices
CN105229691B (zh) 在滚动时延迟繁重操作
CN111125480A (zh) 背景音乐的播放方法、设备、客户端装置及电子设备
WO2018177415A1 (zh) 搜索结果推荐方法、设备、搜索引擎及电子设备和介质
WO2023030325A1 (zh) 缓冲处理方法及装置
US11064264B2 (en) Intelligent rewind function when playing media content
WO2023030234A1 (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: 17908280

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17908280

Country of ref document: EP

Kind code of ref document: A1