CN104581337A - Play control method and device for videos - Google Patents

Play control method and device for videos Download PDF

Info

Publication number
CN104581337A
CN104581337A CN201310468643.4A CN201310468643A CN104581337A CN 104581337 A CN104581337 A CN 104581337A CN 201310468643 A CN201310468643 A CN 201310468643A CN 104581337 A CN104581337 A CN 104581337A
Authority
CN
China
Prior art keywords
video
video data
download
request
playing request
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.)
Pending
Application number
CN201310468643.4A
Other languages
Chinese (zh)
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 CN201310468643.4A priority Critical patent/CN104581337A/en
Publication of CN104581337A publication Critical patent/CN104581337A/en
Pending legal-status Critical Current

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/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a play control method for videos. The play control method comprises the following steps: when a play request in a video downloading process is detected, checking whether video data to be played exists locally or not; when the video data corresponding to the play request exists locally, resolving the video data stored locally, and playing the resolved video data; when the video data corresponding to the play request does not exist locally, downloading corresponding video data according the play request; and resolving the downloaded video data, playing the resolved video data, and meanwhile writing the downloaded video data into a corresponding local video file. The invention further discloses a play control device for videos. Through adoption of the play control method and device, double flows are not generated if the video data requested by a user is a non-downloaded part during downloading and playing, and a complete video file is obtained.

Description

The control method for playing back of video and device
Technical field
The present invention relates to video playback field, particularly relate to a kind of control method for playing back and device of video.
Background technology
Browser is the express passway obtaining video web-pages, and the video website scope of its magnanimity is not that single videoconference client is commeasurable.And user is when use browser viewing video, except single viewing, also think foradownloaded video, and while download, continue this video of viewing.
With reference to Fig. 1, the process of being undertaken playing on download limit, limit by browser mainly comprises following components:
(1) by the download function that browser provides, corresponding video is downloaded
After user triggers down operation, browser gets the video source address of Html5 by the Html element of the page, then opens the download of http, and video is saved in this locality.
(2) in downloading, the click of video is play
When user triggers clicking operation, during to play the video in download, the part that video has been downloaded by browser is given the self-defining player of browser and is play, and the network source address of this video is sent to player simultaneously.
(3) dragging of progress and the switching of network source
In video display process, if user drags progress bar, then detect video data corresponding to time of this progress bar and whether downloaded, if completed, then play; If do not completed, then gone for the network source address asking this video by player, obtain video data corresponding to the time of current schedules bar.Such as, a complete video has 60 minutes, has downloaded 10 minutes, and now user starts to play, and when progress is in first 10 minutes time, player directly have read the local data downloaded; When in the scope that progress bar is dragged to 10-60 minute time, the direct network source address according to video is gone for the data asking network by player.
Although source address, when the progression time that user drags is not within the scope of download, is switched to network source from this locality by above-mentioned player, make user can continue to watch this video.But because player is the network data obtained by cushioning, this locality cannot obtain, that is itself and the data downloaded cannot merge by this locality, and form complete video file.To obtain complete video file, can only be continued to download by original http download request, so double flow will be produced, namely the flow generated for player plays 10-60 minute and download http request download the flow that within the scope of 10-60 minute, video produces, not only take the network bandwidth, thus reduce the speed of player buffering and http download, but also make to which create double flow.
Summary of the invention
The main purpose of the embodiment of the present invention is to provide a kind of control method for playing back and device of video, is intended to save download limit, limit and plays the flow produced.
For reaching above object, embodiments providing a kind of control method for playing back of video, comprising the following steps:
When detecting the playing request in video downloading process, search this locality and whether there is video data to be played;
When this locality exists video data corresponding to playing request, the video data that this this locality stores is resolved, and the video data after resolving is play;
When this locality does not exist video data corresponding to playing request, then according to described playing request, download corresponding video data;
The video data of download is resolved, and the video data after resolving is play, the video data downloaded is write in local corresponding video file simultaneously.
Accordingly, the embodiment of the present invention additionally provides a kind of broadcast control device of video, comprising:
Local data searches module, during for detecting the playing request in video downloading process, searching this locality and whether there is video data to be played;
Video acquiring module, for when this locality exists video data corresponding to playing request, then obtains local corresponding video data; When this locality does not exist video data corresponding to playing request, then according to playing request, download corresponding video data, and by the local corresponding video file of video data write downloaded;
Video playback module, resolves for the video data obtained video acquiring module, and plays the video data after resolving.
The present embodiment is when detecting playing request, first judge whether this locality exists corresponding video data, if exist, rear broadcasting is resolved to it, if do not exist, downloads corresponding video data, and write in corresponding video file while playing after this video data is resolved.Therefore, when the embodiment of the present invention makes to play on download limit, limit, if the video data of user's request is the part do not downloaded, also can not produces double flow, but also obtain complete video file.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet that video of the prior art downloads limit broadcasting;
Fig. 2 is the function structure schematic diagram of the terminal system that the control method for playing back of video of the present invention is applied;
Fig. 3 is the schematic flow sheet of control method for playing back first embodiment of video of the present invention;
Fig. 4 searches the local schematic flow sheet that whether there is video data to be played in the control method for playing back of video of the present invention;
Fig. 5 is the schematic flow sheet of control method for playing back second embodiment of video of the present invention;
Fig. 6 is the schematic flow sheet of control method for playing back the 3rd embodiment of video of the present invention;
Fig. 7 is the schematic flow sheet of control method for playing back the 4th embodiment of video of the present invention;
Fig. 8 is the schematic flow sheet that in the control method for playing back of video of the present invention, download limit, video limit is play;
Fig. 9 is the high-level schematic functional block diagram of the broadcast control device preferred embodiment of video of the present invention.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Technical scheme of the present invention is further illustrated below in conjunction with Figure of description and specific embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Main thought of the present invention builds a home server, and make this home server have video download function and video analytical capabilities, when detecting playing request, first judge whether this locality exists video data to be played, if exist, obtain local video data, and carry out playing after video is resolved to it; If do not exist, download corresponding video data, and the video data downloaded is play, also the video data of download is saved in this locality simultaneously.
The embodiment of the present invention is applied in the application end of terminal, when user obtains video data by this application access destination server, can first build a home server, and by this home server access destination server, to obtain corresponding video data.As shown in Figure 2, this terminal comprises processor 101, memory 102, browser, touch input unit 105.Wherein browser embedded player 103 and the home server 104 built.Processor is used for obtaining corresponding instruction from memory 102, normally runs to control other each assemblies.Also for store video files etc. in memory 102.Browser is mounted in the application end in terminal, carries out browsing page for user.Its embedded player 103, for playing network video, when home server 104 is for carrying out displaying video by browser, is resolved video data that is local or network, and being transferred to player 103 to play the video data of parsing.Meanwhile, home server 104 is also expanded http download function, namely when being carried out video by browser and downloading, sets up http download request, with to the corresponding video data of destination server request, and the data of download is kept at this locality.
With reference to Fig. 3, control method for playing back one embodiment of video of the present invention is proposed.The control method for playing back of the video of this embodiment comprises the following steps:
When step S110, the playing request detected in video downloading process, then search this locality and whether there is video data to be played; When this locality exists video data corresponding to playing request, then proceed to step S120; When this locality does not exist video data corresponding to playing request, proceed to step S130;
In video downloading process, when application end receives the playing request of user's triggering, send it to home server, then home server is according to this playing request, searches this locality and whether there is video data to be played.This this locality refers in the memory of terminal, can comprise the memory headroom that terminal carries and the external memory space supplying terminal access.This playing request comprises the timestamp information of fileinfo and video.If user is when watching video, drag progress bar to the 30 minute place of video, then application end will detect playing request, and the timestamp information of this playing request is 30 minutes.
Step S120, to this this locality store video data resolve, and to resolve after video data play;
When this locality exists video data corresponding to playing request, obtain this video data, and this video data is resolved, obtain data flow, and this data flow is play to the embedded player of application end.Because the source of media in home server can support the video file of different-format, therefore after home server obtains local video file, then use the resolution rules corresponding to video file to resolve video data, can play with the player making application end embedded.
Step S130, according to playing request, download corresponding video data;
When this locality does not exist video data corresponding to playing request, then home server is according to the fileinfo in this playing request and timestamp information, generates corresponding download request, and obtains corresponding video data to destination server.Such as, this fileinfo can be the network source address information of this video file, and timestamp information is then the request time of video data in video file, such as 30 minutes.Then home server is in download list, searches the corresponding downloading task of this fileinfo, and is added in downloading task by this timestamp information, and this downloading task is downloaded from this timestamp information.
Step S140, the video data of download to be resolved, and the video data after resolving is play, the video data of download is write in corresponding video file simultaneously.
After getting corresponding video data, then this video data is resolved, obtain data flow, and this data flow is play to the embedded player of application end.Meanwhile, also the video data of download is write in corresponding video file.
The present embodiment is when detecting playing request, first judge whether this locality exists corresponding video data, if exist, rear broadcasting is resolved to it, if do not exist, downloads corresponding video data, and write in corresponding video file while playing after this video data is resolved.Therefore, when the embodiment of the present invention makes to play on download limit, limit, if the video data of user's request is the part do not downloaded, also can not produces double flow, but also obtain complete video file.
Further, with reference to Fig. 4, propose in the control method for playing back of video of the present invention, to search the local flow process that whether there is video data to be played.In this embodiment, above-mentioned steps S110 comprises:
When step S111, the playing request detected in video downloading process, search local corresponding video file according to fileinfo;
Detect the playing request in video downloading process, by the fileinfo in playing request, search the local corresponding video file stored.
Step S112, judge in this video file, whether to there is video data corresponding to this timestamp information according to timestamp information.
After getting corresponding video file, judge in this video file, whether to there is video data corresponding to this timestamp information by timestamp information.Such as, user when watching video by dragging progress bar, video data during request viewing 30 minutes, and in this locality, the data of the current download of this video file are only the video data of 25 minutes.Therefore, then can judge there is not video data corresponding to playing request in this video file.
Further, control method second embodiment of video playback of the present invention is proposed.With reference to Fig. 5, in the control method of the video playback of this embodiment, also comprised before above-mentioned steps S110:
Step S100, when detecting the download request of video, according to the source address of video to be downloaded, obtain video data to be downloaded accordingly to destination server, and be kept at this locality.
When detecting the download request of video, home server, by the source address according to video to be downloaded, sets up downloading task, to obtain video data to be played accordingly to destination server, and is kept at this locality.When the video data downloaded in this downloading task is a threshold value, can produce information, with reminding user, whether download limit, limit is watched, and when user selects to be, then obtains local corresponding video data, and resolves rear broadcasting to it.Certainly, after video data also can be downloaded to this locality by home server by the embodiment of the present invention completely, then video playback is carried out.
Further, control method for playing back the 3rd embodiment of video of the present invention is proposed.With reference to Fig. 6, in the video playing control method of this embodiment, comprising:
When step S210, the playing request detected in video downloading process, then search this locality and whether there is video data to be played; When this locality exists video data corresponding to playing request, then proceed to step S220; When this locality does not exist video data corresponding to playing request, proceed to step S230;
Step S220, to this this locality store video data resolve, and to resolve after video data play;
Step S230, suspend original video download request, and set up new download request, the video data that downloading and playing request is corresponding;
Step S240, the video data of download to be resolved, and the video data after resolving is play, the video data of download is write in corresponding video file simultaneously;
Step S250, after new download request terminates, start original video download request, foradownloaded video data, and the data of this download are write in corresponding video file, until the video obtained reaches video data corresponding to playing request.
Be specially: above-mentioned steps S210, S220, S240 and the step S110 in the first embodiment, S120, S140 are consistent, just repeat no more at this.If there is not video data corresponding to playing request in this video file, then represent that video data corresponding to this playing request is not also downloaded.Now, first original download request can be suspended, and set up new download request, at the end for the treatment of the download of new download request, then restart original download request, incomplete video data is downloaded in request.Or itself and new download request are together carried out.
The embodiment of the present invention, by after setting up the new corresponding video data of download request downloading and playing request, reopens original download request, downloads video data incomplete in video file, to generate complete video file.
Further, control method for playing back the 4th embodiment of video of the present invention is proposed.With reference to Fig. 7, in the video playing control method of this embodiment, comprising:
When step S310, the playing request detected in video downloading process, then search this locality and whether there is video data to be played; When this locality exists video data corresponding to playing request, then proceed to step S320; When this locality does not exist video data corresponding to playing request, proceed to step S330;
Step S320, to this this locality store video data resolve, and to resolve after video data play;
Step S330, the timestamp information in playing request is added into original video download request, the video data that downloading and playing request is corresponding;
Step S340, the video data of download to be resolved, and the video data after resolving is play, the video data of download is write in corresponding video file simultaneously;
Whether step S350, the data judged in this video file are complete; When the data in this video file are imperfect, proceed to step S360; When data integrity in this video file, process ends.
After being downloaded by the video data of download in step S340 is terminated, then can judge that whether video file is complete, whether the timestamp of the video data namely checked in video file has interruption, such as the data of above-mentioned current download are only the video data of 25 minutes, and when user drags progress bar to 30 minute, then download 30 minutes later video datas to destination server request, the video data of this download will write in corresponding video file.So, the video file of this generation is by imperfect, because it lacks the video data between 25 minutes-30 minutes.
Step S360, obtain the timestamp information of imperfect part, and according to the timestamp information of described imperfect part, re-establish download request, download corresponding video data, and the data of this download are write in corresponding video file.
When the video data in this video file is imperfect, then obtain the timestamp information of imperfect video data, such as 25 minutes-30 minutes.According to this timestamp information, download corresponding video data, and the video data of this download is write in corresponding video file.
The embodiment of the present invention, by after the corresponding video data of download, carries out integrity checking to the data of video file, to generate complete video file.
The control method of the video playback of above-described embodiment is applied to the broadcasting of Internet video in browser, this browser embedded player, and it can identify local video file, and plays the video file identified; In this browser, also expansion has http download service, and it to Client-initiated video download request, can download corresponding video file to destination server.As shown in Figure 8, the detailed process that browser carries out download limit, the limit broadcasting of video is proposed.
(1) by the download function that browser provides, corresponding video is downloaded
When user triggers down operation, application end is not directly set up http download request, but by the network source address of video to home server, sets up http download request by home server, to destination server request video data, and the data returned by destination server are kept at this locality.The message such as download progress are also back to application end by home server, to show this download progress on the display interface of application end.
(2) in downloading, the click of video is play
In the downloading process of video, when user triggers play operation, application end is then according to this playing request, to home server request video data, home server then judges the local video data whether having this playing request corresponding, there is video data corresponding to this playing request, then obtain this video data if local, and be back to application end, carry out normal play by the embedded player of this application end.
(3) dragging of progress
In video display process, if user drags progress bar, then whether the data detecting this time schedule have been downloaded, and whether namely local exist video data corresponding to this playing request.When the data of this time schedule have not been downloaded, home server then initiates download request, obtains data corresponding to playing request to destination server.These data downloaded to will be given player and be play, and copy portion simultaneously and will directly write in original download file, thus form complete video file.
Corresponding said method embodiment, the present invention proposes a kind of broadcast control device of video.With reference to Fig. 9, the broadcast control device of the video of this embodiment comprises:
Local data searches module 110, during for detecting the playing request in video downloading process, then searches this locality and whether there is video data to be played;
Video acquiring module 120, for when this locality exists video data corresponding to playing request, then obtains local corresponding video data; When this locality does not exist video data corresponding to playing request, then according to playing request, download corresponding video data, and by the local corresponding video file of video data write downloaded;
Video playback module 130, resolves for the video data obtained video acquiring module, and plays the video data after resolving.
Playing request in above-mentioned video downloading process comprises the timestamp information of fileinfo and video.If user is when watching video, drag progress bar to the 30 minute place of video, then application end will detect playing request, and the timestamp information of this playing request is 30 minutes.This locality refers to the memory of terminal, can comprise the memory headroom that terminal carries and the external memory space supplying terminal access.When this locality exists video data corresponding to playing request, video acquiring module 120 obtains corresponding video data, sends it to video playback module 130, and this video playback module 130 is play after this video data being carried out parsings acquisition data flow.When this locality does not exist video data corresponding to playing request, video acquiring module 120 will set up corresponding download request, and obtain corresponding video data to destination server.Then this video data is sent to video playback module 130 by this video acquiring module 120, so that video playback module resolves rear broadcasting to it.
The present embodiment is when detecting playing request, first judge whether this locality exists corresponding video data, if exist, rear broadcasting is resolved to it, if do not exist, downloads corresponding video data, and write in corresponding video file while playing after this video data is resolved.Therefore, when the embodiment of the present invention makes to play on download limit, limit, if the video data of user's request is the part do not downloaded, also can not produces double flow, but also obtain complete video file.
Further, when above-mentioned local data searches module 110 for detecting the playing request in video downloading process, by the fileinfo in playing request, search the local corresponding video file stored.After getting corresponding video file, judge in this video file, whether to there is video data corresponding to this timestamp information by putting into practice stamp information.Such as, user when watching video by dragging progress bar, video data during request viewing 30 minutes, and in this locality, the data of the current download of this video file are only the video data of 25 minutes.Therefore, then can judge there is not video data corresponding to playing request in this video file.
Further, above-mentioned video acquiring module 120 also for: when detecting video download request, according to the source address of video to be downloaded, obtain video data to be downloaded accordingly to destination server, and be kept at this locality.
When detecting the download request of video, video acquiring module 120, by the source address according to video to be downloaded, sets up downloading task, to obtain video data to be downloaded accordingly to destination server, and is kept at this locality.When the video data downloaded in this downloading task is a threshold value, can produce information, with reminding user, whether download limit, limit is watched, and when user selects to be, then obtains local corresponding video data, and resolves rear broadcasting to it.Certainly, after video data also can be downloaded to this locality by home server by the embodiment of the present invention completely, then video playback is carried out.
Further, above-mentioned video acquiring module 120 also for: when this locality does not exist video data corresponding to playing request, then suspend original video download request, and set up new download request, the video data that downloading and playing request is corresponding; When video data in the video file generated after the download is complete is imperfect, start original video download request, foradownloaded video data, until the video obtained reaches video data corresponding to playing request.
When detecting playing request, if this locality exists video file, then represent that this video is downloaded by home server before being played; If there is not video data corresponding to playing request in this video file, then represent that video data corresponding to this playing request is not also downloaded.Now first original download request can be suspended, and set up new download request, at the end for the treatment of the download of new download request, then restart original download request, incomplete video data is downloaded in request.Or itself and new download request are together carried out.
Further, above-mentioned video acquiring module 120 also for, when this locality does not exist video data corresponding to playing request, the timestamp information in playing request is added into original video download request, the video data that downloading and playing request is corresponding; When video data in the video file generated after the download is complete is imperfect, obtain the timestamp information of imperfect part, and according to the timestamp information of described imperfect part, re-establish download request, download corresponding video data, and the data of this download are write in corresponding video file.
Being specially: after video data has been downloaded, in order to ensure the integrality of the video file generated, then when judging that the data of video file are imperfect, then obtaining the timestamp of imperfect video data, such as 25 minutes-30 minutes.According to this timestamp information, download corresponding video data, and the video data of this download is write in corresponding video file.
It should be noted that, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or device and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or device.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the device comprising this key element and also there is other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that above-described embodiment method can add required general hardware platform by software and realize, hardware can certainly be passed through, but in a lot of situation, the former is better execution mode.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, the collator of this relational network interior joint will be realized by some instructions, this some instruction is stored in a storage medium (as ROM/RAM, magnetic disc, CD), supply terminal equipment (can be mobile phone, computer, server, or the network equipment etc.) perform method described in each embodiment of the present invention.
The foregoing is only the preferred embodiments of the present invention; not thereby its scope of the claims is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; directly or indirectly be used in the technical field that other are relevant, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. a control method for playing back for video, is characterized in that, comprises the following steps:
When detecting the playing request in video downloading process, search this locality and whether there is video data to be played;
When this locality exists video data corresponding to playing request, the video data that this this locality stores is resolved, and the video data after resolving is play;
When this locality does not exist video data corresponding to playing request, then according to described playing request, download corresponding video data;
The video data of download is resolved, and the video data after resolving is play, the video data downloaded is write in local corresponding video file simultaneously.
2. the control method for playing back of video according to claim 1, is characterized in that, described playing request comprises the timestamp information of fileinfo and video; Described detect in video downloading process playing request time, search and local whether there is video data to be played and comprise:
When detecting the playing request in video downloading process, search local corresponding video file according to fileinfo;
Judge in this video file, whether to there is video data corresponding to this timestamp information according to timestamp information.
3. the control method for playing back of video according to claim 1, is characterized in that, described in when detecting in video downloading process playing request, then search local whether there is video data to be played before also comprise:
When detecting video download request, according to the source address of video to be downloaded, obtain video data to be downloaded accordingly to destination server, and be kept at this locality.
4. the control method for playing back of video according to claim 3, is characterized in that, described when this locality does not exist video data corresponding to playing request, then according to described playing request, download corresponding video data and comprise:
When this locality does not exist video data corresponding to playing request, suspend original video download request, and set up new download request, the video data that downloading and playing request is corresponding;
After new download request terminates, start original video download request, download corresponding video data, until the video obtained reaches video data corresponding to playing request.
5. the control method for playing back of video according to claim 3, it is characterized in that, it is described when this locality does not exist video data corresponding to playing request, then according to described playing request, download corresponding video data to comprise: when this locality does not exist video data corresponding to playing request, then the timestamp information in playing request is added into original video download request, the video data that downloading and playing request is corresponding;
After the video data download that playing request is corresponding terminates, judge that whether the video data in this video file is complete;
When the video data in this video file is imperfect, obtain the timestamp information of imperfect part, and according to the timestamp information of described imperfect part, re-establish download request, download corresponding video data, and the data of this download are write in corresponding video file.
6. a broadcast control device for video, is characterized in that, comprising:
Local data searches module, during for detecting the playing request in video downloading process, searching this locality and whether there is video data to be played;
Video acquiring module, for when this locality exists video data corresponding to playing request, then obtains local corresponding video data; When this locality does not exist video data corresponding to playing request, then according to playing request, download corresponding video data, and by the local corresponding video file of video data write downloaded;
Video playback module, resolves for the video data obtained video acquiring module, and plays the video data after resolving.
7. the broadcast control device of video according to claim 6, is characterized in that, described playing request comprises the timestamp information of fileinfo and video; When described local data searches module for detecting the playing request in video downloading process, search local corresponding video file according to fileinfo; Judge in this video file, whether to there is video data corresponding to this timestamp information according to timestamp information.
8. the broadcast control device of video according to claim 6, it is characterized in that, described video acquiring module also for: when detecting video download request, according to the source address of video to be downloaded, obtain video data to be downloaded accordingly to destination server, and be kept at this locality.
9. the broadcast control device of video according to claim 8, it is characterized in that, described video acquiring module also for, when there is not video data corresponding to playing request in this locality, then suspend original video download request, and set up new download request, the video data that downloading and playing request is corresponding; After new download request terminates, start original video download request, foradownloaded video data, and the data of this download are write in corresponding video file, until the video obtained reaches video data corresponding to playing request.
10. the broadcast control device of video according to claim 8, it is characterized in that, described video acquiring module also for: when there is not video data corresponding to playing request in this locality, then the timestamp information in playing request is added into original video download request, the video data that downloading and playing request is corresponding; After the video data download that playing request is corresponding terminates, when judging that video data in this video file is imperfect, obtain the timestamp information of imperfect part, and according to the timestamp information of described imperfect part, re-establish download request, download corresponding video data, and the data of this download are write in corresponding video file.
CN201310468643.4A 2013-10-09 2013-10-09 Play control method and device for videos Pending CN104581337A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310468643.4A CN104581337A (en) 2013-10-09 2013-10-09 Play control method and device for videos

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310468643.4A CN104581337A (en) 2013-10-09 2013-10-09 Play control method and device for videos

Publications (1)

Publication Number Publication Date
CN104581337A true CN104581337A (en) 2015-04-29

Family

ID=53096385

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310468643.4A Pending CN104581337A (en) 2013-10-09 2013-10-09 Play control method and device for videos

Country Status (1)

Country Link
CN (1) CN104581337A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106303581A (en) * 2016-08-25 2017-01-04 乐视控股(北京)有限公司 A kind of video file download process method, device and server
CN107888949A (en) * 2016-09-29 2018-04-06 法乐第(北京)网络科技有限公司 A kind of method and apparatus for downloading audio-video document in advance
CN108093270A (en) * 2017-12-29 2018-05-29 北京酷我科技有限公司 A kind of method for depositing video during broadcasting when broadcasting
CN110647303A (en) * 2019-08-30 2020-01-03 北京文渊佳科技有限公司 Multimedia playing method, device, storage medium and electronic equipment
CN114051152A (en) * 2022-01-17 2022-02-15 飞狐信息技术(天津)有限公司 Video playing method and device, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447994A (en) * 2008-12-30 2009-06-03 深圳市迅雷网络技术有限公司 Method for downloading and playing multimedia file and equipment thereof
CN102075792A (en) * 2010-12-23 2011-05-25 华为技术有限公司 Video file playing method and system, user equipment and server equipment
WO2013093310A1 (en) * 2011-12-23 2013-06-27 France Telecom Control system for playing a data stream on a receiving device
CN103327103A (en) * 2013-06-25 2013-09-25 北京网梯科技发展有限公司 Method and system for downloading while playing HTML courseware

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447994A (en) * 2008-12-30 2009-06-03 深圳市迅雷网络技术有限公司 Method for downloading and playing multimedia file and equipment thereof
CN102075792A (en) * 2010-12-23 2011-05-25 华为技术有限公司 Video file playing method and system, user equipment and server equipment
WO2013093310A1 (en) * 2011-12-23 2013-06-27 France Telecom Control system for playing a data stream on a receiving device
CN103327103A (en) * 2013-06-25 2013-09-25 北京网梯科技发展有限公司 Method and system for downloading while playing HTML courseware

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106303581A (en) * 2016-08-25 2017-01-04 乐视控股(北京)有限公司 A kind of video file download process method, device and server
CN107888949A (en) * 2016-09-29 2018-04-06 法乐第(北京)网络科技有限公司 A kind of method and apparatus for downloading audio-video document in advance
CN108093270A (en) * 2017-12-29 2018-05-29 北京酷我科技有限公司 A kind of method for depositing video during broadcasting when broadcasting
CN108093270B (en) * 2017-12-29 2020-09-25 北京酷我科技有限公司 Method for storing video while playing
CN110647303A (en) * 2019-08-30 2020-01-03 北京文渊佳科技有限公司 Multimedia playing method, device, storage medium and electronic equipment
CN110647303B (en) * 2019-08-30 2023-08-25 北京文渊佳科技有限公司 Multimedia playing method and device, storage medium and electronic equipment
CN114051152A (en) * 2022-01-17 2022-02-15 飞狐信息技术(天津)有限公司 Video playing method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
US20200034015A1 (en) Adaptive background playback behavior
JP6253110B2 (en) Using the application cache to update installed application resources
US9330098B2 (en) User interface operating method and electronic device with the user interface and program product storing program for operating the user interface
KR102084577B1 (en) Activity continuation between electronic devices
TWI581625B (en) Information transmitting method and system thereof
US9715338B2 (en) Method for associating media files with additional content
CN108141627B (en) Computer system and method for streaming video with dynamic user features
RU2619181C2 (en) System and method for downloadable content transmission optimizing
KR102045602B1 (en) Live tiles without application-code execution
US11089354B1 (en) Content aggregator
CN104581337A (en) Play control method and device for videos
WO2015179245A1 (en) Media stream cue point creation with automated content recognition
CN107690081B (en) Video playing method and device, storage medium and electronic device
US11245951B2 (en) Display device and content providing method thereof
CN101369280A (en) Method and device for web page browsing in digital television terminal
WO2018133725A1 (en) Method, client, and system for output processing of media file
US11907279B2 (en) Mechanism to handle interrupted playback experience for media items in playlists
CN111158546A (en) Media information display method and device, storage medium and electronic device
US20160119661A1 (en) On-Demand Metadata Insertion into Single-Stream Content
CN104202655A (en) Method and device of downloading audio and video files
CN103945259A (en) Online video playing method and device
WO2016045606A1 (en) Method and apparatus for recommending media content
CN104010223B (en) Adapter terminal system carries out the method and system of video playback
CN110134410B (en) Personalized information association method and device for cold-start user and storage medium
CN107423312A (en) Live data player method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150429