CN105744348A - 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
CN105744348A
CN105744348A CN201610197208.6A CN201610197208A CN105744348A CN 105744348 A CN105744348 A CN 105744348A CN 201610197208 A CN201610197208 A CN 201610197208A CN 105744348 A CN105744348 A CN 105744348A
Authority
CN
China
Prior art keywords
video
local
web browser
list
local video
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
CN201610197208.6A
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.)
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 CN201610197208.6A priority Critical patent/CN105744348A/en
Publication of CN105744348A publication Critical patent/CN105744348A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/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/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • 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/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4782Web browsing, e.g. WebTV

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 all local files, 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

Web browser is utilized to play the method for video, device and electronic equipment
Technical field
The present invention relates to video display arts field, particularly relate to and a kind of utilize web browser to play the method for video, device and electronic equipment.
Background technology
Along with the development of multimedia technology, viewing video has become one of important way of people's amusement or study.
At present, people watch the major way of video and are: access video website with web browser, find the program to see, then watch online.User can also find instrument by locally downloading for these videos, but locally downloading after cannot watch with web browser, it is necessary to install an independent player could play, the inconvenience of this cause the user.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of and utilizes the web browser broadcasting method of video, device and electronic equipment, it is possible to increase the convenience that local video is play.
First aspect, the embodiment of the present invention provides a kind of method utilizing web browser to play video, including: displayed web page browser interface;The described web browser interface shown is provided with video module entrance;Receive the selection to described video module entrance to operate;The All Files that scanning is local, obtains the video information of local video, and the described video information obtained is added in local video list;Show described local video list;Receive the selection to the local video play in described local video list to operate;Operate according to the selection of the local video to play, obtain the video data of the local video to play;The video data calling the embedded decoder described local video to getting is decoded, and by decoded video data, is sent to embedded video playback module;Described local video, according to described decoded video data, is played out by described video playback module in described web browser.
In conjunction with first aspect, in the first embodiment of first aspect, the All Files that described scanning is local, obtain the video information of local video, and the described video information obtained is added in local video list, and including: create a thread, by the All Files that described thread scans is local, obtain the video information of local video, and the described video information obtained is added in local video list.
The first embodiment in conjunction with first aspect or first aspect, in the second embodiment of first aspect, the All Files that scanning is local, obtain the video information of local video, and the described video information obtained is added in local video list, including: according to the white list pre-build, by the All Files that described thread scans is local, obtain the video information of the local video that described web browser support is play, and the described video information obtained is added in local video list.
In conjunction with the first embodiment of first aspect or first aspect, in the third embodiment of first aspect, described method is applicable to be provided with the mobile terminal of Android operation system;
The described All Files local in scanning, before obtaining the video information of local video, described method, also include: obtain the authority obtaining media source library information from described mobile terminal.
In conjunction with the first embodiment of first aspect or first aspect, in the 4th kind of embodiment of first aspect, after receiving the selection to described video module entrance and operating, described method, also include: show that local video plays entrance;
Before showing described local video list, described method, also include: receive the selection operation that the described local video shown is play entrance.
In conjunction with any one embodiment in the 4th kind of embodiment of first aspect to first aspect, in the 5th kind of embodiment of first aspect, described local video list comprises the video name of local video;Video name in described list of videos is associated with the storing path of corresponding video;
When described local video is played out by described web browser, described method, also include:
Obtain the first frame image information of other video in described local video list, outside currently playing video;
The the first frame image information of other video that will obtain, adds in described local video list and corresponding with corresponding video name.
In conjunction with any one embodiment in the 5th kind of embodiment of first aspect to first aspect, in the 6th kind of embodiment of first aspect, under played in full screen state, receive the clicking operation to video switching push button, show described local video list.
In conjunction with any one embodiment in the 6th kind of embodiment of first aspect to first aspect, in the 7th kind of embodiment of first aspect, calling before the embedded decoder video data to described local video is decoded, described method also includes:
The video data obtaining the local video to play is carried out video format conversion, it is thus achieved that the video data that described web browser support is play;
The described embedded decoder video data to described local video that calls is decoded, including: call the embedded decoder described video data to obtaining after video format is changed and be decoded.
In conjunction with any one embodiment in the 7th kind of embodiment of first aspect to first aspect, in the 8th kind of embodiment of first aspect, described displayed web page browser interface, including: open an application program;Described application call is embedded in the web browser in described application program, displayed web page browser interface in the display interface of described application program.
In conjunction with any one embodiment in the 8th kind of embodiment of first aspect to first aspect, in the 9th kind of embodiment of first aspect, described embedded video playback module is the web player supporting wmv, mpg, avi, flv, f4v, mp4, swf and mov form.
Second aspect, the embodiment of the present invention provides a kind of device playing video, including: showing interface module, for displayed web page browser interface;The described web browser interface shown is provided with video module entrance;First receiver module, operates for receiving the selection to described video module entrance;Scan module, for scanning the All Files of this locality, obtains the video information of local video, and the described video information obtained is added in local video list;List display module, is used for showing described local video list;Second receiver module, operates for receiving the selection to the local video play in described local video list;Video data acquisition module, operates the selection of the local video to play for basis, obtains the video data of the local video to play;Decoder module, the video data for calling the embedded decoder described local video to getting is decoded, and by decoded video data, is sent to embedded video playback module;Video playback module, for according to described decoded video data, playing out described local video in described web browser.
In conjunction with second aspect, in the first embodiment of second aspect, described scan module includes: thread creation submodule, is used for creating a thread;Scanning submodule, for the All Files local by described thread scans, obtains the video information of local video;Add submodule, for the described video information obtained being added in local video list.
The first embodiment in conjunction with second aspect, in the second embodiment of second aspect, described scanning submodule, for according to the white list pre-build, by the All Files that described thread scans is local, obtain the video information of the local video that described web browser support is play, and the described video information obtained is added in local video list.
In conjunction with the first embodiment of second aspect, in the third embodiment of second aspect, described device is applicable to be provided with the mobile terminal of Android operation system;The described device playing video, also includes: authority acquiring module, for the All Files local in the scanning of described scan module, before obtaining the video information of local video, obtains the authority obtaining media source library information from described mobile terminal.
The first embodiment in conjunction with second aspect or second aspect, in the 4th kind of embodiment of second aspect, described device, also include: local video plays entrance display module, after receiving the operation of the selection to described video module entrance at described first receiver module, show that local video plays entrance;
3rd receiver module, before showing described local video list at described list display module, receives the selection operation that the described local video shown is play entrance.
In conjunction with the 4th kind of embodiment of second aspect to second aspect, in the 5th kind of embodiment of second aspect, described local video list comprises the video name of local video;Video name in described list of videos is associated with the storing path of corresponding video;
Described device, also include: frame picture acquisition module, when described local video being played out in described web browser for described video playback module, obtain the first frame image information of other video in described local video list, outside currently playing video;Frame picture adds module, for the first frame image information of other video obtained by described frame picture acquisition module, adds in described local video list and corresponding with corresponding video name.
The 5th kind of embodiment in conjunction with second aspect to second aspect, in the 6th kind of embodiment of second aspect, the described device playing video, also include: video frequency switching module, for under played in full screen state, receive the clicking operation to video switching push button, show described local video list.
In conjunction with second aspect, in the 7th kind of embodiment of second aspect, the described device playing video, also include: format converting module, for the video data obtaining the local video to play is carried out video format conversion, it is thus achieved that the video data that described web browser support is play;Described decoder module, is decoded for calling the embedded decoder described video data to obtaining after video format is changed.
The 7th kind of embodiment in conjunction with second aspect to second aspect, in the 8th kind of embodiment of second aspect, described showing interface module, for receiving calling of an application program opened, displayed web page browser interface in the display interface of described application program.
In conjunction with the 8th kind of embodiment of second aspect to second aspect, in the 9th kind of embodiment of second aspect, described embedded video playback module is the web player supporting wmv, mpg, avi, flv, f4v, mp4, swf and mov form.
The third aspect, the embodiment of the present invention provides a kind of electronic equipment, and described electronic equipment includes: housing, processor, memorizer, circuit board and power circuit, and wherein, circuit board is placed in the interior volume that housing surrounds, processor and memorizer and arranges on circuit boards;Power circuit, powers for each circuit or the device for above-mentioned electronic equipment;Memorizer is used for storing executable program code;Processor runs the program corresponding with executable program code by reading the executable program code of storage in memorizer, for performing the method utilizing web browser to play video described in aforementioned any embodiment.
nullA kind of method utilizing web browser to play video that the embodiment of the present invention provides、Device and electronic equipment,Owing to being provided with video module entrance in web browser interface,After receiving the selection to described video module entrance and operating,The All Files that scanning is local,Obtain the video information of local video,The described video information obtained is added in local video list,And show described local video list,After receiving the operation of the selection to the local video play in described local video list,Obtain the video data of the local video to play,Call the embedded decoder video data to described local video to be decoded,And by decoded video data,It is sent to embedded video playback module,Described local video is played out by described web browser,So do not need independent video player is installed,Namely local video is played out by available web browser,Improve the convenience of video playback.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the schematic diagram that the present invention utilizes the embodiment of the method one of web browser broadcasting video;
Fig. 2 is the flow chart that the present invention utilizes the embodiment of the method two of web browser broadcasting video;
Fig. 3 is the structural representation that the present invention plays the device embodiment one of video;
Fig. 4 is the structural representation that the present invention plays the device embodiment two of video;
Fig. 5 is the structural representation of one 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.
It will be appreciated that described embodiment a part of embodiment that is only the present invention, rather than whole embodiment.Based on the embodiment in the present invention, all other embodiments that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into 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 broadcasting video, as it is shown in figure 1, the method for the present embodiment may include that
Step 101, displayed web page browser interface;The described web browser interface shown is provided with video module entrance.
In the present embodiment, can pass through to click web browser shortcut on desktop, start web browser with displayed web page browser interface.Search address hurdle on web browser interface inputs network address and may browse through the video on webpage or viewing network.As an optional mode, web browser can be embedded in an application program, and after this application program is opened, this application program can call embedded web browser, displayed web page browser interface in the display interface of described application program.
The web browser of the present embodiment except watching the video on network by the video link in webpage clicking, this web browser viewing local video is used for the ease of user, described web browser interface is provided with video module entrance, it is simple to user utilizes web browser viewing local video.
In the present embodiment, video module entrance can be directly set in web browser interface.Video module entrance can be by the way of word or the mode of icon be illustrated on web browser interface.Such as in the toolbar of displayed web page browser, or can be illustrated near the search address hurdle of web browser etc..
The selection of described video module entrance is operated by step 102, reception.
In the present embodiment, when user wants the web browser viewing local video by opening, the video module entrance can shown on webpage clicking browser.
The All Files that step 103, scanning are local, obtains the video information of local video, and the described video information obtained is added in local video list.
Due to the video resource in Android media source library, the form supported is few, and, at the video come with data line transfer, media source library can not update timely, must wait until mobile terminal such as mobile phone after restarting just it can be seen that the video come from data line transfer.
In the present embodiment, the All Files that scanning is local, for only scanning medium resources bank, the method for the embodiment of the present invention can obtain all video files of this locality in time.
Described media source library is also called media library, safeguards the information having the multimedia file such as local audio, video wherein.
In android system, the file (such as picture, audio frequency, video etc.) that system is multiple media types establishes data base (sqlite data base), thus completing the maintenance work of multi-medium data.After android system sets up multimedia database, just information conventional for multimedia, the general information such as such as video name, file size, playing duration has been saved in lane database.
Step 104, show described local video list.
In the present embodiment, local video list is displayed in web browser, it is simple to user selects to want the local video of viewing.
The selection of the local video play in described local video list is operated by step 105, reception.
In the present embodiment, after user chooses, in local video list, the video to watch, web browser can receive the selection operation of user's local video to play in described local video list.
The selection of the local video to play is operated by step 106, basis, obtains the video data of the local video to play.
In the present embodiment, local video is preserve video on the local storage device, is such as saved in the video in the hard disk of computer, or is saved in the video in user mobile phone internal memory and/or storage card.These videos can be the video preserved after downloading from network.
In the present embodiment, web browser operates according to the selection of local video play in user's local video list to showing, obtain the process of the video data of the local video to play, obtain the similar process of the video data of the local video to play with locally-installed player of the prior art, this is repeated no more by the present invention.
Step 107, the video data calling the embedded decoder described local video to getting are decoded, and by decoded video data, are sent to embedded video playback module.
In the present embodiment, web browser can be embedded with multiple decoder, the coded format according to the video data received, call corresponding decoder and be decoded, and decoded video data is sent to the video playback module being embedded in web browser.
In the present embodiment, being embedded in the video playback module in web browser, it would be preferable to support the video playback of multiple format, ratio is if supporting the video playback of the forms such as wmv, mpg, avi, flv, f4v, mp4, swf, mov.
As an alternative embodiment, the web browser in the present embodiment, it is also possible to being embedded with multiple different video playback module, every kind of video playback module supports the video playback of different-format respectively.So, according to different video formats, can automatically call corresponding video playback module, decoded video data is sent to corresponding video playback module.
Described local video, according to described decoded video data, is played out by step 108, described video playback module in described web browser.
In the present embodiment, the broadcast window of video playback module can be formed in the display interface of web browser.Described local video, according to described decoded video data, is played out by described video playback module by the video playback window in the display interface of described web browser.
nullA kind of method utilizing web browser to play video that the embodiment of the present invention provides,Owing to being provided with video module entrance in web browser interface,After receiving the selection to described video module entrance and operating,The All Files that scanning is local,Obtain the video information of local video,The described video information obtained is added in local video list,And show described local video list,After receiving the operation of the selection to the local video play in described local video list,Obtain the video data of the local video to play,Call the embedded decoder video data to described local video to be decoded,And by decoded video data,It is sent to embedded video playback module,Described local video is played out by described web browser,So do not need independent video player is installed,Namely local video is played out by available web browser,Improve 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 broadcasting video, as in figure 2 it is shown, the method for the present embodiment is applicable to be provided with the mobile terminal of Android operation system, described method may include that
Step 201, acquisition access the authority of file from described mobile terminal.
Step 202, displayed web page browser interface;The described web browser interface shown is provided with video module entrance.
In the present embodiment, the process of displayed web page browser interface is similar with the step 101 of said method embodiment, repeats no more herein.
Step 203, judge whether enter video module.
In the present embodiment, after web browser is opened, when user wants the web browser viewing local video by opening, the video module entrance can shown on webpage clicking browser is with the video module of browser of entering the Web page.
In this step, web browser judges whether user has the selection to described video module entrance to operate;If having, then receive the selection to described video module entrance and operate, and perform step 204 and step 205.
Step 204, displaying local video play entrance.
In the present embodiment, to user, web browser, after receiving user's selection to described video module entrance and operating, shows that local video plays entrance.In the present embodiment, web browser is according to described operational order, while showing that local video plays entrance to user, it is possible to show that Internet video plays entrance, in order to user selects viewing Internet video simultaneously.
The All Files that step 205, scanning are local, obtains the video information of local video.
In the present embodiment, after entering video module, web browser creates a thread, by the All Files that described thread scans is local, obtains the video information of local video, and the described video information obtained is added in local video list.
As an alternative embodiment, in the present embodiment, according to the white list pre-build, by the All Files that described thread scans is local, obtain the video information of the local video that described web browser support is play, and the described video information obtained is added in local video list.
Step 206, judge whether enter local video play entrance.
In the present embodiment, when user clicks described local video broadcasting entrance, web browser receives the user's described local video to showing and plays the selection operation of entrance, then execution step 207.
Step 207, show described local video list.
In the present embodiment, the information such as video name comprising local video in described local video list;Video name in described list of videos is associated with the storing path of corresponding video, namely there are therebetween mapping relations, in order to find corresponding save location according to video name.
Step 208, judge whether play local video.
In the present embodiment, after user chooses, in local video list, the video to watch, web browser can receive the selection operation of user's local video to play in described local video list, and performs step 209.
The video data of the local video that step 209, acquisition to be play.
In the present embodiment, operate according to the selection of the local video to play, obtain the video data of the local video to play.
In the present embodiment, local video is preserve video on the local storage device, is such as saved in the video in the hard disk of computer, or is saved in the video in user mobile phone internal memory and/or storage card.These videos can be the video preserved after downloading from network.
In the present embodiment, web browser operates according to the selection of local video play in user's local video list to showing, obtain the process of the video data of the local video to play, obtain the similar process of the video data of the local video to play with locally-installed player of the prior art, this is repeated no more by the present invention.
Step 210, video data to the described local video got are decoded.
In the present embodiment, web browser calls the video data of the embedded decoder described local video to getting and is decoded, and by decoded video data, is sent to embedded video playback module.
In the present embodiment, the process that the video data of local video is decoded is similar with the step 107 of said method embodiment, repeats no more herein.
Step 211, in web browser, described local video is played out.
In the present embodiment, described local video, according to described decoded video data, is played out by described video playback module in described web browser.
In the present embodiment, described video playback module is according to described decoded video data, and the process in described web browser, described local video played out is similar with the step 108 of said method embodiment, repeats no more herein.
nullA kind of method utilizing web browser to play video that the embodiment of the present invention provides,Owing to being provided with video module entrance in web browser interface,After receiving the selection to described video module entrance and operating,The All Files that scanning is local,Obtain the video information of local video,The described video information obtained is added in local video list,And show described local video list,After receiving the operation of the selection to the local video play in described local video list,Obtain the video data of the local video to play,Call the embedded decoder video data to described local video to be decoded,And by decoded video data,It is sent to embedded video playback module,Described local video is played out by described web browser,So do not need independent video player is installed,Namely local video is played out by available web browser,Improve the convenience of video playback.
On the basis of aforesaid embodiment of the method one or embodiment two, alternatively, when described local video is played out by described web browser, described method, also include: obtain the first frame image information of other video in described local video list, outside currently playing video;The the first frame image information of other video that will obtain, adds in described local video list and corresponding with corresponding video name, knows local video information more intuitively for user.
Referring to Fig. 2, on the basis of aforesaid embodiment of the method two, alternatively, described method also includes step 212: judge whether Switch Video.
In the present embodiment, under played in full screen state, if judging user's Switch Video, receiving user's clicking operation to video switching push button, showing described local video list, to facilitate user that the video of viewing is switched over.
On the basis of aforesaid embodiment of the method one or embodiment two, alternatively, calling before the embedded decoder video data to described local video is decoded, described method can also include: the video data obtaining the local video to play is carried out video format conversion, it is thus achieved that the video data that described web browser support is play;The described embedded decoder video data to described local video that calls is decoded, including: call the embedded decoder described video data to obtaining after video format is changed and be decoded.By this step, web browser can support the video playback of more multi-format.
Fig. 3 is the structural representation that the present invention plays the device embodiment one of video, as it is shown on figure 3, the device of the present embodiment may include that showing interface module the 11, first receiver module 12, scan module 13, list display module the 14, second receiver module 15, video data acquisition module 16, decoder module 17 and video playback module 18;Wherein,
Showing interface module 11, for displayed web page browser interface;The described web browser interface shown is provided with video module entrance;
First receiver module 12, operates for receiving the selection to described video module entrance;
Scan module 13, for scanning the All Files of this locality, obtains the video information of local video, and the described video information obtained is added in local video list;
List display module 14, is used for showing described local video list;
Second receiver module 15, operates for receiving the selection to the local video play in described local video list;
Video data acquisition module 16, operates the selection of the local video to play for basis, obtains the video data of the local video to play;
Decoder module 17, the video data for calling the embedded decoder described local video to getting is decoded, and by decoded video data, is sent to embedded video playback module;
Video playback module 18, for according to described decoded video data, playing out described local video in described web browser.
The device of the present embodiment, it is possible to for performing the technical scheme of embodiment of the method shown in Fig. 1, it is similar with technique effect that it realizes principle, repeats no more herein.
Fig. 4 is the structural representation that the present invention plays the device embodiment two of video, and described device is applicable to be provided with the mobile terminal of Android operation system.As shown in Figure 4, the device of the present embodiment is on the basis of Fig. 3 shown device structure, further, the described device playing video, may also include that authority acquiring module 19, local video play entrance display module 20 and the 3rd receiver module 21;Wherein,
Authority acquiring module 19, for the All Files local in the scanning of described scan module, before obtaining the video information of local video, obtains the authority obtaining media source library information from described mobile terminal.
Local video plays entrance display module 20, after receiving the operation of the selection to described video module entrance at described first receiver module 12, shows that local video plays entrance;
3rd receiver module 21, for, before described list display module 14 shows described local video list, receiving the selection operation that the described local video shown is play entrance.
In the present embodiment, described scan module 13 may include that thread creation submodule, scanning submodule and adds submodule;Wherein,
Thread creation submodule, is used for creating a thread.
Scanning submodule, for the All Files local by described thread scans, obtains the video information of local video.
As an alternative embodiment, described scanning submodule, can be used for according to the white list pre-build, by the All Files that described thread scans is local, obtain the video information of the local video that described web browser support is play, and the described video information obtained is added in local video list.
Add submodule, for the described video information obtained being added in local video list.
The device of the present embodiment, it is possible to for performing the technical scheme of embodiment of the method shown in Fig. 2, it is similar with technique effect that it realizes principle, repeats no more herein.
On the basis of the device embodiment of aforementioned playout video, alternatively, described local video list comprises the video name of local video;Video name in described list of videos is associated with the storing path of corresponding video;
Described device, also include: frame picture acquisition module, when described local video being played out in described web browser for described video playback module, obtain the first frame image information of other video in described local video list, outside currently playing video;Frame picture adds module, for the first frame image information of other video obtained by described frame picture acquisition module, adds in described local video list and corresponding with corresponding video name, knows local video information more intuitively for user.
On the basis of the device embodiment of aforementioned playout video, alternatively, the described device playing video, also include: video frequency switching module, for under played in full screen state, receive the clicking operation to video switching push button, show described local video list, to facilitate user that the video of viewing is switched over.
On the basis of the device embodiment of aforementioned playout video, alternatively, the described device playing video, also include: format converting module, for the video data obtaining the local video to play is carried out video format conversion, it is thus achieved that the video data that described web browser support is play;Described decoder module, is decoded for calling the embedded decoder described video data to obtaining after video format is changed.The present embodiment makes web browser can support the video playback of more multi-format.
The embodiment of the present invention also provides for a kind of electronic equipment, and described electronic equipment comprises the device described in aforementioned any embodiment.
Fig. 5 is the structural representation of one embodiment of electronic equipment of the present invention, the flow process of Fig. 1 of the present invention or embodiment illustrated in fig. 2 can be realized, as shown in Figure 5, above-mentioned electronic equipment may include that housing 41, processor 42, memorizer 43, circuit board 44 and power circuit 45, wherein, circuit board 44 is placed in the interior volume that housing 41 surrounds, processor 42 and memorizer 43 and is arranged on circuit board 44;Power circuit 45, powers for each circuit or the device for above-mentioned electronic equipment;Memorizer 43 is used for storing executable program code;Processor 42 runs the program corresponding with executable program code by reading the executable program code of storage in memorizer 43, for performing the method utilizing web browser to play video described in aforementioned any embodiment.
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 to provide speech, data communication for main target.This Terminal Type includes: smart mobile phone (such as 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 calculating and processes function, generally also possessing mobile Internet access characteristic.This Terminal Type includes: PDA, MID and UMPC equipment etc., for instance iPad.
(3) portable entertainment device: this kind equipment can show and play content of multimedia.This kind equipment includes: audio frequency, video playback module (such as iPod), handheld device, e-book, and intelligent toy and portable car-mounted navigator.
(4) server: the equipment of the service of calculating is provided, the composition of server includes processor, hard disk, internal memory, system bus etc., server is similar with general computer architecture, but owing to needing to provide highly reliable service, therefore require higher in disposal ability, stability, reliability, safety, extensibility, manageability etc..
(5) other have the electronic equipment of data interaction function.
It should be noted that, in this article, the relational terms of such as first and second or the like is used merely to separate an entity or operation with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that include the process of a series of key element, method, article or equipment not only include those key elements, but also include other key elements being not expressly set out, or also include the key element intrinsic for this process, method, article or equipment.When there is no more restriction, statement " including ... " key element limited, it is not excluded that there is also other identical element in including the process of described key element, method, article or equipment.
Each embodiment in this specification all adopts relevant mode to describe, between each embodiment identical similar part mutually referring to, what each embodiment stressed is the difference with other embodiments.Especially for device embodiment, owing to it is substantially similar to embodiment of the method, so what describe is fairly simple, relevant part illustrates referring to the part of embodiment of the method.
For convenience of description, describing apparatus above is be divided into various units/modules to be respectively described with function.Certainly, the function of each unit/module can be realized in same or multiple softwares and/or hardware when implementing the present invention.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can be by the hardware that computer program carrys out instruction relevant to complete, described program can be stored in a computer read/write memory medium, this program is upon execution, it may include such 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, ROM) or random store-memory body (RandomAccessMemory, RAM) etc..
The above; being only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any those familiar with the art is in the technical scope that the invention discloses; the change that can readily occur in or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with scope of the claims.

Claims (10)

1. one kind utilizes the method that web browser plays video, it is characterised in that including:
Displayed web page browser interface;The described web browser interface shown is provided with video module entrance;
Receive the selection to described video module entrance to operate;
The All Files that scanning is local, obtains the video information of local video, and the described video information obtained is added in local video list;
Show described local video list;
Receive the selection to the local video play in described local video list to operate;
Operate according to the selection of the local video to play, obtain the video data of the local video to play;
The video data calling the embedded decoder described local video to getting is decoded, and by decoded video data, is sent to embedded video playback module;
Described local video, according to described decoded video data, is played out by described video playback module in described web browser.
2. the method utilizing web browser to play video according to claim 1, it is characterised in that
The All Files that described scanning is local, obtains the video information of local video, and adds in local video list by the described video information obtained, including:
Create a thread, by the All Files that described thread scans is local, obtain the video information of local video, and the described video information obtained is added in local video list.
3. the method utilizing web browser to play video according to claim 2, it is characterised in that the All Files that scanning is local, obtains the video information of local video, and adds in local video list by the described video information obtained, including:
According to the white list pre-build, by the All Files that described thread scans is local, obtain the video information of the local video that described web browser support is play, and the described video information obtained is added in local video list.
4. the method utilizing web browser to play video according to claim 1 and 2, it is characterised in that described method is applicable to be provided with the mobile terminal of Android operation system;
The described All Files local in scanning, before obtaining the video information of local video, described method, also include:
Obtain the authority accessing file from described mobile terminal.
5. the method utilizing web browser to play video according to claim 1 and 2, it is characterised in that after receiving the selection to described video module entrance and operating, described method, also include: show that local video plays entrance;
Before showing described local video list, described method, also include: receive the selection operation that the described local video shown is play entrance.
6. the method utilizing web browser broadcasting video according to any one of claim 1 to 5, it is characterised in that comprise the video name of local video in described local video list;Video name in described list of videos is associated with the storing path of corresponding video;
When described local video is played out by described web browser, described method, also include:
Obtain the first frame image information of other video in described local video list, outside currently playing video;
The the first frame image information of other video that will obtain, adds in described local video list and corresponding with corresponding video name.
7. the method utilizing web browser broadcasting video according to any one of claim 1 to 6, it is characterised in that under played in full screen state, receive the clicking operation to video switching push button, show described local video list.
8. the method utilizing web browser to play video according to claim 1, it is characterised in that
Calling before the embedded decoder video data to described local video is decoded, described method also includes:
The video data obtaining the local video to play is carried out video format conversion, it is thus achieved that the video data that described web browser support is play;
The described embedded decoder video data to described local video that calls is decoded, including: call the embedded decoder described video data to obtaining after video format is changed and be decoded.
9. the method utilizing web browser broadcasting video according to any one of claim 1 to 8, it is characterised in that described displayed web page browser interface, including:
Open an application program;
Described application call is embedded in the web browser in described application program, displayed web page browser interface in the display interface of described application program.
10. the method utilizing web browser broadcasting video according to any one of claim 1 to 9, it is characterised in that described embedded video playback module is the web player supporting wmv, mpg, avi, f1v, f4v, mp4, swf and mov form.
CN201610197208.6A 2016-03-31 2016-03-31 Method and device for playing video by using web browser and electronic equipment Pending CN105744348A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610197208.6A CN105744348A (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
CN201610197208.6A CN105744348A (en) 2016-03-31 2016-03-31 Method and device for playing video by using web browser and electronic equipment

Publications (1)

Publication Number Publication Date
CN105744348A true CN105744348A (en) 2016-07-06

Family

ID=56253200

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610197208.6A Pending CN105744348A (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) CN105744348A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106101750A (en) * 2016-08-08 2016-11-09 深圳市众幕电影科技有限公司 Reflect front advertisement playing control system and control method thereof
CN107968957A (en) * 2016-10-20 2018-04-27 法乐第(北京)网络科技有限公司 Video broadcasting method and device
CN109104631A (en) * 2018-09-06 2018-12-28 网易传媒科技(北京)有限公司 Image display method and device
CN109819315A (en) * 2019-03-21 2019-05-28 广州华多网络科技有限公司 Playback method, device, terminal and the storage medium of HEVC video
CN111711838A (en) * 2020-06-23 2020-09-25 广州酷狗计算机科技有限公司 Video switching method, device, terminal, server and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN103281457A (en) * 2013-06-03 2013-09-04 贝壳网际(北京)安全技术有限公司 Video playing method and device in mobile terminal browser and browser
CN104581171A (en) * 2013-10-15 2015-04-29 腾讯科技(深圳)有限公司 Method and device for playing videos on browser as well as mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN103281457A (en) * 2013-06-03 2013-09-04 贝壳网际(北京)安全技术有限公司 Video playing method and device in mobile terminal browser and browser
CN104581171A (en) * 2013-10-15 2015-04-29 腾讯科技(深圳)有限公司 Method and device for playing videos on browser as well as mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
网易新闻: "APP OR 浏览器?QQ浏览器推出5.1版", 《HTTP://MOBILE.163.COM/14/0403/17/9OU3Q3GG00112K8C.HTML》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106101750A (en) * 2016-08-08 2016-11-09 深圳市众幕电影科技有限公司 Reflect front advertisement playing control system and control method thereof
CN106101750B (en) * 2016-08-08 2022-11-11 深圳市众幕电影科技有限公司 Advertisement playing control system before showing and control method thereof
CN107968957A (en) * 2016-10-20 2018-04-27 法乐第(北京)网络科技有限公司 Video broadcasting method and device
CN109104631A (en) * 2018-09-06 2018-12-28 网易传媒科技(北京)有限公司 Image display method and device
CN109104631B (en) * 2018-09-06 2021-09-28 网易传媒科技(北京)有限公司 Video display method and device
CN109819315A (en) * 2019-03-21 2019-05-28 广州华多网络科技有限公司 Playback method, device, terminal and the storage medium of HEVC video
CN111711838A (en) * 2020-06-23 2020-09-25 广州酷狗计算机科技有限公司 Video switching method, device, terminal, server and storage medium

Similar Documents

Publication Publication Date Title
CN105611379B (en) Method and device for playing video by using web browser and electronic equipment
CN104869452B (en) Digital device and its method for handling screen protection program
CN105657465B (en) Multimedia device and its control method
JP5095711B2 (en) How to press content towards a connected device
CN105744348A (en) Method and device for playing video by using web browser and electronic equipment
CN112087633B (en) Video decoding method, device and storage medium
CN111556353B (en) Video playing method, video playing management device and terminal equipment
CN102651731A (en) Video display method and video display device
KR101991188B1 (en) Promotion information processing method, device, and apparatus, and non-volatile computer storage medium
CN109684589B (en) Client comment data processing method and device and computer storage medium
CN103858438A (en) Systems and methods for presenting home screen shortcuts
CN107852531A (en) Display device and its control method
CN104902290A (en) Display device for managing a plurality of time source data and method for controlling the same
CN110149539A (en) Method for broadcasting multimedia file, device, electronic equipment and storage medium
CN101715100A (en) Information processing apparatus, information acquisition method and information retrieval system
CN103442299A (en) Display method for playing records and electronic equipment
CN104038774A (en) Ring tone file generating method and device
CN104010197A (en) Method and device for generating video thumbnails
CN103310001A (en) Method and device for setting video list
CN104427357A (en) Language type setting method and device
CN111741350A (en) File display method and device, electronic equipment and computer readable storage medium
CN105721924A (en) Method and device for playing video by using web browser and electronic equipment
CN109792502A (en) Information processing equipment, information processing method, program and information processing system
CN112291602B (en) Video playing method, electronic equipment and storage medium
CN103607655A (en) A playback method for live programs and an electronic device

Legal Events

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

Application publication date: 20160706

RJ01 Rejection of invention patent application after publication