CN105611379B - 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 PDFInfo
- Publication number
- CN105611379B CN105611379B CN201610196088.8A CN201610196088A CN105611379B CN 105611379 B CN105611379 B CN 105611379B CN 201610196088 A CN201610196088 A CN 201610196088A CN 105611379 B CN105611379 B CN 105611379B
- Authority
- CN
- China
- Prior art keywords
- video
- local
- module
- web browser
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/426—Internal components of the client ; Characteristics thereof
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/432—Content retrieval operation from a local storage medium, e.g. hard-disk
- H04N21/4325—Content retrieval operation from a local storage medium, e.g. hard-disk by playing back content from the storage medium
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/482—End-user interface for program selection
- H04N21/4825—End-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
Technical field
The present invention relates to field of video broadcasting technology more particularly to it is a kind of using web browser play video method,
Device and electronic equipment.
Background technique
With the continuous development of multimedia technology, watches video and have become one of people's amusement or important way of study.
Currently, people watch the major way of video are as follows: access video website with web browser, find the section to be seen
Mesh, then online viewing.User can also find tool for these video downloads to local, but it is locally downloading after it is clear with webpage
Device of looking at can not be watched, it is necessary to which installing an individual player could play, this causes inconvenience to user.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method, apparatus and electronics for playing video using web browser
Equipment can be improved the convenience of local video broadcasting.
In a first aspect, the embodiment of the present invention provides a kind of method for playing video using web browser, comprising: show net
Page browsing device interface;Video module entrance is provided on the web browser interface of displaying;It receives to the video screen module
The selection operation of block entrance;Scan local media source library, the view that obtains the video information of local video, and will acquire
Frequency information is added in local video list;Show the local video list;It receives to being wanted in the local video list
The selection operation of the local video of broadcasting;According to the selection operation to the local video to be played, the sheet to be played is obtained
The video data of ground video;Embedded decoder is called to be decoded the video data of the local video got, and
By decoded video data, it is sent to embedded video playback module;The video playback module is according to described decoded
Video data plays out the local video in the web browser.
With reference to first aspect, in the first embodiment of first aspect, the local media source library of the scanning is obtained
The video information of local video is taken, and the video information that will acquire is added in local video list, comprising: one line of creation
Journey, by the media source library of the thread scans local, the video that obtains the video information of local video, and will acquire
Information is added in local video list.
With reference to first aspect or the first embodiment of first aspect, in second of embodiment of first aspect,
Local media source library is scanned, obtains the video information of local video, and the video information that will acquire is added to local
In list of videos, comprising: obtain institute by the media source library of the thread scans local according to the white list pre-established
The video information that web browser supports the local video played is stated, and the video information that will acquire is added to local video
In list.
With reference to first aspect or the first embodiment of first aspect, in the third embodiment of first aspect,
The method is suitable for being equipped with the mobile terminal of Android operation system;
The media source library local in scanning, before the video information for obtaining local video, the method is also wrapped
It includes: obtaining the permission for obtaining media source library information from the mobile terminal.
With reference to first aspect or the first embodiment of first aspect, in the 4th kind of embodiment of first aspect,
Receive to the selection operation of the video module entrance after, the method, further includes: show local video play into
Mouthful;
Before showing the local video list, the method, further includes: receive the local video to displaying
Play the selection operation of entrance.
Any embodiment into the 4th kind of embodiment of first aspect with reference to first aspect, in first aspect
The 5th kind of embodiment in, in the local video list include local video video name;In the list of videos
Video name is associated with the storing path of corresponding video;
When being played out in the web browser to the local video, the method, further includes:
Obtain the first frame image information of other videos in the local video list, except currently playing video;
The first frame image information for the other videos that will acquire, add in the local video list and with corresponding video
Title is corresponding.
Any embodiment into the 5th kind of embodiment of first aspect with reference to first aspect, in first aspect
In 6th kind of embodiment, under played in full screen state, the clicking operation to video switching push button is received, shows the local view
Frequency list.
Any embodiment into the 6th kind of embodiment of first aspect with reference to first aspect, in first aspect
It is described before calling embedded decoder to be decoded the video data of the local video in 7th kind of embodiment
Method further include:
Video format conversion is carried out to the video data for obtaining the local video to be played, obtains the web browser
Support the video data played;
It is described that embedded decoder is called to be decoded the video data of the local video, comprising: to call embedded
Decoder is decoded the video data obtained after video format is converted.
Any embodiment into the 7th kind of embodiment of first aspect with reference to first aspect, in first aspect
In 8th kind of embodiment, the displayed web page browser interface, comprising: open an application program;The application call
The web browser being embedded in the application program, displayed web page browser circle in the display interface of the application program
Face.
Any embodiment into the 8th kind of embodiment of first aspect with reference to first aspect, in first aspect
In 9th kind of embodiment, the embedded video playback module is to support wmv, mpg, avi, f1v, f4v, mp4, swf and mov
The web player of format.
Second aspect, the embodiment of the present invention provide a kind of device for playing video, comprising: showing interface module, for opening up
Show web browser interface;Video module entrance is provided on the web browser interface of displaying;First receiving module,
For receiving the selection operation to the video module entrance;Scan module obtains this for scanning local media source library
The video information of ground video, and the video information that will acquire is added in local video list;List display module, is used for
Show the local video list;Second receiving module, for receiving to the local to be played in the local video list
The selection operation of video;Video data obtains module, for obtaining institute according to the selection operation to the local video to be played
The video data for the local video to be played;Decoder module, for calling embedded decoder to the local view got
The video data of frequency is decoded, and by decoded video data, is sent to embedded video playback module;Video playing mould
Block, for being played out to the local video in the web browser according to the decoded video data.
In conjunction with second aspect, in the first embodiment of second aspect, the scan module includes: thread creation
Module, for creating a thread;Submodule is scanned, for the media source library by the thread scans local, is obtained local
The video information of video;Submodule is added, the video information for will acquire is added in local video list.
In conjunction with the first embodiment of second aspect, in second of embodiment of second aspect, scanning
Module, for it is clear to obtain the webpage by the media source library of the thread scans local according to the white list pre-established
Device of looking at supports the video information of the local video played, and the video information that will acquire is added in local video list.
In conjunction with the first embodiment of second aspect, in the third embodiment of second aspect, the device
Suitable for being equipped with the mobile terminal of Android operation system;The device of the broadcasting video, further includes: authority acquiring module,
For the media source library local in scan module scanning, before the video information for obtaining local video, obtain from described
The permission of media source library information is obtained in mobile terminal.
In conjunction with the first of second aspect or second aspect embodiment, in the 4th kind of embodiment of second aspect,
The device, further includes: local video plays entrance display module, for receiving in first receiving module to the view
After the selection operation of frequency module entrance, show that local video plays entrance;
Third receiving module, for receiving to exhibition before the list display module shows the local video list
The local video shown plays the selection operation of entrance.
In conjunction with the 4th kind of embodiment of second aspect to second aspect, in the 5th kind of embodiment of second aspect,
It include the video name of local video in the local video list;Video name in the list of videos and corresponding view
The storing path of frequency is associated;
The device, further includes: frame picture obtains module, for the video playback module in the web browser
In when being played out to the local video, obtain other views in the local video list, except currently playing video
The first frame image information of frequency;Frame picture adding module, for the frame picture to be obtained the of other videos that module obtains
One frame image information adds in the local video list and corresponding with corresponding video name.
In conjunction with the 5th kind of embodiment of second aspect to second aspect, in the 6th kind of embodiment of second aspect,
The device of the broadcasting video, further includes: video frequency switching module, for receiving and switching to video under played in full screen state
The clicking operation of button shows the local video list.
In conjunction with second aspect, in the 7th kind of embodiment of second aspect, the device of the broadcasting video is also wrapped
Include: format converting module obtains institute for carrying out video format conversion to the video data for obtaining the local video to be played
It states web browser and supports the video data played;The decoder module, for calling embedded decoder to by video lattice
The video data obtained after formula conversion is decoded.
In conjunction with the 7th kind of embodiment of second aspect to second aspect, in the 8th kind of embodiment of second aspect,
The showing interface module, the calling of the application program for receiving an opening, is opened up in the display interface of the application program
Show web browser interface.
In conjunction with the 8th kind of embodiment of second aspect to second aspect, in the 9th kind of embodiment of second aspect,
The embedded video playback module is the web player for supporting wmv, mpg, avi, f1v, f4v, mp4, swf and mov format.
The third aspect, the embodiment of the present invention provide a kind of electronic equipment, and the electronic equipment includes: shell, processor, deposits
Reservoir, circuit board and power circuit, wherein circuit board is placed in the space interior that shell surrounds, processor and memory setting
On circuit boards;Power circuit, for each circuit or the device power supply for above-mentioned electronic equipment;Memory is for storing and can hold
Line program code;Processor is run and executable program code pair by reading the executable program code stored in memory
The program answered, for executing the method for playing video using web browser described in aforementioned any embodiment.
A kind of method, apparatus and electronic equipment playing video using web browser provided in an embodiment of the present invention, by
In being provided with video module entrance in web browser interface, receive to the selection operation of the video module entrance it
Afterwards, local media source library is scanned, the video information of local video is obtained, the video information that will acquire is added to local
It in list of videos, and shows the local video list, receives to the local video to be played in the local video list
Selection operation after, obtain the video data for the local video to be played, call embedded decoder to the local view
The video data of frequency is decoded, and by decoded video data, embedded video playback module is sent to, in the webpage
The local video is played out in browser, is not required to that individual video player is installed in this way, i.e., using web page browsing
Device plays out local video, improves the convenience of video playing.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the schematic diagram for the embodiment of the method one that the present invention plays video using web browser;
Fig. 2 is the flow chart for the embodiment of the method two that the present invention plays video using web browser;
Fig. 3 is the structural schematic diagram for the Installation practice one that the present invention plays video;
Fig. 4 is the structural schematic diagram for the Installation practice two that the present invention plays video;
Fig. 5 is the structural schematic diagram of electronic equipment one embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described in detail with reference to the accompanying drawing.
It will be appreciated that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Base
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its
Its embodiment, shall fall within the protection scope of the present invention.
Fig. 1 is the schematic diagram for the embodiment of the method one that the present invention plays video using web browser, as shown in Figure 1, this
The method of embodiment may include:
Step 101, displayed web page browser interface;Video module is provided on the web browser interface of displaying
Entrance.
In the present embodiment, web browser can be started by clicking web browser shortcut on desktop to show net
Page browsing device interface.Network address is inputted in search address field on web browser interface may browse through on webpage or viewing network
Video.As an optional way, web browser is embeddable in an application program, and after application program opening, this is answered
Embedded web browser can be called with program, the displayed web page browser interface in the display interface of the application program.
The web browser of the present embodiment is watched outside the video on network except through the video link in webpage clicking, is
The user-friendly web browser watches local video, is provided with video module in the web browser interface and enters
Mouthful, local video is watched using web browser convenient for user.
In the present embodiment, video module entrance can be set directly in web browser interface.Video module entrance can be with
It is to be shown on web browser interface in a manner of text or in the way of icon.Such as can displayed web page browser toolbar
In, or show near the search address field of web browser etc..
Step 102 is received to the selection operation of the video module entrance.
It, can webpage clicking browsing when user wants to watch local video by the web browser opened in the present embodiment
The video module entrance shown on device.
The local media source library of step 103, scanning, the view that obtains the video information of local video, and will acquire
Frequency information is added in local video list.
In the present embodiment, the media source library is also known as media library, and maintenance has more matchmakers such as local audio, video wherein
The information of body file.
In android system, system is that the file (such as picture, audio, video etc.) of multiple media types establishes number
According to library (sqlite database), to complete the maintenance work of multi-medium data.Android system sets up multimedia database
Later, the general informations such as multimedia common information, such as video name, file size, playing duration data have been stored in just
In library.
Step 104 shows the local video list.
In the present embodiment, local video list is shown in web browser, wants viewing convenient for user's selection
Local video.
Step 105 is received to the selection operation of the local video to be played in the local video list.
In the present embodiment, after user chooses the video to be watched in local video list, web browser
User is received to the selection operation of the local video to be played in the local video list.
Step 106, basis obtain the view for the local video to be played to the selection operation for the local video to be played
Frequency evidence.
In the present embodiment, local video is the video saved on the local storage device, for example is stored in computer
Video in hard disk, or the video being stored in user mobile phone memory and/or storage card.These videos can be from network
The video saved after downloading.
In the present embodiment, web browser is according to user to the local video to be played in the local video list of displaying
Selection operation, obtain the local video to be played video data process, broadcast in the prior art locally-installed
The process for putting the video data that device obtains the local video to be played is similar, and the present invention repeats no more this.
Step 107 calls embedded decoder to be decoded the video data of the local video got, and will
Decoded video data is sent to embedded video playback module.
Can embed in the present embodiment, in web browser there are many decoder, according to received video data volume
Code format, calls corresponding decoder to be decoded, and decoded video data is sent to and is embedded in web browser
Video playback module.
In the present embodiment, the video playback module being embedded in web browser can support the video of multiple format to broadcast
It puts, for example can support the video playing of the formats such as wmv, mpg, avi, f1v, f4v, mp4, swf, mov.
As an alternative embodiment, web browser in the present embodiment can also be embedded and be broadcast there are many different videos
Amplification module, every kind of video playback module support the video playing of different-format respectively.In this way, can according to different video formats,
Automatically corresponding video playback module is called, decoded video data is sent to corresponding video playback module.
Step 108, the video playback module are right in the web browser according to the decoded video data
The local video plays out.
In the present embodiment, the broadcast window of video playback module can be formed in the display interface of web browser.It is described
Video playback module passes through the video playing in the display interface of the web browser according to the decoded video data
Window plays out the local video.
A kind of method playing video using web browser provided in an embodiment of the present invention, due in web browser circle
It is provided with video module entrance in face, after receiving to the selection operation of the video module entrance, scans local media
Resources bank obtains the video information of local video, and the video information that will acquire is added in local video list, and shows
The local video list obtains after receiving to the selection operation of the local video to be played in the local video list
The video data for taking the local video to be played calls embedded decoder to solve the video data of the local video
Code, and by decoded video data, it is sent to embedded video playback module, to the local in the web browser
Video plays out, and is not required to install individual video player in this way, i.e., broadcasts using web browser to local video
It puts, improves the convenience of video playing.
Fig. 2 is the flow chart for the embodiment of the method two that the present invention plays video using web browser, as shown in Fig. 2, this
The method of embodiment is suitable for being equipped with the mobile terminal of Android operation system, the method may include:
Step 201 obtains the permission that media source library is accessed from the mobile terminal.
Step 202, displayed web page browser interface;Video module is provided on the web browser interface of displaying
Entrance.
In the present embodiment, the process of displayed web page browser interface is similar with the step 101 of above method embodiment, herein
It repeats no more.
Step 203 judges whether to enter video module.
In the present embodiment, after web browser is opened, user wants the local view of web browser viewing by opening
When frequency, the video module entrance that can be shown on webpage clicking browser is with the video module for browser of entering the Web page.
In this step, web browser judges whether user has the selection operation to the video module entrance;If so, then
The selection operation to the video module entrance is received, and executes step 204 and step 205.
Step 204 shows that local video plays entrance.
In the present embodiment, web browser is after receiving user to the selection operation of the video module entrance, Xiang Yong
Family shows that local video plays entrance.In the present embodiment, web browser shows local view according to the operational order, to user
While frequency plays entrance, it can also show that network video plays entrance simultaneously, so that user selects viewing network video.
The local media source library of step 205, scanning, obtains the video information of local video.
In the present embodiment, after entering video module, web browser creates a thread, passes through the thread scans sheet
The media source library on ground, obtains the video information of local video, and the video information that will acquire is added to local video column
In table.
As an alternative embodiment, in the present embodiment, according to the white list pre-established, it is local to pass through the thread scans
Media source library, obtain the video information that the web browser supports the local video played, and the view that will acquire
Frequency information is added in local video list.
Step 206 judges whether that entering local video plays entrance.
In the present embodiment, when the local video plays entrance when the user clicks, web browser receives user to displaying
The local video play entrance selection operation, then execute step 207.
Step 207 shows the local video list.
In the present embodiment, the information such as video name in the local video list comprising local video;The video column
Video name in table is associated with the storing path of corresponding video, i.e., there are mapping relations, therebetween so as to basis
Video name finds corresponding save location.
Step 208 judges whether to play local video.
In the present embodiment, after user chooses the video to be watched in local video list, web browser
User is received to the selection operation of the local video to be played in the local video list, and executes step 209.
Step 209, the video data for obtaining the local video to be played.
In the present embodiment, according to the selection operation to the local video to be played, the local video to be played is obtained
Video data.
In the present embodiment, local video is the video saved on the local storage device, for example is stored in computer
Video in hard disk, or the video being stored in user mobile phone memory and/or storage card.These videos can be from network
The video saved after downloading.
In the present embodiment, web browser is according to user to the local video to be played in the local video list of displaying
Selection operation, obtain the local video to be played video data process, broadcast in the prior art locally-installed
The process for putting the video data that device obtains the local video to be played is similar, and the present invention repeats no more this.
Step 210 is decoded the video data of the local video got.
In the present embodiment, web browser calls embedded decoder to the video data of the local video got
It is decoded, and by decoded video data, is sent to embedded video playback module.
In the present embodiment, the step of the process and above method embodiment that are decoded to the video data of local video
107 is similar, and details are not described herein again.
Step 211 plays out the local video in web browser.
In the present embodiment, the video playback module is according to the decoded video data, in the web browser
In the local video is played out.
In the present embodiment, the video playback module is according to the decoded video data, in the web browser
In process that the local video is played out it is similar with the step 108 of above method embodiment, details are not described herein again.
A kind of method playing video using web browser provided in an embodiment of the present invention, due in web browser circle
It is provided with video module entrance in face, after receiving to the selection operation of the video module entrance, scans local media
Resources bank obtains the video information of local video, and the video information that will acquire is added in local video list, and shows
The local video list obtains after receiving to the selection operation of the local video to be played in the local video list
The video data for taking the local video to be played calls embedded decoder to solve the video data of the local video
Code, and by decoded video data, it is sent to embedded video playback module, to the local in the web browser
Video plays out, and is not required to install individual video player in this way, i.e., broadcasts using web browser to local video
It puts, improves the convenience of video playing.
On the basis of embodiment of the method one above-mentioned or embodiment two, optionally, to institute in the web browser
When stating local video and playing out, the method, further includes: obtain in the local video list, currently playing video
Except other videos first frame image information;The first frame image information for the other videos that will acquire, adds the local
It is in list of videos and corresponding with corresponding video name, so that user more intuitively knows local video information.
Referring to Fig. 2, on the basis of embodiment of the method two above-mentioned, optionally, the method also includes steps 212: sentencing
It is disconnected whether Switch Video.
In the present embodiment, under played in full screen state, if judging user's Switch Video, user is received to video switching push button
Clicking operation, the local video list is shown, to facilitate user to switch over the video of viewing.
On the basis of embodiment of the method one above-mentioned or embodiment two, optionally, in the embedded decoder of calling to institute
State local video video data be decoded before, the method can also include: to obtain the local video to be played
Video data carry out video format conversion, obtain the web browser and support the video data played;Described call embeds
Decoder the video data of the local video is decoded, comprising: call embedded decoder to by video format
The video data obtained after conversion is decoded.By this step, web browser can support the video of more multi-format
It plays.
Fig. 3 is the structural schematic diagram for the Installation practice one that the present invention plays video, as shown in figure 3, the dress of the present embodiment
Set may include: showing interface module 11, the first receiving module 12, scan module 13, the reception mould of list display module 14, second
Block 15, video data obtain module 16, decoder module 17 and video playback module 18;Wherein,
Showing interface module 11 is used for displayed web page browser interface;It is set on the web browser interface of displaying
It is equipped with video module entrance;
First receiving module 12, for receiving the selection operation to the video module entrance;
Scan module 13 obtains the video information of local video for scanning local media source library, and will acquire
The video information is added in local video list;
List display module 14, for showing the local video list;
Second receiving module 15, for receiving the selection behaviour to the local video to be played in the local video list
Make;
Video data obtains module 16, for according to the selection operation to the local video to be played, acquisition to be broadcast
The video data for the local video put;
Decoder module 17, for calling embedded decoder to solve the video data of the local video got
Code, and by decoded video data, it is sent to embedded video playback module;
Video playback module 18 is used for according to the decoded video data, to described in the web browser
Local video plays out.
The device of the present embodiment can be used for executing the technical solution of embodiment of the method shown in Fig. 1, realization principle and skill
Art effect is similar, and details are not described herein again.
Fig. 4 is the structural schematic diagram for the Installation practice two that the present invention plays video, and the device is suitable for being equipped with
The mobile terminal of Android operation system.As shown in figure 4, on the basis of the device of the present embodiment apparatus structure shown in Fig. 3, into one
Step ground, the device of the broadcasting video may also include that authority acquiring module 19, local video play entrance display module 20
With third receiving module 21;Wherein,
Authority acquiring module 19 obtains local video for the media source library local in scan module scanning
Before video information, the permission that media source library information is obtained from the mobile terminal is obtained.
Local video plays entrance display module 20, for receiving in first receiving module 12 to the video module
After the selection operation of entrance, show that local video plays entrance;
Third receiving module 21, for receiving before the list display module 14 shows the local video list
The selection operation of entrance is played to the local video of displaying.
In the present embodiment, the scan module 13 may include: thread creation submodule, scanning submodule and addition submodule
Block;Wherein,
Thread creation submodule, for creating a thread.
Submodule is scanned, for the media source library by the thread scans local, obtains the video letter of local video
Breath.
As an alternative embodiment, the scanning submodule can be used for passing through the line according to the white list pre-established
The local media source library of journey scanning, obtains the web browser and supports the video information of the local video played, and will obtain
The video information taken is added in local video list.
Submodule is added, the video information for will acquire is added in local video list.
The device of the present embodiment can be used for executing the technical solution of embodiment of the method shown in Fig. 2, realization principle and skill
Art effect is similar, and details are not described herein again.
On the basis of the Installation practice of aforementioned playout video, optionally, comprising local in the local video list
The video name of video;Video name in the list of videos is associated with the storing path of corresponding video;
The device, further includes: frame picture obtains module, for the video playback module in the web browser
In when being played out to the local video, obtain other views in the local video list, except currently playing video
The first frame image information of frequency;Frame picture adding module, for the frame picture to be obtained the of other videos that module obtains
One frame image information, add it is in the local video list and corresponding with corresponding video name, so that user is more intuitive
Know local video information.
On the basis of the Installation practice of aforementioned playout video, optionally, the device of the broadcasting video is also wrapped
Include: video frequency switching module shows described for receiving the clicking operation to video switching push button under played in full screen state
Ground list of videos, to facilitate user to switch over the video of viewing.
On the basis of the Installation practice of aforementioned playout video, optionally, the device of the broadcasting video is also wrapped
Include: format converting module obtains institute for carrying out video format conversion to the video data for obtaining the local video to be played
It states web browser and supports the video data played;The decoder module, for calling embedded decoder to by video lattice
The video data obtained after formula conversion is decoded.The present embodiment enables web browser to support the view of more multi-format
Frequency plays.
The embodiment of the present invention also provides a kind of electronic equipment, and the electronic equipment includes dress described in aforementioned any embodiment
It sets.
Fig. 5 is the structural schematic diagram of electronic equipment one embodiment of the present invention, be may be implemented shown in Fig. 1 or Fig. 2 of the present invention
The process of embodiment, as shown in figure 5, above-mentioned electronic equipment may include: shell 41, processor 42, memory 43, circuit board 44
With power circuit 45, wherein circuit board 44 is placed in the space interior that shell 41 surrounds, and processor 42 and the setting of memory 43 exist
On circuit board 44;Power circuit 45, for each circuit or the device power supply for above-mentioned electronic equipment;Memory 43 is for storing
Executable program code;Processor 42 is run and executable journey by reading the executable program code stored in memory 43
The corresponding program of sequence code, for executing the method for playing video using web browser described in aforementioned any embodiment.
The electronic equipment exists in a variety of forms, including but not limited to:
(1) mobile communication equipment: the characteristics of this kind of equipment is that have mobile communication function, and to provide speech, data
Communication is main target.This Terminal Type includes: smart phone (such as iPhone), multimedia handset, functional mobile phone and low
Hold mobile phone etc..
(2) super mobile personal computer equipment: this kind of equipment belongs to the scope of personal computer, there is calculating and processing function
Can, generally also have mobile Internet access characteristic.This Terminal Type includes: PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device: this kind of equipment can show and play multimedia content.Such equipment include: audio,
Video playback module (such as iPod), handheld device, e-book and intelligent toy and portable car-mounted navigation equipment.
(4) server: providing the equipment of the service of calculating, and the composition of server includes that processor, hard disk, memory, system are total
Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, in processing energy
Power, stability, reliability, safety, scalability, manageability etc. are more demanding.
(5) other electronic equipments with data interaction function.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
For convenience of description, description apparatus above is to be divided into various units/modules with function to describe respectively.Certainly, exist
Implement to realize each unit/module function in the same or multiple software and or hardware when the present invention.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by those familiar with the art, all answers
It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.
Claims (17)
1. a kind of method for playing video using web browser characterized by comprising
Displayed web page browser interface;Video module entrance, video screen module are provided on the web browser interface of displaying
Block entrance is shown on web browser interface in a manner of text or in the way of icon;There are many web browser is embedded
Different video playback modules, every kind of video playback module support the video playing of different-format respectively;
Receive the selection operation to the video module entrance;
Local media source library is scanned, obtains the video information of local video, and the video information that will acquire is added to
In local video list;
The local video list is shown in web browser;
Receive the selection operation to the local video to be played in the local video list;
According to the selection operation to the local video to be played, the video data for the local video to be played is obtained;
Embedded decoder is called to be decoded the video data of the local video got, and by decoded video
Data are sent to embedded corresponding video playback module according to different video formats;The video playback module is according to institute
Decoded video data is stated, the local video is played out in the web browser;
Wherein, the local media source library of the scanning, obtains the video information of local video, and the video letter that will acquire
Breath is added in local video list, comprising: one thread of creation is obtained by the media source library of the thread scans local
The video information of local video, and the video information that will acquire is added in local video list;
The local media source library of the scanning, obtains the video information of local video, and the video information that will acquire adds
It is added in local video list, comprising: according to the white list pre-established, pass through the media resource of the thread scans local
Library obtains the web browser and supports the video information of the local video played, and the video information addition that will acquire
Into local video list.
2. the method according to claim 1 for playing video using web browser, which is characterized in that the method is suitable
For being equipped with the mobile terminal of Android operation system;
Before the local media source library of the scanning, the video information for obtaining local video, the method, further includes:
Obtain the permission that media source library is accessed from the mobile terminal.
3. the method according to claim 1 for playing video using web browser, which is characterized in that receiving to described
After the selection operation of video module entrance, the method, further includes: show that local video plays entrance;
Before showing the local video list, the method, further includes: receive and the local video of displaying is played
The selection operation of entrance.
4. the method according to any one of claims 1 to 3 for playing video using web browser, which is characterized in that institute
State the video name in local video list comprising local video;Video name in the list of videos and corresponding video
Storing path it is associated;
When being played out in the web browser to the local video, the method, further includes:
Obtain the first frame image information of other videos in the local video list, except currently playing video;
The first frame image information for the other videos that will acquire, add in the local video list and with corresponding video name
It is corresponding.
5. the method according to any one of claims 1 to 3 for playing video using web browser, which is characterized in that
Under played in full screen state, the clicking operation to video switching push button is received, shows the local video list.
6. the method according to claim 1 for playing video using web browser, which is characterized in that
Before calling embedded decoder to be decoded the video data of the local video, the method also includes:
Video format conversion is carried out to the video data for obtaining the local video to be played, the web browser is obtained and supports
The video data of broadcasting;
It is described that embedded decoder is called to be decoded the video data of the local video, comprising: to call embedded decoding
Device is decoded the video data obtained after video format is converted.
7. the method according to any one of claims 1 to 3 for playing video using web browser, which is characterized in that institute
State displayed web page browser interface, comprising:
Open an application program;
The application call is embedded in the web browser in the application program, in the display interface of the application program
Interior displayed web page browser interface.
8. the method according to any one of claims 1 to 3 for playing video using web browser, which is characterized in that institute
Stating embedded video playback module is the web player for supporting wmv, mpg, avi, flv, f4v, mp4, swf and mov format.
9. a kind of device for playing video characterized by comprising
Showing interface module is used for displayed web page browser interface;View is provided on the web browser interface of displaying
Frequency module entrance, video module entrance are shown on web browser interface in a manner of text or in the way of icon;The net
Page browsing device is embedded there are many different video playback modules, and every kind of video playback module supports the video of different-format to broadcast respectively
It puts;
First receiving module, for receiving the selection operation to the video module entrance;
Scan module, for scanning local media source library, the view that obtains the video information of local video, and will acquire
Frequency information is added in local video list;
List display module, for showing the local video list in web browser;
Second receiving module, for receiving the selection operation to the local video to be played in the local video list;
Video data obtains module, for obtaining the sheet to be played according to the selection operation to the local video to be played
The video data of ground video;
Decoder module, for calling embedded decoder to be decoded the video data of the local video got, and
Decoded video data is sent to embedded corresponding video playback module according to different video formats;
Video playback module, for locally being regarded to described in the web browser according to the decoded video data
Frequency plays out;
Wherein, the scan module includes:
Thread creation submodule, for creating a thread;
It scans submodule and obtains the video information of local video for the media source library by the thread scans local;
Submodule is added, the video information for will acquire is added in local video list;
The scanning submodule, for according to the white list that pre-establishes, by the media source library of the thread scans local,
The video information that the web browser supports the local video played is obtained, and the video information that will acquire is added to this
In ground list of videos.
10. the device according to claim 9 for playing video, which is characterized in that the device is suitable for being equipped with
The mobile terminal of tall and erect operating system;
The device of the broadcasting video, further includes: authority acquiring module, for the media local in scan module scanning
Resources bank before the video information for obtaining local video, obtains the power that media source library information is obtained from the mobile terminal
Limit.
11. the device according to claim 9 for playing video, which is characterized in that the device, further includes:
Local video plays entrance display module, for receiving the choosing to the video module entrance in first receiving module
After selecting operation, show that local video plays entrance;
Third receiving module, for receiving to displaying before the list display module shows the local video list
The local video plays the selection operation of entrance.
12. according to the described in any item devices for playing video of claim 9 to 11, which is characterized in that
It include the video name of local video in the local video list;Video name in the list of videos with it is corresponding
Video storing path it is associated;
The device, further includes:
Frame picture obtains module, broadcasts in the web browser to the local video for the video playback module
When putting, the first frame image information of other videos in the local video list, except currently playing video is obtained;
Frame picture adding module adds for the frame picture to be obtained to the first frame image information for other videos that module obtains
Add in the local video list and corresponding with corresponding video name.
13. according to the described in any item devices for playing video of claim 9 to 11, which is characterized in that further include:
Video frequency switching module shows described for receiving the clicking operation to video switching push button under played in full screen state
Ground list of videos.
14. the device according to claim 9 for playing video, which is characterized in that further include:
Format converting module is obtained for carrying out video format conversion to the video data for obtaining the local video to be played
The web browser supports the video data played;
The decoder module, for call embedded decoder to the video data obtained after video format is converted into
Row decoding.
15. according to the described in any item devices for playing video of claim 9 to 11, which is characterized in that the showing interface mould
Block, the calling of the application program for receiving an opening, displayed web page browser circle in the display interface of the application program
Face.
16. according to the described in any item devices for playing video of claim 9 to 11, which is characterized in that the embedded video
Playing module is the web player for supporting wmv, mpg, avi, flv, f4v, mp4, swf and mov format.
17. a kind of electronic equipment, which is characterized in that the electronic equipment includes: shell, processor, memory, circuit board and electricity
Source circuit, wherein circuit board is placed in the space interior that shell surrounds, and processor and memory setting are on circuit boards;Power supply
Circuit, for each circuit or the device power supply for above-mentioned electronic equipment;Memory is for storing executable program code;Processing
Device runs program corresponding with executable program code by reading the executable program code stored in memory, for holding
The described in any item methods for playing video using web browser of row preceding claims 1-8.
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 CN105611379A (en) | 2016-05-25 |
CN105611379B true 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) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106095598B (en) * | 2016-05-31 | 2021-04-06 | 腾讯科技(深圳)有限公司 | Data processing method and client |
CN106254961B (en) * | 2016-07-27 | 2019-09-17 | 青岛海信电器股份有限公司 | Video broadcasting method and TV in TV |
KR102130429B1 (en) * | 2016-11-07 | 2020-07-07 | 한화테크윈 주식회사 | Method and device for decoding multimedia file |
CN107995519B (en) * | 2017-11-30 | 2020-11-03 | 广州酷狗计算机科技有限公司 | Method, device and storage medium for playing multimedia file |
CN109547838B (en) * | 2018-12-06 | 2021-06-01 | 青岛海信传媒网络技术有限公司 | Video window processing method and device |
CN109714628B (en) * | 2018-12-29 | 2021-08-03 | 广州方硅信息技术有限公司 | Method, device, equipment, storage medium and system for playing audio and video |
CN112804543B (en) * | 2020-12-31 | 2023-05-23 | 武汉兴图新科电子股份有限公司 | Terminal and method for requesting video and audio by browser based on cloud video fusion platform |
Citations (3)
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090248794A1 (en) * | 2008-03-26 | 2009-10-01 | Time Warner Cable Inc | System and method for content sharing |
-
2016
- 2016-03-31 CN CN201610196088.8A patent/CN105611379B/en active Active
Patent Citations (3)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN105611379A (en) | 2016-05-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105611379B (en) | Method and device for playing video by using web browser and electronic equipment | |
CN105657465B (en) | Multimedia device and its control method | |
CN104869452B (en) | Digital device and its method for handling screen protection program | |
KR101629588B1 (en) | Real-time mapping and navigation of multiple media types through a metadata-based infrastructure | |
CN103814579B (en) | Video display devices, terminal installation and its method | |
CN102651731A (en) | Video display method and video display device | |
CN103686200A (en) | Intelligent television video resource searching method and system | |
CN106059904B (en) | Method and system for scoring live broadcast songs based on instant messaging software | |
CN103546774A (en) | Method and system for realizing seamless access to media file | |
CN103858438A (en) | Systems and methods for presenting home screen shortcuts | |
CN102572573A (en) | Method for pushing information according to played content | |
CN102710992A (en) | Method, device and system for displaying interaction messages | |
CN110149539A (en) | Method for broadcasting multimedia file, device, electronic equipment and storage medium | |
KR101991188B1 (en) | Promotion information processing method, device, and apparatus, and non-volatile computer storage medium | |
CN104010206B (en) | Based on the method and system of the virtual reality video playback in geographical position | |
CN105744348A (en) | Method and device for playing video by using web browser and electronic equipment | |
CN103796072A (en) | Control end, equipment end, server and system for digital television channel classification display | |
CN110072145A (en) | Information broadcasting method, device and terminal device for terminal device | |
CN104038774B (en) | Generate the method and device of ring signal file | |
CN103702222A (en) | Interactive information generation method and video file playing method for mobile terminal | |
CN105376588A (en) | Video live broadcast method and device and electronic equipment | |
CN104918071A (en) | Video playing method, device and terminal equipment | |
CN106375383A (en) | Multimedia recommendation method, apparatus and system | |
CN105100833A (en) | Subtitle loading method and device for online playing | |
CN102542062B (en) | Method and device for loading videos from webpage |
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 |