CN107135416B - Method for downloading video and device - Google Patents

Method for downloading video and device Download PDF

Info

Publication number
CN107135416B
CN107135416B CN201710190115.5A CN201710190115A CN107135416B CN 107135416 B CN107135416 B CN 107135416B CN 201710190115 A CN201710190115 A CN 201710190115A CN 107135416 B CN107135416 B CN 107135416B
Authority
CN
China
Prior art keywords
video
target
live streaming
video data
live
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710190115.5A
Other languages
Chinese (zh)
Other versions
CN107135416A (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 CN201710190115.5A priority Critical patent/CN107135416B/en
Publication of CN107135416A publication Critical patent/CN107135416A/en
Application granted granted Critical
Publication of CN107135416B publication Critical patent/CN107135416B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management 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/458Scheduling 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
    • 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/47214End-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 content reservation or setting reminders; for requesting event notification, e.g. of sport results or stock market

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a kind of method for downloading video and devices.Wherein, this method comprises: receiving video download request, wherein video download request is downloaded the target video for starting live streaming in the live streaming time started for requesting;Obtain the video data of target video from server within the live streaming time started to the period between the live streaming end time in response to video download request;The video data for the target video that will acquire is stored in downloading of the predetermined position completion to target video.The technical issues of present invention solves the relevant technologies after live video live streaming, can not watch the live video in the absence of a network.

Description

Method for downloading video and device
Technical field
The present invention relates to computer fields, in particular to a kind of method for downloading video and device.
Background technique
Currently, net cast process must artificially activate the broadcasting behavior of player that could watch live streaming view by user Frequently, player can request video data from background server, wait be broadcast live after player requested from background server Video data will be removed.Since the same time might have multiple live videos while be broadcast live, user can only select to see See one of them, other live videos needs are watched by reviewing.And many live videos be carry out at dead of night or Be at work between carry out, such as ball game, most of user can not watch live video due to the time, can only pass through Live video play back to watch, still, user viewing playback live video when, if without network (WIFI, 3G, 4G), User, which will be will cause, can not watch the live video, and even have 3G or 4G network, and user watches the live video of playback A large amount of customer flow will be consumed, and the lower live video of clarity can only be watched, is also possible to send out in watching process Raw buffering, seriously affects user's viewing experience.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of method for downloading video and devices, at least to solve the relevant technologies in live video After live streaming, the technical issues of live video can not be watched in the absence of a network.
According to an aspect of an embodiment of the present invention, a kind of method for downloading video is provided, comprising: receive video download and ask It asks, wherein video download request is downloaded the target video for starting live streaming in the live streaming time started for requesting;In response to Video download request obtains target video within the live streaming time started to the period between the live streaming end time from server Video data;The video data for the target video that will acquire is stored in downloading of the predetermined position completion to target video.
According to another aspect of an embodiment of the present invention, a kind of video download device is additionally provided, comprising: receiving unit is used It is requested in receiving video download, wherein video download request regards the target for starting live streaming in the live streaming time started for requesting Frequency is downloaded;Acquiring unit, for being extremely broadcast live between the end time in response to video download request in the live streaming time started The video data of target video is obtained in period from server;Storage unit, the view of the target video for will acquire Frequency evidence is stored in downloading of the predetermined position completion to target video.
In embodiments of the present invention, using reception video download request, wherein video download request is for requesting to straight The target video that the time started starts to be broadcast live is broadcast to be downloaded;In response to video download request live streaming the time started to be broadcast live knot The video data of target video is obtained in period between the beam time from server;The video for the target video that will acquire Data are stored in predetermined position and complete mode to the downloading of target video, by the live streaming time started to the end time is broadcast live Between period in from server obtain target video video data, and the video data that will acquire be stored in it is predetermined Position has achieved the purpose that live video is downloaded offline, and then solves the relevant technologies after live video live streaming, is not having The technical issues of live video can not be watched in the case where having network, improves the spirit that user watches live video to realize Activity and convenience, and then optimize user to the effect of the viewing experience of live video.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of the hardware environment of method for downloading video according to an embodiment of the present invention;
Fig. 2 is a kind of flow chart of optional method for downloading video according to an embodiment of the present invention;
Fig. 3 is the flow chart of another optional method for downloading video according to an embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of optional video download device according to an embodiment of the present invention;
Fig. 5 is the schematic diagram of another optional video download device according to an embodiment of the present invention;
Fig. 6 is the schematic diagram of another optional video download device according to an embodiment of the present invention;
Fig. 7 is the schematic diagram of another optional video download device according to an embodiment of the present invention;
Fig. 8 is the schematic diagram of another optional video download device according to an embodiment of the present invention;
Fig. 9 is the schematic diagram of another optional video download device according to an embodiment of the present invention;And
Figure 10 is a kind of structural block diagram of terminal according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
Firstly, the part noun or term that occur during the embodiment of the present invention is described are suitable for as follows It explains:
Live streaming: at the scene with the generation of event, the synchronous production of development process and release information, with bidirectional flow process Information network published method, form can be divided into live broadcast, the live streaming of studio interview room, audio-video live streaming or by TV the The live streaming of tripartite's offer information source.
It is offline to play: to refer to that network video still can be with normal play in the case where suspension.
Embodiment 1
According to embodiments of the present invention, a kind of embodiment of the method for method for downloading video is provided.
Optionally, in the present embodiment, above-mentioned method for downloading video can be applied to as shown in Figure 1 by server 102 In the hardware environment constituted with terminal 104.As shown in Figure 1, server 102 is attached by network with terminal 104, it is above-mentioned Network includes but is not limited to: wide area network, Metropolitan Area Network (MAN) or local area network, and terminal 104 is not limited to PC, mobile phone, tablet computer etc..This The method for downloading video of inventive embodiments can be executed by server 102, can also be executed, be can also be by terminal 104 It is executed jointly by server 102 and terminal 104.Wherein, the method for downloading video that terminal 104 executes the embodiment of the present invention can also be with It is to be executed by client mounted thereto.
Fig. 2 is a kind of flow chart of optional method for downloading video according to an embodiment of the present invention, as shown in Fig. 2, the party Method may comprise steps of:
Step S202 receives video download request, wherein video download request is opened for requesting in the live streaming time started The target video for beginning to be broadcast live is downloaded;
Step S204, in response to video download request within the live streaming time started to the period between the live streaming end time The video data of target video is obtained from server;
Step S206, the video data for the target video that will acquire are stored in predetermined position and complete under target video It carries.
Firstly the need of explanation, the method for downloading video in the embodiment of the present invention can be executed by player, player By executing above-mentioned steps S202 to step S206, from clothes within the live streaming time started to the period between the live streaming end time It is engaged in obtaining the video data of target video in device, and the video data that will acquire is stored in predetermined position, has reached live streaming view The purpose downloaded offline of frequency, and then solve the relevant technologies after live video live streaming, in the absence of a network without Method watches the technical issues of live video, improves flexibility and convenience that user watches live video to realize, into And optimize user to the effect of the viewing experience of live video.
In the technical solution that step S202 is provided, target video, which can be, starts the view of live streaming in the live streaming time started Frequently, wherein the live streaming time started can be set according to actual needs, be not specifically limited herein.The embodiment of the present invention pair The type of target video is not specifically limited, for example, target video can be sports tournament, game live video, variety show Deng live streaming class video program.Video download request can be used for requesting to start in the live streaming time started target video of live streaming into Row downloading, herein it should be noted that video download request can be generated by user's operation triggering performed in player, Wherein, the operation that the embodiment of the present invention generates video download request to triggering is not specifically limited, which can be click, length It presses, slide, gesture etc..It can be triggered when user executes aforesaid operations in player and generate video download request.
It should also be noted that, player receive video download request after, which can be requested into Row parsing, therefrom parsing obtains the indicated information of video download request, as a kind of optional embodiment, video download request In can serve to indicate that at least one of following information: the identification information for the target video for needing to download, which can To be video ID;The clarity for the target video for needing to download, such as smoothness, SD, high definition, super clear, blue light etc.;Download target The network mode that video is supported, such as WIFI, 3G, 4G etc.;The specified view for needing to download the target time section in target video Frequency evidence, wherein target time section can be the entire live streaming period, be also possible to any one being entirely broadcast live in the period The sub- period;The storage location or store path of the video data of the target video of specified downloading.It should be noted that except upper It states except cited information, video download request may be used to indicate that other information, no longer illustrate one by one herein.
As a kind of optional embodiment, before step S202 receives video download request, under the video of the embodiment Support method can also include:
Step S201 exports the first prompt information before the time started is broadcast live, wherein the first prompt information is for prompting Target video is downloaded in the live streaming time started.
It should be noted that player can export the first prompt information before the live streaming time started of target video, First prompt information can be used for that user is prompted to download the target video in the live streaming time started.It should be noted that playing Device prompts user to be made whether to need to download the target video before the live streaming time started of target video, in order to more Meet user well to the downloading demand of all kinds of live videos.The first prompt information that player is exported can be according to predetermined Period actively gets from background server, is also possible to what background server was pushed every predetermined period to player.This Place is it should be noted that the first prompt information can be the relevant information for the live video that will be broadcast live recently, wherein live streaming view The relevant information of frequency may include but be not limited to: live streaming time started of live video, live video recommended information, can be with Including actor information, video content summary information etc..
Optionally, the first prompt information can export display in player, so that player user can log in First prompt information is received after player, alternatively, the first prompt information can also directly be pushed to user by player, Such as it is directly pushed to user in the form of short message or wechat, in order to which user checks in time, and then guarantee to start in live streaming It is able to select whether to download the target video before time.
The alternative embodiment is mentioned by exporting the first prompt information in player before the time started is broadcast live with realizing Show that user downloads the target video, user can execute corresponding operating request downloading on a player according to first prompt information The target video can specifically include the target time section of the target video of the clarity, downloading that select downloading target video Video data, storage location of video data of target video of downloading etc..The alternative embodiment can be avoided too late because prompting When or do not prompt to cause user that can not download offline target video, cause user in the absence of a network can not The target video is watched, can achieve and meet user's use demands, the purpose improved the user experience.
As a kind of optional embodiment, after step S202 receives video download request, under the video of the embodiment Support method can also include:
Step S203 exports the second prompt information, wherein the second prompt information is used to prompt the terminal where player Remaining capacity and/or residual memory space.
It should be noted that player is requested after receiving video download request, and corresponding to the video download Before downloading target video, the second prompt information can be exported, wherein second prompt information can be used for prompting user current The information such as remaining capacity, residual memory space of terminal where player, herein it should be noted that player may be mounted at In terminal, which can be mobile phone, computer etc..The alternative embodiment passes through terminal where prompting player in player Remaining capacity can guarantee the not power-off shutdown, and then the success of guarantee target video downloading in the downloading process of target video Rate can guarantee there are enough memory spaces by the residual memory space of the terminal where the prompt player in player The video data of target video is stored, and then can be avoided because memory space inadequate leads to target video failed download, also can Guarantee the success rate of target video downloading to a certain extent.
Step S204 provide technical solution in, player receive video download request after, can to its into Whether row response, real-time detection reach the live streaming time started of target video, and in the live streaming time started for reaching target video Later, video data request is sent into server, wherein the mark letter of target video is carried in video data request Breath, after server receives the video data request of player transmission, can be searched according to the identification information of target video should Target video, and the video data of the target video is sent to player.
It should be noted that server can send the video counts of target video using loss sending method to player According to can specifically show as server to player and send multiple video data packets, each video data packet corresponding time These video data packets, can be ranked up, to realize the played in order of target video by stamp according to the sequencing of timestamp.
As a kind of optional embodiment, video download request can serve to indicate that downloading live streaming the time started to be broadcast live knot What the corresponding video data of target time section namely user between the beam time were downloaded required for can setting according to actual needs The video-frequency band of video-frequency band, needs downloading can be by the live streaming time started to the object time segment body between the live streaming end time It is existing, it should be noted that the target time section can be with for the entire live streaming period of target video namely target time section For the live streaming time started to the period that the end time is broadcast live;Alternatively, target time section can be the entire live streaming of target video Any one sub- period namely target time section in period can be the live streaming time started between the live streaming end time The sub- period, the duration of the sub- period is less than the entire live streaming period, and (namely the live streaming time started is to being broadcast live the end time Period) duration.
Corresponding with target time section indicated in video download request, step S204 is requested in response to video download Be broadcast live the video data of target video is obtained in the time started to the period between the live streaming end time from server can be with Include:
Step S2042 obtains the mesh of target video in the target time section being broadcast live after the time started from server Mark period corresponding video data.
It should be noted that since the target video is live video, after the live streaming time started, player just can be with Video data is obtained since server, and in the case where video download requests request to download entire target video, is broadcast Multiple video counts can be obtained from server within the live streaming time started to the period between the live streaming end time one by one by putting device According to packet, each video data packet can be used to indicate that a video-frequency band.If video download request request downloading target video In some video-frequency band, then player must be waited and can just be obtained from server after the initial time for reaching the video-frequency band One or more video data packet corresponding to the video-frequency band, until the end time player of the video-frequency band just can be from clothes The video data for the video-frequency band downloaded required for being obtained in device of being engaged in.
For example, it is assumed that a length of 90 minutes live streaming Basketball Match when target video is, the live streaming time started is 09:00, is used Family want downloading the first half match, then after reaching 09:00, player can from server request 09:00 to 09:45 This period corresponding video data.
User can select to need the video data for the target time section downloaded according to actual needs in the alternative embodiment, So that player obtains the video data of the target time section from server in the target time period, to realize only downloading target Period corresponding video-frequency band can achieve the purpose that meet user's different demands in this way.Meanwhile player from server to The video data for obtaining target time section, can achieve to reduce on the basis of meeting user's downloading demand and obtains from server Internet resources consumed by video data, and the embodiment only stores the video data of the target time section in predetermined position, It may also reach up the purpose for reducing the occupancy of memory space.
In the technical solution that step S206 is provided, player is in the video data for getting target video from server Later, the video data for the target video that can be will acquire is stored in predetermined position, wherein the predetermined position is not done herein to be had Body limits, and can be set by the user according to actual needs.It should be noted that being stored in the video data in predetermined position in mesh It will not be removed after mark net cast, player can be realized by reading the video data of pre-position storage Do not have to play the target video offline in the case where network.It should also be noted that, the view that player is got from server Frequency is according to may include multiple video data packets, then player can use and not get a video counts in the embodiment of the present invention The video data packet is just stored in predetermined position according to packet, can be realized in this way and fragment downloading is carried out to target video.
As a kind of optional embodiment, the video data for the target video that step S206 will acquire is stored in pre-determined bit Set any one in completing to may comprise steps of the downloading of target video:
Step S2062 is played in player and has been deposited while the video data of target video is stored in predetermined position The video data of storage.
It should be noted that player is by the video data of the target video got from server in the embodiment It, can be by reading the video data of the target video while being stored in predetermined position, and transcoding operation is carried out to it, it realizes Stored video data is played in player.In the technical solution provided by step S2062, it may be implemented to be broadcast live on one side Target video, downloads the target video on one side, can satisfy user in this way and is watched nothing again to interested target video Need the demand of consumption network flow again.
Step S2064, while the video data of target video is stored in predetermined position, the displaying target in player The download progress of video.
It should be noted that player is by the video data of the target video got from server in the embodiment While being stored in predetermined position, stored video data can not be played in player, but is shown in player The download progress of the target video, wherein the download progress of the target video can be accounted for entirely with the video data got The ratio of the video data of target video indicates.In the technical solution provided by step S2064, it may be implemented only to download mesh Video is marked without target video is broadcast live, user can be made to be not necessarily to when being not desired to viewing target video because the live streaming time is improper in this way It is broadcast live in player, and then achievees the effect that reduce network flow consumed by player live streaming target video.
Whether user can select to need while downloading target video according to actual needs in the alternative embodiment It is broadcast live in player, can preferably meet user demand in this way, improve the user experience.
As a kind of optional embodiment, requested in response to video download in the live streaming time started to live streaming in step S206 In period between end time after the video data for obtaining target video in server, the video download of the embodiment Method can also include:
The video data of target video is encrypted step S207, wherein target video after encryption Video data allows to be designated player plays.
It should be noted that player is after the video data for getting target video in server, it can be to it It is encrypted, herein it should be noted that the video data of the target video after encryption only allows to be designated broadcasting Device plays, wherein specified player can be the permitted player of encryption.Video counts of the embodiment to target video According to being encrypted, primarily to guaranteeing the copyright safety of target video, for example, some variety video is only to some video Player authorizes broadcasting copyright, and after the variety video is downloaded, the copyright of the variety video resource cannot be protected effectively Shield, in this case, it is possible to be encrypted by the video data of the variety video to downloading, makes it can only be by the video Player plays, and other video players will be unable to play, and can effectively guarantee the copyright peace of the variety video in this way Entirely.
The embodiment is encrypted by the video data to the target video got from server, Neng Gouyou Effect ground guarantees the copyright safety of target video.
For the method for downloading video in the embodiment of the present invention, in practical application scene, user's operation process can be as Shown in Fig. 3, specifically it can be described as:
Live video server can push live information to user before live streaming starts, and when user live broadcast being prompted to start Between and prompt user the live video can be downloaded offline with option.User can broadcast according to suggested live information in video Soften reservation live video downloading in part (player), can specifically include: the clarity of downloading is arranged, and (smoothness, surpasses high definition Clearly, blue light etc.);The integrality (All Time of live video or specified time) of foradownloaded video is set;The sheet of specified downloading (default path also can be used) in ground store path;Network when specified offline downloading, such as have WIFI, 3G, 4G network connection When just download.After user reserves live video downloading, video jukebox software will return to reservation success notification message to user, And live video data is requested to live video server when reaching the live streaming time started.Live video server receives view After the request that frequency playout software is sent, live video data can be returned to video jukebox software, video jukebox software often connects After the live video data for receiving the return of live video server, live video data can be saved to being locally stored, It is represented with the storing process of live video data twice as the live streaming progress of live video successively stores live video number in Fig. 3 According to realize the offline downloading of live video.After live video live streaming, live video server is notified that video playing Software live streaming terminates, and video jukebox software can then prompt user live broadcast video to download completion offline, user can during idle time, The live video is watched in the absence of a network, does not need the support of server at this time, and mobile subscriber will not consumptive use Family flow.
It should be noted that in order to preferably meet user demand, the method for downloading video of the embodiment of the present invention can be with It prompts user to guarantee that electricity abundance and memory space are sufficient, such as desktop computer or notebook computer user, can prompt User does not shut down.The method for downloading video may be implemented to download live video automatically, and with offline video when beginning is broadcast live Mode, which is stored in, to be locally stored, and user is without doing additional any operation.After the completion of downloading, user can be prompted to have downloaded At, but result of the match will not be usually prompted for sports show match.The method for downloading video of the embodiment of the present invention can fit For programme televised lives such as all programme televised lives, including sport, game, variety.
The method for downloading video of the embodiment of the present invention, which is able to solve user, which watches video time and net cast time, punching When prominent, the problem of user can not watch live video, additionally it is possible to solve after live streaming user in the absence of a network The problem of live video can not be watched, additionally it is possible to which when solving multiple live videos while carrying out, user can only watch a live streaming The problem of video, additionally it is possible to solve the problems, such as that viewing live video may buffer.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
According to embodiments of the present invention, it additionally provides a kind of for implementing the video download device of above-mentioned method for downloading video. Fig. 4 is a kind of schematic diagram of optional video download device according to an embodiment of the present invention, as shown in figure 4, the device can wrap It includes:
Receiving unit 22, for receiving video download request, wherein video download request starts for requesting in live streaming The target video that time starts live streaming is downloaded;Acquiring unit 24, for requesting in response to video download when beginning is broadcast live Between to live streaming the end time between period in from server obtain target video video data;Storage unit 26 is used Downloading of the predetermined position completion to target video is stored in the video data for the target video that will acquire.
It should be noted that the receiving unit 22 in the embodiment can be used for executing the step in the embodiment of the present application 1 S202, the acquiring unit 24 in the embodiment can be used for executing the step S204 in the embodiment of the present application 1, in the embodiment Storage unit 26 can be used for executing the step S206 in the embodiment of the present application 1.
Herein it should be noted that above-mentioned module is identical as example and application scenarios that corresponding step is realized, but not It is limited to 1 disclosure of that of above-described embodiment.It should be noted that above-mentioned module as a part of device may operate in as In hardware environment shown in FIG. 1, hardware realization can also be passed through by software realization.
As a kind of optional embodiment, video download request can serve to indicate that downloading live streaming the time started to be broadcast live knot The corresponding video data of target time section between the beam time, as shown in figure 5, acquiring unit 24 may include: acquisition module 242, for obtaining the target time section pair of target video from server in the target time section being broadcast live after the time started The video data answered, wherein target time section is that the time started is broadcast live to the period or object time that the end time is broadcast live Section is the live streaming time started to the sub- period between the live streaming end time, and the duration of sub- period is less than the live streaming time started extremely The duration of the period of end time is broadcast live.
It should be noted that the acquisition module 242 in the embodiment can be used for executing the step in the embodiment of the present application 1 S2042。
Herein it should be noted that above-mentioned module is identical as example and application scenarios that corresponding step is realized, but not It is limited to 1 disclosure of that of above-described embodiment.It should be noted that above-mentioned module as a part of device may operate in as In hardware environment shown in FIG. 1, hardware realization can also be passed through by software realization.
As a kind of optional embodiment, as shown in fig. 6, storage unit 26 may include: the first memory module 262, use While the video data of target video is stored in predetermined position, stored video data is played in player;Or The second memory module of person 264, while for the video data of target video to be stored in predetermined position, shows in player The download progress of target video.
It should be noted that the first memory module 262 in the embodiment can be used for executing in the embodiment of the present application 1 Step S2062, the second memory module 264 in the embodiment can be used for executing the step S2064 in the embodiment of the present application 1.
Herein it should be noted that above-mentioned module is identical as example and application scenarios that corresponding step is realized, but not It is limited to 1 disclosure of that of above-described embodiment.It should be noted that above-mentioned module as a part of device may operate in as In hardware environment shown in FIG. 1, hardware realization can also be passed through by software realization.
As a kind of optional embodiment, as shown in fig. 7, the video download device can also include: encryption unit 27, use It is obtained from server within the live streaming time started to the period between the live streaming end time in response to video download request After taking the video data of target video, the video data of target video is encrypted, wherein the mesh after encryption The video data of mark video allows to be designated player plays.
It should be noted that the encryption unit 27 in the embodiment can be used for executing the step in the embodiment of the present application 1 S207。
Herein it should be noted that above-mentioned module is identical as example and application scenarios that corresponding step is realized, but not It is limited to 1 disclosure of that of above-described embodiment.It should be noted that above-mentioned module as a part of device may operate in as In hardware environment shown in FIG. 1, hardware realization can also be passed through by software realization.
As a kind of optional embodiment, video download request can serve to indicate that at least one of following information: mesh Mark the clarity of video;The storage location of the video data of target video;The network mode that downloading target video is supported.
As a kind of optional embodiment, as shown in figure 8, the video download device can also include: the first output unit 21, for exporting the first prompt information before the time started is broadcast live, wherein first mentions before receiving video download request Show information for prompt live streaming the time started download target video.
It should be noted that the first output unit 21 in the embodiment can be used for executing in the embodiment of the present application 1 Step S201.
Herein it should be noted that above-mentioned module is identical as example and application scenarios that corresponding step is realized, but not It is limited to 1 disclosure of that of above-described embodiment.It should be noted that above-mentioned module as a part of device may operate in as In hardware environment shown in FIG. 1, hardware realization can also be passed through by software realization.
As a kind of optional embodiment, as shown in figure 9, the video download device can also include: the second output unit 23, for exporting the second prompt information after receiving video download request, wherein the second prompt information is played for prompting The remaining capacity and/or residual memory space of terminal where device.
It should be noted that the second output unit 23 in the embodiment can be used for executing in the embodiment of the present application 1 Step S203.
Herein it should be noted that above-mentioned module is identical as example and application scenarios that corresponding step is realized, but not It is limited to 1 disclosure of that of above-described embodiment.It should be noted that above-mentioned module as a part of device may operate in as In hardware environment shown in FIG. 1, hardware realization can also be passed through by software realization.
Above-mentioned module within the live streaming time started to the period between the live streaming end time from server by obtaining The video data of target video, and the video data that will acquire is stored in predetermined position, has reached live video and has downloaded offline Purpose, and then solve the relevant technologies after live video live streaming, it is straight that this can not be watched in the absence of a network The technical issues of broadcasting video watches flexibility and the convenience of live video to realize and improve user, and then optimizes user To the effect of the viewing experience of live video.
Embodiment 3
According to embodiments of the present invention, it additionally provides a kind of for implementing the server or terminal of above-mentioned method for downloading video.
Figure 10 is a kind of structural block diagram of terminal according to an embodiment of the present invention, and as shown in Figure 10, which may include: One or more (one is only shown in figure) processors 201, memory 203 and transmitting device 205, as shown in Figure 10, the end End can also include input-output equipment 207.
Wherein, memory 203 can be used for storing software program and module, such as the video download side in the embodiment of the present invention Method and the corresponding program instruction/module of device, processor 201 by the software program that is stored in memory 203 of operation and Module realizes above-mentioned method for downloading video thereby executing various function application and data processing.Memory 203 can wrap Include high speed random access memory, can also include nonvolatile memory, as one or more magnetic storage device, flash memory or Other non-volatile solid state memories of person.In some instances, memory 203 can further comprise remote relative to processor 201 The memory of journey setting, these remote memories can pass through network connection to terminal.The example of above-mentioned network includes but unlimited In internet, intranet, local area network, mobile radio communication and combinations thereof.
Above-mentioned transmitting device 205 is used to that data to be received or sent via a network.Above-mentioned network specific example It may include cable network and wireless network.In an example, transmitting device 205 includes a network adapter (Network Interface Controller, NIC), can be connected by cable with other network equipments with router so as to interconnection Net or local area network are communicated.In an example, transmitting device 205 is radio frequency (Radio Frequency, RF) module, For wirelessly being communicated with internet.
Wherein, specifically, memory 203 is for storing application program.
The application program that processor 201 can call memory 203 to store, to execute following step: receiving video download Request, wherein video download request is downloaded the target video for starting live streaming in the live streaming time started for requesting;Response Target view is obtained from server within the live streaming time started to the period between the live streaming end time in video download request The video data of frequency;The video data for the target video that will acquire is stored in downloading of the predetermined position completion to target video.
Processor 201 is also used to execute following step: in the target time section being broadcast live after the time started, from server The middle corresponding video data of target time section for obtaining target video, wherein target time section is extremely to be broadcast live the live streaming time started The period of end time or target time section are that time started to the sub- period between the live streaming end time, son is broadcast live The duration of period is less than the duration of the period of live streaming time started to live streaming end time.
Processor 201 is also used to execute following step: while the video data of target video is stored in predetermined position, Stored video data is played in player;Or while the video data of target video is stored in predetermined position, The download progress of displaying target video in player.
Processor 201 is also used to execute following step: being extremely broadcast live in response to video download request in the live streaming time started In period between end time after the video data for obtaining target video in server, by the video counts of target video According to being encrypted, wherein the video data of the target video after encryption allows to be designated player plays.
Processor 201 is also used to execute following step: before receiving video download request, before the time started is broadcast live Export the first prompt information, wherein the first prompt information downloads target video in the live streaming time started for prompting.
Processor 201 is also used to execute following step: after receiving video download request, the second prompt information is exported, Wherein, the second prompt information is used to prompt the remaining capacity and/or residual memory space of the terminal where player.
Using the embodiment of the present invention, provide a kind of scheme of video download, by live streaming the time started to be broadcast live knot The video data storage that obtains the video data of target video in period between the beam time from server, and will acquire In predetermined position, achieve the purpose that live video is downloaded offline, and then solve the relevant technologies to terminate in live video live streaming Afterwards, the technical issues of can not watching the live video in the absence of a network, watches live streaming to realize and improve user The flexibility of video and convenience, and then optimize user to the effect of the viewing experience of live video.
Optionally, the specific example in the present embodiment can be shown with reference to described in above-described embodiment 1 and embodiment 2 Example, details are not described herein for the present embodiment.
It will appreciated by the skilled person that structure shown in Fig. 10 is only to illustrate, terminal can be smart phone (such as Android phone, iOS mobile phone), tablet computer, palm PC and mobile internet device (Mobile Internet Devices, MID), the terminal devices such as PAD.Figure 10 it does not cause to limit to the structure of above-mentioned electronic device.For example, terminal is also May include than shown in Figure 10 more perhaps less component (such as network interface, display device) or have and Figure 10 institute Show different configurations.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing the relevant hardware of terminal device by program, which can store in a computer readable storage medium In, storage medium may include: flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc..
Embodiment 4
The embodiments of the present invention also provide a kind of storage mediums.Optionally, in the present embodiment, above-mentioned storage medium can With the program code for executing method for downloading video.
Optionally, in the present embodiment, above-mentioned storage medium can be located at multiple in network shown in above-described embodiment On at least one network equipment in the network equipment.
Optionally, in the present embodiment, storage medium is arranged to store the program code for executing following steps:
S1 receives video download request, wherein video download request starts to be broadcast live for requesting in the live streaming time started Target video be downloaded;
S2, in response to video download request from service within the live streaming time started to the period between the live streaming end time The video data of target video is obtained in device;
S3, the video data for the target video that will acquire are stored in downloading of the predetermined position completion to target video.
Optionally, storage medium is also configured to store the program code for executing following steps: when beginning is broadcast live Between after target time section in, from server obtain target video the corresponding video data of target time section, wherein mesh The mark period be that be broadcast live time started to the period of live streaming end time or target time section be that the time started is broadcast live to straight The sub- period between the end time is broadcast, the duration of sub- period is less than the live streaming time started to the period that the end time is broadcast live Duration.
Optionally, storage medium is also configured to store the program code for executing following steps: by target video While video data is stored in predetermined position, stored video data is played in player;Or by target video While video data is stored in predetermined position, the download progress of displaying target video in player.
Optionally, storage medium is also configured to store the program code for executing following steps: in response to video Downloading request obtains the view of target video within the live streaming time started to the period between the live streaming end time from server Frequency the video data of target video is encrypted, wherein the video counts of the target video after encryption after According to allow be designated player plays.
Optionally, storage medium is also configured to store the program code for executing following steps: in the case where receiving video Before carrying request, the first prompt information is exported before the time started is broadcast live, wherein the first prompt information is being broadcast live for prompting Time started downloads target video.
Optionally, storage medium is also configured to store the program code for executing following steps: in the case where receiving video After carrying request, the second prompt information is exported, wherein the second prompt information is used to prompt the residue electricity of the terminal where player Amount and/or residual memory space.
Optionally, the specific example in the present embodiment can be shown with reference to described in above-described embodiment 1 and embodiment 2 Example, details are not described herein for the present embodiment.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or The various media that can store program code such as CD.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent product When selling or using, it can store in above-mentioned computer-readable storage medium.Based on this understanding, skill of the invention Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme The form of part product embodies, which is stored in a storage medium, including some instructions are used so that one Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) execute each embodiment institute of the present invention State all or part of the steps of method.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others side Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, and only one Kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (12)

1. a kind of method for downloading video characterized by comprising
Receive video download request, wherein the video download request starts live streaming in the live streaming time started for requesting Target video is downloaded;
In response to video download request from clothes within the live streaming time started to the period between the live streaming end time The video data that the target video is obtained in business device, the video data of the target video is encrypted, wherein add The video data of close treated the target video allows to be designated player plays;
The video data for the target video that will acquire is stored in downloading of the predetermined position completion to the target video.
2. the method according to claim 1, wherein video download request is used to indicate the downloading live streaming Time started to it is described live streaming the end time between the corresponding video data of target time section, wherein it is described in response to described Described in video download request is obtained from server within the live streaming time started to the period between the live streaming end time The video data of target video includes:
In the target time section after the live streaming time started, the target video is obtained from the server The corresponding video data of the target time section, wherein the target time section is the live streaming time started to the live streaming The period of end time or the target time section are the live streaming time started between the live streaming end time The sub- period, the duration of the sub- period be less than the period of the live streaming time started to the live streaming end time when It is long.
3. the method according to claim 1, wherein the video data of the target video that will acquire Be stored in predetermined position completion includes: to the downloading of the target video
While the video data of the target video is stored in the predetermined position, stored view is played in player Frequency evidence;Or
While the video data of the target video is stored in the predetermined position, the mesh is shown in the player Mark the download progress of video.
4. according to the method in any one of claims 1 to 3, which is characterized in that the video download request is used to indicate At least one of following information:
The clarity of the target video;
The storage location of the video data of the target video;
Download the network mode that the target video is supported.
5. according to the method in any one of claims 1 to 3, which is characterized in that request it in the reception video download Before, the method also includes:
The first prompt information is exported before the live streaming time started, wherein first prompt information is for prompting in institute It states the live streaming time started and downloads the target video.
6. according to the method in any one of claims 1 to 3, which is characterized in that request it in the reception video download Afterwards, the method also includes:
Export the second prompt information, wherein second prompt information is used to prompt the remaining capacity of the terminal where player And/or residual memory space.
7. a kind of video download device characterized by comprising
Receiving unit, for receiving video download request, wherein the video download request is for requesting to when live streaming starts Between start live streaming target video be downloaded;
Acquiring unit, for being extremely broadcast live between the end time in response to video download request in the live streaming time started The video data of the target video is obtained in period from server;
Encryption unit, for the video data of the target video to be encrypted, wherein the mesh after encryption The video data of mark video allows to be designated player plays;
Storage unit, the video data for the target video that will acquire are stored in predetermined position and complete to the target The downloading of video.
8. device according to claim 7, which is characterized in that the video download request is used to indicate the downloading live streaming Time started to it is described live streaming the end time between the corresponding video data of target time section, wherein the acquiring unit packet It includes:
Module is obtained, for being obtained in the target time section after the live streaming time started from the server The corresponding video data of the target time section of the target video, wherein the target time section is that the live streaming starts Time to the period of the live streaming end time or the target time section is the live streaming time started to the live streaming The sub- period between end time, at the end of the duration of the sub- period is less than the live streaming time started to the live streaming Between period duration.
9. device according to claim 7, which is characterized in that the storage unit includes:
First memory module while for the video data of the target video to be stored in the predetermined position, is playing Stored video data is played in device;Or
Second memory module, while for the video data of the target video to be stored in the predetermined position, described The download progress of the target video is shown in player.
10. device according to any one of claims 7 to 9, which is characterized in that the video download request is used to indicate At least one of following information:
The clarity of the target video;
The storage location of the video data of the target video;
Download the network mode that the target video is supported.
11. device according to any one of claims 7 to 9, which is characterized in that described device further include:
First output unit, for exporting the before the live streaming time started before the receptions video download is requested One prompt information, wherein first prompt information downloads the target video in the live streaming time started for prompting.
12. device according to any one of claims 7 to 9, which is characterized in that described device further include:
Second output unit, for after receptions video download request, the second prompt information of output, wherein described the Two prompt informations are used to prompt the remaining capacity and/or residual memory space of the terminal where player.
CN201710190115.5A 2017-03-27 2017-03-27 Method for downloading video and device Active CN107135416B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710190115.5A CN107135416B (en) 2017-03-27 2017-03-27 Method for downloading video and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710190115.5A CN107135416B (en) 2017-03-27 2017-03-27 Method for downloading video and device

Publications (2)

Publication Number Publication Date
CN107135416A CN107135416A (en) 2017-09-05
CN107135416B true CN107135416B (en) 2019-01-08

Family

ID=59720715

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710190115.5A Active CN107135416B (en) 2017-03-27 2017-03-27 Method for downloading video and device

Country Status (1)

Country Link
CN (1) CN107135416B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110446096A (en) * 2019-08-15 2019-11-12 天脉聚源(杭州)传媒科技有限公司 Video broadcasting method, device and storage medium a kind of while recorded
CN111147879B (en) * 2019-12-30 2022-06-10 深圳Tcl数字技术有限公司 Live program caching method, system, equipment and computer storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2056598A1 (en) * 2007-11-01 2009-05-06 Sling Media, Inc. Personal video recorder functionality for placeshifting systems
CN102790779A (en) * 2011-05-16 2012-11-21 腾讯科技(深圳)有限公司 Method and device for downloading live video resources
CN103873513A (en) * 2012-12-13 2014-06-18 中国电信股份有限公司 Adaptive downloading method and adaptive downloading system
CN104394457A (en) * 2014-09-16 2015-03-04 东方有线网络有限公司 Implementation method of television program scheduled recording and automatic downloading service system
CN105100839A (en) * 2015-07-14 2015-11-25 网易传媒科技(北京)有限公司 Video file downloading method, device, server and terminal equipment
CN106131689A (en) * 2016-06-27 2016-11-16 乐视控股(北京)有限公司 Method for downloading video and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2056598A1 (en) * 2007-11-01 2009-05-06 Sling Media, Inc. Personal video recorder functionality for placeshifting systems
CN102790779A (en) * 2011-05-16 2012-11-21 腾讯科技(深圳)有限公司 Method and device for downloading live video resources
CN103873513A (en) * 2012-12-13 2014-06-18 中国电信股份有限公司 Adaptive downloading method and adaptive downloading system
CN104394457A (en) * 2014-09-16 2015-03-04 东方有线网络有限公司 Implementation method of television program scheduled recording and automatic downloading service system
CN105100839A (en) * 2015-07-14 2015-11-25 网易传媒科技(北京)有限公司 Video file downloading method, device, server and terminal equipment
CN106131689A (en) * 2016-06-27 2016-11-16 乐视控股(北京)有限公司 Method for downloading video and device

Also Published As

Publication number Publication date
CN107135416A (en) 2017-09-05

Similar Documents

Publication Publication Date Title
CN113965811B (en) Play control method and device, storage medium and electronic device
CN110430461A (en) A kind of method, apparatus and video playback apparatus controlling video playing
CN104159151B (en) A kind of device and method for carrying out video intercepting on OTT boxes and handling
CN104427352B (en) A kind of method and system for the mobile terminal recording playback television video that user interaction is shared
CN109168037B (en) Video playing method and device
CN107659712A (en) A kind of method, apparatus and storage medium for throwing screen
CN107547940A (en) Video playback processing method, equipment and computer-readable recording medium
CN108989609A (en) Video cover generation method, device, terminal device and computer storage medium
CN106603503B (en) The treating method and apparatus of live data
CN106534946A (en) Control method and device for video playing
CN106998490B (en) A kind of multi-medium data synchronous method and device
WO2013044705A1 (en) Online video playing method and video playing server
US10116976B2 (en) System and method for distributing media content associated with an event
WO2008065041A1 (en) Aggregation of multiple media streams to a user
CN105100912B (en) Streaming Media processing method and Streaming Media processing unit
CN107333163A (en) A kind of method for processing video frequency and device, a kind of terminal and storage medium
CN107872721A (en) A kind of multimedia data transmission method, terminal and computer-readable medium
CN104202652B (en) The control method for playing back and set top box of a kind of television set top box
CN108462883A (en) A kind of living broadcast interactive method, apparatus, terminal device and storage medium
CN106375859B (en) A kind of media processing method, device and terminal
CN102378059A (en) Internet TV and streaming media multibreak play method thereof
CN112019905A (en) Live broadcast playback method, computer equipment and readable storage medium
CN109089169A (en) A kind of live streaming method for switching between, device and storage medium
US9544630B2 (en) Method and IPTV server for enabling playout of one or more media objects
CN110139123A (en) The broadcasting of files in stream media, transmission, treating method and apparatus

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