[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN112449250A - Method, device, equipment and medium for downloading video resources - Google Patents

Method, device, equipment and medium for downloading video resources Download PDF

Info

Publication number
CN112449250A
CN112449250A CN201910795260.5A CN201910795260A CN112449250A CN 112449250 A CN112449250 A CN 112449250A CN 201910795260 A CN201910795260 A CN 201910795260A CN 112449250 A CN112449250 A CN 112449250A
Authority
CN
China
Prior art keywords
video
data
resource
playing
downloading
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.)
Granted
Application number
CN201910795260.5A
Other languages
Chinese (zh)
Other versions
CN112449250B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910795260.5A priority Critical patent/CN112449250B/en
Publication of CN112449250A publication Critical patent/CN112449250A/en
Application granted granted Critical
Publication of CN112449250B publication Critical patent/CN112449250B/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/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4782Web browsing, e.g. WebTV
    • 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/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • 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/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
    • 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/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/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/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/47202End-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 requesting content on demand, e.g. video on demand

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method, a device, equipment and a medium for downloading video resources. The method comprises the steps of establishing a background simulation player outside a page player, carrying out simulation operation of a playing event, requesting playing cache data in a resource cache region, transmitting the playing cache data to a download executor to obtain related data applied to a video of a media source extended playing mode, and downloading data from the download executor.

Description

Method, device, equipment and medium for downloading video resources
Technical Field
The present invention relates to the field of downloading video resources, and in particular, to a method, an apparatus, a device, and a medium for downloading video resources.
Background
The browser supporting the fifth version hypertext language can realize native support for playing the media content without plug-in by using the tags which can be played, but has a limit to the format of the media content. With the development of video services such as video on demand, live broadcast and the like, videos are distributed from a server to a client through a streaming media transmission protocol, media contents are further contained in a layer of transmission protocol, and a playing label in a browser cannot be identified.
Thus, media source extensions have been introduced to extend the file format to help the browser identify and process the media files back into the originally recognizable media container format. The playing tag in the browser can identify and play the original file, and the browser supporting the fifth version of hypertext language is equivalent to a player which is internally provided with a protocol capable of analyzing the stream through a media source extension mode.
However, in the prior art, the video website realized in the media source extension mode does not support downloading, and when a user accesses the video website, a downloading requirement may exist, and at this time, the video website cannot meet the downloading requirement of the user, which may cause a problem of poor user experience.
Disclosure of Invention
The invention provides a method and a device for downloading video resources, which aim to solve the problem that a video website realized in a media source extension mode does not support downloading and obtain the technical effect of improving the viscosity of a user.
In one aspect, the present invention provides a method for downloading video resources, where the method includes:
responding to a click instruction, and acquiring video resources of a video to be downloaded, wherein the video resources are video resources applied to the media source expansion playing mode for playing;
acquiring video stream data according to the video resource of the video to be downloaded, and storing the video stream data into a resource cache region;
converting the video stream data in the resource cache region into play cache data;
responding to a downloading instruction, creating a background simulation playing process, and transmitting the playing cache data to a downloading actuator through the background simulation playing process;
and downloading the play cache data from the download executor.
Another aspect provides an apparatus for downloading a video resource, the apparatus comprising: the system comprises a video resource acquisition module, a video resource analysis module, an analog play module, a data transmission module and a data download module;
the video resource acquisition module is used for responding to a click instruction and acquiring video resources of a video to be downloaded, wherein the video resources are video resources applied to the media source expansion playing mode for playing;
the video resource analysis module is used for responding to a downloading instruction, acquiring video stream data according to the video resource of the video to be downloaded, and storing the video stream data into a resource cache region;
the simulation playing module is used for converting the video stream data in the resource cache region into playing cache data;
the data transmission module is used for creating a background simulation playing process and transmitting the playing cache data to the download executor through the background simulation playing process;
the data downloading module is used for downloading the playing cache data from the downloading executor.
Another aspect provides a computer-readable storage medium comprising a processor and a memory, wherein at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded by the processor and executes the method for downloading a video resource.
Another aspect provides a downloading device comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a set of codes, or a set of instructions, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded by the processor and executes the downloading method for a video resource.
The invention provides a method, a device, equipment and a medium for downloading video resources. The method comprises the steps of creating a background simulation playing process executed by a background simulation player in addition to a page playing process executed by a page player, requesting playing cache data in a resource cache region based on simulation operation of a playing event, transmitting the playing cache data to a download actuator, obtaining related data in a video applied to an MSE playing mode, and downloading data from the download actuator. The method can support the downloading of the media source video resources, enlarge the webpage range of video downloading, improve the user experience and increase the user viscosity.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a method for downloading a video resource according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for downloading a video resource according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for acquiring a video resource of a video to be downloaded in a method for downloading a video resource according to an embodiment of the present invention;
fig. 4 is a flowchart of a method for acquiring video stream data and storing the video stream data in a resource buffer according to a method for downloading a video resource provided in an embodiment of the present invention;
fig. 5 is a flowchart of a method for transmitting data to a download executor through a background simulation play process in a method for downloading video resources according to an embodiment of the present invention;
fig. 6 is a flowchart of a method for setting the background simulation playing process to be in a mute mode in the video resource downloading method according to the embodiment of the present invention;
fig. 7 is a flowchart illustrating that a background simulation player executes simulation playing and transmits data in a mute mode in a video resource downloading method according to an embodiment of the present invention;
fig. 8 is a flowchart of a method for simultaneously performing page play and background play in a method for downloading video resources according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a video resource downloading device according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an analog playing module in a video resource downloading device according to an embodiment of the present invention;
fig. 11 is a schematic hardware structure diagram of an apparatus for implementing the method provided in the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings. It is to be understood that the described embodiments are merely a few embodiments of the invention, and not all embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above 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 application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The following explanations will be made first of all with respect to the terms involved in the embodiments of the present invention:
JavaScript: the method is an transliterated script language, is a dynamic type, weak type, prototype-based language and built-in support type, is widely used for network application development, and is often used for adding various dynamic functions to a webpage.
HTML: the hypertext markup language is an application under the standard universal markup language. HTML is not a programming language, but a markup language, which is necessary for web page production. "hypertext" refers to the non-text elements that may contain pictures, links, and even music and programs. The structure of the hypertext markup language or hypertext markup language includes a "header" section that provides information about a web page, and a "body" section that provides specific content of the web page.
Referring to fig. 1, an application scene schematic diagram of a method for downloading a video resource according to an embodiment of the present invention is shown, where the application scene includes a user terminal 110 and a browser 120, a user inputs a click instruction to enter a web page, and the browser obtains the video resource of a video to be downloaded in response to the click instruction input by the user. And the browser processes the video resource of the video to be downloaded to acquire playing cache data. After a user inputs a downloading instruction, a background simulation playing process is created, another browser is started in the background and a background simulation player is started, simulation playing is carried out to obtain playing cache data, the playing cache data is transmitted to a downloading actuator while being played, the playing cache data is downloaded from the downloading actuator, and then the video resource can be downloaded.
In the embodiment of the present specification, the user terminal includes, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, and the like. The user terminal provides an interface for the user to operate, and the user clicks on the operation interface to enter a video website or input a downloading instruction.
In an embodiment of the present description, the browser can provide parsing, loading, and rendering of a web page, and start a page player, a background simulation player, or a download executor through a browser kernel.
An embodiment of a method for downloading a video resource according to the present application is described below, and fig. 2 is a flowchart illustrating a method for downloading a video resource according to an embodiment of the present application, where the present specification provides the method operation steps described in the embodiment or the flowchart, but may include more or less operation steps based on conventional or non-creative labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. In practice, the system or server product may be implemented in a sequential or parallel manner (e.g., parallel processor or multi-threaded environment) according to the embodiments or methods shown in the figures.
Referring to fig. 2, a method for downloading a video resource is shown, which can be applied to a server side, and the method includes:
s210, responding to a click instruction, acquiring video resources of a video to be downloaded, wherein the video resources are video resources applied to the media source expansion playing mode for playing;
further, referring to fig. 3, before the step of acquiring the video resource of the video to be downloaded in response to the click instruction, the method further includes:
s310, responding to a click instruction, and acquiring network identification information of a network page, wherein the network page is positioned by network resources with videos to be downloaded;
s320, acquiring network resource positioning of the video to be downloaded according to the network identification information;
s330, replacing the network resource to be positioned as the video resource of the video to be downloaded.
Specifically, the website that the user clicks to enter is a website for Media Source Extensions (MSE) that supports video playing. The MSE may replace the location of a typical single media file pointing to an external resource (source, src) with a reference to a mediaresource object (MediaSource), where the content pointed to by src will be applied to the location of the current tag in the document, so that the video content can be played directly. MSE can also reference multiple video binary data storage objects (SourceBuffer), which can control playback more precisely and can protect source data.
The fifth version of hypertext Markup Language (HTML 5) can be extended by MSE to describe the playback format supported by the page. Allowing JavaScript to generate media streams to support playback can be used in application scenarios such as adaptive streaming and live video streaming over time.
S220, acquiring video stream data according to the video resource of the video to be downloaded, and storing the video stream data into a resource cache region;
further, referring to fig. 4, the video stream data includes: the method comprises the steps of carrying out sound-picture synchronization synthesis in a later period according to picture fragment data and audio fragment data, wherein the picture fragment data only has pictures without sound, and the audio fragment data only has sounds without pictures; the resource buffer area comprises a picture resource buffer area and an audio resource buffer area, the resource media type set in the picture resource buffer area can be video/mp4, and the resource media type set in the audio resource buffer area can be audio/mp 4;
the acquiring video stream data according to the video resource of the video to be downloaded and storing the video stream data in a resource buffer area comprises:
s410, acquiring picture data in the video resource;
s420, acquiring audio data in the video resource;
s430, segmenting the picture data to obtain picture fragment data;
s440, segmenting the audio data to obtain audio segment data;
s450, creating a picture resource cache region, and storing the picture fragment data into the picture resource cache region;
and S460, creating an audio resource buffer area, and storing the picture fragment data into the audio resource buffer area.
Specifically, the video stream data can be obtained by performing a page playing process and analyzing the video resources. The video website played by applying the MSE mode can be a live broadcast website or an on-demand website, and protocol analysis and data encapsulation analysis are performed to obtain audio data and picture data, and finally the audio data and the picture data are played after the audio data and the picture data are synchronized.
In the process of playing a page, there are three main events on the MediaSource object as a video resource, which are a start event (sourceopen), a close event (sourceclose), and a stop event (sourceended), respectively. Wherein the sourceopen event is triggered after the video resource is obtained. The sourceended event is triggered when the user actively calls termination or video data parsing, playing error. The sourceclose event is triggered when there is no data available in SourceBuffer and the HTML support underlying media related capabilities component (HTMLMediaElement). After the video resource is acquired, the sourceopen event is monitored to ensure that the MediaSource and HTMLMediaElement have completed binding, and entry into the data processing flow begins only after that.
In the process of data processing, as the resource media type of the resource cache region can only be one type, in the process of page playing, the video resource to be downloaded is divided into picture data and audio data.
In some specific examples, the resource cache may be a SourceBuffer. The SourceBuffer is a container storing video stream data to be transferred into HTMLMediaElement via MediaSource objects, such as audio play tags (audio) and video play tags (video) in HTML. The browser starts an audio tag and a video tag, the browser simultaneously starts a page player capable of playing in an MSE mode, and after video stream data is converted into binary cache data, the page player can receive the binary cache data and play video resources.
When the SourceBuffer is used as the resource cache area, one SourceBuffer object can only accept data in one format, so that a SourceBuffer needs to be created for video and audio data respectively. For example, if the media type of the resource cached in the resource cache is fixed to the type associated with the picture data, such as video/mp4, then the picture data can only be added to the resource cache. The resource media type of the resource buffer is fixed to the audio data related type, for example, audio/mp4, and then only audio data can be added to the resource buffer. Finally, the video resource can be divided into picture data and audio data, and two resource buffer areas are set for respectively caching the picture data and the audio data.
The video website realized by the MSE playing mode can analyze video stream data, can support the playing of video media with more formats, and can also be applied to scenes for playing videos by live broadcasting or on demand.
S230, converting the video stream data in the resource cache region into playing cache data;
s240, responding to a downloading instruction, establishing a background simulation playing process, and transmitting the playing cache data to a downloading actuator through the background simulation playing process;
further, referring to fig. 5, fig. 5 shows a method for creating a background simulation playing process and transmitting data to a download executor through the background simulation playing process, where the method includes:
s510, setting the background simulation playing process to be in a mute mode;
s520, in a mute mode, based on the simulation operation of the playing event, transmitting the playing cache data to a downloading executor.
Specifically, the MSE can extend the video format that the web page described by the HTML5 can play, but does not support video downloading, so the method described in this embodiment adopts a way of creating an analog playing process in the background. The playing cache data is acquired by a mode of analog playing and is transmitted to the downloading actuator for downloading the video, and because the page playing process can be simultaneously carried out on the page, the background analog playing process needs to be set to be in a mute mode, so that the interference to the page playing process can be avoided.
In some specific examples, referring to fig. 6, the method for setting the background analog playing process to be in the mute mode includes:
s610, acquiring audio attributes of video resources played in the background simulation playing process;
s620, converting the audio attribute into an audio numerical value;
and S630, setting the background simulation playing process to be in a mute mode based on the adjustment of the audio numerical value.
In a specific example, when the audio value is adjusted, the audio value is adjusted to a minimum value or to 0, and then the background analog playing process may be set to the silent mode.
And responding to the input downloading instruction, starting a background simulation player by the background to perform simulation playing, wherein the background simulation player is a simulation player applied to media source expansion playing, can request a resource cache region to play cache data, and can decode audio and video and perform rendering.
Referring to fig. 7, fig. 7 shows a method for transmitting the play cache data to a download executor based on a simulation operation of a play event in a mute mode, the method comprising:
s710, starting a background simulation player, wherein the background simulation player is a simulation player applied to media source expansion playing;
s720, requesting the play cache data from the resource cache region to the background simulation player for playing;
and S730, transmitting the play cache data played in the background simulation player to a download executor.
In some specific examples, the playing buffer is SourceBuffer, the SourceBuffer in which the video stream data is stored is transmitted to a browser kernel through a JavaScript programming script, and the browser kernel converts the video stream data in the SourceBuffer into binary buffer data and transmits the binary buffer data to a background analog player for analog playing. And the binary cache data are sequentially transmitted to a background simulation player for playing according to the sequence of time stamps and the like, so that complete video resource information is formed. The background simulation player consumes the binary cache data in a simulation playing mode and transmits the binary cache data to the download executor. The download executor may be a multimedia file downloader providing download capabilities for various video formats. The downloading executor can directly download and play the cache data and output the video file which is downloaded successfully. And performing additional storage and renaming operation on the successfully downloaded video file, and storing the video file locally.
In a specific embodiment, during play simulation, the browser loads and analyzes a video tag and then loads a background simulation player, the background simulation player triggers a play event and a seek event to enable a page to continuously playback cache data, the background simulation player distributes the playback cache data to a download executor, the seek event is continuously triggered, and finally all the playback cache data are acquired.
The method is easy to execute, has good practicability and universality, and can be applied to video websites supported by all media source extensions.
And S250, downloading the play cache data from the download executor.
Referring to fig. 8, fig. 8 shows a flowchart when a page playing process and a background playing process exist simultaneously. A user starts a browser to enter a website which is played by applying an MSE mode, and a browser kernel analyzes, loads and renders a webpage. After the page is loaded and rendered, the browser starts a page player, the audio and the video are decoded and rendered, and a user watches the video through the page player. When a user needs to download, clicking a download button, starting another browser kernel by the background, analyzing the video resource and obtaining video stream data by the browser kernel, and storing the video stream data in a play cache region. And converting the video stream data into play cache data, wherein the play cache data can be binary cache data. And the background enters a simulation playing process and starts the background simulation player. Setting the background simulation player to be in a mute mode, requesting to play the cache data to the background simulation player for simulation play, and transmitting the play cache data to the download actuator. And downloading can be carried out from the downloading executor, and finally, the video file which is successfully downloaded is output.
In a specific example, in a live broadcast scene in which the MSE technology is applied more, a user may start a background analog player to download a video in the live broadcast process, so that the user may view the video and download the video in the background at the same time. And when the user needs to download, the background responds to a download instruction, establishes a background simulation player, requests for playing cache data in the resource cache region, and transmits the playing cache data to the download actuator for downloading.
The embodiment of the invention provides a method for downloading video resources, which comprises the steps of analyzing the video resources to be downloaded, obtaining video stream data, converting the video stream data into play cache data, and storing the play cache data into a resource cache region. The method comprises the steps of creating a background simulation playing process executed by a background simulation player in addition to a page playing process executed by a page player, requesting playing cache data in a resource cache region based on simulation operation of a playing event, transmitting the playing cache data to a download actuator, obtaining related data in a video applied to an MSE playing mode, and downloading data from the download actuator. Further, the beneficial effects include:
(1) the MSE video resource downloading is supported, the webpage range of video downloading is expanded, webpage video downloading with more formats can be performed, the user experience is improved, and the user viscosity is increased;
(2) the MSE video resource is downloaded in a background simulation playing mode, so that the method has better practicability and application range.
An embodiment of the present invention further provides a device for downloading video resources, please refer to fig. 9, where the device includes: a video resource acquisition module 910, a video resource analysis module 920, an analog playing module 930, a data transmission module 940 and a data downloading module 950;
the video resource obtaining module 910 is configured to obtain, in response to a click instruction, a video resource of a video to be downloaded, where the video resource is a video resource applied to an extended play mode of a media source for playing;
the video resource analysis module 920 is configured to respond to a download instruction, obtain video stream data according to the video resource of the video to be downloaded, and store the video stream data in a resource cache region;
the analog playing module 930 is configured to convert the video stream data in the resource buffer into playing buffer data;
the data transmission module 940 is configured to create a background simulation playing process, and transmit the playing cache data to a download executor through the background simulation playing process;
the data downloading module 950 is configured to download the play cache data from the download executor.
Further, referring to fig. 10, the analog playing module 930 includes a playing mute unit 1010 and an analog playing unit 1020;
the play mute unit 1010 is configured to set the background analog play process to be a mute mode;
the analog playing unit 1020 is configured to transmit the playing buffer data to the download executor based on an analog operation of a playing event in the silent mode.
Further, the video stream data includes: picture fragment data and audio fragment data; the resource cache region comprises a picture resource cache region and an audio resource cache region; the video resource analysis module comprises: the device comprises a picture data acquisition unit, a picture data segmentation unit, a picture resource storage unit, an audio data acquisition unit, an audio data segmentation unit and an audio resource storage unit;
the picture data acquisition unit acquires picture data in the video resource;
the audio data acquisition unit acquires audio data in the video resource;
the picture data segmenting unit comprises segmenting the picture data to obtain picture fragment data;
the audio data segmentation unit comprises a step of segmenting the audio data to obtain audio segment data;
the picture resource storage unit comprises a picture resource buffer area and a picture fragment data storage unit, wherein the picture resource buffer area is created and stores the picture fragment data into the picture resource buffer area;
the audio resource storage unit comprises an audio resource buffer zone and is used for storing the audio fragment data into the audio resource buffer zone.
The device provided in the above embodiments can execute the method provided in any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method. For details of the video resource downloading method provided in any of the embodiments of the present invention, reference may be made to the following description.
The present embodiment also provides a computer-readable storage medium, in which computer-executable instructions are stored, and the computer-executable instructions are loaded by a processor and execute the method for downloading a video resource according to the present embodiment. Alternatively, in this embodiment, the storage medium may be located in at least one network server of a plurality of network servers of a computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The present embodiment also provides a downloading device, which includes a processor and a memory, where the memory stores a computer program, and the computer program is adapted to be loaded by the processor and execute the method for downloading a video resource according to the present embodiment.
The device may be a computer terminal, a mobile terminal or a server, and the device may also participate in forming the apparatus or system provided by the embodiments of the present invention. As shown in fig. 11, the mobile terminal 11 (or computer terminal 11 or server 11) may include one or more (shown as 1102a, 1102b, … …, 1102 n) processors 1102 (the processors 1102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 1104 for storing data, and a transmission device 1106 for communication functions. Besides, the method can also comprise the following steps: a display, an input/output interface (I/O interface), a network interface, a power source, and/or a camera. It will be understood by those skilled in the art that the structure shown in fig. 11 is only an illustration and is not intended to limit the structure of the electronic device. For example, mobile device 11 may also include more or fewer components than shown in FIG. 11, or have a different configuration than shown in FIG. 11.
It should be noted that the one or more processors 1102 and/or other data processing circuitry described above may be referred to generally herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part in software, hardware, firmware, or any combination thereof. Further, the data processing circuitry may be a single stand-alone processing module, or incorporated in whole or in part into any of the other elements in the mobile device 11 (or computer terminal). As referred to in the embodiments of the application, the data processing circuit acts as a processor control (e.g. selection of a variable resistance termination path connected to the interface).
In the embodiment of the present disclosure, the memory 1104 may be used for storing software programs and modules, and the processor 1102 executes various functional applications and data processing by operating the software programs and modules stored in the memory. The memory 1104 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, application programs required for functions, and the like; the storage data area may store data created according to use of the apparatus, and the like. Further, the memory 1104 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 1104 may also include a memory controller to provide the processor 1102 with access to the memory 1104.
The memory 1104 may be used for storing software programs and modules of application software, such as program instructions/data storage devices corresponding to the method according to the embodiment of the present invention, and the processor 1102 may execute various functional applications and data processing by running the software programs and modules stored in the memory 1104, so as to implement the above-mentioned method for generating the self-attention-network-based time-series behavior capture block. The memory 1104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 1104 may further include memory located remotely from processor 1102, which may be connected to mobile device 11 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 1106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal 11. In one example, the transmission device 1106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 1106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the mobile device 11 (or computer terminal).
The present specification provides method steps as described in the examples or flowcharts, but may include more or fewer steps based on routine or non-inventive labor. The steps and sequences recited in the embodiments are but one manner of performing the steps in a multitude of sequences and do not represent a unique order of performance. In the actual system or interrupted product execution, it may be performed sequentially or in parallel (e.g., in the context of parallel processors or multi-threaded processing) according to the embodiments or methods shown in the figures.
The configurations shown in the present embodiment are only partial configurations related to the present application, and do not constitute a limitation on the devices to which the present application is applied, and a specific device may include more or less components than those shown, or combine some components, or have an arrangement of different components. It should be understood that the methods, apparatuses, and the like disclosed in the embodiments may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a division of one logic function, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or unit modules.
Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for downloading a video asset, the method comprising:
responding to a click instruction, and acquiring video resources of a video to be downloaded, wherein the video resources are video resources applied to the media source expansion playing mode for playing;
acquiring video stream data according to the video resource of the video to be downloaded, and storing the video stream data into a resource cache region;
converting the video stream data in the resource cache region into play cache data;
responding to a downloading instruction, creating a background simulation playing process, and transmitting the playing cache data to a downloading actuator through the background simulation playing process;
and downloading the play cache data from the download executor.
2. The method for downloading video resources according to claim 1, wherein the creating a background simulation playback process and transmitting the playback buffer data to a download executor through the background simulation playback process comprises:
setting the background simulation playing process as a silent mode;
and in a mute mode, transmitting the play cache data to a download executor based on the simulation operation of the play event.
3. The method as claimed in claim 2, wherein said setting the background analog playing process to be in a mute mode comprises:
acquiring audio attributes of video resources;
converting the audio attribute into an audio numerical value;
and setting the background simulation playing process into a mute mode based on the adjustment of the audio numerical value.
4. The method as claimed in claim 2, wherein the transmitting the play buffer data to the download executor based on the simulation operation of the play event in the mute mode comprises:
starting a background simulation player, wherein the background simulation player is a simulation player applied to media source expansion playing;
requesting the playing cache data from the resource cache region to the background simulation player for playing;
and transmitting the play cache data played in the background simulation player to a download executor.
5. The method for downloading video resources according to claim 1, wherein the video stream data comprises: picture fragment data and audio fragment data; the resource cache region comprises a picture resource cache region and an audio resource cache region;
the acquiring video stream data according to the video resource of the video to be downloaded and storing the video stream data in a resource buffer area comprises:
acquiring picture data in the video resource;
acquiring audio data in the video resource;
segmenting the picture data to obtain picture fragment data;
segmenting the audio data to obtain audio segment data;
creating a picture resource buffer area, and storing the picture fragment data into the picture resource buffer area;
and creating an audio resource buffer zone, and storing the audio fragment data into the audio resource buffer zone.
6. The method for downloading video resources according to claim 1, wherein before the step of acquiring the video resources of the video to be downloaded in response to the click command, the method further comprises:
responding to a click instruction, and acquiring network identification information of a network page, wherein the network page is positioned by network resources with a video to be downloaded;
acquiring the network resource location of the video to be downloaded according to the network identification information;
and replacing the network resource location as the video resource of the video to be downloaded.
7. An apparatus for downloading a video asset, the apparatus comprising: the system comprises a video resource acquisition module, a video resource analysis module, an analog play module, a data transmission module and a data download module;
the video resource acquisition module is used for responding to a click instruction and acquiring video resources of a video to be downloaded, wherein the video resources are video resources applied to the media source expansion playing mode for playing;
the video resource analysis module is used for responding to a downloading instruction, acquiring video stream data according to the video resource of the video to be downloaded, and storing the video stream data into a resource cache region;
the simulation playing module is used for converting the video stream data in the resource cache region into playing cache data;
the data transmission module is used for creating a background simulation playing process and transmitting the playing cache data to the download executor through the background simulation playing process;
the data downloading module is used for downloading the playing cache data from the downloading executor.
8. The apparatus for downloading video resource of claim 7, wherein the analog playing module comprises a playing muting unit and an analog playing unit;
the play mute unit is used for setting the background simulation play process to be a mute mode;
the analog playing unit is used for transmitting the playing cache data to the download executor based on the analog operation of the playing event in the mute mode.
9. A downloading device, comprising a processor and a memory, wherein at least one instruction, at least one program, set of codes, or set of instructions is stored in the memory, and wherein the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement a method of downloading a video asset as claimed in any of claims 1 to 6.
10. A storage medium comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by the processor to implement a method of downloading a video resource as claimed in any one of claims 1 to 6.
CN201910795260.5A 2019-08-27 2019-08-27 Method, device, equipment and medium for downloading video resources Active CN112449250B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910795260.5A CN112449250B (en) 2019-08-27 2019-08-27 Method, device, equipment and medium for downloading video resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910795260.5A CN112449250B (en) 2019-08-27 2019-08-27 Method, device, equipment and medium for downloading video resources

Publications (2)

Publication Number Publication Date
CN112449250A true CN112449250A (en) 2021-03-05
CN112449250B CN112449250B (en) 2022-08-23

Family

ID=74741287

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910795260.5A Active CN112449250B (en) 2019-08-27 2019-08-27 Method, device, equipment and medium for downloading video resources

Country Status (1)

Country Link
CN (1) CN112449250B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113163255A (en) * 2021-03-31 2021-07-23 成都欧珀通信科技有限公司 Video playing method, device, terminal and storage medium
CN113315810A (en) * 2021-04-29 2021-08-27 上海探寻信息技术有限公司 Online audio playing method and equipment
CN114168223A (en) * 2021-12-06 2022-03-11 福建天晴数码有限公司 Technical method and system for improving resource preview speed in editing
CN118381976A (en) * 2024-05-22 2024-07-23 广州三七极耀网络科技有限公司 Video resource processing method, device, equipment and medium of browser end
CN118381976B (en) * 2024-05-22 2024-11-12 广州三七极耀网络科技有限公司 Video resource processing method, device, equipment and medium of browser end

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103259802A (en) * 2013-06-03 2013-08-21 贝壳网际(北京)安全技术有限公司 Media file downloading method and device and client device
CN108718416A (en) * 2018-06-15 2018-10-30 深圳市安佳威视信息技术有限公司 Embedded video camera audio-visual system and its method is broadcast live in HTML5
US20190253742A1 (en) * 2018-02-15 2019-08-15 Vitec, Inc. Distribution and playback of media content

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103259802A (en) * 2013-06-03 2013-08-21 贝壳网际(北京)安全技术有限公司 Media file downloading method and device and client device
US20190253742A1 (en) * 2018-02-15 2019-08-15 Vitec, Inc. Distribution and playback of media content
CN108718416A (en) * 2018-06-15 2018-10-30 深圳市安佳威视信息技术有限公司 Embedded video camera audio-visual system and its method is broadcast live in HTML5

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113163255A (en) * 2021-03-31 2021-07-23 成都欧珀通信科技有限公司 Video playing method, device, terminal and storage medium
CN113163255B (en) * 2021-03-31 2022-07-15 成都欧珀通信科技有限公司 Video playing method, device, terminal and storage medium
CN113315810A (en) * 2021-04-29 2021-08-27 上海探寻信息技术有限公司 Online audio playing method and equipment
CN114168223A (en) * 2021-12-06 2022-03-11 福建天晴数码有限公司 Technical method and system for improving resource preview speed in editing
CN114168223B (en) * 2021-12-06 2023-11-03 福建天晴数码有限公司 Technical method and system for improving resource preview speed in editing
CN118381976A (en) * 2024-05-22 2024-07-23 广州三七极耀网络科技有限公司 Video resource processing method, device, equipment and medium of browser end
CN118381976B (en) * 2024-05-22 2024-11-12 广州三七极耀网络科技有限公司 Video resource processing method, device, equipment and medium of browser end

Also Published As

Publication number Publication date
CN112449250B (en) 2022-08-23

Similar Documents

Publication Publication Date Title
US12088651B2 (en) System and method for streaming content from multiple servers
US9344517B2 (en) Downloading and adaptive streaming of multimedia content to a device with cache assist
US20200201490A1 (en) Providing content via multiple display devices
US10362359B2 (en) Video player framework for a media distribution and management platform
US20130247105A1 (en) Smart subscribe button on watch
CN111901674A (en) Video playing control and device
WO2017092313A1 (en) Method and apparatus for controlling video playing of playing device
AU2010294783B2 (en) Method and device for providing complementary information
CN112449250B (en) Method, device, equipment and medium for downloading video resources
US20150172353A1 (en) Method and apparatus for interacting with a media presentation description that describes a summary media presentation and an original media presentation
CN111510789B (en) Video playing method, system, computer equipment and computer readable storage medium
CN103686245A (en) Video-on-demand and live broadcasting switching method and device based on HLS protocol
WO2016207735A1 (en) A system and methods thereof for auto-playing video content on mobile devices
US20170188071A1 (en) Method and apparatus for just-in-time transcoding
US20180324238A1 (en) A System and Methods Thereof for Auto-playing Video Content on Mobile Devices
EP2903260A1 (en) Multi-speed playing method, device and system
US20130254806A1 (en) System and Method for Displaying a Media Program Stream on Mobile Devices
WO2015143854A1 (en) Data acquisition and interaction method, set top box, server and multimedia system
CN112243158B (en) Media file processing method and device, computer readable medium and electronic equipment
US20220365959A1 (en) Multimedia file storage and access method
CN111510790B (en) Video request method, system, computer device and computer readable storage medium
CN103747280A (en) Method for creating a program and device thereof
US8868785B1 (en) Method and apparatus for displaying multimedia content
US20130145258A1 (en) Incremental Synchronization for Magazines
US20180020043A1 (en) Method for playing audio/video and display 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