CN105611379A - Method and device for playing video by using web browser and electronic equipment - Google Patents

Method and device for playing video by using web browser and electronic equipment Download PDF

Info

Publication number
CN105611379A
CN105611379A CN201610196088.8A CN201610196088A CN105611379A CN 105611379 A CN105611379 A CN 105611379A CN 201610196088 A CN201610196088 A CN 201610196088A CN 105611379 A CN105611379 A CN 105611379A
Authority
CN
China
Prior art keywords
video
local
web browser
local video
list
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.)
Granted
Application number
CN201610196088.8A
Other languages
Chinese (zh)
Other versions
CN105611379B (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.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201610196088.8A priority Critical patent/CN105611379B/en
Publication of CN105611379A publication Critical patent/CN105611379A/en
Application granted granted Critical
Publication of CN105611379B publication Critical patent/CN105611379B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/426Internal components of the client ; Characteristics thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/432Content retrieval operation from a local storage medium, e.g. hard-disk
    • H04N21/4325Content retrieval operation from a local storage medium, e.g. hard-disk by playing back content from the storage medium
    • 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/482End-user interface for program selection
    • H04N21/4825End-user interface for program selection using a list of items to be played back in a given order, e.g. playlists

Abstract

The embodiment of the invention discloses a method and a device for playing a video by using a web browser and electronic equipment, which can improve the convenience of local video playing. The method comprises the following steps: displaying a web browser interface; a video module inlet is arranged on the displayed webpage browser interface; receiving a selection operation of the video module entrance; scanning a local media resource library, acquiring video information of a local video, and adding the acquired video information into a local video list; receiving a selection operation of a local video to be played in the local video list; acquiring video data of a local video to be played; and calling a decoder to decode, sending the decoded video data to an embedded video playing module, and playing the local video in the web browser. The device and the electronic equipment are provided with corresponding modules for realizing the method. The method and the device are suitable for playing the local video.

Description

Utilize method, device and the electronic equipment of web browser displaying video
Technical field
The present invention relates to video playback technical field, relate in particular to a kind of web browser displaying video of utilizingMethod, device and electronic equipment.
Background technology
Along with the development of multimedia technology, watch video to become the important way of people's amusement or studyOne of.
At present, people watch the major way of video to be: with web browser accessing video website, find and wantThe program of seeing, then watches online. User also can find instrument that these videos are downloaded to this locality, but underAfter being downloaded to this locality, cannot watch with web browser, an independent player must be installed and could play, thisCause inconvenience to user.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method, device that utilizes web browser displaying videoAnd electronic equipment, can improve the convenience that local video is play.
First aspect, the embodiment of the present invention provides a kind of method of utilizing web browser displaying video, comprising:Displayed web page browser interface; On the described web browser interface of showing, be provided with video module entrance;Receive the selection operation to described video module entrance; The media source library of scanning of home, obtains local videoVideo information, and the described video information of obtaining is added in local video list; Show described this localityList of videos; Receive the selection operation to the local video that will play in described local video list; According toTo the selection operation of the local video that will play, obtain the video data of the local video that will play; AdjustThe video data of the described local video getting is decoded with embedded decoder, and by decodedVideo data, sends to embedded video playback module; Described video playback module is according to described decodedVideo data is play described local video in described web browser.
In conjunction with first aspect, in the first embodiment of first aspect, the media money of described scanning of homeStorehouse, source, obtains the video information of local video, and adds the described video information of obtaining to local video rowIn table, comprising: create a thread, by the media source library of described thread scanning of home, obtain this locality and lookVideo information frequently, and the described video information of obtaining is added in local video list.
In conjunction with the first embodiment of first aspect or first aspect, in the second enforcement side of first aspectIn formula, the media source library of scanning of home, obtains the video information of local video, and looks described in obtainingFrequently information is added in local video list, comprising: according to the white list of setting up in advance, by described threadThe media source library of scanning of home, obtains the video information of the local video that described web browser support plays,And the described video information of obtaining is added in local video list.
In conjunction with the first embodiment of first aspect or first aspect, in the third enforcement side of first aspectIn formula, described method is applicable to be provided with the mobile terminal of Android operating system;
The described media source library at scanning of home, before obtaining the video information of local video, described sideMethod, also comprises: obtain the authority of obtaining media resource library information from described mobile terminal.
In conjunction with the first embodiment of first aspect or first aspect, in the 4th kind of enforcement side of first aspectIn formula, after receiving the selection operation of described video module entrance, described method, also comprises: exhibitionShow local video broadcasting entrance;
Before showing described local video list, described method, also comprises: receive described in displayingLocal video is play the selection operation of entrance.
In conjunction with first aspect to any embodiment in the 4th kind of embodiment of first aspect,, firstIn the 5th kind of embodiment of aspect, the video name that comprises local video in described local video list; InstituteStating video name in list of videos is associated with the storing path of corresponding video;
When described local video broadcasting in described web browser, described method, also comprises:
Obtain in described local video list, the first frame picture of other video outside the video of current broadcastingInformation;
By the first frame image information of other video obtaining, add in described local video list and with correspondingVideo name corresponding.
In conjunction with first aspect to any embodiment in the 5th kind of embodiment of first aspect, firstIn the 6th kind of embodiment of aspect, under played in full screen state, receive the click behaviour to video switch buttonDo, show described local video list.
In conjunction with first aspect to any embodiment in the 6th kind of embodiment of first aspect, firstIn the 7th kind of embodiment of aspect, the video data of described local video is entered calling embedded decoderBefore row decoding, described method also comprises:
The video data that obtains the local video that will play is carried out to video format conversion, obtain described webpageThe video data that browser support is play;
Describedly call embedded decoder the video data of described local video is decoded, comprising: callEmbedded decoder is decoded to the described video data obtaining after video format conversion.
In conjunction with first aspect to any embodiment in the 7th kind of embodiment of first aspect, firstIn the 8th kind of embodiment of aspect, described displayed web page browser interface, comprising: open an application program;Described application call is embedded in the web browser in described application program, in showing of described application programShow displayed web page browser interface in interface.
In conjunction with first aspect to any embodiment in the 8th kind of embodiment of first aspect, firstIn the 9th kind of embodiment of aspect, described embedded video playback module for support wmv, mpg, avi,The webpage player of f1v, f4v, mp4, swf and mov form.
Second aspect, the embodiment of the present invention provides a kind of device of displaying video, comprising: showing interface module,For displayed web page browser interface; On the described web browser interface of showing, being provided with video module entersMouthful; The first receiver module, for receiving the selection operation to described video module entrance; Scan module, usesIn the media source library of scanning of home, obtain the video information of local video, and by the described video letter obtainingBreath adds in local video list; List display module, for showing described local video list; SecondReceiver module, for receiving the selection operation of the local video that will play described local video list;Video data acquisition module, for according to the selection operation to the local video that will play, obtains and will broadcastThe video data of the local video of putting; Decoder module, for calling embedded decoder to described in gettingThe video data of local video is decoded, and by decoded video data, sends to embedded video to broadcastAmplification module; Video playback module, for according to described decoded video data, at described web browserIn described local video is play.
In conjunction with second aspect, in the first embodiment of second aspect, described scan module comprises: lineJourney creates submodule, for creating a thread; Scanning submodule, for by described thread scanning of homeMedia source library, obtains the video information of local video; Add submodule, for by the described video obtainingInformation is added in local video list.
In conjunction with the first embodiment of second aspect, in the second embodiment of second aspect, described inScanning submodule, the white list of setting up in advance for basis, by the media resource of described thread scanning of homeStorehouse, obtains the video information of the local video of described web browser support broadcasting, and looks described in obtainingFrequently information is added in local video list.
In conjunction with the first embodiment of second aspect, in the third embodiment of second aspect, described inDevice be applicable to be provided with the mobile terminal of Android operating system; The device of described displaying video, also bagDraw together: authority acquiring module, for the media source library at described scan module scanning of home, obtain this locality and lookBefore video information frequently, obtain the authority of obtaining media resource library information from described mobile terminal.
In conjunction with the first embodiment of second aspect or second aspect, in the 4th kind of enforcement side of second aspectIn formula, described device, also comprises: local video is play entrance display module, for connecing described firstReceive module and receive after the selection operation of described video module entrance, show local video broadcasting entrance;
The 3rd receiver module, before showing described local video list at described list display module, connectsReceive the selection operation that the described local video to showing is play entrance.
The 4th kind of embodiment in conjunction with second aspect to second aspect, in the 5th kind of enforcement side of second aspectIn formula, the video name that comprises local video in described local video list; Video in described list of videosTitle is associated with the storing path of corresponding video;
Described device, also comprises: frame picture acquisition module, for described video playback module at described netWhen described local video broadcasting in page browsing device, obtain in described local video list, current broadcastingVideo outside the first frame image information of other video; Frame picture adds module, for described frame is drawnThe first frame image information of other video that face acquisition module obtains, add in described local video list and withCorresponding video name is corresponding.
The 5th kind of embodiment in conjunction with second aspect to second aspect, in the 6th kind of enforcement side of second aspectIn formula, the device of described displaying video, also comprises: video frequency switching module, and at played in full screen stateUnder, receive the clicking operation to video switch button, show described local video list.
In conjunction with second aspect, in the 7th kind of embodiment of second aspect, the device of described displaying video,Also comprise: format converting module, for the video data that obtains the local video that will play is carried out to videoFormat conversion, obtains the video data that described web browser support is play; Described decoder module, for adjustingThe described video data obtaining after video format conversion is decoded with embedded decoder.
The 7th kind of embodiment in conjunction with second aspect to second aspect, in the 8th kind of enforcement side of second aspectIn formula, described showing interface module, for receiving calling of an application program of opening, in described application journeyDisplayed web page browser interface in the display interface of order.
The 8th kind of embodiment in conjunction with second aspect to second aspect, in the 9th kind of enforcement side of second aspectIn formula, described embedded video playback module is for supporting wmv, mpg, avi, f1v, f4v, mp4, swfWebpage player with mov form.
The third aspect, the embodiment of the present invention provides a kind of electronic equipment, and described electronic equipment comprises: housing,Processor, memory, circuit board and power circuit, wherein, circuit board is placed in the space that housing surroundsPortion, processor and memory are arranged on circuit board; Power circuit, is used to each of above-mentioned electronic equipmentCircuit or device power supply; Memory is for stores executable programs code; Processor is by read memoryThe executable program code of storage moves the program corresponding with executable program code, for carrying out aforementionedThe method of utilizing web browser displaying video described in one embodiment.
A kind of method, device and electronics that utilizes web browser displaying video that the embodiment of the present invention provides establishedStandby, owing to being provided with video module entrance in web browser interface, receiving described video module to enterMouthful selection operation after, the media source library of scanning of home, obtains the video information of local video, will obtainThe described video information of getting is added in local video list, and shows described local video list, and it is right to receiveAfter the selection operation of the local video that will play in described local video list, obtain the basis that will playThe video data of ground video, calls embedded decoder the video data of described local video is decoded,And by decoded video data, send to embedded video playback module, right in described web browserDescribed local video is play, and does not need like this to install independent video player, can utilize web page browsingDevice is play local video, has improved the convenience of video playback.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, below will be to implementingIn example or description of the Prior Art, the accompanying drawing of required use is briefly described, and apparently, the following describesIn accompanying drawing be only some embodiments of the present invention, for those of ordinary skill in the art, do not payingGo out under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the schematic diagram that the present invention utilizes the embodiment of the method one of web browser displaying video;
Fig. 2 is the flow chart that the present invention utilizes the embodiment of the method two of web browser displaying video;
Fig. 3 is the structural representation of the device embodiment mono-of displaying video of the present invention;
Fig. 4 is the structural representation of the device embodiment bis-of displaying video of the present invention;
Fig. 5 is the structural representation of an embodiment of electronic equipment of the present invention.
Detailed description of the invention
Below in conjunction with accompanying drawing, the embodiment of the present invention is described in detail.
Should be clear and definite, described embodiment is only the present invention's part embodiment, instead of whole realitiesExecute example. Based on the embodiment in the present invention, those of ordinary skill in the art are not making before creative workPut obtained all other embodiment, all belong to the scope of protection of the invention.
Fig. 1 is the schematic diagram that the present invention utilizes the embodiment of the method one of web browser displaying video, as Fig. 1Shown in, the method for the present embodiment can comprise:
Step 101, displayed web page browser interface; On the described web browser interface of showing, be provided with and lookFrequency module entrance.
In the present embodiment, can be by clicking web browser shortcut on desktop, start web browser withDisplayed web page browser interface. In search address hurdle on web browser interface, inputting network address can browseWebpage or watch the video on network. As an optional mode, web browser can be embedded in an application programIn, after this application program is opened, this application program can be called embedded web browser, in described applicationDisplayed web page browser interface in the display interface of program.
The web browser of the present embodiment is watched the video on network except the video link by webpage clickingUse this web browser to watch local video for the ease of user, in described web browser interface outward,Be provided with video module entrance, be convenient to user and utilize web browser to watch local video.
In the present embodiment, video module entrance can be directly set in web browser interface. Video module entersMouth can be to be illustrated on web browser interface with the mode of word or the mode of icon. Such as showing netIn the toolbar of page browsing device, or be illustrated near the search address hurdle of web browser etc.
Step 102, the selection operation of reception to described video module entrance.
In the present embodiment, when user wants the web browser by opening to watch local video, can click netThe video module entrance of showing on page browsing device.
The media source library of step 103, scanning of home, obtain the video information of local video, and will obtainDescribed video information is added in local video list.
In the present embodiment, described media source library is called again media library, and maintenance therein has local audio, looksThe information of the multimedia files such as frequency.
In Android system, system is the file (such as picture, audio frequency, video etc.) of multimedia typeSet up database (sqlite database), thereby completed the maintenance work of multi-medium data. Android system is builtAfter erecting multimedia database, just information conventional multimedia, such as video name, file size, broadcastPut the general information such as duration and be kept at lane database.
Step 104, show described local video list.
In the present embodiment, local video list is displayed in web browser, be convenient to user and select to thinkThe local video of watching.
Step 105, the selection operation of reception to the local video that will play in described local video list.
In the present embodiment, when user chooses after the video that will watch in local video list, web page browsingDevice can receive the selection operation of user to the local video that will play in described local video list.
Step 106, the selection operation of basis to the local video that will play, obtain this locality that will play and lookVideo data frequently.
In the present embodiment, local video for being kept at video on local memory device, such as being kept at meterVideo in the hard disk of calculation machine, or be kept at the video in user mobile phone internal memory and/or storage card. These are lookedIt frequently can be the video of preserving after network is downloaded.
In the present embodiment, web browser according to user to the basis that will play in the local video list of showingThe selection of ground video operates, and obtains the process of the video data of the local video that will play, with prior artIn the player installed of this locality obtain the similar process of the video data of the local video that will play, thisBright this is repeated no more.
Step 107, call embedded decoder the video data of the described local video getting is separatedCode, and by decoded video data, send to embedded video playback module.
In the present embodiment, in web browser, can be embedded with multiple decoder, according to received video countsAccording to coded format, call corresponding decoder and decode, and in decoded video data transmitting is givenBe embedded in the video playback module in web browser.
In the present embodiment, be embedded in the video playback module in web browser, can support multiple formatVideo playback, such as supporting the forms such as wmv, mpg, avi, f1v, f4v, mp4, swf, movVideo playback.
As an optional embodiment, the web browser in the present embodiment, also can be embedded with multiple differentVideo playback module, every kind of video playback module is supported respectively the video playback of different-format. Like this, can rootAccording to different video formats, the corresponding video playback module of Automatically invoked, by decoded structured video data transmittingGive corresponding video playback module.
Step 108, described video playback module are according to described decoded video data, in described web page browsingIn device, described local video is play.
In the present embodiment, can in the display interface of web browser, form the broadcast window of video playback module.Described video playback module is according to described decoded video data, by demonstration circle of described web browserVideo playback window in face is play described local video.
A kind of method of utilizing web browser displaying video that the embodiment of the present invention provides, due to clear at webpageLook in device interface and be provided with video module entrance, after receiving the selection operation of described video module entrance,The media source library of scanning of home, obtains the video information of local video, and the described video information of obtaining is addedBe added in local video list, and show described local video list, receive in described local video listAfter the selection operation of the local video of playing, obtain the video data of the local video that will play,Call embedded decoder the video data of described local video is decoded, and by decoded video countsAccording to, send to embedded video playback module, in described web browser, described local video is broadcastPut, do not need like this to install independent video player, can utilize web browser to broadcast local videoPut, improved the convenience of video playback.
Fig. 2 is the flow chart that the present invention utilizes the embodiment of the method two of web browser displaying video, as Fig. 2Shown in, the method for the present embodiment is applicable to be provided with the mobile terminal of Android operating system, and described method is passableComprise:
Step 201, obtain the authority of access medium resources bank from described mobile terminal.
Step 202, displayed web page browser interface; On the described web browser interface of showing, be provided with and lookFrequency module entrance.
In the present embodiment, step 101 class of the process of displayed web page browser interface and said method embodimentSeemingly, repeat no more herein.
Step 203, judge whether to enter video module.
In the present embodiment, after web browser is opened, user wants the web browser by opening to watchWhen local video, video module entrance the looking with the browser of entering the Web page of showing on can webpage clicking browserFrequency module.
In this step, web browser judges whether user has the selection operation to described video module entrance;If have, receive the selection operation to described video module entrance, and perform step 204 and step 205.
Step 204, displaying local video are play entrance.
In the present embodiment, web browser receive user to the selection operation of described video module entrance after,Show local video broadcasting entrance to user. In the present embodiment, web browser is according to described operational order,When showing that to user local video is play entrance, also can show Internet video broadcasting entrance simultaneously, so thatUser selects to watch Internet video.
The media source library of step 205, scanning of home, obtains the video information of local video.
In the present embodiment, after entering video module, web browser creates a thread, by described lineThe media source library of journey scanning of home, obtains the video information of local video, and the described video obtaining is believedBreath adds in local video list.
As an optional embodiment, in the present embodiment, according to the white list of setting up in advance, by described threadThe media source library of scanning of home, obtains the video information of the local video that described web browser support plays,And the described video information of obtaining is added in local video list.
Step 206, judge whether to enter local video play entrance.
In the present embodiment, in the time that user clicks described local video broadcasting entrance, web browser receives userThe selection operation of the described local video of showing being play to entrance, then performs step 207.
Step 207, show described local video list.
In the present embodiment, the information such as the video name that comprises local video in described local video list; DescribedVideo name in list of videos is associated with the storing path of corresponding video, between the two, exists and reflectsPenetrate relation, to find corresponding preservation position according to video name.
Step 208, judge whether to play local video.
In the present embodiment, when user chooses after the video that will watch in local video list, web page browsingDevice can receive the selection operation of user to the local video that will play in described local video list, and holdsRow step 209.
Step 209, obtain the video data of the local video that will play.
In the present embodiment, according to the selection operation to the local video that will play, obtain the basis that will playThe video data of ground video.
In the present embodiment, local video for being kept at video on local memory device, such as being kept at meterVideo in the hard disk of calculation machine, or be kept at the video in user mobile phone internal memory and/or storage card. These are lookedIt frequently can be the video of preserving after network is downloaded.
In the present embodiment, web browser according to user to the basis that will play in the local video list of showingThe selection of ground video operates, and obtains the process of the video data of the local video that will play, with prior artIn the player installed of this locality obtain the similar process of the video data of the local video that will play, thisBright this is repeated no more.
Step 210, the video data of the described local video getting is decoded.
In the present embodiment, web browser calls embedded decoder looking the described local video gettingAudio data is decoded, and by decoded video data, sends to embedded video playback module.
In the present embodiment, the process that the video data of local video is decoded and said method embodiment'sStep 107 is similar, repeats no more herein.
Step 211, in web browser, described local video is play.
In the present embodiment, described video playback module is according to described decoded video data, at described webpageIn browser, described local video is play.
In the present embodiment, described video playback module is according to described decoded video data, at described webpageThe step 108 of the process of in browser, described local video being play and said method embodiment is similar,Repeat no more herein.
A kind of method of utilizing web browser displaying video that the embodiment of the present invention provides, due to clear at webpageLook in device interface and be provided with video module entrance, after receiving the selection operation of described video module entrance,The media source library of scanning of home, obtains the video information of local video, and the described video information of obtaining is addedBe added in local video list, and show described local video list, receive in described local video listAfter the selection operation of the local video of playing, obtain the video data of the local video that will play,Call embedded decoder the video data of described local video is decoded, and by decoded video countsAccording to, send to embedded video playback module, in described web browser, described local video is broadcastPut, do not need like this to install independent video player, can utilize web browser to broadcast local videoPut, improved the convenience of video playback.
On the basis of aforesaid embodiment of the method one or embodiment bis-, alternatively, at described web browserIn when described local video is play, described method, also comprises: obtain described local video listIn, the first frame image information of other video outside the video of current broadcasting; By other video obtainingThe first frame image information, adds in described local video list and corresponding with corresponding video name, forUser is known local video information more intuitively.
Referring to Fig. 2, on the basis of aforesaid embodiment of the method two, alternatively, described method also comprises step212: judge whether Switch Video.
In the present embodiment, under played in full screen state, if judge user's Switch Video, receive user to videoThe clicking operation of switching push button, shows described local video list, to facilitate user to carry out the video of watchingSwitch.
On the basis of aforesaid embodiment of the method one or embodiment bis-, alternatively, calling embedded decodingBefore device is decoded to the video data of described local video, described method can also comprise: to obtainingThe video data of the local video of playing carries out video format conversion, obtains described web browser support and broadcastsThe video data of putting; Describedly call embedded decoder the video data of described local video decoded,Comprise: call embedded decoder the described video data obtaining after video format conversion is decoded.By this step, web browser can be supported the more video playback of multi-format.
Fig. 3 is the structural representation of the device embodiment mono-of displaying video of the present invention, as shown in Figure 3, and this realityExecuting routine device can comprise: showing interface module 11, the first receiver module 12, scan module 13, listDisplay module 14, the second receiver module 15, video data acquisition module 16, decoder module 17 and video are broadcastAmplification module 18; Wherein,
Showing interface module 11, for displayed web page browser interface; Described web browser circle of showingOn face, be provided with video module entrance;
The first receiver module 12, for receiving the selection operation to described video module entrance;
Scan module 13, for the media source library of scanning of home, obtains the video information of local video, andThe described video information of obtaining is added in local video list;
List display module 14, for showing described local video list;
The second receiver module 15, for receiving the local video that will play described local video listSelect operation;
Video data acquisition module 16, for according to the selection operation to the local video that will play, obtainsThe video data of the local video of playing;
Decoder module 17, for calling the video data of embedded decoder to the described local video gettingDecode, and by decoded video data, send to embedded video playback module;
Video playback module 18, for according to described decoded video data, in described web browserDescribed local video is play.
The device of the present embodiment, can be for the technical scheme of embodiment of the method shown in execution graph 1, and it realizes formerReason and technique effect are similar, repeat no more herein.
Fig. 4 is the structural representation of the device embodiment bis-of displaying video of the present invention, and described device is applicable toThe mobile terminal of Android operating system is installed. As shown in Figure 4, the device of the present embodiment fills shown in Fig. 3On the basis of interposed structure, further, the device of described displaying video, also can comprise: authority acquiring mouldPiece 19, local video are play entrance display module 20 and the 3rd receiver module 21; Wherein,
Authority acquiring module 19, for the media source library at described scan module scanning of home, obtains this localityBefore the video information of video, obtain the authority of obtaining media resource library information from described mobile terminal.
Local video is play entrance display module 20, for receiving and look described at described the first receiver module 12After the selection operation of frequency module entrance, show local video broadcasting entrance;
The 3rd receiver module 21, before showing described local video list at described list display module 14,Receive the selection operation that the described local video to showing is play entrance.
In the present embodiment, described scan module 13 can comprise: thread creation submodule, scanning submodule andAdd submodule; Wherein,
Thread creation submodule, for creating a thread.
Scanning submodule, for by the media source library of described thread scanning of home, obtains local videoVideo information.
As an optional embodiment, described scanning submodule, can be used for the white list that basis is set up in advance, logicalCross the media source library of described thread scanning of home, obtain the local video that described web browser support is playVideo information, and the described video information of obtaining is added in local video list.
Add submodule, for adding the described video information of obtaining to local video list.
The device of the present embodiment, can be for the technical scheme of embodiment of the method shown in execution graph 2, and it realizes formerReason and technique effect are similar, repeat no more herein.
On the basis of the device embodiment of aforementioned playout video, alternatively, in described local video list, wrapContaining the video name of local video; The preservation road of the video name in described list of videos and corresponding videoFootpath is associated;
Described device, also comprises: frame picture acquisition module, for described video playback module at described netWhen described local video broadcasting in page browsing device, obtain in described local video list, current broadcastingVideo outside the first frame image information of other video; Frame picture adds module, for described frame is drawnThe first frame image information of other video that face acquisition module obtains, add in described local video list and withCorresponding video name is corresponding, knows more intuitively local video information for user.
On the basis of the device embodiment of aforementioned playout video, alternatively, the device of described displaying video,Also comprise: video frequency switching module, under played in full screen state, receives the click to video switch buttonOperation, shows described local video list, to facilitate user to switch the video of watching.
On the basis of the device embodiment of aforementioned playout video, alternatively, the device of described displaying video,Also comprise: format converting module, for the video data that obtains the local video that will play is carried out to videoFormat conversion, obtains the video data that described web browser support is play; Described decoder module, for adjustingThe described video data obtaining after video format conversion is decoded with embedded decoder. This enforcementExample makes web browser can support the more video playback of multi-format.
The embodiment of the present invention also provides a kind of electronic equipment, and described electronic equipment comprises aforementioned arbitrary embodiment instituteThe device of stating.
Fig. 5 is the structural representation of an embodiment of electronic equipment of the present invention, can realize Fig. 1 of the present invention orFlow process embodiment illustrated in fig. 2, as shown in Figure 5, above-mentioned electronic equipment can comprise: housing 41, processingDevice 42, memory 43, circuit board 44 and power circuit 45, wherein, circuit board 44 is placed in housing 41The interior volume surrounding, processor 42 and memory 43 are arranged on circuit board 44; Power circuit 45, usesIn each circuit or the device power supply that are above-mentioned electronic equipment; Memory 43 is for stores executable programs code;Processor 42 moves and executable program generation by the executable program code of storage in read memory 43The program that code is corresponding, for carrying out the side that utilizes web browser displaying video described in aforementioned arbitrary embodimentMethod.
This electronic equipment exists in a variety of forms, includes but not limited to:
(1) mobile communication equipment: the feature of this kind equipment is to possess mobile communication function, and with provide speech,Data communication is main target. This Terminal Type comprises: smart mobile phone (for example iPhone), multimedia handset,Functional mobile phone, and low-end mobile phone etc.
(2) super mobile personal computer equipment: this kind equipment belongs to the category of personal computer, has and calculates and locateReason function, generally also possesses mobile Internet access characteristic. This Terminal Type comprises: PDA, MID and UMPC establishStandby etc., for example iPad.
(3) portable entertainment device: this kind equipment can show and play multimedia content. This kind equipment comprises:Audio frequency, video playback module (for example iPod), handheld device, e-book, and intelligent toy and portableFormula in-vehicle navigation apparatus.
(4) server: the equipment of calculation services is provided, the formation of server comprise processor, hard disk, internal memory,System bus etc., server and general computer architecture are similar, but due to highly reliable clothes need to be providedBusiness, therefore at aspects such as disposal ability, stability, reliability, security, extensibility, manageabilitysHave relatively high expectations.
(5) other have the electronic equipment of data interaction function.
It should be noted that, in this article, the relational terms such as the first and second grades be only used for byEntity or operation and another entity or operating space separate, and not necessarily require or imply theseBetween entity or operation, there is relation or the order of any this reality. And term " comprises ", " bagContaining " or its any other variant be intended to contain comprising of nonexcludability, thereby make to comprise a series of key elementsProcess, method, article or equipment not only comprise those key elements, but also comprise and clearly not listingOther key elements, or be also included as the intrinsic key element of this process, method, article or equipment. ?In the absence of more restrictions, the key element being limited by statement " comprising ... ", and be not precluded within bagDraw together in process, method, article or the equipment of described key element and also have other identical element.
Each embodiment in this description all adopts relevant mode to describe, phase homophase between each embodimentLike part mutually referring to, what each embodiment stressed is and the difference of other embodiment.Especially, for device embodiment, because it is substantially similar in appearance to embodiment of the method, so the comparison of describingSimply, relevant part is referring to the part explanation of embodiment of the method.
For convenience of description, describing above device is to be divided into various units/modules with function to describe respectively. WhenSo, can be the function of each units/modules in same or multiple software and/or hardware in the time that enforcement is of the present inventionRealize.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method,Be can carry out the hardware that instruction is relevant by computer program to complete, described program can be stored in a calculatingIn machine read/write memory medium, this program, in the time carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory,Or random store-memory body (RandomAccessMemory, RAM) etc. ROM).
The above be only the specific embodiment of the present invention, but protection scope of the present invention is not limited toThis, any be familiar with those skilled in the art the present invention disclose technical scope in, can expect easilyVariation or replacement, within all should being encompassed in protection scope of the present invention. Therefore, protection scope of the present inventionShould be as the criterion with the protection domain of claim.

Claims (9)

1. a method of utilizing web browser displaying video, is characterized in that, comprising:
Displayed web page browser interface; On the described web browser interface of showing, being provided with video module entersMouthful;
Receive the selection operation to described video module entrance;
The media source library of scanning of home, obtains the video information of local video, and by the described video obtainingInformation is added in local video list;
Show described local video list;
Receive the selection operation to the local video that will play in described local video list;
According to the selection operation to the local video that will play, obtain the video of the local video that will playData;
Call embedded decoder the video data of the described local video getting is decoded, and will separateVideo data after code, sends to embedded video playback module;
Described video playback module is according to described decoded video data, in described web browser to instituteStating local video plays.
2. the method for utilizing web browser displaying video according to claim 1, is characterized in that,
The media source library of described scanning of home, obtains the video information of local video, and by described in obtainingVideo information is added in local video list, comprising:
Create a thread, by the media source library of described thread scanning of home, obtain the video of local videoInformation, and the described video information of obtaining is added in local video list.
3. the method for utilizing web browser displaying video according to claim 2, is characterized in that,The media source library of scanning of home, obtains the video information of local video, and by the described video information of obtainingAdd in local video list, comprising:
According to the white list of setting up in advance, by the media source library of described thread scanning of home, described in obtainingThe video information of the local video that web browser support is play, and the described video information of obtaining is added toIn local video list.
4. the method for utilizing web browser displaying video according to claim 1 and 2, its feature existsIn, described method is applicable to be provided with the mobile terminal of Android operating system;
The described media source library at scanning of home, before obtaining the video information of local video, described sideMethod, also comprises:
Obtain the authority of access medium resources bank from described mobile terminal.
5. the method for utilizing web browser displaying video according to claim 1 and 2, its feature existsIn, after receiving the selection operation of described video module entrance, described method, also comprises: showLocal video is play entrance;
Before showing described local video list, described method, also comprises: receive described in displayingLocal video is play the selection operation of entrance.
6. according to the method for utilizing web browser displaying video described in claim 1 to 5 any one, itsBe characterised in that the video name that comprises local video in described local video list; In described list of videosVideo name is associated with the storing path of corresponding video;
When described local video broadcasting in described web browser, described method, also comprises:
Obtain in described local video list, the first frame picture of other video outside the video of current broadcastingInformation;
By the first frame image information of other video obtaining, add in described local video list and with correspondingVideo name corresponding.
7. according to the method for utilizing web browser displaying video described in claim 1 to 6 any one, itsBe characterised in that, under played in full screen state, receive the clicking operation to video switch button, show describedGround list of videos.
8. the method for utilizing web browser displaying video according to claim 1, is characterized in that,
Calling before embedded decoder decodes to the video data of described local video described methodAlso comprise:
The video data that obtains the local video that will play is carried out to video format conversion, obtain described webpageThe video data that browser support is play;
Describedly call embedded decoder the video data of described local video is decoded, comprising: callEmbedded decoder is decoded to the described video data obtaining after video format conversion.
9. according to the method for utilizing web browser displaying video described in claim 1 to 8 any one, itsBe characterised in that, described displayed web page browser interface, comprising:
Open an application program;
Described application call is embedded in the web browser in described application program, in described application programDisplay interface in displayed web page browser interface.
CN201610196088.8A 2016-03-31 2016-03-31 Method and device for playing video by using web browser and electronic equipment Active CN105611379B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610196088.8A CN105611379B (en) 2016-03-31 2016-03-31 Method and device for playing video by using web browser and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610196088.8A CN105611379B (en) 2016-03-31 2016-03-31 Method and device for playing video by using web browser and electronic equipment

Publications (2)

Publication Number Publication Date
CN105611379A true CN105611379A (en) 2016-05-25
CN105611379B CN105611379B (en) 2019-03-26

Family

ID=55990867

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610196088.8A Active CN105611379B (en) 2016-03-31 2016-03-31 Method and device for playing video by using web browser and electronic equipment

Country Status (1)

Country Link
CN (1) CN105611379B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095598A (en) * 2016-05-31 2016-11-09 腾讯科技(深圳)有限公司 A kind of data processing method and client
CN106254961A (en) * 2016-07-27 2016-12-21 青岛海信电器股份有限公司 Video broadcasting method in TV and TV
CN107995519A (en) * 2017-11-30 2018-05-04 广州酷狗计算机科技有限公司 The method, apparatus and storage medium that multimedia file plays
CN108076364A (en) * 2016-11-07 2018-05-25 韩华泰科株式会社 Adaptive media spreads transfer device and media serving device
CN109547838A (en) * 2018-12-06 2019-03-29 青岛海信传媒网络技术有限公司 The processing method and processing device of video window
CN109714628A (en) * 2018-12-29 2019-05-03 广州华多网络科技有限公司 Method, apparatus, equipment, storage medium and the system of playing audio-video
CN112804543A (en) * 2020-12-31 2021-05-14 武汉兴图新科电子股份有限公司 Terminal and method for playing video and audio on demand by browser based on cloud video fusion platform

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101115182A (en) * 2007-08-28 2008-01-30 蒋晓海 Method for implementing instant communication interdynamic video
CN101188751A (en) * 2007-09-24 2008-05-28 陈勇 A playing method and device for local video program
CN101478669A (en) * 2008-08-29 2009-07-08 百视通网络电视技术发展有限责任公司 Media playing control method based on browser on IPTV system
US20150334438A1 (en) * 2006-03-16 2015-11-19 Time Warner Cable Enterprises Llc System and method for content sharing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150334438A1 (en) * 2006-03-16 2015-11-19 Time Warner Cable Enterprises Llc System and method for content sharing
CN101115182A (en) * 2007-08-28 2008-01-30 蒋晓海 Method for implementing instant communication interdynamic video
CN101188751A (en) * 2007-09-24 2008-05-28 陈勇 A playing method and device for local video program
CN101478669A (en) * 2008-08-29 2009-07-08 百视通网络电视技术发展有限责任公司 Media playing control method based on browser on IPTV system

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095598A (en) * 2016-05-31 2016-11-09 腾讯科技(深圳)有限公司 A kind of data processing method and client
CN106254961A (en) * 2016-07-27 2016-12-21 青岛海信电器股份有限公司 Video broadcasting method in TV and TV
CN106254961B (en) * 2016-07-27 2019-09-17 青岛海信电器股份有限公司 Video broadcasting method and TV in TV
CN108076364A (en) * 2016-11-07 2018-05-25 韩华泰科株式会社 Adaptive media spreads transfer device and media serving device
CN108076364B (en) * 2016-11-07 2021-03-30 韩华泰科株式会社 Adaptive media streaming apparatus and media service apparatus
CN107995519A (en) * 2017-11-30 2018-05-04 广州酷狗计算机科技有限公司 The method, apparatus and storage medium that multimedia file plays
CN107995519B (en) * 2017-11-30 2020-11-03 广州酷狗计算机科技有限公司 Method, device and storage medium for playing multimedia file
CN109547838A (en) * 2018-12-06 2019-03-29 青岛海信传媒网络技术有限公司 The processing method and processing device of video window
CN109547838B (en) * 2018-12-06 2021-06-01 青岛海信传媒网络技术有限公司 Video window processing method and device
CN109714628A (en) * 2018-12-29 2019-05-03 广州华多网络科技有限公司 Method, apparatus, equipment, storage medium and the system of playing audio-video
CN112804543A (en) * 2020-12-31 2021-05-14 武汉兴图新科电子股份有限公司 Terminal and method for playing video and audio on demand by browser based on cloud video fusion platform

Also Published As

Publication number Publication date
CN105611379B (en) 2019-03-26

Similar Documents

Publication Publication Date Title
CN105611379A (en) Method and device for playing video by using web browser and electronic equipment
CN105657465B (en) Multimedia device and its control method
CN103152614B (en) Second display is used to carry out the system and method across service search of voice driven
CN104869452B (en) Digital device and its method for handling screen protection program
US11899907B2 (en) Method, apparatus and device for displaying followed user information, and storage medium
CN105744348A (en) Method and device for playing video by using web browser and electronic equipment
CN102592233A (en) Method and platform for tour guide, visit guide and shopping guide
CN103338384A (en) Video play method and video play device
CN104284238A (en) Video playing method and device based on two-dimension code
CN103607461A (en) Information sharing method and cloud server
CN105531737A (en) Device for providing, editing, and playing video content and method for same
CN104199913A (en) Terminal resource cleaning method and device and terminal
CN112596694A (en) Method and device for processing house source information
CN103957460A (en) Method and device for generating television receiving terminal desktop application
CN106060634A (en) Method and device for displaying rolling subtitles
KR102131862B1 (en) Apparatus and method for providing radio broadcasting
CN102542062B (en) Method and device for loading videos from webpage
CN105721924A (en) Method and device for playing video by using web browser and electronic equipment
CN103607655B (en) A playback method for live programs and an electronic device
CN104485122A (en) Communication information export method and device and terminal equipment
CN103365895A (en) Web page resource monitoring method and device
CN102638702A (en) Method and apparatus for searching over a network
KR20110039028A (en) Method for acquiring information related to object on video scene and portable device thereof
CN105721558A (en) Virtual item interaction method and system, and related equipment
CN111813969A (en) Multimedia data processing method and device, electronic equipment and computer storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant