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

视频播放方法及装置 Download PDF

Info

Publication number
WO2021143732A1
WO2021143732A1 PCT/CN2021/071543 CN2021071543W WO2021143732A1 WO 2021143732 A1 WO2021143732 A1 WO 2021143732A1 CN 2021071543 W CN2021071543 W CN 2021071543W WO 2021143732 A1 WO2021143732 A1 WO 2021143732A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
progress
playback
response
cache
Prior art date
Application number
PCT/CN2021/071543
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 EP21741584.3A priority Critical patent/EP4093039A4/en
Publication of WO2021143732A1 publication Critical patent/WO2021143732A1/zh
Priority to US17/731,448 priority patent/US20220256230A1/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
    • 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/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • 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/439Processing of audio elementary streams
    • 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/4424Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used

Definitions

  • the present disclosure relates to the technical field of video processing, and in particular to a video playback method and device.
  • the video playback function is a common function of the client's video player or video playback application. Among them, the performance of video playback directly affects the viewer's experience of watching the video.
  • the user terminal When the network condition is poor or the content distribution network is under high pressure, the user terminal is prone to abnormal situations when playing videos, and the video playback will be inconsistent.
  • 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 video is cached.
  • the video playback method further includes:
  • the video clip is played in a loop, and the target video is cached.
  • the video playback method further includes:
  • the first multimedia resource When it is detected that a video parsing failure occurs during the playback of the first video data, the first multimedia resource is loaded and displayed.
  • the step of loading and displaying the first multimedia resource in response to the first caching progress being less than or equal to a first preset threshold, includes:
  • the picture includes a dynamic picture.
  • the method before the step of obtaining the first cache progress of the target video, the method further includes:
  • the video playback method further includes:
  • a video playback device including:
  • the first progress obtaining unit is configured to execute in response to the target video playback instruction to obtain the first cache progress of the target video
  • the first resource display unit is configured to load and display a first multimedia resource in response to the first cache progress being less than or equal to a first preset threshold, where the first multimedia resource includes pictures and /Or audio;
  • the video caching unit is configured to cache the target video during the process of displaying the first multimedia resource.
  • the video playback device further includes:
  • the first video playing unit is configured to load and play the first video data that has been cached in the target video in response to the first caching progress being greater than the first preset threshold;
  • the first video segment acquiring unit is configured to perform when it is detected that the video data is interrupted during playback of the first video data, and to acquire the video segment in the first video data before the video data is interrupted;
  • the first loop playback unit is configured to perform loop playback of the video clip and buffer the target video.
  • the video playback device further includes:
  • the first video playing unit is configured to load and play the first video data that has been cached in the target video in response to the first caching progress being greater than the first preset threshold;
  • the first resource display unit is further configured to perform, when it is detected that the first video data is being played, a video parsing failure occurs, and load and display the first multimedia resource.
  • the first resource display unit is specifically configured to load and play pictures and/or audio pre-stored in the terminal in response to the first cache progress being less than or equal to a first preset threshold.
  • the picture includes a dynamic picture.
  • the video playback device further includes:
  • the second progress obtaining unit is configured to execute in response to the target video playback instruction to obtain the second cache progress of the guide video
  • the guide video playing unit is configured to load and play the guide video in response to determining that the guide video has been buffered according to the second caching progress;
  • the video buffer unit is further configured to buffer the target video during the process of playing the guide video
  • the first progress obtaining unit is specifically configured to perform, after the guide video is played, obtaining the first cache progress of the target video.
  • the video playback device further includes:
  • the second video data loading unit is configured to execute, in response to determining that the boot video is not cached according to the second cache progress, and the second cache progress is greater than a second preset threshold, loading the boot video The cached second video data;
  • the second video data playback unit is configured to perform loop playback of the second video data and buffer the target video
  • the first progress acquiring unit is specifically configured to acquire the first cache progress of the target video when the total duration of the loop playback of the second video data exceeds the playback duration of the guide video.
  • an electronic device including:
  • a memory for storing executable instructions of the processor
  • the processor is configured to execute the instructions to implement the video playback method described in any one of the embodiments of the first aspect.
  • a storage medium is provided.
  • the electronic device can execute any one of the embodiments of the first aspect. Video playback method.
  • a computer program product includes a computer program, the computer program is stored in a readable storage medium, and at least one processor of the device obtains data from the readable storage medium.
  • the computer program is read and executed, so that the device executes the video playback method described in any one of the embodiments of the first aspect.
  • the picture and/or audio are displayed to the user, and the target video is cached during the display. It can be understood that, compared with the existing stop-playing or pop-up playing abnormal prompt information, the present disclosure enables the terminal screen to always have pictures or sound playing, which can improve the continuity of video playback and help improve the playback effect.
  • 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 flow chart of looping video clips when the video is interrupted during video playback according to an exemplary embodiment.
  • Fig. 4 is a flowchart showing a first multimedia resource when a parsing failure occurs in video playback, according to an exemplary embodiment.
  • Fig. 5 is a flowchart showing a supplementary solution for adding a guide video according to an exemplary embodiment.
  • Fig. 6 is a block diagram showing a video playing device according to an exemplary embodiment.
  • Fig. 7 is an internal structure diagram of 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 terminal 102 interacts with the server 104 through the network.
  • the terminal when the terminal detects a playback request for the target video, the terminal sends the playback request to the server.
  • the server returns the target video data to the terminal in response to the playback request.
  • the terminal can cache the target video data. In cache
  • the terminal obtains the first caching progress of the target video in response to the target video play instruction, and loads and plays the corresponding first play resource by comparing the size of the first caching progress and the first preset threshold.
  • the terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
  • the server 104 may be implemented by an independent server or a server cluster composed of multiple servers.
  • Fig. 2 is a flow chart showing a method for playing a video according to an exemplary embodiment. As shown in Figure 2, the video playback method is used in the terminal 102 and includes the following steps:
  • step S202 in response to the target video playback instruction, the first cache progress of the target video is acquired.
  • the first cache progress is used to measure the data size of the target video that has been cached.
  • the first cache progress can be a numerical value, such as a percentage or a data amount.
  • the terminal when the terminal detects a playback request for the target video, the terminal sends the playback request to the server.
  • the server returns the target video data to the terminal in response to the playback request.
  • the terminal can cache the target video data.
  • the terminal obtains the corresponding target video play instruction, and obtains the first caching progress of the target video according to the target video play instruction. In some embodiments of the present disclosure, the terminal obtains the first caching progress of the target video at a preset interval.
  • step S204 in response to the first cache progress being less than or equal to the first preset threshold, the first multimedia resource is loaded and displayed.
  • the first multimedia resource includes pictures and/or audio.
  • the first preset threshold may be determined according to the performance of the playback device, or may be determined according to an empirical value.
  • the terminal compares the size of the first cache progress with the first preset threshold.
  • the first preset threshold value is 20%, of course, it can also be set to other values.
  • the first multimedia resource is loaded and displayed.
  • the picture in the first multimedia resource may be a picture related to the target video, for example, related to the content of the target video, then the picture may be a frame of image in the target video; It is related to the style of the target video. For example, if the target video is played in an anime style, the picture can be an anime picture.
  • the audio in the first multimedia resource may also be audio related to the target video.
  • the pictures and audio may also be independent of the target video.
  • the terminal in response to the first cache progress being less than or equal to the first preset threshold, loads and plays the pictures and/or audio separated from the target video. In this embodiment, the played pictures and/or audio can improve the user's sense of participation.
  • the picture and/or audio pre-stored from the terminal are loaded and played.
  • step S206 in the process of displaying the first multimedia resource, the target video is cached.
  • the terminal in the process of displaying the first multimedia resource, the terminal caches the target video at the same time, so as to achieve the purpose of caching while displaying.
  • the present disclosure enables the terminal screen to always have a picture or sound to play, which can improve the continuity of video playback, help improve the playback effect, and improve users Viewing experience.
  • the picture may be a static picture or a dynamic picture.
  • the use of dynamic pictures helps to improve the continuity of playback, and it is easier to attract the user's attention, which can effectively enhance the user's viewing experience.
  • the method further includes the following steps:
  • step S212 in response to the first cache progress being greater than the first preset threshold, load and play the cached first video data in the target video.
  • step S214 when it is detected that the video data is interrupted when the first video data is being played, the video segment in the first video data before the video data is interrupted is acquired.
  • step S216 the video clip is played cyclically, and the target video is cached.
  • the terminal in response to the first cache progress being greater than the first preset threshold, creates a target video player, loads and plays the first video data that has been cached in the target video.
  • the terminal in response to the terminal detecting that the first video data has a video data interruption, acquire a video segment in the first video data before the video data is interrupted. Since the video clip is data before the stream is cut off and can be played normally, the terminal plays the video clip in a loop to improve the playback continuity.
  • the target video is also cached.
  • the above-mentioned video segment may be all or part of the video data in the first video data before the video data is disconnected.
  • the non-jangling video is played in a loop to avoid the occurrence of the freeze condition, thereby improving the continuity of the video playback. , Is conducive to improving the playback effect.
  • the method includes the following steps:
  • step S212 in response to the first cache progress being greater than the first preset threshold, the first video data that has been cached in the target video is loaded and played.
  • step S2128 when it is detected that the video parsing fails when the first video data is being played, the first multimedia resource is loaded and displayed.
  • the terminal in response to the first cache progress being greater than the first preset threshold, loads and plays the first video data that has been cached in the target video.
  • the terminal in response to the terminal detecting that the first video data has a video parsing failure, loads and displays the first multimedia resource.
  • the terminal when the terminal detects that the first video data is being played, the video parsing failure occurs, and the terminal loads and plays the pictures and/or audio separated from the target video.
  • the user when a playback error occurs due to the failure of video parsing during the playback of the target video, in order to prevent the user from seeing only a black screen, the user is shown pictures and/or audio so that there is always a picture on the terminal screen Or there is sound playback, which can improve the continuity of video playback, which is beneficial to improve the playback effect and enhance the user's viewing experience.
  • step S202 before the step of obtaining the first cache progress of the target video, the following steps are further included:
  • step S222 in response to the target video playback instruction, the second cache progress of the guide video is acquired.
  • step S224 in response to determining that the boot video has been cached according to the second cache progress, load and play the boot video.
  • step S2266 during the process of playing the guide video, the target video is cached.
  • step S2228 after the guide video is played, the first cache progress of the target video is acquired.
  • the second cache progress is used to measure the data size of the boot video that has been cached.
  • the second cache progress can be a numerical value, such as a percentage or a data amount.
  • the second preset threshold may be determined according to the performance of the playback device, or may be determined according to an empirical value.
  • the video data volume of the guide video is much smaller than that of the target video, so it can be cached in a very short time.
  • the guide video may be cached in parallel with the target video.
  • the terminal after obtaining the target video playback instruction, the terminal obtains the second caching progress of the guide video according to the target video playback instruction. In some embodiments of the present disclosure, the terminal obtains the second caching progress of the guide video at a preset interval. Next, the terminal determines whether the boot video is cached according to the second cache progress, for example, determines whether the cache percentage reaches 100%, and in response to reaching 100%, determines that the boot video has been cached, and can load and play the boot video at this time. Among them, in the process of playing the guide video, the terminal continues to cache the target video, so that the target video obtains more buffer time, thereby increasing the proportion of normal playback of the target video. After the guide video is played, the terminal obtains the first cache progress of the target video.
  • the smoothness and continuity of playback can be increased, and on the other hand, the proportion of normal playback of the target video can be increased.
  • the method further includes the following steps:
  • step S225 in response to determining that the boot video is not cached according to the second cache progress, and the second cache progress is greater than a second preset threshold, load the second video data that has been cached in the boot video .
  • step S227 the second video data is played cyclically, and the target video is cached;
  • step S229 when the total duration of the loop playback of the second video data exceeds the playback duration of the guide video, the first cache progress of the target video is acquired.
  • the terminal determines whether the second cache progress is greater than a second preset threshold, such as 60%, and responds that it is greater than For the second preset threshold, the terminal loads the second video data that has been cached in the guide video, and then plays the second video data in a loop, and at the same time caches the target video. When the total duration of the loop playback of the second video data exceeds the playback duration of the guide video, the terminal obtains the first buffering progress of the target video. In response to being less than the second preset threshold, load and play the picture and/or audio pre-stored from the terminal.
  • a second preset threshold such as 60%
  • the above-mentioned picture may be a picture related to the guide video, for example, related to the content of the guide video, then the picture may be a frame of image in the guide video; for example, it is related to the style of the guide video, For example, if the guide video is played in anime style, then the picture can be an anime picture.
  • the above audio may also be audio related to the guide video.
  • the pictures and audio may also have nothing to do with the guide video.
  • the buffered video data can be played in a loop, which can also increase the smoothness of video playback.
  • Fig. 6 is a block diagram showing a data processing device according to an exemplary embodiment. 6, the device includes a first progress obtaining unit 302, a first resource display unit 304, and a video caching unit 306.
  • the first progress acquiring unit 302 is configured to execute in response to the target video playback instruction, acquiring the first cache progress of the target video;
  • the first resource display unit 304 is configured to load and display the first multimedia resource in response to the first cache progress being less than or equal to the first preset threshold, where the first multimedia resource includes pictures and/or audio ;
  • the video caching unit 306 is configured to cache the target video in the process of displaying the first multimedia resource.
  • the present disclosure enables images or sounds to be played on the terminal screen at all times, which can improve the continuity of video playback and help improve the playback effect.
  • the video playback device further includes:
  • the first video playing unit is configured to load and play the cached first video data in the target video in response to the first cache progress being greater than the first preset threshold;
  • the first video segment acquiring unit is configured to perform when it is detected that the video data is interrupted during playback of the first video data, and to acquire the video segment in the first video data before the video data is interrupted;
  • the first loop playback unit is configured to perform loop playback of the video clip and cache the target video.
  • the video playback device further includes:
  • the first video playing unit is configured to load and play the cached first video data in the target video in response to the first cache progress being greater than the first preset threshold;
  • the first resource display unit is further configured to execute when it is detected that the video parsing failure occurs when the first video data is played, loading and displaying the first multimedia resource.
  • the first resource display unit 304 is specifically configured to load and play pictures and/or audio pre-stored in the terminal in response to the first cache progress being less than or equal to the first preset threshold.
  • the picture includes a dynamic picture.
  • the video playback device further includes:
  • the video playback device further includes:
  • the second progress obtaining unit is configured to execute the second buffering progress of the guide video in response to the target video playback instruction
  • the boot video playing unit is configured to perform loading and playing the boot video in response to determining that the boot video has been cached according to the second cache progress;
  • the video buffer unit 306 is also configured to buffer the target video during the process of playing the guide video
  • the first progress obtaining unit 302 is specifically configured to obtain the first cache progress of the target video after the playback of the guide video is completed.
  • the video playback device further includes:
  • the second video data loading unit is configured to perform, in response to determining that the boot video is not cached according to the second cache progress, and the second cache progress is greater than a second preset threshold, loading the boot video that has been cached ⁇ second video data;
  • the second video data playback unit is configured to perform loop playback of the second video data and buffer the target video
  • the first progress acquiring unit 302 is specifically configured to acquire the first cache progress of the target video when the total duration of the loop playback of the second video data exceeds the playback duration of the guide video.
  • Fig. 7 is a block diagram showing a device 700 for executing a video playback method according to an exemplary embodiment.
  • the device 700 may be 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 device 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and Communication component 716.
  • a processing component 702 a memory 704
  • a power component 706 a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and Communication component 716.
  • I/O input/output
  • the processing component 702 generally controls the overall operations of the device 700, such as operations associated with display, phone calls, data communications, camera operations, and recording operations.
  • the processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the foregoing method.
  • the processing component 702 may include one or more modules to facilitate the interaction between the processing component 702 and other components.
  • the processing component 702 may include a multimedia module to facilitate the interaction between the multimedia component 708 and the processing component 702.
  • the memory 704 is configured to store various types of data to support the operation of the device 700. Examples of such data include instructions for any application or method operating on the device 700, contact data, phone book data, messages, pictures, videos, etc.
  • the memory 704 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, 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 706 provides power to various components of the device 700.
  • the power supply component 706 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 device 700.
  • the multimedia component 708 includes a screen that provides an output interface between the device 700 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 708 includes a front camera and/or a rear camera. When the device 700 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 710 is configured to output and/or input audio signals.
  • the audio component 710 includes a microphone (MIC).
  • the microphone is configured to receive external audio signals.
  • the received audio signal can be further stored in the memory 704 or sent via the communication component 716.
  • the audio component 710 further includes a speaker for outputting audio signals.
  • the I/O interface 712 provides an interface between the processing component 702 and a peripheral interface module.
  • the above-mentioned peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: home button, volume button, start button, and lock button.
  • the sensor component 714 includes one or more sensors for providing the device 700 with various aspects of status assessment.
  • the sensor component 714 can detect the on/off status of the device 700 and the relative positioning of components.
  • the component is the display and the keypad of the device 700.
  • the sensor component 714 can also detect the position change of the device 700 or a component of the device 700. , The presence or absence of contact between the user and the device 700, the orientation or acceleration/deceleration of the device 700, and the temperature change of the device 700.
  • the sensor component 714 may include a proximity sensor configured to detect the presence of nearby objects when there is no physical contact.
  • the sensor component 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor component 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • the communication component 716 is configured to facilitate wired or wireless communication between the device 700 and other devices.
  • the device 700 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 716 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel.
  • the communication component 716 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 device 700 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable A 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 programmable A gate array
  • controller microcontroller, microprocessor, or other electronic components are implemented to implement the above methods.
  • non-transitory computer-readable storage medium including instructions, such as the memory 704 including instructions, and the foregoing instructions may be executed by the processor 720 of the device 700 to complete the foregoing method.
  • the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本公开关于一种视频播放方法及装置。其中,该方法包括:响应于目标视频播放指令,获取目标视频的第一缓存进度;响应于第一缓存进度小于或等于第一预设阈值,加载并展示第一多媒体资源,其中,第一多媒体资源包括图片和/或音频;在展示第一多媒体资源的过程中,缓存目标视频。本方法在第一缓存进度小于或等于第一预设阈值时,向用户展示图片和/或音频,并且在展示期间缓存目标视频。

Description

视频播放方法及装置
相关申请的交叉引用
本公开要求北京达佳互联信息技术有限公司于2020年01月17日提交的、发明名称为“视频播放方法、装置、电子设备及存储介质”的、中国专利申请号“202010055814.0”的优先权。
技术领域
本公开涉及视频处理技术领域,尤其涉及视频播放方法及装置。
背景技术
在视频领域,视频播放功能是客户端的视频播放器或视频播放应用程序的常用功能。其中,视频播放的性能直接影响到观众看视频的体验。
在网络状况不佳,或者内容分发网络的压力较大时,用户终端在播放视频时极易出现异常状况,会出现视频播放不连贯。
发明内容
本公开提供一种视频播放方法及装置。本公开的技术方案如下:
根据本公开实施例的第一方面,提供一种视频播放方法,所述视频播放方法包括:
响应于目标视频播放指令,获取目标视频的第一缓存进度;
响应于所述第一缓存进度小于或等于第一预设阈值,加载并展示第一多媒体资源,其中,所述第一多媒体资源包括图片和/或音频;
在展示所述第一多媒体资源的过程中,缓存所述目标视频。
在其中一个实施例中,所述视频播放方法还包括:
响应于所述第一缓存进度大于所述第一预设阈值,加载并播放所述目标视频中已缓存的第一视频数据;
在检测到所述第一视频数据在播放时出现视频数据断流,获取视频数据断流前所述第一视频数据中的视频片段;
循环播放所述视频片段,并缓存所述目标视频。
在其中一个实施例中,所述视频播放方法还包括:
响应于所述第一缓存进度大于所述第一预设阈值,加载并播放所述目标视频中已缓存 的第一视频数据;
在检测到所述第一视频数据在播放时出现视频解析失败,加载并展示所述第一多媒体资源。
在其中一个实施例中,所述响应于所述第一缓存进度小于或等于第一预设阈值,加载并展示第一多媒体资源的步骤包括:
响应于所述第一缓存进度小于或等于第一预设阈值,加载并播放终端中预先存储的图片和/或音频。
在其中一个实施例中,所述图片包括动态图片。
在其中一个实施例中,所述获取目标视频的第一缓存进度的步骤之前,还包括:
响应于目标视频播放指令,获取引导视频的第二缓存进度;
响应于根据所述第二缓存进度确定所述引导视频已缓存完成,加载并播放所述引导视频;
在播放所述引导视频的过程中,缓存所述目标视频;
在所述引导视频播放完成后,获取所述目标视频的第一缓存进度。
在其中一个实施例中,所述视频播放方法还包括:
响应于根据所述第二缓存进度确定所述引导视频未缓存完成,且所述第二缓存进度大于第二预设阈值,加载所述引导视频中已缓存的第二视频数据;
循环播放所述第二视频数据,并缓存所述目标视频;
在所述第二视频数据循环播放的总时长超过所述引导视频的播放时长时,获取所述目标视频的第一缓存进度。
根据本公开实施例的第二方面,提供一种视频播放装置,所述视频播放装置包括:
第一进度获取单元,被配置为执行响应于目标视频播放指令,获取目标视频的第一缓存进度;
第一资源展示单元,被配置为执行响应于所述第一缓存进度小于或等于第一预设阈值,加载并展示第一多媒体资源,其中,所述第一多媒体资源包括图片和/或音频;
视频缓存单元,被配置为执行在展示所述第一多媒体资源的过程中,缓存所述目标视频。
在其中一个实施例中,所述视频播放装置还包括:
第一视频播放单元,被配置为执行响应于所述第一缓存进度大于所述第一预设阈值,加载并播放所述目标视频中已缓存的第一视频数据;
第一视频片段获取单元,被配置为执行在检测到所述第一视频数据在播放时出现视频数据断流,获取视频数据断流前所述第一视频数据中的视频片段;
第一循环播放单元,被配置为执行循环播放所述视频片段,并缓存所述目标视频。
在其中一个实施例中,所述视频播放装置还包括:
第一视频播放单元,被配置为执行响应于所述第一缓存进度大于所述第一预设阈值,加载并播放所述目标视频中已缓存的第一视频数据;
所述第一资源展示单元,还被配置为执行在检测到所述第一视频数据在播放时出现视频解析失败,加载并展示所述第一多媒体资源。
在其中一个实施例中,所述第一资源展示单元具体被配置为执行响应于所述第一缓存进度小于或等于第一预设阈值,加载并播放终端中预先存储的图片和/或音频。
在其中一个实施例中,所述图片包括动态图片。
在其中一个实施例中,所述视频播放装置还包括:
第二进度获取单元,被配置为执行响应于目标视频播放指令,获取引导视频的第二缓存进度;
引导视频播放单元,被配置为执行响应于根据所述第二缓存进度确定所述引导视频已缓存完成,加载并播放所述引导视频;
所述视频缓存单元,还被配置为执行在播放所述引导视频的过程中,缓存所述目标视频;
所述第一进度获取单元具体被配置为执行在所述引导视频播放完成后,获取所述目标视频的第一缓存进度。
在其中一个实施例中,所述视频播放装置还包括:
第二视频数据加载单元,被配置为执行响应于根据所述第二缓存进度确定所述引导视频未缓存完成,且所述第二缓存进度大于第二预设阈值,加载所述引导视频中已缓存的第二视频数据;
第二视频数据播放单元,被配置为执行循环播放所述第二视频数据,并缓存所述目标视频;
所述第一进度获取单元具体被配置为在所述第二视频数据循环播放的总时长超过所述引导视频的播放时长时,获取所述目标视频的第一缓存进度。
根据本公开实施例的第三方面,提供一种电子设备,包括:
处理器;
用于存储所述处理器可执行指令的存储器;
其中,所述处理器被配置为执行所述指令,以实现第一方面的任一项实施例所述的视频播放方法。
根据本公开实施例的第四方面,提供一种存储介质,当所述存储介质中的指令由电子 设备的处理器执行时,使得电子设备能够执行第一方面的任一项实施例所述的视频播放方法。
根据本公开实施例的第五方面,提供一种计算机程序产品,所述程序产品包括计算机程序,所述计算机程序存储在可读存储介质中,设备的至少一个处理器从所述可读存储介质读取并执行所述计算机程序,使得设备执行第一方面的任一项实施例中所述的视频播放方法。
在第一缓存进度小于或等于第一预设阈值时,向用户展示图片和/或音频,并且在展示期间缓存目标视频。可以理解,相比较于现有的停止播放或弹出播放异常提示信息而言,本公开使得终端屏幕中始终有画面或者有声音播放,可提升视频播放的连贯性,有利于提高播放效果。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理,并不构成对本公开的不当限定。
图1是根据一示例性实施例示出的一种视频播放方法的应用环境图。
图2是根据一示例性实施例示出的一种视频播放方法的流程图。
图3是根据一示例性实施例示出的在视频播放出现断流时,循环播放视频片段的流程图。
图4是根据一示例性实施例示出的在视频播放出现解析失败时,展示第一多媒体资源的流程图。
图5是根据一示例性实施例示出的增加引导视频的补充方案的流程图。
图6是根据一示例性实施例示出的一种视频播放装置的框图。
图7是根据一示例性实施例示出的一种电子设备的内部结构图。
具体实施方式
为了使本领域普通人员更好地理解本公开的技术方案,下面将结合附图,对本公开实施例中的技术方案进行清楚、完整地描述。本公开的所有实施例均可以单独被执行,也可以与其他实施例相结合共同被执行,本公开对此不做限制。
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的 数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。
本公开所提供的视频播放方法,可以应用于如图1所示的应用环境中。其中,终端102通过网络与服务器104进行交互。在本公开的实施例中,终端在检测到针对目标视频的播放请求时,将该播放请求发送给服务器。服务器响应于该播放请求返回目标视频数据给终端。由此,终端可缓存目标视频数据。在缓存
过程中,终端响应于目标视频播放指令,获取目标视频的第一缓存进度,并通过比较第一缓存进度和第一预设阈值的大小,加载并播放相应的第一播放资源。
其中,终端102可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备,服务器104可以用独立的服务器或者是多个服务器组成的服务器集群来实现。
图2是根据一示例性实施例示出的一种视频播放方法的流程图。如图2所示,视频播放方法用于终端102中,包括以下步骤:
在步骤S202中,响应于目标视频播放指令,获取目标视频的第一缓存进度。
其中,第一缓存进度用于衡量已经缓存的目标视频的数据大小。该第一缓存进度可为一数值,例如百分数或数据量。
在本公开的实施例中,终端在检测到针对目标视频的播放请求时,将该播放请求发送给服务器。服务器响应于该播放请求返回目标视频数据给终端。由此,终端可缓存目标视频数据。在缓存过程中,终端获取相应的目标视频播放指令,并根据该目标视频播放指令,获取目标视频的第一缓存进度。在本公开的一些实施例中,终端以预设间隔获取目标视频的第一缓存进度。
在步骤S204中,响应于第一缓存进度小于或等于第一预设阈值,加载并展示第一多媒体资源。
其中,第一多媒体资源包括图片和/或音频。第一预设阈值可根据播放设备的性能来确定,也可以根据经验值确定。
在本公开的实施例中,终端在获得第一缓存进度之后,比较第一缓存进度与第一预设阈值的大小。在本公开的一些实施例中,第一预设阈值为20%,当然也可以设定为其他值。响应于第一缓存进度小于或等于第一预设阈值,加载并展示第一多媒体资源。
在本公开的一些实施例中,第一多媒体资源中的图片可以是与目标视频相关的图片,例如与目标视频的内容相关,那么该图片可以是目标视频中的一帧图像;又如与目标视频 的风格相关,比方说目标视频播放的是动漫风格,那么该图片可以是动漫图片。同理,第一多媒体资源中的音频也可以是与目标视频相关的音频。当然,所述图片和音频也可以与目标视频无关。作为一种实施方式,响应于第一缓存进度小于或等于第一预设阈值,终端加载并播放从目标视频中分离的图片和/或音频。在本实施方式中,所播放的图片和/或音频能够提高用户的参与感。作为另一种实施方式,响应于第一缓存进度小于或等于第一预设阈值,加载并播放从终端中预先存储的图片和/或音频。
在步骤S206中,在展示第一多媒体资源的过程中,缓存目标视频。
在本公开的实施例中,终端在展示第一多媒体资源的过程中,一并缓存目标视频,实现边展示边缓存的目的。
上述视频播放方法中,在第一缓存进度小于或等于第一预设阈值时,向用户展示图片和/或音频,并且在展示期间缓存目标视频。可以理解,相比较于现有的停止播放或弹出播放异常提示信息而言,本公开使得终端屏幕中始终有画面或者有声音播放,可提升视频播放的连贯性,有利于提高播放效果,提升用户的观看体验。
在本公开的一些实施例中,该图片可以是静态图片,也可以是动态图片。采用动态图片有助于提高播放的连贯性,且更容易吸引用户的注意力,可有效提升用户的观看体验。
在一示例性实施例中,请参阅图3,该方法还包括以下步骤:
在步骤S212中,响应于第一缓存进度大于第一预设阈值,加载并播放目标视频中已缓存的第一视频数据。
在步骤S214中,在检测到第一视频数据在播放时出现视频数据断流,获取视频数据断流前第一视频数据中的视频片段。
在步骤S216中,循环播放视频片段,并缓存目标视频。
在本公开的实施例中,响应于第一缓存进度大于第一预设阈值,终端创建目标视频播放器,加载并播放目标视频中已缓存的第一视频数据。在第一视频数据播放过程中,响应于终端检测到第一视频数据出现视频数据断流,获取视频数据断流前第一视频数据中的视频片段。由于该视频片段为断流前数据,可正常播放,因此终端循环播放该视频片段以提高播放连贯性。在循环播放视频片段的过程中,一并缓存目标视频。在本公开的一些实施例中,上述视频片段可以是视频数据断流前第一视频数据中的全部或部分视频数据。
在本实施例中,在目标视频播放中由于视频数据断流而出现卡顿状况时,采用循环播放不卡顿的视频的方式,以避免卡顿状况的发生,从而可提升视频播放的连贯性,有利于提高播放效果。
在一示例性实施例中,请参阅图4,该方法包括以下步骤:
在步骤S212中,响应于第一缓存进度大于第一预设阈值,加载并播放目标视频中已缓 存的第一视频数据。
在步骤S218中,在检测到第一视频数据在播放时出现视频解析失败,加载并展示第一多媒体资源。
在本公开的实施例中,响应于第一缓存进度大于第一预设阈值,终端加载并播放目标视频中已缓存的第一视频数据。在第一视频数据播放过程中,响应于终端检测到第一视频数据出现视频解析失败,终端加载并展示第一多媒体资源。在本公开的一些实施例中,在终端检测到第一视频数据在播放时出现视频解析失败,终端加载并播放从目标视频中分离的图片和/或音频。
在本实施例中,在目标视频播放中由于视频解析失败而出现播放出错状况时,为了避免用户只能看到一张黑屏,通过向用户展示图片和/或音频,使得终端屏幕中始终有画面或者有声音播放,可提升视频播放的连贯性,有利于提高播放效果,提升用户的观看体验。
在一示例性实施例中,请参阅图5,在步骤S202中,获取目标视频的第一缓存进度的步骤之前,还包括以下步骤:
在步骤S222中,响应于目标视频播放指令,获取引导视频的第二缓存进度。
在步骤S224中,响应于根据所述第二缓存进度确定所述引导视频已缓存完成,加载并播放所述引导视频。
在步骤S226中,在播放所述引导视频的过程中,缓存所述目标视频。
在步骤S228中,在所述引导视频播放完成后,获取所述目标视频的第一缓存进度。
其中,第二缓存进度用于衡量已经缓存的引导视频的数据大小。该第二缓存进度可为一数值,例如百分数或数据量。第二预设阈值可根据播放设备的性能来确定,也可以根据经验值确定。通常,引导视频相对于目标视频而言,其视频数据量要小很多,因此可以在极短时间内缓存完成。在本公开的一些实施例中,引导视频可与目标视频并行缓存。
在本公开的实施例中,终端在获得目标视频播放指令后,根据该目标视频播放指令,获取引导视频的第二缓存进度。在本公开的一些实施例中,终端以预设间隔获取引导视频的第二缓存进度。接下来,终端根据该第二缓存进度判断引导视频是否缓存完成,例如判断缓存百分比是否达到100%,响应于达到,确定引导视频已缓存完成,此时可加载并播放该引导视频。其中,在播放引导视频的过程中,终端继续缓存目标视频,以使目标视频获得更多的缓存时间,从而增加目标视频正常播放的比例。而在引导视频播放完成后,终端获取目标视频的第一缓存进度。
在本实施例中,通过引入引导视频以供用户观看,一方面可增加播放的流畅性和连贯性,另一方面可增加目标视频正常播放的比例。
在一示例性实施例中,该方法还包括以下步骤:
在步骤S225中,响应于根据所述第二缓存进度确定所述引导视频未缓存完成,且所述第二缓存进度大于第二预设阈值,加载所述引导视频中已缓存的第二视频数据。
在步骤S227中,循环播放所述第二视频数据,并缓存所述目标视频;
在步骤S229中,在所述第二视频数据循环播放的总时长超过所述引导视频的播放时长时,获取所述目标视频的第一缓存进度。
在本公开的实施例中,如上所述,例如缓存百分比未达到100%,确定引导视频未缓存完成,此时终端判断第二缓存进度是否大于第二预设阈值,例如60%,响应于大于第二预设阈值,终端加载引导视频中已缓存的第二视频数据,进而循环播放该第二视频数据,与此同时缓存目标视频。而在第二视频数据循环播放的总时长超过引导视频的播放时长时,终端获取目标视频的第一缓存进度。响应于小于第二预设阈值,加载并播放从终端中预先存储的图片和/或音频。
在本公开的一些实施例中,上述图片可以是与引导视频相关的图片,例如与引导视频的内容相关,那么该图片可以是引导视频中的一帧图像;又如与引导视频的风格相关,比方说引导视频播放的是动漫风格,那么该图片可以是动漫图片。同理,上述音频也可以是与引导视频相关的音频。当然,所述图片和音频也可以与引导视频无关。
在本实施例中,在引导视频缓存不足时,可循环播放已缓存的视频数据,同样可以增加视频播放的流畅性。
应该理解的是,虽然图2-5的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-5中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。
图6是根据一示例性实施例示出的一种数据处理装置框图。参照图6,该装置包括第一进度获取单元302,第一资源展示单元304和视频缓存单元306。
该第一进度获取单元302被配置为执行响应于目标视频播放指令,获取目标视频的第一缓存进度;
该第一资源展示单元304被配置为执行响应于第一缓存进度小于或等于第一预设阈值,加载并展示第一多媒体资源,其中,第一多媒体资源包括图片和/或音频;
该视频缓存单元306被配置为执行在展示第一多媒体资源的过程中,缓存目标视频。
上述视频播放装置中,在第一缓存进度小于或等于第一预设阈值时,向用户展示图片和/或音频,并且在展示期间缓存目标视频。可以理解,相比较于现有的停止播放或弹出播 放异常提示信息而言,本公开使得终端屏幕中始终有画面或者有声音播放,可提升视频播放的连贯性,有利于提高播放效果。
在一示例性实施例中,该视频播放装置还包括:
第一视频播放单元被配置为执行响应于第一缓存进度大于第一预设阈值,加载并播放目标视频中已缓存的第一视频数据;
第一视频片段获取单元被配置为执行在检测到第一视频数据在播放时出现视频数据断流,获取视频数据断流前第一视频数据中的视频片段;
第一循环播放单元被配置为执行循环播放视频片段,并缓存目标视频。
在一示例性实施例中,该视频播放装置还包括:
第一视频播放单元被配置为执行响应于第一缓存进度大于第一预设阈值,加载并播放目标视频中已缓存的第一视频数据;
第一资源展示单元还被配置为执行在检测到第一视频数据在播放时出现视频解析失败,加载并展示第一多媒体资源。
在一示例性实施例中,第一资源展示单元304具体被配置为执行响应于第一缓存进度小于或等于第一预设阈值,加载并播放终端中预先存储的图片和/或音频。
在一示例性实施例中,图片包括动态图片。
在一示例性实施例中,该视频播放装置还包括:
所述视频播放装置还包括:
第二进度获取单元被配置为执行响应于目标视频播放指令,获取引导视频的第二缓存进度;
引导视频播放单元被配置为执行响应于根据所述第二缓存进度确定所述引导视频已缓存完成,加载并播放所述引导视频;
该视频缓存单元306还被配置为执行在播放所述引导视频的过程中,缓存所述目标视频;
该第一进度获取单元302具体被配置为执行在所述引导视频播放完成后,获取所述目标视频的第一缓存进度。
在一示例性实施例中,该视频播放装置还包括:
第二视频数据加载单元被配置为执行响应于根据所述第二缓存进度确定所述引导视频未缓存完成,且所述第二缓存进度大于第二预设阈值,加载所述引导视频中已缓存的第二视频数据;
第二视频数据播放单元被配置为执行循环播放所述第二视频数据,并缓存所述目标视频;
该第一进度获取单元302具体被配置为在所述第二视频数据循环播放的总时长超过所述引导视频的播放时长时,获取所述目标视频的第一缓存进度。
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
图7是根据一示例性实施例示出的一种用于执行视频播放方法的设备700的框图。例如,设备700可以是移动电话、计算机、数字广播客户端、消息收发设备、游戏控制台、平板设备、医疗设备、健身设备、个人数字助理等。
参照图7,设备700可以包括以下一个或多个组件:处理组件702、存储器704、电力组件706、多媒体组件708、音频组件710、输入/输出(I/O)的接口712、传感器组件714以及通信组件716。
处理组件702通常控制设备700的整体操作,诸如与显示、电话呼叫、数据通信、相机操作和记录操作相关联的操作。处理组件702可以包括一个或多个处理器720来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件702可以包括一个或多个模块,便于处理组件702和其他组件之间的交互。例如,处理组件702可以包括多媒体模块,以方便多媒体组件708和处理组件702之间的交互。
存储器704被配置为存储各种类型的数据以支持在设备700的操作。这些数据的示例包括用于在设备700上操作的任何应用程序或方法的指令、联系人数据、电话簿数据、消息、图片、视频等。存储器704可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM)、电可擦除可编程只读存储器(EEPROM)、可擦除可编程只读存储器(EPROM)、可编程只读存储器(PROM)、只读存储器(ROM)、磁存储器、快闪存储器、磁盘或光盘。
电源组件706为设备700的各种组件提供电力。电源组件706可以包括电源管理系统,一个或多个电源,及其他与为设备700生成、管理和分配电力相关联的组件。
多媒体组件708包括在所述设备700和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件708包括一个前置摄像头和/或后置摄像头。当设备700处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件710被配置为输出和/或输入音频信号。例如,音频组件710包括一个麦克风 (MIC),当设备700处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器704或经由通信组件716发送。在一些实施例中,音频组件710还包括一个扬声器,用于输出音频信号。
I/O接口712为处理组件702和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。
传感器组件714包括一个或多个传感器,用于为设备700提供各个方面的状态评估。例如,传感器组件714可以检测到设备700的打开/关闭状态,组件的相对定位,例如所述组件为设备700的显示器和小键盘,传感器组件714还可以检测设备700或设备700一个组件的位置改变,用户与设备700接触的存在或不存在,设备700方位或加速/减速和设备700的温度变化。传感器组件714可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件714还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件714还可以包括加速度传感器、陀螺仪传感器、磁传感器、压力传感器或温度传感器。
通信组件716被配置为便于设备700和其他设备之间有线或无线方式的通信。设备700可以接入基于通信标准的无线网络,如WiFi,运营商网络(如2G、3G、4G或5G),或它们的组合。在一个示例性实施例中,通信组件716经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件716还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,设备700可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器704,上述指令可由设备700的处理器720执行以完成上述方法。例如,非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。

Claims (16)

  1. 一种视频播放方法,其中,所述视频播放方法包括:
    响应于目标视频播放指令,获取目标视频的第一缓存进度;
    响应于所述第一缓存进度小于或等于第一预设阈值,加载并展示第一多媒体资源,其中,所述第一多媒体资源包括图片和/或音频;
    在展示所述第一多媒体资源的过程中,缓存所述目标视频。
  2. 根据权利要求1所述的视频播放方法,其中,所述视频播放方法还包括:
    响应于所述第一缓存进度大于所述第一预设阈值,加载并播放所述目标视频中已缓存的第一视频数据;
    在检测到所述第一视频数据在播放时出现视频数据断流,获取视频数据断流前所述第一视频数据中的视频片段;
    循环播放所述视频片段,并缓存所述目标视频。
  3. 根据权利要求1或2所述的视频播放方法,其中,所述视频播放方法还包括:
    响应于所述第一缓存进度大于所述第一预设阈值,加载并播放所述目标视频中已缓存的第一视频数据;
    在检测到所述第一视频数据在播放时出现视频解析失败,加载并展示所述第一多媒体资源。
  4. 根据权利要求1-3任一所述的视频播放方法,其中,所述响应于所述第一缓存进度小于或等于第一预设阈值,加载并展示第一多媒体资源的步骤包括:
    响应于所述第一缓存进度小于或等于第一预设阈值,加载并播放终端中预先存储的图片和/或音频。
  5. 根据权利要求1或4所述的视频播放方法,其中,所述图片包括动态图片。
  6. 根据权利要求1-5任一所述的视频播放方法,其中,所述获取目标视频的第一缓存进度的步骤之前,还包括:
    响应于目标视频播放指令,获取引导视频的第二缓存进度;
    响应于根据所述第二缓存进度确定所述引导视频已缓存完成,加载并播放所述引导视频;
    在播放所述引导视频的过程中,缓存所述目标视频;
    在所述引导视频播放完成后,获取所述目标视频的第一缓存进度。
  7. 根据权利要求6所述的视频播放方法,其中,所述视频播放方法还包括:
    响应于根据所述第二缓存进度确定所述引导视频未缓存完成,且所述第二缓存进度大于第二预设阈值,加载所述引导视频中已缓存的第二视频数据;
    循环播放所述第二视频数据,并缓存所述目标视频;
    在所述第二视频数据循环播放的总时长超过所述引导视频的播放时长时,获取所述目标视频的第一缓存进度。
  8. 一种视频播放装置,其中,所述视频播放装置包括:
    第一进度获取单元,被配置为执行响应于目标视频播放指令,获取目标视频的第一缓存进度;
    第一资源展示单元,被配置为执行响应于所述第一缓存进度小于或等于第一预设阈值,加载并展示第一多媒体资源,其中,所述第一多媒体资源包括图片和/或音频;
    视频缓存单元,被配置为执行在展示所述第一多媒体资源的过程中,缓存所述目标视频。
  9. 根据权利要求8所述的视频播放装置,其中,所述视频播放装置还包括:
    第一视频播放单元,被配置为执行响应于所述第一缓存进度大于所述第一预设阈值,加载并播放所述目标视频中已缓存的第一视频数据;
    第一视频片段获取单元,被配置为执行在检测到所述第一视频数据在播放时出现视频数据断流,获取视频数据断流前所述第一视频数据中的视频片段;
    第一循环播放单元,被配置为执行循环播放所述视频片段,并缓存所述目标视频。
  10. 根据权利要求8或9所述的视频播放装置,其中,所述视频播放装置还包括:
    第一视频播放单元,被配置为执行响应于所述第一缓存进度大于所述第一预设阈值,加载并播放所述目标视频中已缓存的第一视频数据;
    所述第一资源展示单元,还被配置为执行在检测到所述第一视频数据在播放时出现视频解析失败,加载并展示所述第一多媒体资源。
  11. 根据权利要求8-10任一所述的视频播放装置,其中,所述第一资源展示单元具体被配置为执行响应于所述第一缓存进度小于或等于第一预设阈值,加载并播放终端中预先存储的图片和/或音频。
  12. 根据权利要求8或11所述的视频播放装置,其中,所述图片包括动态图片。
  13. 根据权利要求9-12任一所述的视频播放装置,其中,所述视频播放装置还包括:
    第二进度获取单元,被配置为执行响应于目标视频播放指令,获取引导视频的第二缓存进度;
    引导视频播放单元,被配置为执行响应于根据所述第二缓存进度确定所述引导视频已 缓存完成,加载并播放所述引导视频;
    所述视频缓存单元,还被配置为执行在播放所述引导视频的过程中,缓存所述目标视频;
    所述第一进度获取单元具体被配置为执行在所述引导视频播放完成后,获取所述目标视频的第一缓存进度。
  14. 根据权利要求13所述的视频播放装置,其中,所述视频播放装置还包括:
    第二视频数据加载单元,被配置为执行响应于根据所述第二缓存进度确定所述引导视频未缓存完成,且所述第二缓存进度大于第二预设阈值,加载所述引导视频中已缓存的第二视频数据;
    第二视频数据播放单元,被配置为执行循环播放所述第二视频数据,并缓存所述目标视频;
    所述第一进度获取单元具体被配置为在所述第二视频数据循环播放的总时长超过所述引导视频的播放时长时,获取所述目标视频的第一缓存进度。
  15. 一种电子设备,其中,包括:
    处理器;
    用于存储所述处理器可执行指令的存储器;
    其中,所述处理器被配置为执行所述指令,以实现如权利要求1至7中任一项所述的视频播放方法。
  16. 一种存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行如权利要求1至7中任一项所述的视频播放方法。
PCT/CN2021/071543 2020-01-17 2021-01-13 视频播放方法及装置 WO2021143732A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP21741584.3A EP4093039A4 (en) 2020-01-17 2021-01-13 METHOD AND APPARATUS FOR PLAYING VIDEO
US17/731,448 US20220256230A1 (en) 2020-01-17 2022-04-28 Method and apparatus for video playing

Applications Claiming Priority (2)

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

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/731,448 Continuation US20220256230A1 (en) 2020-01-17 2022-04-28 Method and apparatus for video playing

Publications (1)

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

Family

ID=70831828

Family Applications (1)

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

Country Status (4)

Country Link
US (1) US20220256230A1 (zh)
EP (1) EP4093039A4 (zh)
CN (1) CN111225270A (zh)
WO (1) WO2021143732A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114640886A (zh) * 2022-02-28 2022-06-17 深圳市宏电技术股份有限公司 自适应带宽的音视频传输方法、装置、计算机设备及介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111225270A (zh) * 2020-01-17 2020-06-02 北京达佳互联信息技术有限公司 视频播放方法、装置、电子设备及存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103425504A (zh) * 2012-05-18 2013-12-04 阿里巴巴集团控股有限公司 视频文件的加载方法和装置
CN103517150A (zh) * 2013-09-13 2014-01-15 广东欧珀移动通信有限公司 蓝光播放器用以表示网络视频正在加载的方法及系统
CN105357562A (zh) * 2015-11-11 2016-02-24 腾讯科技(深圳)有限公司 一种信息处理方法及终端
US20170069351A1 (en) * 2014-02-24 2017-03-09 Ctrlmovie Ag Device and method for playing an interactive audiovisual movie
CN107707969A (zh) * 2017-09-04 2018-02-16 深圳市屯奇尔科技有限公司 视频播放方法、装置及终端设备
CN110430461A (zh) * 2019-08-28 2019-11-08 腾讯科技(深圳)有限公司 一种控制视频播放的方法、装置及视频播放设备
CN111225270A (zh) * 2020-01-17 2020-06-02 北京达佳互联信息技术有限公司 视频播放方法、装置、电子设备及存储介质

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1980377A (zh) * 2005-12-01 2007-06-13 北京北大方正电子有限公司 一种智能插播素材的方法
US20080263581A1 (en) * 2007-04-19 2008-10-23 Gary Turner Recorded commercial optimization method and system
CN101198022B (zh) * 2007-12-26 2010-06-02 青岛海信移动通信技术股份有限公司 在流媒体播放或者缓冲过程中插播视频信息的方法
CN104427286B (zh) * 2013-08-20 2019-01-01 中国移动通信集团公司 一种进行视频通话的方法和系统
CN103607634A (zh) * 2013-11-19 2014-02-26 四川长虹电器股份有限公司 一种减少网络视频点播终端用户等待时间的方法
CN103731727A (zh) * 2013-12-10 2014-04-16 乐视网信息技术(北京)股份有限公司 一种播放视频的方法和视频播放器
CN105744371B (zh) * 2014-12-09 2019-05-10 深圳Tcl数字技术有限公司 流媒体数据的播放方法及装置
CN105025344A (zh) * 2015-07-22 2015-11-04 无锡天脉聚源传媒科技有限公司 一种插播方法及装置
CN105979344A (zh) * 2015-11-27 2016-09-28 乐视致新电子科技(天津)有限公司 一种多媒体播放方法及播放器
US10063939B1 (en) * 2017-04-26 2018-08-28 International Business Machines Corporation Intelligent replay of user specific interesting content during online video buffering
US11025900B2 (en) * 2018-07-18 2021-06-01 Universal City Studios Llc System and method for identifying b-roll conditions in live streams or live rendered content

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103425504A (zh) * 2012-05-18 2013-12-04 阿里巴巴集团控股有限公司 视频文件的加载方法和装置
CN103517150A (zh) * 2013-09-13 2014-01-15 广东欧珀移动通信有限公司 蓝光播放器用以表示网络视频正在加载的方法及系统
US20170069351A1 (en) * 2014-02-24 2017-03-09 Ctrlmovie Ag Device and method for playing an interactive audiovisual movie
CN105357562A (zh) * 2015-11-11 2016-02-24 腾讯科技(深圳)有限公司 一种信息处理方法及终端
CN107707969A (zh) * 2017-09-04 2018-02-16 深圳市屯奇尔科技有限公司 视频播放方法、装置及终端设备
CN110430461A (zh) * 2019-08-28 2019-11-08 腾讯科技(深圳)有限公司 一种控制视频播放的方法、装置及视频播放设备
CN111225270A (zh) * 2020-01-17 2020-06-02 北京达佳互联信息技术有限公司 视频播放方法、装置、电子设备及存储介质

Non-Patent Citations (1)

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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114640886A (zh) * 2022-02-28 2022-06-17 深圳市宏电技术股份有限公司 自适应带宽的音视频传输方法、装置、计算机设备及介质
CN114640886B (zh) * 2022-02-28 2023-09-15 深圳市宏电技术股份有限公司 自适应带宽的音视频传输方法、装置、计算机设备及介质

Also Published As

Publication number Publication date
EP4093039A4 (en) 2024-01-10
CN111225270A (zh) 2020-06-02
EP4093039A1 (en) 2022-11-23
US20220256230A1 (en) 2022-08-11

Similar Documents

Publication Publication Date Title
CN104469437B (zh) 广告推送方法及装置
US9661390B2 (en) Method, server, and user terminal for sharing video information
CN106941624B (zh) 网络视频试看的处理方法和装置
CN112218103A (zh) 直播间互动方法、装置、电子设备和存储介质
CN109348239B (zh) 直播片段处理方法、装置、电子设备及存储介质
CN107396171A (zh) 网络直播方法、装置和存储介质
CN111970533A (zh) 直播间的互动方法、装置及电子设备
CN111246283B (zh) 视频播放方法、装置、电子设备及存储介质
WO2021143732A1 (zh) 视频播放方法及装置
CN113065008A (zh) 信息推荐方法、装置、电子设备及存储介质
WO2021143735A1 (zh) 视频播放方法及装置
CN111970566A (zh) 视频播放方法、装置、电子设备及存储介质
CN108769769B (zh) 视频的播放方法、装置及计算机可读存储介质
WO2023035560A1 (zh) 信息处理方法及装置
CN114554231A (zh) 一种信息显示方法、装置、电子设备及存储介质
CN112685599B (zh) 视频推荐方法及装置
WO2019095810A1 (zh) 界面展示方法及装置
US11600300B2 (en) Method and device for generating dynamic image
CN111246303B (zh) 视频播放方法、装置、电子设备及存储介质
WO2020108025A1 (zh) 信息提示方法、装置、电子设备及存储介质
CN106535000A (zh) 一种发送社交信息的方法及装置
CN116233554A (zh) 视频播放方法、装置、电子设备和存储介质
CN113709538B (zh) 一种多媒体数据播放方法、装置、电子设备及存储介质
WO2021103742A1 (zh) 一种资源管理方法、装置及电子设备
CN111880602B (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: 21741584

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: 2021741584

Country of ref document: EP

Effective date: 20220817