CN106230958B - Media resource downloading method and device - Google Patents
Media resource downloading method and device Download PDFInfo
- Publication number
- CN106230958B CN106230958B CN201610645570.5A CN201610645570A CN106230958B CN 106230958 B CN106230958 B CN 106230958B CN 201610645570 A CN201610645570 A CN 201610645570A CN 106230958 B CN106230958 B CN 106230958B
- Authority
- CN
- China
- Prior art keywords
- album
- downloading
- download
- reserved
- updated
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 238000012545 processing Methods 0.000 claims description 10
- 230000001960 triggered effect Effects 0.000 claims description 8
- 238000012544 monitoring process Methods 0.000 claims description 4
- 230000004044 response Effects 0.000 claims description 4
- 230000006870 function Effects 0.000 description 28
- 238000010586 diagram Methods 0.000 description 15
- 238000004891 communication Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000001052 transient effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000011022 operating instruction Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/146—Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/426—Internal components of the client ; Characteristics thereof
- H04N21/42684—Client identification by a unique number or address, e.g. serial number, MAC address, socket ID
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/437—Interfacing the upstream path of the transmission network, e.g. for transmitting client requests to a VOD server
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/458—Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
- H04N21/4586—Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Power Engineering (AREA)
- Databases & Information Systems (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present disclosure relates to a media resource downloading method and device, wherein the media resource downloading method comprises: checking whether an album in the configuration file is configured with a reserved downloading identifier or not; requesting corresponding album information from a server according to the album configured with the reserved downloading identifier; creating a downloading task according to the updating progress in the album information; and automatically downloading the updated media resources in the album through the downloading task. By adopting the media resource downloading method and device disclosed by the invention, the downloading efficiency of the media resource can be improved.
Description
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a method and an apparatus for downloading media resources.
Background
Most of the existing video clients have a video caching function, namely, the clients can automatically cache videos watched by users, so that the fluency of the users watching the videos is improved, and the user experience is improved. However, the video caching function does not support video downloading.
For this reason, the video-type client terminal provides an offline viewing function, that is, the client terminal can download and store the video from the server locally for the user to view while offline. However, the downloading of the video supported by the offline viewing function depends on manual downloading by the user and only the currently updated video can be downloaded, and if the video is updated in the early morning, the downloading may not be performed in time, or the user downloads the updated video in the peak time of the network, which may affect the downloading speed.
Therefore, the existing media resource downloading method has the problem of low downloading efficiency.
Disclosure of Invention
Based on this, an object of the present disclosure is to provide a media resource downloading method, which is used to solve the problem of low media resource downloading efficiency in the prior art.
In addition, another object of the present disclosure is to provide a media resource downloading device, which is used to solve the problem of low downloading efficiency of media resources in the prior art.
In order to solve the technical problem, the technical scheme adopted by the disclosure is as follows:
a method of media asset download, comprising: checking whether an album in the configuration file is configured with a reserved downloading identifier or not; requesting corresponding album information from a server according to the album configured with the reserved downloading identifier; creating a downloading task according to the updating progress in the album information; and automatically downloading the updated media resources in the album through the downloading task.
A media asset download device, comprising: an identifier checking unit, configured to check whether an album in the configuration file is configured with a download reservation identifier; the information request unit is used for requesting corresponding album information from the server according to the album configured with the reserved downloading identification; the task creating unit is used for creating a downloading task according to the updating progress in the album information; and the resource downloading unit is used for automatically downloading the updated media resources in the album through the downloading task.
Compared with the prior art, the method has the following beneficial effects:
checking the reserved downloading identification of the album in the configuration file through the operating client, requesting the album information of the album to the server when the album is configured with the reserved downloading identification, and creating a downloading task according to the updating progress in the album information so as to automatically download the updated media resource in the album through the downloading task. That is to say, as long as the album in the configuration file is configured with the download reservation identifier, the running client will acquire the update progress of the album to automatically download the updated media resource in the album, which not only overcomes the defect that only the current updated video can be downloaded in the prior art, but also does not need to rely on the manual download of the user, thereby effectively improving the download efficiency of the media resource.
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.
FIG. 1 is a schematic illustration of an implementation environment according to the present disclosure;
FIG. 2 is a block diagram illustrating a terminal in accordance with an exemplary embodiment;
FIG. 3 is a block diagram illustrating a server in accordance with an exemplary embodiment;
FIG. 4 is a flow diagram illustrating a method for downloading a media asset in accordance with an exemplary embodiment;
FIG. 5 is a flow diagram illustrating another method of downloading a media asset in accordance with an exemplary embodiment;
FIG. 6 is a flow diagram illustrating another method of downloading a media resource in accordance with an exemplary embodiment;
FIG. 7 is a flowchart of one embodiment of the step of creating a download task based on the update progress in the album information in the corresponding embodiment of FIG. 4;
FIG. 8 is a flowchart of one embodiment of the step of determining whether the media assets in the album have been updated according to the update progress in the corresponding embodiment of FIG. 7;
FIG. 9 is a flow chart illustrating another method of downloading a media resource in accordance with an exemplary embodiment;
FIG. 10 is a schematic diagram of a specific implementation of a method for downloading a media resource in an application scenario;
FIG. 11 is a block diagram illustrating a media asset download arrangement, according to an exemplary embodiment;
FIG. 12 is a block diagram illustrating another media asset download arrangement, according to an example embodiment;
FIG. 13 is a block diagram illustrating another media asset download arrangement, according to an exemplary embodiment;
FIG. 14 is a block diagram for one embodiment of a task creation unit in the corresponding embodiment of FIG. 11;
FIG. 15 is a block diagram for one embodiment of an update determination module in the corresponding embodiment of FIG. 14;
FIG. 16 is a block diagram illustrating another media asset download apparatus, according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. 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.
As described previously, the video-class client provides the user with a video caching function and an offline viewing function.
The video caching function can cache the currently watched video in advance, so that the fluency of the user for watching the video is ensured, but video downloading is not supported.
The offline viewing function supports users to download videos manually, but the only videos available for manual download are those that are currently updated.
It can be understood that the user cannot download the updated video during work, and the user is in the network peak time after work, and at this time, the manual downloading of the updated video is not limited only by the network environment where the user is located, which may cause low media resource downloading efficiency, but also may affect the fluency of the user watching the video, resulting in poor user experience.
Therefore, in order to improve the downloading efficiency of the media resources, a media resource downloading method is particularly proposed, and the method is executed by a video client.
Fig. 1 is an implementation environment related to the media resource downloading method. The implementation environment includes a terminal 100 and a server 200 in communication with the terminal 100.
The terminal 100 may be an electronic device such as a smart phone, a tablet computer, a palm computer, a notebook computer, or a computer running a video client.
Through the communication between the server 200 and the terminal 100, the server 200 will provide various query results to the video-class client running in the terminal 100, for example, the query results may be the update condition of the media resource, and so on.
Further, the video client will initiate a download request of the media resource to the server 200 according to various query results, so as to download the mass media resource stored in the server 200 through the download request.
Referring to fig. 2, fig. 2 is a block diagram illustrating a terminal according to an example embodiment. It should be noted that the terminal 100 is only an example adapted to the present disclosure, and should not be considered as providing any limitation to the scope of the present disclosure. The terminal 100 is also not to be construed as necessarily relying on or having to have one or more components in the exemplary terminal 100 shown in fig. 2.
As shown in fig. 2, the terminal 100 includes a memory 101, a memory controller 103, one or more (only one shown) processors 105, a peripheral interface 107, a radio frequency module 109, a positioning module 111, a camera module 113, an audio module 115, a touch screen 117, and a key module 119. These components communicate with each other via one or more communication buses/signal lines 121.
It is to be understood that the configuration shown in fig. 2 is merely exemplary, and terminal 100 may include more or fewer components than shown in fig. 2, or different components than shown in fig. 2. The components shown in fig. 2 may be implemented in hardware, software, or a combination thereof.
The memory 101 may be used to store software programs and modules, such as program instructions and modules corresponding to the media resource downloading method and apparatus in the exemplary embodiments of the present disclosure, and the processor 105 executes various functions and data processing by executing the program instructions stored in the memory 101, that is, implements the above-mentioned media resource downloading method in the video client of the terminal 100.
The peripheral interface 107 may include at least one wired or wireless network interface, at least one serial-to-parallel conversion interface, at least one input/output interface, at least one USB interface, and the like, for coupling various external input/output devices to the memory 101 and the processor 105 to realize communication with various external input/output devices.
The rf module 109 is configured to receive and transmit electromagnetic waves, and achieve interconversion between the electromagnetic waves and electrical signals, so as to communicate with other devices through a communication network. Communication networks include cellular telephone networks, wireless local area networks, or metropolitan area networks, which may use various communication standards, protocols, and technologies.
The positioning module 111 is used for acquiring the current geographic position of the terminal 100. Examples of the positioning module 111 include, but are not limited to, a global positioning satellite system (GPS), a wireless local area network-based positioning technology, or a mobile communication network-based positioning technology.
The camera module 113 is attached to a camera and is used for taking pictures or videos. The taken picture or video can be stored in the memory 101 and also can be sent to the server through the radio frequency module 109.
The touch screen 117 provides an input-output interface between the terminal 100 and a user. Specifically, the user may perform an input operation, such as a gesture operation of clicking, touching, sliding, and the like, through the touch screen 117, so that the electronic device responds to the input operation. The terminal 100 displays and outputs the output content formed by any one or combination of text, pictures or videos to the user through the touch screen 117.
The key module 119 includes at least one key for providing an interface for a user to input to the terminal 100, and the user can cause the terminal 100 to perform different functions by pressing different keys. For example, the sound adjustment key may allow the user to effect an adjustment of the volume of sound played by the terminal 100.
FIG. 3 is a block diagram illustrating a server in accordance with an example embodiment. This hardware configuration is only one example to which the present disclosure may be applied, and is not to be considered as any limitation on the scope of use of the present disclosure, nor is it to be construed that the present disclosure needs to rely on the server 200.
The server 200 may have a large difference due to different configurations or performances, as shown in fig. 3, the server 200 includes: a power supply 210, an interface 230, at least one storage medium 250, and at least one Central Processing Unit (CPU) 270.
The power supply 210 is used to provide operating voltage for each hardware device on the server 200.
The interface 230 includes at least one wired or wireless network interface 231, at least one serial-to-parallel conversion interface 233, at least one input/output interface 235, and at least one USB interface 237, etc. for communicating with external devices.
The storage medium 250 may be a random access medium, a magnetic disk, an optical disk, or the like as a carrier for storing resources, where the resources stored thereon include an operating system 251, application programs 253, data 255, and the like, and the storage manner may be a transient storage or a permanent storage. The operating system 251 is used for managing and controlling various hardware devices and application programs 253 on the server 200 to implement the computation and processing of the mass data 255 by the central processing unit 270, and may be Windows server, MacOS XTM, UnixTM, linux, FreeBSDTM, or the like. The application 253 is a computer program that performs at least one specific task on the operating system 251, and may include at least one module (not shown), each of which may respectively include a series of operating instructions for the server 200. Data 255 may be text, pictures, video, etc. stored on disk.
The central processor 270 may include one or more processors and is configured to communicate with the storage medium 250 via a bus for computing and processing the mass data 255 in the storage medium 250.
As described in detail above, the server 200 to which the present disclosure is applied will perform a query of a media resource by the central processor 270 reading a series of operation instructions stored in the storage medium 250 to provide various query results to the video-class client running in the terminal 100.
Furthermore, the present disclosure can be implemented equally as hardware circuitry or hardware circuitry in combination with software instructions, and thus implementation of the present disclosure is not limited to any specific hardware circuitry, software, or combination of both.
Referring to fig. 4, in an exemplary embodiment, a media resource downloading method is applied to the terminal 100 in the implementation environment shown in fig. 1, and the media resource downloading method may be executed by a video-class client running in the terminal 100, and may include the following steps:
in step 310, it is checked whether the album in the configuration file is configured with the reserved download identifier.
The video client may be used for the user to request an interested video for online viewing, or for the user to download a favorite video for offline viewing, and accordingly, the configuration file in the video client is used to record configuration information related to the user operation, for example, the configuration information may include a viewing progress of the video requested by the user, a downloading progress of the video downloaded by the user, and the like.
In this embodiment, a video is defined as an album in a configuration file. It should be understood that an album may be a television series containing multiple media assets, or may be a movie having only a single media asset. If the album is a single-album movie, the client need only perform a download once to provide the user with offline viewing functionality. When the album is a multi-album tv series, the client may need to perform multiple downloads in consideration of the update progress of the tv series.
Thus, the so-called scheduled download refers to automatic download of an updated media asset from an album, and in short, when an episode of a television series is updated, the updated episode is automatically downloaded.
In order to provide the reserved downloading function of the album for the user, a reserved downloading inlet is arranged in the client, and the reserved downloading identifier of the album is configured in the configuration file according to the starting operation through the starting operation triggered in the reserved downloading inlet by the user, so that the starting of the reserved downloading function of the album is marked.
Whether the user selects to perform the reserved downloading aiming at the album can be known by checking whether the album in the configuration file is configured with the reserved downloading identification, so that the automatic downloading of the updated media resource in the album is facilitated. The check can be performed by setting a timer in the client for timing check, or can be selected to be performed only in the off-network peak period (for example, 12 am). It should be noted that the albums in the configuration file are represented in the form of identifiers, for example, an album with a certain name is represented by the identifier a.
In step 330, the corresponding album information is requested from the server according to the album configured with the reserved download identifier.
The server provides a query interface to enable the client to acquire album information of the album configured with the reserved download identification through the query interface after the album configured with the reserved download identification is checked in the configuration file.
Specifically, a media asset library is provided in the server, and album information of each album is stored in the media asset library for the client to query. The album information may include an album name, a number of album sets, an update progress of the album, a finalization state of the album, and the like.
The client initiates a query request to the server according to the album configured with the reserved downloading identification, so that the server searches the album information corresponding to the album in the media resource library according to the album initiating the query request, and then returns the album information of the searched album to the client through the server.
And step 350, creating a downloading task according to the updating progress in the album information.
As described above, the album information may include an update progress of the album, where the update progress may be that the media resource in the album is updated to several sets, or that the media resource in the album is updated to the several sets.
After the server obtains the update progress of the album, the client knows the update condition of the media resources in the album, and further can create a downloading task according to the update progress of the album. For example, if the media asset in the album has been updated, a download task is created for the updated media asset. Otherwise, if the media resources in the album are not updated, no download task is created.
In step 370, an automatic download of the updated media assets from the album is performed via a download task.
Specifically, through the created download task, the client initiates a download request of the updated media resource to the server, and the server responds to the download request to establish a download link between the client and the server, so as to transmit the updated media resource to the client through the download link.
After the automatic downloading is finished, the client receives and stores the updated media resources locally for the user to watch offline.
Through the process, the automatic downloading of the updated media resources is realized, namely, the client can actively inquire the album information to obtain the updating progress of the album, and actively initiate a downloading request for updating the media resources to the server according to the updating progress, so that the automatic downloading can occur at any time period without depending on the manual downloading of the user.
On the other hand, the media resource updating time period is usually non-network peak time periods such as morning, the updated media resource can be automatically downloaded as long as the client is in the running state, and the updated media resource is to be watched offline when the user is idle, so that the downloading and the watching of the user are not influenced by the network environment, the media resource downloading efficiency is effectively improved, the watching and downloading fluency is improved, and the user experience is improved.
Referring to fig. 5, in an exemplary embodiment, before step 310, the method as described above may further include the steps of:
and step 410, monitoring to obtain a reserved downloading starting instruction triggered and generated by a reserved downloading inlet in an album adding and downloading interface.
As described above, the client is provided with a download reservation entry to provide the user with a download reservation function, the download reservation entry may be provided in the album download addition interface to provide the user with a download reservation function for each album, and may also be provided in the client main interface to provide the user with a uniform download reservation function, that is, the client will automatically download updated media resources from all albums as long as the user selects the download reservation function.
In this embodiment, the download reservation entry is set in the add-download interface of the album. Through the setting, the user can only select the interested album to perform the reserved downloading, so that the operation flexibility of the reserved downloading function is improved, the user experience is improved, and the local storage space of the client cannot be excessively occupied.
Further, the reserved download entrance may be a reserved download option set in the add-download interface, or may be a reserved download button set in the add-download interface. And the client side is intercepted to obtain a reserved download opening instruction through the opening operation triggered by the user in the reserved download entrance.
Taking the reserved downloading inlet as a reserved downloading option for explanation, if a user wants to start the reserved downloading function, the user performs a checking operation on the reserved downloading option, and the client can monitor through the checking operation to obtain a corresponding checking instruction, which is a reserved downloading starting instruction.
After the client monitors and obtains the reserved downloading starting instruction, the reserved downloading identifier can be configured for the album in the configuration file through the reserved downloading starting instruction, so that the follow-up check of the reserved downloading identifier for the album is facilitated.
And 430, configuring a reserved downloading identifier for the album in the configuration file through the reserved downloading starting instruction.
Referring to fig. 6, in an exemplary embodiment, before step 410, the method as described above may further include the following steps:
It should be appreciated that the client will only add a display of the download interface for the album if the user has a download need for the media assets in the album. Further, since the reserved download refers to automatic download of updated media resources in the album, if the media resources to be downloaded by the user are completely updated, that is, the album is finished, the client does not need to display the reserved download entry in the add-download interface of the album.
Therefore, before the adding and downloading interface of the album is displayed, the ending condition of the album needs to be known.
Specifically, when the client plays the media resource of the album, if the user wants to download the media resource of the album, the click operation is triggered on a download entrance in the media play interface, the client monitors to obtain a user addition download instruction through the click operation, and then a query request of the album information is initiated to the server according to the user addition download instruction so as to obtain the ending condition of the album for the display of a subsequent addition download interface.
In step 530, album information returned by the server in response to the query request is received.
After receiving the query request, the server searches the album information in the media resource library, and returns the searched album information to the client, so that the client knows the ending condition of the album according to the received album information.
In step 550, when the ending status in the album information indicates that the album is not ended, the add-download interface is displayed, and the reserved download entry is displayed in the displayed add-download interface.
As described above, the album information may include the album finalization status, which indicates the finalization of the album. For example, the ending status may be specifically indicated by information carried in a field, if the information carried in the field is 1, the album is ended, and if the information carried in the field is 0, the album is not ended.
After the ending state in the album information is acquired, the client displays a corresponding adding and downloading interface according to the indication of the ending state.
And if the ending state of the album information indicates that the album is not ended, displaying an adding and downloading interface comprising a reserved downloading inlet so as to provide the user with an automatic downloading function of updating the media resources in the album through the reserved downloading inlet.
On the contrary, if the ending state of the album information indicates that the album is ended, an adding and downloading interface which does not contain the reserved downloading entry is displayed. It should be appreciated that, since the album is finished, the list of albums shown in the generated add-download interface contains the complete episode, i.e., lists all media assets available for download, so as to provide the user with the function of manually downloading the media assets.
Through the process, the client only displays the reserved downloading entry in the adding and downloading interface when the album is not finished, so that unnecessary interference on a user without potential reserved downloading requirements is avoided, and the user experience is improved.
Referring to FIG. 7, in an exemplary embodiment, step 350 may include the steps of:
As mentioned above, the update schedule may be that the media resource in the album is updated to several sets, or that the media resource in the album is updated to several sets.
Taking the update set number of the update progress indication media resource as an example for explanation, the update progress may be specifically represented by information carried in a field, if the information carried in the field is 0, it indicates that the media resource is not updated, and if the information carried in the field is 2, it indicates that the media resource is updated and 2 sets are updated.
Therefore, after the server acquires the updating progress, whether the media resources in the album are updated or not can be judged according to the indication of the updating progress.
Further, referring to fig. 8, in an exemplary embodiment, step 351 may include the following steps:
at step 3511, a check is made to see if the update progress exceeds the historical progress of the album.
In this embodiment, the update progress indicates that the media resource is updated to the set number. The updating progress is specifically represented by information carried in the field, and if the information carried in the field is 10, the updating progress indicates that the media resource is updated to the 10 th set.
The historical progress of the album is stored in a configuration file and is used for reflecting the current updating condition of the media resources. Specifically, each time the client acquires the album information, the update progress in the album information is used to acquire the update condition of the current media resource, and the historical progress of the album is acquired by storing the update progress in the configuration file.
By comparing the updating progress with the historical progress of the album, the latest updating condition of the media resource can be obtained. If the update progress is matched with the historical progress of the album, step 3513 is performed to determine that the media resources in the album are not updated, otherwise, if the update progress exceeds the historical progress of the album, step 3515 is performed to determine that the media resources in the album are updated.
At step 3513, it is determined that the media assets in the album have not been updated.
When it is determined that the media assets in the album are updated, i.e., the update progress exceeds the historical progress of the album, for example, the update progress is the media assets updated to the 10 th set, and the historical progress of the album is the media assets updated to the 6 th set.
At this time, the historical progress of the album cannot accurately reflect the current updating situation of the media resource, so the historical progress of the album is updated, that is, the updating progress is stored as the historical progress of the album.
Referring to fig. 9, in an exemplary embodiment, the method as described above may further include the steps of:
As mentioned above, since the reserved download refers to the automatic download of the updated media resource from the album, if the media resource to be downloaded by the user is completely updated, that is, the album is finished, the client does not need to configure the reserved download identifier for the album in the configuration file.
Therefore, after the automatic downloading of the updated media resources is completed each time, the finishing condition of the album is inquired first.
Specifically, after receiving a query request sent by a client, the server searches corresponding album information in the media resource library according to the query request, and returns the searched album information to the client, so that the client knows the completion condition of the album.
In step 630, the reserved download id of the album is deleted in the configuration file according to the ending status in the album information.
As described above, the ending status can be specifically represented by the information carried in the field, if the information carried in the field is 1, the album is ended, and if the information carried in the field is 0, the album is not ended.
After the ending state in the album information is acquired, the client side judges whether the reserved downloading identification needs to be configured for the album according to the indication of the ending state.
And if the ending state in the album information indicates that the album is not ended, keeping the reserved downloading identification of the album in the configuration file.
And if the ending state in the album information indicates that the album is not ended, deleting the reserved downloading identification of the album in the configuration file.
Through the process, the client automatically closes the reserved downloading function, the client is prevented from requesting the server for the album information according to the album configured with the reserved downloading identification after the album is finished, and the downloading task is created according to the album information, so that the client and the server can avoid processing unnecessary tasks, and the processing efficiency of the client and the server is improved.
Of course, in other application scenarios, the client is also provided with a function of manually closing the reserved download for the user. For example, when the user wants to close the reserved downloading function, the user can directly trigger the closing operation in the reserved downloading entry shown in the adding downloading interface, and can cancel the reserved downloading function in the album downloading interface, so that the client deletes the reserved downloading identifier of the album in the configuration file.
Taking a video client running in the terminal 100 shown in fig. 2 as an example, a media resource downloading method will be described with reference to a specific application scenario. For example, fig. 10 is a schematic diagram illustrating a specific implementation of a method for downloading a media resource in an application scenario.
As shown in fig. 10, after the client executes step 713, it will check whether the album is configured with the reserved download id in the configuration file in two cases, i.e. step 707 and step 714.
Wherein, the client configures the reserved downloading identifier for the album in the configuration file by executing steps 701 to 705. Only when the album is not finished, the add-download interface including the download reservation option is displayed, so that the download reservation function for updating the media resource in the album is started by the user checking the download reservation option, step 705. Otherwise, if the album is finished, the add download interface not including the download reservation option is displayed, step 703. Of course, if the user does not check the reserved download option or does not confirm the check of the reserved download option, the reserved download function for updating the media resource in the album cannot be started, i.e., step 704.
Further, by executing step 706, the client will record the historical progress of the album, so as to be able to subsequently know the current update condition of the album.
If the album is configured with the reserved downloading identifier, the client can complete the automatic downloading of the updated media resource in the album by executing steps 708 to 709. Otherwise, if it is checked that the album does not configure the reserved download identifier, step 715 is executed to end the reserved download.
In addition, the closing of the reserved download function may be manually closed by the user by performing step 712, or may be automatically closed by the client by performing steps 710 to 711.
Through the process described above, the client allows the user to turn on the reserved download function for a tv series being broadcast. As long as the client runs, the episode of the television series update can be automatically downloaded and stored in the local through the client so as to be watched by the user at leisure, and the method is not limited by the network environment of the user.
The following is an embodiment of the apparatus of the present disclosure, which may be used to execute a media resource downloading method according to the present disclosure. For details that are not disclosed in the embodiments of the apparatus of the present disclosure, please refer to the embodiments of the media resource downloading method related to the present disclosure.
Referring to fig. 11, in an exemplary embodiment, a media resource downloading device 800 includes, but is not limited to: an identification checking unit 810, an information requesting unit 830, a task creating unit 850, and a resource downloading unit 870.
The identifier checking unit 810 is configured to check whether an album in the configuration file is configured with a download-reserved identifier.
The information requesting unit 830 is configured to request the server for corresponding album information according to the album configured with the reserved download identifier.
The task creating unit 850 is used to create a download task according to the update progress in the album information.
The resource download unit 870 is used for automatic download of media resources updated in the album by a download task.
Referring to fig. 12, in an exemplary embodiment, the apparatus 800 as described above further includes, but is not limited to: instruction listening unit 910 and identity configuration unit 930.
The instruction intercepting unit 910 is configured to intercept a download reservation starting instruction triggered and generated by a download reservation entry in an album adding and downloading interface.
The identifier configuring unit 930 is configured to configure the identifier for the album reserved download in the configuration file via the reserved download start command.
Referring to fig. 13, in an exemplary embodiment, the apparatus 800 as described above further includes, but is not limited to: a first request transmitting unit 1010, an information receiving unit 1030, and an interface generating unit 1050.
The first request sending unit 1010 is configured to send, in a media playing interface where a client plays a media resource of an album, an inquiry request to a server when a media resource of an album is triggered to be added to download.
The information receiving unit 1030 is configured to receive album information returned by the server in response to the query request.
The interface generating unit 1050 is configured to display an add-download interface when the ending status in the album information indicates that the album is not ended, and display a download reservation entry in the displayed add-download interface.
Referring to FIG. 14, in an exemplary embodiment, task creation unit 850 includes, but is not limited to: an update determination module 851 and a task creation module 853.
The update determining module 851 is configured to determine whether the media resources in the album are updated according to the update progress.
The task creation module 853 is used to create a download task for an updated media asset when the media asset in the album has been updated.
Further, referring to fig. 15, in an exemplary embodiment, the update determining module 851 includes, but is not limited to: a progress check module 8511, a first determination module 8513, and a second determination module 8515.
The progress checking module 8511 is used to check whether the update progress exceeds the historical progress of the album. If so, the first determination module 8513 is notified; otherwise, the second determination module 8515 is notified.
The first determination module 8513 is used to determine that the media resources in the album have been updated, and update the historical progress of the album with the update progress.
The second determination module 8515 is used to determine that the media assets in the album are not updated.
Referring to fig. 16, in an exemplary embodiment, the apparatus 800 as described above further includes, but is not limited to: a second request transmission unit 1110 and an identification processing unit 1130.
The second request sending unit 1110 is configured to send a query request to the server to request album information of the album after the updated media resources in the album are automatically downloaded.
The identifier processing unit 1130 is configured to delete the reserved download identifier of the album in the configuration file according to the ending status in the album information.
The above description is only a preferred exemplary embodiment of the present disclosure, and not intended to limit the embodiments of the present disclosure, and one of ordinary skill in the art can easily make various changes and modifications according to the main concept and spirit of the present disclosure, so that the protection scope of the present disclosure shall be subject to the protection scope of the claims.
Claims (8)
1. A media resource downloading method is applied to a video client, and comprises the following steps:
checking whether an album in the configuration file is configured with a reserved downloading identifier or not;
requesting corresponding album information from a server according to the album configured with the reserved downloading identifier;
creating a downloading task according to the updating progress in the album information;
automatically downloading the updated media resources in the album through the downloading task; after the updated media resources in the album are automatically downloaded, the album information of the album is requested to the server by sending a query request;
deleting the reserved downloading identification of the album in the configuration file according to the finishing state in the album information obtained after the automatic downloading is finished;
before checking whether the album in the configuration file is configured with the download reservation identifier, the method further includes:
a client initiates a query request to a server according to a user adding and downloading instruction generated by triggering in a media playing interface for playing the media resources of the album, wherein the user adding and downloading instruction is generated according to a click operation triggered by a downloading inlet in the media playing interface;
receiving album information returned by the server in response to the query request;
displaying an add-download interface including the reserved download entry when the finalization status in the received album information indicates that the album is not finalized; if the ending state in the received album information indicates that the album is ended, displaying an adding and downloading interface which does not comprise the reserved downloading inlet; the displayed adding and downloading interface comprises an album list corresponding to the album, the album list lists the media resources available for downloading in the album, and the adding and downloading interface is different from a media playing interface for playing the album;
monitoring to obtain a reserved download starting instruction generated by triggering a reserved download entrance in an adding download interface of the album;
and configuring the reserved downloading identification for the album in the configuration file through the reserved downloading starting instruction.
2. The method of claim 1, wherein the step of creating a download task according to an update schedule in the album information comprises:
judging whether the media resources in the album are updated or not according to the updating progress;
creating a download task for the updated media asset when the media asset in the album has been updated.
3. The method as claimed in claim 2, wherein the step of determining whether the media resources in the album have been updated according to the update progress comprises:
checking whether the update progress exceeds the historical progress of the album;
if so, judging that the media resources in the album are updated, and updating the historical progress of the album according to the updating progress;
otherwise, judging that the media resources in the album are not updated.
4. A media resource downloading device is applied to a video client, and comprises:
an identifier checking unit, configured to check whether an album in the configuration file is configured with a download reservation identifier;
the information request unit is used for requesting corresponding album information from the server according to the album configured with the reserved downloading identification;
the task creating unit is used for creating a downloading task according to the updating progress in the album information;
the resource downloading unit is used for automatically downloading the updated media resources in the album through the downloading task;
a second request sending unit, configured to send a query request to the server to request album information of the album after the updated media resources in the album are automatically downloaded;
the identification processing unit is used for deleting reserved downloading identification of the album in the configuration file according to the finishing state in the album information obtained after the automatic downloading is finished;
the device further comprises:
a first request sending unit, configured to initiate, by a client, a query request to a server according to a user add download instruction generated by triggering in a media playing interface where media resources of the album are played, where the user add download instruction is generated according to a click operation triggered by a download entry in the media playing interface;
an information receiving unit, configured to receive album information returned by the server in response to the query request;
an interface generating unit, configured to display an add-download interface including the reserved download entry when a finalization status in the received album information indicates that the album is not finalized; if the ending state in the received album information indicates that the album is ended, displaying an adding and downloading interface which does not comprise the reserved downloading inlet; the displayed adding and downloading interface comprises an album list corresponding to the album, the album list lists the media resources available for downloading in the album, and the adding and downloading interface is different from a media playing interface for playing the album;
the instruction monitoring unit is used for monitoring and obtaining a reserved download starting instruction generated by triggering a reserved download entrance in the album adding and downloading interface;
and the identifier configuration unit is used for configuring the reserved downloading identifier for the album in the configuration file through the reserved downloading starting instruction.
5. The apparatus of claim 4, wherein the task creation unit comprises:
the updating judgment module is used for judging whether the media resources in the album are updated according to the updating progress;
and the task creating module is used for creating a downloading task for the updated media resource when the media resource in the album is updated.
6. The apparatus of claim 5, wherein the update determination module comprises:
the progress checking module is used for checking whether the updating progress exceeds the historical progress of the album; if yes, notifying a first judgment module; otherwise, notifying a second judging module;
the first judging module is used for judging that the media resources in the album are updated and updating the historical progress of the album according to the updating progress;
the second judging module is used for judging that the media resources in the album are not updated.
7. A terminal, comprising:
a processor; and
a memory having computer readable instructions stored thereon which, when executed by the processor, implement the method of any of claims 1 to 3.
8. A computer-readable storage medium having computer-readable instructions stored thereon which, when executed by a processor, implement the method of any one of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610645570.5A CN106230958B (en) | 2016-08-08 | 2016-08-08 | Media resource downloading method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610645570.5A CN106230958B (en) | 2016-08-08 | 2016-08-08 | Media resource downloading method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106230958A CN106230958A (en) | 2016-12-14 |
CN106230958B true CN106230958B (en) | 2020-10-30 |
Family
ID=57548665
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610645570.5A Active CN106230958B (en) | 2016-08-08 | 2016-08-08 | Media resource downloading method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106230958B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1430748A (en) * | 2000-03-27 | 2003-07-16 | 三洋电机株式会社 | Data distribution terminal, menu server and distribution reservation system using them |
CN101150760A (en) * | 2007-10-19 | 2008-03-26 | 吕利勇 | System, method and mobile terminal for automatic media content download |
CN101572800A (en) * | 2008-04-30 | 2009-11-04 | 索尼株式会社 | Program accumulation apparatus, program accumulation reservation method, and program |
CN101674527A (en) * | 2009-08-25 | 2010-03-17 | 中广卫星移动广播有限公司 | System and method for propelling data by mobile multimedia broadcasting |
CN102833272A (en) * | 2011-06-13 | 2012-12-19 | 腾讯科技(深圳)有限公司 | Downloading method and device based on user subscription |
CN103986787A (en) * | 2014-06-05 | 2014-08-13 | 合一网络技术(北京)有限公司 | Method and system for automatically obtaining video updates |
CN104394457A (en) * | 2014-09-16 | 2015-03-04 | 东方有线网络有限公司 | Implementation method of television program scheduled recording and automatic downloading service system |
CN104753961A (en) * | 2015-04-22 | 2015-07-01 | 腾讯科技(北京)有限公司 | Multimedia data processing method, client and server |
-
2016
- 2016-08-08 CN CN201610645570.5A patent/CN106230958B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1430748A (en) * | 2000-03-27 | 2003-07-16 | 三洋电机株式会社 | Data distribution terminal, menu server and distribution reservation system using them |
CN101150760A (en) * | 2007-10-19 | 2008-03-26 | 吕利勇 | System, method and mobile terminal for automatic media content download |
CN101572800A (en) * | 2008-04-30 | 2009-11-04 | 索尼株式会社 | Program accumulation apparatus, program accumulation reservation method, and program |
CN101674527A (en) * | 2009-08-25 | 2010-03-17 | 中广卫星移动广播有限公司 | System and method for propelling data by mobile multimedia broadcasting |
CN102833272A (en) * | 2011-06-13 | 2012-12-19 | 腾讯科技(深圳)有限公司 | Downloading method and device based on user subscription |
CN103986787A (en) * | 2014-06-05 | 2014-08-13 | 合一网络技术(北京)有限公司 | Method and system for automatically obtaining video updates |
CN104394457A (en) * | 2014-09-16 | 2015-03-04 | 东方有线网络有限公司 | Implementation method of television program scheduled recording and automatic downloading service system |
CN104753961A (en) * | 2015-04-22 | 2015-07-01 | 腾讯科技(北京)有限公司 | Multimedia data processing method, client and server |
Also Published As
Publication number | Publication date |
---|---|
CN106230958A (en) | 2016-12-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP4156620B1 (en) | Interaction method and apparatus, and electronic device | |
US20170155958A1 (en) | Method, Apparatus and System for Playing Multimedia Data, and Storage Medium | |
US20140298395A1 (en) | Methods and systems for playing video on multiple terminals | |
JP6149163B2 (en) | WI-FI network connection method, apparatus, program, and recording medium | |
US20120203859A1 (en) | System and method for interaction between e-mail/web browser and communication devices | |
CN110708571B (en) | Video clip playing control method and related product | |
CN112231727B (en) | Data processing method, device, electronic equipment, server and storage medium | |
CN112312222A (en) | Video sending method and device and electronic equipment | |
CN113099262B (en) | Information display method and device, electronic equipment and storage medium | |
CN107820300A (en) | Network search method and device | |
CN104462570A (en) | Webpage content obtaining method and device | |
CN112367554A (en) | Message interaction method and device, electronic equipment and storage medium | |
CN110489244B (en) | Information processing method, system, apparatus and computer readable storage medium | |
CN110139118B (en) | Function running method, device, electronic device and storage medium of application program | |
CN111132374A (en) | Method and device for establishing wireless network connection | |
CN111246278A (en) | Video playing method and device, electronic equipment and storage medium | |
CN108008925A (en) | Application data sharing method, device, terminal and storage medium under span mode | |
EP4447458A1 (en) | Video stream pushing method and apparatus, and terminal device and storage medium | |
CN107395624B (en) | Information processing method and device | |
WO2018161788A1 (en) | Multimedia data sharing method and device | |
CN107733674B (en) | Component upgrading method and terminal | |
CN114048404A (en) | Display method, apparatus and electronic device | |
CN106230958B (en) | Media resource downloading method and device | |
US20170048292A1 (en) | Electronic device and method for providing content | |
US9693112B2 (en) | Remote control system for a smart television |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 |