CN111246303B - Video playing method and device, electronic equipment and storage medium - Google Patents

Video playing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111246303B
CN111246303B CN202010055035.0A CN202010055035A CN111246303B CN 111246303 B CN111246303 B CN 111246303B CN 202010055035 A CN202010055035 A CN 202010055035A CN 111246303 B CN111246303 B CN 111246303B
Authority
CN
China
Prior art keywords
video
video data
playing
target
storage device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010055035.0A
Other languages
Chinese (zh)
Other versions
CN111246303A (en
Inventor
李金海
帅龙成
苍鹏
王涛
蒋鹏程
刘玉鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202010055035.0A priority Critical patent/CN111246303B/en
Publication of CN111246303A publication Critical patent/CN111246303A/en
Application granted granted Critical
Publication of CN111246303B publication Critical patent/CN111246303B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/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/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
    • 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/44204Monitoring of content usage, e.g. the number of times a movie has been viewed, copied or the amount which has been watched

Abstract

The disclosure relates to a video playing device, an electronic device and a storage medium. The method comprises the following steps: in the playing process of the target video, the playing progress of the video data of the target video is detected, wherein the video data of the target video is downloaded video data, and when the video data of the target video is detected to be played completely, the video data is read from the initial position of the video data of the target video and the read video data is played, so that the problem of blocking is solved, and a user can visually see the video which is smoothly played.

Description

Video playing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of audio and video technologies, and in particular, to a video playing method and apparatus, an electronic device, and a storage medium.
Background
At present, with the development of broadband networks, network video-on-demand has become a trend, and the network video-on-demand can be accessed to a network to provide richer playing experience for users. However, at present, if the currently used network state is not good, for example, network jitter occurs, the network video will be always in a buffer state, and the phenomenon that the video playing is stuck and playing is not smooth occurs.
Disclosure of Invention
The present disclosure provides a video playing method, device, electronic device and storage medium, so as to at least solve the problem of video blocking in a special scene in the related art. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a video playing method, including:
in the playing process of a target video, detecting the playing progress of video data of the target video, wherein the video data of the target video is downloaded video data;
and when the video data of the target video is detected to be played completely, reading the video data from the initial position of the video data of the target video, and playing the read video data.
In an optional embodiment, the method further comprises:
and when the quantity of the video data of the target video exceeds a first preset threshold value, playing the target video.
In an optional embodiment, the method further comprises:
responding to a video playing request, storing the downloaded and acquired video data into a first storage device, and caching the video data into a second storage device;
the detecting the playing progress of the video data of the target video includes:
detecting a remaining amount of video data in the first storage device.
In an optional embodiment, when it is detected that the video data of the target video is completely played, reading the video data from a start position of the video data of the target video, and playing the read video data, includes:
and when the video data of the target video is detected to be played completely, reading the video data from the initial position of the video data stored in the first storage equipment, and playing the read video data.
In an optional embodiment, when it is detected that the video data of the target video is completely played, reading the video data from a start position of the video data of the target video, and playing the read video data, includes:
when the video data of the target video is detected to be played completely, the video data stored in the second storage device is read to the first storage device, so that the player reads the video data from the starting position of the video data read from the second storage device by the first storage device and plays the read video data.
In an alternative embodiment, the reading the video data stored in the second storage device to the first storage device includes:
and detecting the storage amount of the video data of the target video on the first storage device, and reading the video data stored in the second storage device to the first storage device when the storage amount is smaller than a second preset threshold value.
In an optional embodiment, before detecting a playing progress of video data of a target video in a playing process of the target video, the method further includes:
detecting whether the video data of the target video are completely downloaded;
and if the video data of the target video is not completely downloaded, executing the step of detecting the playing progress of the video data of the target video in the playing process of the target video.
In an optional embodiment, the method further comprises: acquiring video information of the target video;
when it is detected that the video data of the target video is played completely, reading the video data from the initial position of the video data of the target video, and playing the read video data, including:
when the video data of the target video is detected to be played completely and the playing progress of the video information of the target video is not matched with that of the video data of the target video, reading the video data from the initial position of the video data of the target video and playing the read video data.
According to a second aspect of the embodiments of the present disclosure, there is provided a video playback apparatus including:
the device comprises a detection unit, a display unit and a display unit, wherein the detection unit is configured to detect the playing progress of video data of a target video in the playing process of the target video, and the video data of the target video is downloaded video data;
the playing unit is configured to read the video data from the initial position of the video data of the target video and play the read video data when the video data of the target video is detected to be played completely.
In an optional embodiment, the playing unit is further configured to perform:
and when the quantity of the video data of the target video exceeds a first preset threshold value, playing the target video.
In an optional embodiment, the video playing apparatus further includes a downloading unit configured to execute, in response to the video playing request, storing the video data obtained by downloading into the first storage device and simultaneously caching into the second storage device;
the detection unit is further configured to perform:
detecting a remaining amount of video data in the first storage device.
In an optional embodiment, the playing unit is further configured to perform:
and when the video data of the target video is detected to be played completely, reading the video data from the initial position of the video data stored in the first storage equipment, and playing the read video data.
In an optional embodiment, the playing unit is further configured to perform:
when the video data of the target video is detected to be played completely, the video data stored in the second storage device is read to the first storage device, so that the player reads the video data from the starting position of the video data read from the second storage device by the first storage device and plays the read video data.
In an optional embodiment, the playing unit is further configured to perform:
and detecting the storage amount of the video data of the target video on the first storage device, and reading the video data stored in the second storage device to the first storage device when the storage amount is smaller than a second preset threshold value.
In an optional embodiment, the detection unit is further configured to perform:
detecting whether the video data of the target video are completely downloaded;
and if the video data of the target video is not completely downloaded, executing the step of detecting the playing progress of the video data of the target video in the playing process of the target video.
In an optional embodiment, the video playing apparatus further includes an obtaining unit configured to perform obtaining video information of the target video;
the playback unit is further configured to perform:
when the video data of the target video is detected to be played completely and the playing progress of the video information of the target video is not matched with that of the video data of the target video, reading the video data from the initial position of the video data of the target video and playing the read video data.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the video playing method of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium, wherein instructions that, when executed by a processor of an electronic device, enable the electronic device to execute the video playing method of the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects: in the playing process of the target video, the playing progress of the video data of the target video is detected, wherein the video data of the target video is downloaded video data, when the fact that the video data of the target video is played completely is detected, the playing jam problem is shown, at the moment, the video data are read from the initial position of the video data of the target video, and the read video data are played, so that the jam problem is solved, and a user can visually see the video which is played smoothly.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a diagram illustrating an application environment of a video playback method according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating a video playback method according to an example embodiment.
Fig. 3 is a block diagram illustrating a video playback device according to an example embodiment.
Fig. 4 is an internal block diagram of an electronic device shown in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The video playing method provided by the present disclosure may be applied to the application environment shown in fig. 1. Wherein the terminal 110 interacts with the server 120 through the network. The terminal 110 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 120 may be implemented by an independent server or a server cluster formed by a plurality of servers.
The terminal 110 detects a playing progress of video data of a target video in a playing process of the target video, wherein the video data of the target video is downloaded video data, and when it is detected that the video data of the target video is played completely, the video data is read from an initial position of the video data of the target video and the read video data is played, so that the problem of blocking is solved, and a user can visually see a smoothly played video.
Fig. 2 is a flowchart illustrating a video playing method according to an exemplary embodiment, where as shown in fig. 2, the video playing method is applied to the terminal 110 of fig. 1, and includes the following steps:
in step S21, during the playing process of the target video, the playing progress of the video data of the target video is detected, wherein the video data of the target video is the downloaded video data.
The playing schedule may be a playing time length of the downloaded video data, a number of played data, and the like, and is not limited herein.
The video playing is to load the downloaded video data into the memory for playing, so that detecting the playing progress of the video data of the target video is equivalent to detecting the playing duration of the downloaded video data, and/or the amount of the playing data, and the like.
In step S22, when it is detected that the video data of the target video is played, the video data is read from the start position of the video data of the target video, and the read video data is played.
In the embodiment of the present disclosure, for convenience of understanding, it is assumed here that the number of downloaded video data is 2M, and the video data is re-read starting from 0 and played.
According to the video playing method, in the playing process of the target video, the playing progress of the video data of the target video is detected, wherein the video data of the target video is downloaded video data, when the video data of the target video is detected to be played completely, the playing jam problem is shown, at the moment, the video data is read from the initial position of the video data of the target video, and the read video data is played, so that the jam problem is solved, and a user can visually see the smoothly played video.
In an optional embodiment, the method further comprises:
and when the quantity of the video data of the target video exceeds a first preset threshold value, playing the target video.
In the embodiment of the present disclosure, the running of the program (i.e., playing of the video) needs to be performed in the memory, and as long as the program is running, the CPU loads the data to be processed into the memory for processing. It can write (store) or read (fetch) data from any one of the designated addresses at any time. Because of its volatile nature, it can be used to temporarily store data in the CPU. When the memory is a random access storage device, the video data can be stored in the memory from the server in two ways, the first way is to Cache the video data from the server to the memory (namely, a Cache memory), and the second way is to Cache the video data from the server to the memory (namely, a Buffer register).
In the embodiment of the present disclosure, a threshold value is preset, and the threshold value may be determined according to the amount of the entire data of the target video, for example, the threshold value is set to 10% of the amount of the entire data. The threshold value may not be determined according to the whole data quantity of the target video, but a threshold value is directly determined according to the experience of playing the video.
In the embodiment of the present disclosure, before playing the target video, it is required to detect whether the amount of video data of the target video exceeds a first preset threshold, specifically, a Buffer value or a Cache value may be detected and monitored, and when the amount of video data of the target video exceeds the first preset threshold, the target video is played. If the cached video is particularly short, for example, one frame or two frames, etc., the particularly short video data will be repeatedly played during the loop playing, and the video appears to be blocked in the appearance, so that the blocking in the video playing process is reduced by setting the judgment threshold, and the user experience is improved.
In an optional embodiment, the method further comprises: responding to a video playing request, storing the downloaded and acquired video data into a first storage device, and caching the video data into a second storage device; in step S21, detecting a playing progress of the video data of the target video includes:
the remaining amount of video data in the first storage device is detected.
The first storage device is a random access storage device, which is a bridge for communicating with the CPU, such as a server or an external storage device, and the first storage device is an internal memory for directly exchanging data with the CPU. It can be read and written at any time, and is fast, usually used as temporary data storage medium of operating system or other running program.
The second storage device is an external storage device, and refers to a storage except for the first storage device and the CPU storage, and the second storage device can still store data after being generally powered off and is used for storing programs and data which are not used temporarily. Common external storage devices include hard disks, floppy disks, optical disks, U-disks, and the like.
In the embodiment of the present disclosure, for convenience of understanding, it is illustrated herein that, for example, the number of downloads of video data of a target video (i.e., downloaded video data) is 2M, during the playing process of the target video, it may be detected that the playing progress (assuming that the playing progress is the number of data) of the target video is 1M, and then the remaining amount of the video data in the first storage device is 1M.
In an alternative embodiment, step S22 includes:
and when the video data of the target video is detected to be played completely, reading the video data from the initial position of the video data stored in the first storage equipment, and playing the read video data.
In the embodiment of the present disclosure, the first storage device stores data that can be stored in a small amount, for example, the first storage device stores data that can be stored in 2M, and if the video data of the target video (i.e., the downloaded video data) is 4M, when playing 3-4M, the video data of the target video will delete the video data of 1-2M cached by the first storage device; if the video data of the target video (i.e., the downloaded video data) is 1M or 2M, when the video data of the target video is played, the 1-2M video data stored in the first storage device may not be deleted, and the video data may be read from the start position of the video data stored in the first storage device and played.
In an alternative embodiment, step S22 includes:
when the video data of the target video is detected to be played completely, the video data stored in the second storage device is read to the first storage device, so that the player reads the video data from the starting position of the video data read from the second storage device by the first storage device and plays the read video data.
In an alternative embodiment, reading the video data stored by the second storage device to the first storage device comprises: and detecting the storage amount of the video data of the target video on the first storage device, and reading the video data stored in the second storage device to the first storage device when the storage amount is smaller than a second preset threshold value.
In the embodiment of the present disclosure, because the first storage device stores a small amount of data in a short period of time, when it is detected that the video data of the target video is completely played, it is necessary to detect the storage amount of the video data of the target video on the first storage device, and when the storage amount is smaller than the second preset threshold, it indicates that the storage amount is too small, the video data of the target video on the first storage device is not played, the video data stored in the second storage device is read to the first storage device (i.e., the data of the external storage device is loaded into the memory), and the player reads the video data from the start position of the read video data and plays the read video data.
In an optional embodiment, before detecting the playing progress of the video data of the target video in the playing process of the target video in step S21, the method further includes:
detecting whether video data of a target video is completely downloaded;
and if the video data of the target video is not completely downloaded, executing a step of detecting the playing progress of the video data of the target video in the playing process of the target video.
In the embodiment of the present disclosure, the terminal may know whether all video data of the target video has been downloaded, and then step S21 and the subsequent steps are not executed. For convenience of understanding, for example, if the entire video data of the target video is 2M and the cacheable capacity stored in the first storage device is 3M, the entire video data of the target video can be cached in the first storage device, and if the video data of the target video is completely downloaded, the video is not jammed during playing, and the step S21 and the subsequent steps are not required to be executed. If the video data of the target video is not completely cached, video blocking may occur in the playing process, and it is required to detect the playing progress of the video data of the target video in the playing process of the target video, where the video data of the target video is downloaded video data, and when it is detected that the video data of the target video is completely played, it indicates that the playing blocking occurs, and at this time, the video data is read from the initial position of the video data of the target video and the read video data is played, so that the blocking problem is solved, and a user can visually see a video which is smoothly played.
In an optional embodiment, the method further comprises: acquiring video information of a target video; step S22 includes:
when the video data of the target video is detected to be played completely and the playing progress of the video information of the target video is not matched with that of the video data of the target video, reading the video data from the initial position of the video data of the target video and playing the read video data.
Wherein the video information of the target video comprises the whole duration or the data amount of the target video. In the embodiment of the present disclosure, the video information of the target video needs to be matched with the playing progress of the video data, for example, if the entire duration of the target video is 2 minutes, and the playing progress when the video data of the target video is played is 1 minute, it is proved that the video data of the target video is not completely cached, at this time, the video data of the target video is played completely to indicate that a playing stuck problem occurs, and the video data needs to be read from the initial position of the video data of the target video and played, so that the stuck problem is solved, and a user can visually see a video that is smoothly played.
In an optional embodiment, the header file of the video data includes metadata, and the metadata may be moov, and the metadata moov may implement video playing while downloading during online playing. The header file of the video data comprises metadata moov, and the metadata moov is at the head and is loaded and read to the metadata moov firstly, so that a picture can be immediately displayed.
In the embodiment of the disclosure, when it is detected that the video data of the target video is played, the video data is read from the initial position of the video data of the target video, and the metadata moov is at the head, the metadata moov is loaded and read first, so that a picture can be displayed immediately, seamless connection of the video during the time of blocking is realized, and the problem of the existing blocking is solved.
In an optional embodiment, when the entire video data of the target video is completely played, or the user actively exits from playing the target video (for example, if the interface has a corresponding closing control, and a touch operation of the user on the closing control is monitored, the playing of the target video is exited), the scheme in the embodiment of the present disclosure is not executed any more.
It should be understood that, although the steps in the flowchart of fig. 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 2 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
Fig. 3 is a block diagram of a video playback device according to an example embodiment. Referring to fig. 3, the apparatus includes a detection unit 31 and a playback unit 32.
The detection unit 31 is configured to detect a playing progress of video data of a target video during playing of the target video, wherein the video data of the target video is downloaded video data.
The playing unit 32 is configured to execute, when it is detected that the video data of the target video is played, reading the video data from a start position of the video data of the target video, and playing the read video data.
In an exemplary embodiment, the playing unit 32 is further configured to perform:
and when the quantity of the video data of the target video exceeds a first preset threshold value, playing the target video.
In an exemplary embodiment, the video playing apparatus further includes a downloading unit configured to execute storing the video data obtained by downloading to the first storage device and simultaneously caching to the second storage device in response to the video playing request;
the detection unit 31 is further configured to perform:
detecting a remaining amount of video data in the first storage device.
In an exemplary embodiment, the playing unit 32 is further configured to perform:
and when the video data of the target video is detected to be played completely, reading the video data from the initial position of the video data stored in the first storage equipment, and playing the read video data.
In an exemplary embodiment, the playing unit 32 is further configured to perform:
when the video data of the target video is detected to be played completely, the video data stored in the second storage device is read to the first storage device, so that the player reads the video data from the starting position of the video data read from the second storage device by the first storage device and plays the read video data.
In an exemplary embodiment, the playing unit 32 is further configured to perform:
and detecting the storage amount of the video data of the target video on the first storage device, and reading the video data stored in the second storage device to the first storage device when the storage amount is smaller than a second preset threshold value.
In an exemplary embodiment, the detection unit 31 is further configured to perform:
detecting whether the video data of the target video are completely downloaded;
and if the video data of the target video is not completely downloaded, executing the step of detecting the playing progress of the video data of the target video in the playing process of the target video.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
FIG. 4 is a block diagram illustrating an electronic device Z00 in accordance with an exemplary embodiment. For example, electronic device Z00 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and so forth.
Referring to FIG. 4, electronic device Z00 may include one or more of the following components: a processing component Z02, a memory Z04, a power component Z06, a multimedia component Z08, an audio component Z10, an interface to input/output (I/O) Z12, a sensor component Z14 and a communication component Z16.
The processing component Z02 generally controls the overall operation of the electronic device Z00, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component Z02 may include one or more processors Z20 to execute instructions to perform all or part of the steps of the method described above. Further, the processing component Z02 may include one or more modules that facilitate interaction between the processing component Z02 and other components. For example, the processing component Z02 may include a multimedia module to facilitate interaction between the multimedia component Z08 and the processing component Z02.
The memory Z04 is configured to store various types of data to support operations at the electronic device Z00. Examples of such data include instructions for any application or method operating on electronic device Z00, contact data, phonebook data, messages, pictures, videos, and the like. The memory Z04 may be implemented by any type or combination of volatile or non-volatile memory devices such as static random access memory devices (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 disks.
The power supply component Z06 provides power to the various components of the electronic device Z00. The power component Z06 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device Z00.
The multimedia component Z08 comprises a screen providing an output interface between the electronic device Z00 and the user. In some embodiments, 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 an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, 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 associated with the touch or slide operation. In some embodiments, the multimedia component Z08 includes a front facing camera and/or a rear facing camera. When the electronic device Z00 is in an operating mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component Z10 is configured to output and/or input an audio signal. For example, the audio component Z10 includes a Microphone (MIC) configured to receive external audio signals when the electronic device Z00 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory Z04 or transmitted via the communication component Z16. In some embodiments, the audio component Z10 further includes a speaker for outputting audio signals.
The I/O interface Z12 provides an interface between the processing component Z02 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly Z14 includes one or more sensors for providing status assessment of various aspects to the electronic device Z00. For example, the sensor assembly Z14 may detect the open/closed state of the electronic device Z00, the relative positioning of the components, such as the display and keypad of the electronic device Z00, the sensor assembly Z14 may also detect a change in the position of one component of the electronic device Z00 or the electronic device Z00, the presence or absence of user contact with the electronic device Z00, the orientation or acceleration/deceleration of the electronic device Z00, and a change in the temperature of the electronic device Z00. The sensor assembly Z14 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly Z14 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly Z14 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component Z16 is configured to facilitate wired or wireless communication between the electronic device Z00 and other devices. The electronic device Z00 may have access to a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component Z16 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component Z16 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device Z00 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components for performing the above-described methods.
In one embodiment, there is provided an electronic device comprising: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to perform the steps of:
in the playing process of a target video, detecting the playing progress of video data of the target video, wherein the video data of the target video is downloaded video data;
and when the video data of the target video is detected to be played completely, reading the video data from the initial position of the video data of the target video, and playing the read video data.
In one embodiment, the processor is configured to execute the instructions to further perform the steps of:
and when the quantity of the video data of the target video exceeds a first preset threshold value, playing the target video.
In one embodiment, the processor is configured to execute the instructions to further perform the steps of:
responding to a video playing request, storing the downloaded and acquired video data into a first storage device, and caching the video data into a second storage device;
detecting a remaining amount of video data in the first storage device.
In one embodiment, the processor is configured to execute the instructions to further perform the steps of:
and when the video data of the target video is detected to be played completely, reading the video data from the initial position of the video data stored in the first storage equipment, and playing the read video data.
In one embodiment, the processor is configured to execute the instructions to further perform the steps of:
when the video data of the target video is detected to be played completely, the video data stored in the second storage device is read to the first storage device, so that the player reads the video data from the starting position of the video data read from the second storage device by the first storage device and plays the read video data.
In one embodiment, the processor is configured to execute the instructions to further perform the steps of:
and detecting the storage amount of the video data of the target video on the first storage device, and reading the video data stored in the second storage device to the first storage device when the storage amount is smaller than a second preset threshold value.
In one embodiment, the processor is configured to execute the instructions to further perform the steps of:
detecting whether the video data of the target video are completely downloaded;
and if the video data of the target video is not completely downloaded, executing the step of detecting the playing progress of the video data of the target video in the playing process of the target video.
In one embodiment, the processor is configured to execute the instructions to further perform the steps of:
acquiring video information of the target video;
when the video data of the target video is detected to be played completely and the playing progress of the video information of the target video is not matched with that of the video data of the target video, reading the video data from the initial position of the video data of the target video and playing the read video data.
In one embodiment, a storage medium is provided in which instructions that, when executed by a processor of an electronic device, enable the electronic device to perform the steps of:
in the playing process of a target video, detecting the playing progress of video data of the target video, wherein the video data of the target video is downloaded video data;
and when the video data of the target video is detected to be played completely, reading the video data from the initial position of the video data of the target video, and playing the read video data.
In one embodiment, the instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to further perform the steps of:
and when the quantity of the video data of the target video exceeds a first preset threshold value, playing the target video.
In one embodiment, the instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to further perform the steps of:
responding to a video playing request, storing the downloaded and acquired video data into a first storage device, and caching the video data into a second storage device;
detecting a remaining amount of video data in the first storage device.
In one embodiment, the instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to further perform the steps of:
and when the video data of the target video is detected to be played completely, reading the video data from the initial position of the video data stored in the first storage equipment, and playing the read video data.
In one embodiment, the instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to further perform the steps of:
when the video data of the target video is detected to be played completely, the video data stored in the second storage device is read to the first storage device, so that the player reads the video data from the starting position of the video data read from the second storage device by the first storage device and plays the read video data.
In one embodiment, the instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to further perform the steps of:
and detecting the storage amount of the video data of the target video on the first storage device, and reading the video data stored in the second storage device to the first storage device when the storage amount is smaller than a second preset threshold value.
In one embodiment, the instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to further perform the steps of:
detecting whether the video data of the target video are completely downloaded;
and if the video data of the target video is not completely downloaded, executing the step of detecting the playing progress of the video data of the target video in the playing process of the target video.
In one embodiment, the instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to further perform the steps of:
acquiring video information of the target video;
when the video data of the target video is detected to be played completely and the playing progress of the video information of the target video is not matched with that of the video data of the target video, reading the video data from the initial position of the video data of the target video and playing the read video data.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided by the present disclosure may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present disclosure, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for those skilled in the art, various changes and modifications can be made without departing from the concept of the present disclosure, and these changes and modifications are all within the scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the appended claims.

Claims (16)

1. A video playback method, comprising:
in the playing process of a target video, detecting the playing progress of video data of the target video, wherein the video data of the target video is downloaded video data;
when the video data of the target video are detected to be played completely, reading the video data from the initial position of the video data of the target video, and playing the read video data;
the method further comprises the following steps:
responding to a video playing request, storing the downloaded and acquired video data into a first storage device, and caching the video data into a second storage device; the first storage device is an internal memory which directly exchanges data with the CPU, and the second storage device is a storage except the first storage device and the CPU;
when it is detected that the video data of the target video is played completely, reading the video data from the initial position of the video data of the target video, and playing the read video data, including:
when the video data of the target video is detected to be played completely, the video data stored in the second storage device is read to the first storage device, so that the player reads the video data from the starting position of the video data read from the second storage device by the first storage device and plays the read video data.
2. The video playback method of claim 1, further comprising:
and when the quantity of the video data of the target video exceeds a first preset threshold value, playing the target video.
3. The video playback method of claim 1, further comprising:
the detecting the playing progress of the video data of the target video includes:
detecting a remaining amount of video data in the first storage device.
4. The video playing method according to claim 1, wherein when it is detected that the video data of the target video is played completely, reading the video data from a start position of the video data of the target video, and playing the read video data, comprises:
and when the video data of the target video is detected to be played completely, reading the video data from the initial position of the video data stored in the first storage equipment, and playing the read video data.
5. The video playing method according to claim 1, wherein the reading the video data stored in the second storage device to the first storage device comprises:
and detecting the storage amount of the video data of the target video on the first storage device, and reading the video data stored in the second storage device to the first storage device when the storage amount is smaller than a second preset threshold value.
6. The video playing method according to claim 1, wherein before detecting the progress of playing the video data of the target video during the playing of the target video, the method further comprises
Detecting whether the video data of the target video are completely downloaded;
and if the video data of the target video is not completely downloaded, executing the step of detecting the playing progress of the video data of the target video in the playing process of the target video.
7. The video playback method of claim 1, wherein the method further comprises: acquiring video information of the target video;
when it is detected that the video data of the target video is played completely, reading the video data from the initial position of the video data of the target video, and playing the read video data, including:
when the video data of the target video is detected to be played completely and the playing progress of the video information of the target video is not matched with that of the video data of the target video, reading the video data from the initial position of the video data of the target video and playing the read video data.
8. A video playback apparatus, comprising:
the device comprises a detection unit, a display unit and a display unit, wherein the detection unit is configured to detect the playing progress of video data of a target video in the playing process of the target video, and the video data of the target video is downloaded video data;
a playing unit configured to execute, when it is detected that video data of the target video is played completely, reading the video data from a start position of the video data of the target video, and playing the read video data;
the video playing device also comprises a downloading unit which is configured to execute the steps of responding to the video playing request, storing the video data obtained by downloading into the first storage device and caching into the second storage device; the first storage device is an internal memory which directly exchanges data with the CPU, and the second storage device is a storage except the first storage device and the CPU;
the playback unit is further configured to perform: when the video data of the target video is detected to be played completely, the video data stored in the second storage device is read to the first storage device, so that the player reads the video data from the starting position of the video data read from the second storage device by the first storage device and plays the read video data.
9. The video playback device according to claim 8, wherein the playback unit is further configured to perform:
and when the quantity of the video data of the target video exceeds a first preset threshold value, playing the target video.
10. The video playback device according to claim 8, wherein the detection unit is further configured to perform:
detecting a remaining amount of video data in the first storage device.
11. The video playback device according to claim 8, wherein the playback unit is further configured to perform:
and when the video data of the target video is detected to be played completely, reading the video data from the initial position of the video data stored in the first storage equipment, and playing the read video data.
12. The video playback device according to claim 8, wherein the playback unit is further configured to perform:
and detecting the storage amount of the video data of the target video on the first storage device, and reading the video data stored in the second storage device to the first storage device when the storage amount is smaller than a second preset threshold value.
13. The video playback device according to claim 8, wherein the detection unit is further configured to perform:
detecting whether the video data of the target video are completely downloaded;
and if the video data of the target video is not completely downloaded, executing the step of detecting the playing progress of the video data of the target video in the playing process of the target video.
14. The video playback device according to claim 8, wherein the video playback device further comprises an acquisition unit configured to perform acquisition of video information of the target video;
the playback unit is further configured to perform:
when the video data of the target video is detected to be played completely and the playing progress of the video information of the target video is not matched with that of the video data of the target video, reading the video data from the initial position of the video data of the target video and playing the read video data.
15. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the video playback method of any of claims 1 to 7.
16. A storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform a video playback method as claimed in any one of claims 1 to 7.
CN202010055035.0A 2020-01-17 2020-01-17 Video playing method and device, electronic equipment and storage medium Active CN111246303B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010055035.0A CN111246303B (en) 2020-01-17 2020-01-17 Video playing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010055035.0A CN111246303B (en) 2020-01-17 2020-01-17 Video playing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111246303A CN111246303A (en) 2020-06-05
CN111246303B true CN111246303B (en) 2022-03-01

Family

ID=70872772

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010055035.0A Active CN111246303B (en) 2020-01-17 2020-01-17 Video playing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111246303B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111246303B (en) * 2020-01-17 2022-03-01 北京达佳互联信息技术有限公司 Video playing method and device, electronic equipment and storage medium
CN112887795B (en) * 2021-01-26 2023-04-21 脸萌有限公司 Video playing method, device, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104038808A (en) * 2013-03-07 2014-09-10 华东师范大学 Image decoding apparatus and system for enhancing maneuvering carrier video smoothness, and decoding methods thereof
CN109429076A (en) * 2017-08-31 2019-03-05 杭州海康威视系统技术有限公司 The broadcasting Caton processing method and device of multi-medium data
CN111246303A (en) * 2020-01-17 2020-06-05 北京达佳互联信息技术有限公司 Video playing method and device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100555426B1 (en) * 2002-12-27 2006-02-24 엘지전자 주식회사 Dynamic video searching system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104038808A (en) * 2013-03-07 2014-09-10 华东师范大学 Image decoding apparatus and system for enhancing maneuvering carrier video smoothness, and decoding methods thereof
CN109429076A (en) * 2017-08-31 2019-03-05 杭州海康威视系统技术有限公司 The broadcasting Caton processing method and device of multi-medium data
CN111246303A (en) * 2020-01-17 2020-06-05 北京达佳互联信息技术有限公司 Video playing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111246303A (en) 2020-06-05

Similar Documents

Publication Publication Date Title
CN105338409B (en) Network video preloading method and device
CN107608561B (en) Touch screen control method and device
CN111246283B (en) Video playing method and device, electronic equipment and storage medium
CN106559712B (en) Video playing processing method and device and terminal equipment
CN111405302B (en) Live broadcast room attention reminding method and device, electronic equipment and storage medium
CN107943347B (en) Touch screen control method and device
CN104639977B (en) The method and device that program plays
CN109471596B (en) Data writing method, device, equipment and storage medium
CN111031177A (en) Screen recording method, device and readable storage medium
CN106896991B (en) Method and device for updating information
CN113382270B (en) Virtual resource processing method and device, electronic equipment and storage medium
CN111246303B (en) Video playing method and device, electronic equipment and storage medium
CN108763104B (en) Method and device for pre-reading file page and storage medium
US20220286740A1 (en) Method and apparatus for video playing
CN111970566A (en) Video playing method and device, electronic equipment and storage medium
US20220256230A1 (en) Method and apparatus for video playing
US20220392253A1 (en) Method for processing images, electronic device, and storage medium
CN113190777A (en) Data updating method and device, electronic equipment, storage medium and product
CN108153488B (en) Data self-adding method and device
CN112866612B (en) Frame insertion method, device, terminal and computer readable storage medium
CN114186154A (en) Page processing method and device, electronic equipment and storage medium
CN114356476A (en) Content display method and device, electronic equipment and storage medium
CN114077461A (en) Application program running method, device, equipment and storage medium
CN113709538B (en) Multimedia data playing method and device, electronic equipment and storage medium
CN105488131B (en) File opening method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant