CN103327103A - Method and system for downloading while playing HTML courseware - Google Patents

Method and system for downloading while playing HTML courseware Download PDF

Info

Publication number
CN103327103A
CN103327103A CN2013102543794A CN201310254379A CN103327103A CN 103327103 A CN103327103 A CN 103327103A CN 2013102543794 A CN2013102543794 A CN 2013102543794A CN 201310254379 A CN201310254379 A CN 201310254379A CN 103327103 A CN103327103 A CN 103327103A
Authority
CN
China
Prior art keywords
download
http server
data
courseware
downloading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2013102543794A
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.)
WANGTI SCIENCE AND TECHNOLOGY DEVELOPMENT Co Ltd BEIJING
Original Assignee
WANGTI SCIENCE AND TECHNOLOGY DEVELOPMENT Co Ltd BEIJING
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 WANGTI SCIENCE AND TECHNOLOGY DEVELOPMENT Co Ltd BEIJING filed Critical WANGTI SCIENCE AND TECHNOLOGY DEVELOPMENT Co Ltd BEIJING
Priority to CN2013102543794A priority Critical patent/CN103327103A/en
Publication of CN103327103A publication Critical patent/CN103327103A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to a method and system for downloading while playing HTML courseware. The method includes the steps that an HTTP server which comprises a BT downloading module is locally set up, a client-side sends an HTML courseware playing request and accesses the HTTP server, the HTTP server firstly checks whether the local BT downloading module of the HTTP server completes downloading of data required by the request or not when the HTTP server receives the request, the priority of downloading is adjusted so that the data required by the request can be preferentially downloaded if the downloading is not completed, and local data downloaded by the BT downloading module in the HTTP server is directly used if the downloading is completed, wherein the client-side takes the size of data which can be downloaded by the BT downloading module in two seconds as the size of data required by each request, and all the required HTML courseware is played.

Description

The method and system that the HTML courseware is play while downloading
Technical field
The present invention relates to a kind of implementation method and system that can play while downloading with the BT agreement the HTML courseware.
Background technology
Required because imparting knowledge to students, instructors will be made various types of HTML coursewares usually, checks and learns for the learner.If the learner is in without under the environment of net when learning, just need to download courseware, consider that courseware is generally larger, and use traditional http downloading mode can cause speed of download slow, to problems such as the server bandwidth occupancy are large.Therefore, we will utilize the BT agreement to download.
But, utilize the BT agreement to download the time of courseware and the demand that the user is still grown and can not satisfy to speed.In order to shorten download time and to improve speed of download, also for the user can be learnt in the process of downloading normally, the method that just needs to realize a kind of broadcast while downloading is carried out the courseware broadcast simultaneously.
Summary of the invention
The objective of the invention is to realize the HTML courseware is play while downloading with the BT agreement.
Method of the present invention: utilize BT to download the HTML courseware, and realization can the freely dragging playing progress rate in downloading process.
Technical scheme of the present invention is as follows:
A kind of method that the HTML courseware is play while downloading with the BT agreement is characterized in that, may further comprise the steps:
1) sets up a http server in this locality, comprise the BT download module in the described http server;
2) client sends HTML courseware playing request, access described http server, described http server checks first when receiving described request whether the local BT download module of described http server will ask needed data to be downloaded and finish, do not finish if download, then adjust the priority of downloading, the preferential needed data of download request; Finish if downloaded, directly use the local data that the BT download module has been downloaded in the http server; Wherein, client with data volume that 2 seconds, the BT download module can be downloaded as the needed data volume of each request;
3) play the HTML courseware of asking;
Described http server also comprises a prediction module, is used for ask the one piece of data of predetermined length after the needed data as prediction data, with to after the needed data of playing request predict the download priority of the data that lifting is predicted.
A kind of system that the HTML courseware is play while downloading with the BT agreement, it is characterized in that: described system comprises http server and client;
Described http server is erected at this locality, comprising the sharp described prediction module of BT download module;
Wherein, described client sends HTML courseware playing request, access described http server, described http server checks first when receiving described request whether the local BT download module of described http server will ask needed data to be downloaded and finish, do not finish if download, then adjust the priority of downloading, the preferential needed data of download request; Finish if downloaded, directly use the local data that the BT download module has been downloaded in the http server; Described client with data volume that 2 seconds, the BT download module can be downloaded as the needed data volume of each request;
Described prediction module is used for ask the one piece of data of predetermined length after the needed data as prediction data, with to after the needed data of playing request predict the download priority of the data that lifting is predicted;
Described http server is also for the HTML courseware of asking to client terminal playing.
The present invention compares with traditional courseware method for down loading, utilizes the BT agreement to play the HTML courseware while downloading, and has the following advantages:
Promote speed of download;
Shortening is from downloading courseware to the time the study courseware;
Use the BT agreement, the bandwidth that has reduced server relies on.
Description of drawings
Fig. 1 is the system construction drawing that the present invention plays while downloading the HTML courseware.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The present invention realizes the HTML courseware is play while downloading with the BT agreement.Concrete technical solution is as follows:
At http server of local frame, comprise the BT download module in the described http server, client sends HTML courseware playing request, access this http server, this http server checks first when receiving request whether the local BT download module of described http server is finished needed data download, do not finish if download, then need to adjust the priority of download, the data of preferential download request; Finish if downloaded, directly use the local data that the BT download module has been downloaded in the http server.What described http server adopted is the nginx server, and uses mp4, flv module to realize the broadcast that drags of mp4, flv screen, and described download adopts the BT agreement to carry out, and has used PEX, LPD, DHT expansion.
The download schedule strategy for guaranteeing can smooth playing, when http server is received request, is not finished if needed data are downloaded, and for guaranteeing timely response, need to other task suspension 2 seconds, continue to download needed data; If finish the download of needed data in 2 seconds, then other stopped tasks can continue, otherwise, will continue to keep the halted state of other tasks, ensureing with this needs in time obtaining of data.In order to reach smooth broadcasting speed, also to do a prediction to the data that need future, promote the download priority of prediction data, be about to ask the one piece of data of predetermined length after the needed data as prediction data, with to after the needed data of playing request predict.
The download request buffering strategy in order to promote speed of download, needs the enough data of request at every turn, but in order to promote the switch speed of courseware diverse location, the data of the each request of requirement should not be too large.In this application, with the data volume that can download for the 2 seconds data volume as each request.
The present invention also provides a kind of system that the HTML courseware is play while downloading with the BT agreement, and it is characterized in that: described system comprises http server and client;
Described http server is erected at this locality, comprising BT download module and prediction module;
Wherein, described client sends HTML courseware playing request, access described http server, described http server checks first when receiving described request whether the local BT download module of described http server will ask needed data to be downloaded and finish, do not finish if download, then adjust the priority of downloading, the preferential needed data of download request; Finish if downloaded, directly use the local data that the BT download module has been downloaded in the http server; Described client with data volume that 2 seconds, the BT download module can be downloaded as the needed data volume of each request;
Described prediction module is used for ask the one piece of data of predetermined length after the needed data as prediction data, with to after the needed data of playing request predict the download priority of the data that lifting is predicted;
Described http server is also for the HTML courseware of asking to client terminal playing.
Wherein, what described http server adopted is the nginx server, and uses mp4, flv module to realize the broadcast that drags of mp4, flv screen, and described download adopts the BT agreement to carry out, and has used PEX, LPD, DHT expansion.
When http server is received described request, if downloading, needed data do not finish, for guaranteeing timely response, need to other task suspension 2 seconds, continue to download needed data; If finish the download of needed data in 2 seconds, then other stopped tasks continue, otherwise, will continue to keep the halted state of other tasks.Wherein, the playing progress rate of the HTML courseware of can freely dragging in BT download module downloading process asking, and play described HTML courseware while downloading.
Need to prove, for aforesaid embodiment, for simple description, therefore it all is expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not subjected to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in the specification all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of above-described embodiment is to come the relevant hardware of instruction finish by program, this program can be stored in the computer-readable recording medium, and storage medium can comprise: ROM, RAM, disk or CD etc.
The above Intelligent point-reading apparatus and method that the embodiment of the invention is provided are described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (8)

1. the method that the HTML courseware is play while downloading with the BT agreement is characterized in that, may further comprise the steps:
1) sets up a http server in this locality, comprise the BT download module in the described http server;
2) client sends HTML courseware playing request, access described http server, described http server checks first when receiving described request whether the BT download module of described http server will ask needed data to be downloaded and finish, do not finish if download, then adjust the priority of downloading, the preferential needed data of download request; Finish if downloaded, directly use the local data that the BT download module has been downloaded in the http server; Wherein, client with data volume that 2 seconds, the BT download module can be downloaded as the needed data volume of each request;
3) play the HTML courseware of asking;
Described http server also comprises a prediction module, is used for ask the one piece of data of predetermined length after the needed data as prediction data, with to after the needed data of playing request predict the download priority of the data that lifting is predicted.
2. method according to claim 1 is characterized in that, what described http server adopted is the nginx server, and use mp4, flv module to realize the broadcast that drags of mp4, flv screen, described download adopts the BT agreement to carry out, and has used PEX, LPD, the DHT expansion.
3. method according to claim 1 and 2 is characterized in that, when http server is received described request, does not finish if needed data are downloaded, and for guaranteeing timely response, need to other task suspension 2 seconds, continue to download needed data; If finish the download of needed data in 2 seconds, then other stopped tasks continue, otherwise, will continue to keep the halted state of other tasks.
4. described method is characterized in that according to claim 2-3, the playing progress rate of the HTML courseware of can freely dragging in BT download module downloading process asking, and play described HTML courseware while downloading.
5. system that the HTML courseware is play while downloading with the BT agreement, it is characterized in that: described system comprises http server and client;
Described http server is erected at this locality, comprising BT download module and described prediction module;
Wherein, described client sends HTML courseware playing request, access described http server, described http server checks first when receiving described request whether the BT download module of described http server will ask needed data to be downloaded and finish, do not finish if download, then adjust the priority of downloading, the preferential needed data of download request; Finish if downloaded, directly use the local data that the BT download module has been downloaded in the http server; Described client with data volume that 2 seconds, the BT download module can be downloaded as the needed data volume of each request;
Described prediction module is used for ask the one piece of data of predetermined length after the needed data as prediction data, with to after the needed data of playing request predict the download priority of the data that lifting is predicted;
Described http server is also for the HTML courseware of asking to client terminal playing.
6. system according to claim 5 is characterized in that, what described http server adopted is the nginx server, and use mp4, flv module to realize the broadcast that drags of mp4, flv screen, described download adopts the BT agreement to carry out, and has used PEX, LPD, the DHT expansion.
7. according to claim 5 or 6 described systems, it is characterized in that, when http server is received described request, do not finish if needed data are downloaded, for guaranteeing timely response, need to other task suspension 2 seconds, continue to download needed data; If finish the download of needed data in 2 seconds, then other stopped tasks continue, otherwise, will continue to keep the halted state of other tasks.
8. described system is characterized in that according to claim 5-7, the playing progress rate of the HTML courseware of can freely dragging in BT download module downloading process asking, and play described HTML courseware while downloading.
CN2013102543794A 2013-06-25 2013-06-25 Method and system for downloading while playing HTML courseware Pending CN103327103A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013102543794A CN103327103A (en) 2013-06-25 2013-06-25 Method and system for downloading while playing HTML courseware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013102543794A CN103327103A (en) 2013-06-25 2013-06-25 Method and system for downloading while playing HTML courseware

Publications (1)

Publication Number Publication Date
CN103327103A true CN103327103A (en) 2013-09-25

Family

ID=49195624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013102543794A Pending CN103327103A (en) 2013-06-25 2013-06-25 Method and system for downloading while playing HTML courseware

Country Status (1)

Country Link
CN (1) CN103327103A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581337A (en) * 2013-10-09 2015-04-29 腾讯科技(深圳)有限公司 Play control method and device for videos
CN104602324A (en) * 2015-01-27 2015-05-06 广东欧珀移动通信有限公司 Wireless access point scanning method and device and terminal device
CN105187905A (en) * 2015-09-19 2015-12-23 北京暴风科技股份有限公司 Method for simultaneously downloading and playing P2P video based on DLNA

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005371A (en) * 2006-01-19 2007-07-25 思华科技(上海)有限公司 Caching method and system for stream medium
CN101075952A (en) * 2006-05-16 2007-11-21 卡乐迷迪有限公司 Method for online playing fluid media
CN101227590A (en) * 2007-01-19 2008-07-23 北京风行在线技术有限公司 P2P protocol-based media file order program control method and apparatus
CN102904912A (en) * 2011-07-26 2013-01-30 腾讯科技(深圳)有限公司 Method and system for downloading webpage contents

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005371A (en) * 2006-01-19 2007-07-25 思华科技(上海)有限公司 Caching method and system for stream medium
CN101075952A (en) * 2006-05-16 2007-11-21 卡乐迷迪有限公司 Method for online playing fluid media
CN101227590A (en) * 2007-01-19 2008-07-23 北京风行在线技术有限公司 P2P protocol-based media file order program control method and apparatus
CN102904912A (en) * 2011-07-26 2013-01-30 腾讯科技(深圳)有限公司 Method and system for downloading webpage contents

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581337A (en) * 2013-10-09 2015-04-29 腾讯科技(深圳)有限公司 Play control method and device for videos
CN104602324A (en) * 2015-01-27 2015-05-06 广东欧珀移动通信有限公司 Wireless access point scanning method and device and terminal device
CN105187905A (en) * 2015-09-19 2015-12-23 北京暴风科技股份有限公司 Method for simultaneously downloading and playing P2P video based on DLNA

Similar Documents

Publication Publication Date Title
CN104244033B (en) Video broadcasting method and device, intelligent terminal
CN103440790B (en) Teaching interactive learning system and method
CN103685186B (en) Resource data exchange method is used in cloud educational system and terminal, Cloud Server and education
JP2019521460A (en) Cross Reference to System and Method Related Applications for Implementing Computer Simulated Reality Interactions Between Users and Publications
CN101127989A (en) A method for supporting hypertext transmission stream media service of mobile phone
KR20150032554A (en) Energy-efficient transmission of content over a wireless connection
CN103747358A (en) Video playing method and apparatus
CN101853583B (en) Remote embedded program triggering method
CN103327103A (en) Method and system for downloading while playing HTML courseware
CN104301798A (en) Method and device for conducting play control on multi-media file
CN105759938B (en) The power-economizing method and equipment of mobile terminal
CN105025344A (en) Inter-cut method and device
CN110505511A (en) It is a kind of to play the method, apparatus of video, system in webpage and calculate equipment
CN103873929A (en) Method and device for playing multimedia data
CN103905897A (en) Video playing device and method thereof
CN104517306A (en) Method and device for playing animation
CN102638482B (en) Method and device for controlling advisement playing in mobile device
CN202855298U (en) Vehicle-loaded multimedia playing apparatus
CN106937180A (en) A kind of player method and device of virtual reality video
CN105657461A (en) Video playing prompting method and device and mobile terminal
CN103458314A (en) Method and device for setting display parameter
CN103702219A (en) Video playing control method and equipment
CN112738635B (en) Method and equipment for playing video information
CN106023285B (en) System and method for generating caricature data
CN104581361A (en) Method, device and system for multimedia playing control

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

Application publication date: 20130925

RJ01 Rejection of invention patent application after publication