CN102542062B - Method and device for loading videos from webpage - Google Patents

Method and device for loading videos from webpage Download PDF

Info

Publication number
CN102542062B
CN102542062B CN201110456269.7A CN201110456269A CN102542062B CN 102542062 B CN102542062 B CN 102542062B CN 201110456269 A CN201110456269 A CN 201110456269A CN 102542062 B CN102542062 B CN 102542062B
Authority
CN
China
Prior art keywords
video
webpage
download button
download
information
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
CN201110456269.7A
Other languages
Chinese (zh)
Other versions
CN102542062A (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.)
Wanxing Polytron Technologies Inc
Original Assignee
SHENZHEN WONDERSHARE INFORMATION TECHNOLOGY 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 SHENZHEN WONDERSHARE INFORMATION TECHNOLOGY Co Ltd filed Critical SHENZHEN WONDERSHARE INFORMATION TECHNOLOGY Co Ltd
Priority to CN201110456269.7A priority Critical patent/CN102542062B/en
Publication of CN102542062A publication Critical patent/CN102542062A/en
Application granted granted Critical
Publication of CN102542062B publication Critical patent/CN102542062B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and a device for loading videos from a webpage, comprising the following steps: adding script codes for analyzing the videos on the webpage to a webpage browser; when the webpage browser opens the next webpage, automatically analyzing the information of the videos on the webpage by the script codes, and generating a downloading press button in a video playing area according to the information of the videos; and downloading the videos from the webpage. In the embodiment of the invention, because a plug-in unit for automatically analyzing the information of the videos is added to the webpage browser, when a new webpage is linked, the plug-in unit automatically analyzes the information of the videos and generates the downloading press button according to the information of the videos, the downloading press button can be clicked to download the videos with appropriate encoding formats, and the purpose of directly downloading favorite videos from the webpage is achieved.

Description

A kind of method and apparatus of loading videos from webpage
Technical field
The invention belongs to communication and computer technology, relate in particular to a kind of method and apparatus of loading videos from webpage.
Background technology
Along with enriching of entertainment life, various films, music become the main amusing products of people, download the resources such as film, music from the Internet and appreciate the main entertainment way of people Internet era of becoming.But, in the prior art, when user wants foradownloaded video, first to know the title of film or music, then could search for from network download address downloads, for the video of seeing once in a while, although user is delithted with, do not know the words of title in webpage, may miss a video of oneself liking for this reason, even and if often user has known the title of video, but also search for less than video download address, have no way of downloading the video of liking.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of method and apparatus of loading videos from webpage, is intended to solve the problem that must know the title of video at existing downloading mode, makes user without knowing that video name can carry out video web page download.
The embodiment of the present invention is achieved in that a kind of method of loading videos from webpage, and described method comprises the steps:
For web browser adds the scripted code of the information of the video on analyzing web page;
When web browser is linked to a new web page, the information of video on described scripted code automatic analysis webpage, and in the play area of video, generate download button according to described information;
Video on downloading web pages.
Another technical matters of the present invention solves like this, constructs a kind of device of loading videos from webpage, and described device comprises:
Scripted code adding device, is used to web browser to add the scripted code of the information of the video on analyzing web page;
Video web page information analysis unit, when being linked to a new web page at web browser, the information of video on the scripted code analyzing web page adding by described scripted code adding device;
Download button generation unit, for according to the information of the video of described video web page information analysis element analysis, generates download button in the play area of video;
Video download unit, the download button generating for clicking described download button generation unit, the video on downloading web pages.
Implement the present invention and embodiment, for web browser adds the plug-in unit of automatic analysis video information, when being linked to new web page, described plug-in unit automatic analysis video information also generates download button according to described video information, click download button and select the video of suitable coded format to download, realized and directly from webpage, downloaded the object of the video of liking.
Accompanying drawing explanation
Fig. 1 is the realization flow figure of the loading videos from webpage method that provides of the embodiment of the present invention;
Fig. 2 is the structural drawing of the loading videos from webpage device that provides of the embodiment of the present invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
In embodiments of the present invention, for web browser adds the plug-in unit of automatic analysis video information, when being linked to new web page, described plug-in unit automatic analysis video information also generates download button according to described video information, click download button and select the video of suitable coded format to download, realized and directly from webpage, downloaded the object of the video of liking.
Embodiment mono-:
Fig. 1 shows the realization flow of the loading videos from webpage method that the embodiment of the present invention provides, and details are as follows:
In step S10, for web browser adds the scripted code of the information of the video on analyzing web page.
In embodiments of the present invention, as: the scripted code that an information for embedded video on can analyzing web page is installed on the web browsers such as IE, firefox, every kind of browser has the function of expansion plugin, this scripted code is just equivalent to a plug-in unit, can add to very easily in each browser, described video includes but not limited to: video, audio frequency; Described information comprises: the download address of video and the video area information in webpage, the i.e. physical location of video on webpage.
In step S102, when web browser is opened a webpage, the information of video on described scripted code automatic analysis webpage, and in the play area of video, generate download button according to described information.
In embodiments of the present invention, when web browser is opened a webpage, described scripted code is just analyzed the video on webpage automatically, if comprise Downloadable video on webpage, obtain described information that can foradownloaded video, and in the play area of video, generate download button according to described information.
On analyzing web page, the step of the information of video is specially: the download address and the area information of video on webpage that obtain described audio or video.
In step S103, the video on downloading web pages.
In embodiments of the present invention, the step of the video on downloading web pages is specially: the download button generating in webpage clicking, in download button, include the download address of video, and click download button and just can connect described download address foradownloaded video; Select the video of suitable coded format and resolution, can select according to the speed of the performance of equipment of itself, network speed the video of most suitable coded format and resolution particularly; Download the video of described suitable coded format.
The step of the download button generating in webpage clicking is specially: set up the associated of mouse and download button, download button is set up associated with mouse afterwards in generation; When mouse moves to play area, show download button, download button is in hidden state at ordinary times; Click the download button of described demonstration.
Described selection comprises: artificial selection, selection automatically.Under artificial selection pattern, user can select according to the use state of present computer, if present user is in idle condition, can select downloading mode at full speed, all Internet videos, for downloading, as in use state, can be arranged to a speed threshold values, do not affecting under the prerequisite of work foradownloaded video.Automatic mode, is the current system process of comprehensive analysis, and the Internet Use of each process, selects suitable speed of download, or according to video format and the resolution of analysis result prompting custom system recommendations for selection.
Described coded format is divided into again video code model and audio coding form.
Described video code model comprises MP4, Flv, WebM etc.
Described resolution comprises 1080p, 720p, 450p, 360p etc.
The embodiment of the present invention, for web browser adds the plug-in unit of automatic analysis video information, when being linked to new web page, described plug-in unit automatic analysis video information also generates download button according to described video information, click download button and select the video of suitable coded format to download, realized and directly from webpage, downloaded the object of the video of liking.
Embodiment bis-:
The structural drawing that is illustrated in figure 2 the loading videos from webpage device that the embodiment of the present invention provides, for convenience of explanation, only illustrates the part relevant to the embodiment of the present invention, comprising:
Scripted code adding device 21, is used to web browser to add the scripted code of the information of the video on analyzing web page.
Video web page information analysis unit 22, when opening a webpage at web browser, the scripted code adding by described scripted code adding device 21 is analyzed the information of video on described webpage.
Download button generation unit 23, for the information of the video analyzed according to described video web page information analysis unit 22, generates download button in the play area of video.
Video download unit 24, the download button generating for clicking described download button generation unit 23, the video on downloading web pages.
Wherein, described video web page information analysis unit 22 specifically comprises:
Video information analysis module 221, for analyzing the download address of video and video at the area information of webpage.
Wherein, described video download unit 24 specifically comprises:
Download button is clicked module 241, for clicking video in the download button of the play area generation of webpage.
Video code model is selected module 242, for click module 241 click download button in described download button after, selects suitable video code model and resolution.
In embodiments of the present invention, user can use artificial or automatic two kinds of modes to select downloading mode, under artificial selection pattern, user can select according to the use state of present computer, if present user is in idle condition, can select downloading mode at full speed, all Internet videos, for downloading, as in use state, can be arranged to a speed threshold values, do not affecting under the prerequisite of work foradownloaded video.Automatic mode, is the current system process of comprehensive analysis, and the Internet Use of each process, selects suitable speed of download, or according to video format and the resolution of analysis result prompting custom system recommendations for selection.
Video download module 243, for selecting the coded format foradownloaded video of the video of module 242 selections according to described video code model.
Wherein said download button is clicked module 241 and is specifically comprised:
The associated submodule 2411 of mouse, for setting up the associated of download button and mouse.
Download button display sub-module 2412, for according to the associated submodule 2411 of described mouse, when mouse moves to the play area of video, shows described download button.
Download button is clicked submodule 2413, the download button showing for clicking described download button display sub-module 2412.
In embodiments of the present invention, described video code model comprises MP4, Flv, WebM etc.; Described resolution comprises 1080p, 720p, 450p, 360p etc.
The embodiment of the present invention, for web browser adds the plug-in unit of automatic analysis video information, when being linked to new web page, described plug-in unit automatic analysis video information also generates download button according to described video information, click download button and select the video of suitable coded format to download, realized and directly from webpage, downloaded the object of the video of liking.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.

Claims (5)

1. a method for loading videos from webpage, is characterized in that, said method comprising the steps of:
Scripted code for the video on web browser interpolation analyzing web page;
When web browser is opened a webpage, the information of video on described scripted code automatic analysis webpage, and in the play area of video, generate download button according to described information;
Video on downloading web pages;
The step of the information of video on described scripted code automatic analysis webpage, is specially:
Obtain download address and the area information of video on webpage of described video;
The step of the video on described downloading web pages is specially:
The download button generating in webpage clicking;
Select the video of suitable coded format and resolution;
Download the video of described suitable coded format and resolution.
2. the method for claim 1, is characterized in that, the step of the download button generating in described webpage clicking is specially:
Set up the associated of mouse and download button;
When moving to play area, mouse shows described download button;
Click the download button of described demonstration.
3. the method for claim 1, is characterized in that, described resolution specifically comprises: 1080p, 720p, 450p, 360p.
4. a device for loading videos from webpage, is characterized in that, described device comprises:
Scripted code adding device, is used to web browser to add the scripted code of the information of the video on analyzing web page;
Video web page information analysis unit, when opening a webpage at web browser, the information of video on the scripted code analyzing web page adding by described scripted code adding device;
Download button generation unit, for according to the information of the video of described video web page information analysis element analysis, generates download button in the play area of video;
Video download unit, the download button generating for clicking described download button generation unit, the video on downloading web pages;
Described video web page information analysis unit specifically comprises:
Video information analysis module, for analyzing the download address of video and video at the area information of webpage; Described video download unit specifically comprises:
Download button is clicked module, for clicking video in the download button of the play area generation of webpage;
Video code model is selected module, for click module click download button in described download button after, selects suitable video code model and resolution;
Video download module, for selecting coded format and the resolution foradownloaded video of the video of module selection according to described video code model.
5. the device of loading videos from webpage as claimed in claim 4, is characterized in that, described download button is clicked module and specifically comprised:
The associated submodule of mouse, for setting up the associated of download button and mouse;
Download button display sub-module, for according to the associated submodule of described mouse, when mouse moves to the play area of video, shows described download button;
Download button is clicked submodule, the download button showing for clicking described download button display sub-module.
CN201110456269.7A 2011-12-30 2011-12-30 Method and device for loading videos from webpage Active CN102542062B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110456269.7A CN102542062B (en) 2011-12-30 2011-12-30 Method and device for loading videos from webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110456269.7A CN102542062B (en) 2011-12-30 2011-12-30 Method and device for loading videos from webpage

Publications (2)

Publication Number Publication Date
CN102542062A CN102542062A (en) 2012-07-04
CN102542062B true CN102542062B (en) 2014-03-05

Family

ID=46348941

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110456269.7A Active CN102542062B (en) 2011-12-30 2011-12-30 Method and device for loading videos from webpage

Country Status (1)

Country Link
CN (1) CN102542062B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103281457B (en) * 2013-06-03 2016-08-10 贝壳网际(北京)安全技术有限公司 Video playing method and device in mobile terminal browser
CN103259802A (en) * 2013-06-03 2013-08-21 贝壳网际(北京)安全技术有限公司 Media file downloading method and device and client device
CN105763893A (en) * 2016-01-15 2016-07-13 北京傲游天下科技有限公司 Method of downloading video played in page player
CN110445842A (en) * 2019-07-13 2019-11-12 恒大智慧科技有限公司 A kind of method for down loading, router and computer readable storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101715004A (en) * 2009-11-12 2010-05-26 中国科学院计算技术研究所 Internet video-oriented distributed acquisition method and system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101715004A (en) * 2009-11-12 2010-05-26 中国科学院计算技术研究所 Internet video-oriented distributed acquisition method and system

Also Published As

Publication number Publication date
CN102542062A (en) 2012-07-04

Similar Documents

Publication Publication Date Title
US8903863B2 (en) User interface with available multimedia content from multiple multimedia websites
CN103546821B (en) Method and device for regulating video playing interface
US10269047B2 (en) Providing advertisements in response to idle time during navigation on an electronic device
CN103686396A (en) Video sharing method and device
CN101505409B (en) Method for playing mobile multimedia broadcast program through browser and terminal thereof
CN102460412A (en) System and method for managing and/or rendering internet multimedia content in a network
CN104427404A (en) Video segment extraction and play methods and devices
CN103686375A (en) Video sharing method and device
CN102483742A (en) System and method for managing internet media content
CN102640148A (en) Method and apparatus for presenting media segments
CN103593434A (en) Application recommendation method and device and server equipment
CN102298947A (en) Method for carrying out playing switching among multimedia players and equipment
CN105354288A (en) Image searching method and apparatus based on video contents
CN102542062B (en) Method and device for loading videos from webpage
CN104581401A (en) Method and device for playing data
CN103345465A (en) Method and device for labeling and displaying multi-media files
CN103024608A (en) Network media playing method and device
CN102572072A (en) Mobile phone video preview method, video preview control device, and mobile phone with device
CN104144357A (en) Video playing method and system
CN105453014A (en) Adjustable video player
CN103702222A (en) Interactive information generation method and video file playing method for mobile terminal
US20130254806A1 (en) System and Method for Displaying a Media Program Stream on Mobile Devices
CN114679621A (en) Video display method and device and terminal equipment
CN105245959A (en) System and method for maintaining connection channel in multi-device linkage services
CN104954860A (en) Set-top box, electronic program server, multimedia system and data interaction method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 518057 Guangdong city of Shenzhen province Nanshan District Gao Xin Road, room 9 building on the north side of block A901 No. 006 TCL Industry Research Institute building A A Building 8 floor

Applicant after: Shenzhen Wondershare Information Technology Co., Ltd.

Address before: 518057 Guangdong city of Shenzhen province Nanshan District Gao Xin Road Building A block 8 Building TCL

Applicant before: Shenzhen Wondershare Software Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: SHENZHEN WONDERSHARE SOFTWARE CO., LTD. TO: SHENZHEN WONDERSHARE INFORMATION TECHNOLOGY CO., LTD.

GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 850000 Tibet autonomous region, Lhasa City, New District, west of the East Ring Road, 1-4 road to the north, south of 1-3 Road, Liu Dong building, east of the 8 unit 6, floor 2, No.

Patentee after: Wanxing Polytron Technologies Inc

Address before: 518057 Guangdong city of Shenzhen province Nanshan District Gao Xin Road, room 9 building on the north side of block A901 No. 006 TCL Industry Research Institute building A A Building 8 floor

Patentee before: Shenzhen Wondershare Information Technology Co., Ltd.

CP03 Change of name, title or address