CN110248248A - A kind of video web page playback method and system - Google Patents
A kind of video web page playback method and system Download PDFInfo
- Publication number
- CN110248248A CN110248248A CN201910484968.9A CN201910484968A CN110248248A CN 110248248 A CN110248248 A CN 110248248A CN 201910484968 A CN201910484968 A CN 201910484968A CN 110248248 A CN110248248 A CN 110248248A
- Authority
- CN
- China
- Prior art keywords
- video
- terminal device
- mode
- html5
- module
- 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
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/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/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
-
- 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/478—Supplemental services, e.g. displaying phone caller identification, shopping application
- H04N21/4782—Web browsing, e.g. WebTV
Abstract
The invention discloses a kind of video web page playback method and system, video web page playback method includes: step A, the video related information of video to be played is received on web application interface, video related information is for identifying source video sequence;Step B obtains terminal device environmental information, obtains the play mode that terminal device is supported according to terminal device environmental information;Step C selects corresponding playing module according to the play mode that the terminal device confirmed in step B is supported;Step D, according to video related information foradownloaded video;When video download is completed, video is played on web application interface using the playing module that step C is selected.The present invention is adapted to multiple terminal facility environment using a set of web player, by obtaining current terminal device environment, according to the suitable playing module of terminal device environmental selection, automatically switch playing module on web application interface and is downloaded and plays video, simplify player exploitation iteration work, reduces test maintaining cost.
Description
Technical field
The invention belongs to Terminal Design technical field, in particular to a kind of video web page playback method and system.
Background technique
With the development of information technology, more and more users watch video using webpage.When terminal is in network environment
When middle, such as in video website, terminal can play out video, for user's viewing.Frequently with Flash in conventional web sites
Play-back technology plays out.Universal with HTML5 standard also has website to play out using HTML5 standard.However, terminal network
Page is not quite similar to the support situation of two kinds of playing standards.
Under current art background, need that suitable play-back technology is selected to realize that video is broadcast according to the characteristics of terminal device
It puts.However, this needs to make the two different form of player device of Flash and HTML5.In the process of frequent technology iteration
In, it needs to safeguard and develop simultaneously two sets of player devices, just can guarantee consistent user's operation experience.In player iteration frequency
In the case where numerous, exploitation operates not easy enough easy, the high labor cost of test maintaining.
Summary of the invention
It is an object of the present invention in view of the above shortcomings of the prior art, a kind of video web page playback method is provided and is
System is adapted to multiple terminal facility environment using a set of web player, by obtaining current terminal device environment, according to terminal
Facility environment selects suitable playing module, automatically switches playing module on web application interface and is downloaded and plays view
Frequently, simplify player exploitation iteration work, reduce test maintaining cost.
In order to solve the above technical problems, the technical scheme adopted by the invention is that:
A kind of video web page playback method, its main feature is that the following steps are included:
Step A receives the video related information of video to be played on web application interface, and the video related information is for marking
Know source video sequence;
Step B obtains terminal device environmental information, obtains the broadcasting mould that terminal device is supported according to terminal device environmental information
Formula;
Step C selects corresponding playing module according to the play mode that the terminal device confirmed in step B is supported;
Step D, according to the video related information foradownloaded video;When the video download is completed, broadcasting for step C selection is utilized
Amplification module plays the video on the web application interface.
As a preferred method, in the step C, the logic packet of corresponding playing module is selected according to play mode
It includes:
When the play mode that terminal device is supported is Flash standard mode, Flash playing module is selected;
When the play mode that terminal device is supported is HTML5 mode standard, HTML5 playing module is selected;
When the play mode that terminal device is supported includes Flash standard mode and HTML5 mode standard, HTML5 is selected to play
Module.
Further, when the play mode that terminal device is supported includes Flash standard mode and HTML5 mode standard,
Automatic preferential selection HTML5 playing module;User carries out active switching between Flash standard mode and HTML5 mode standard
Selection.
Based on the same inventive concept, the present invention also provides a kind of video web page play systems, its main feature is that including:
Receiving module: for receiving the video related information of video to be played, the video correlation letter on web application interface
Breath is for identifying source video sequence;
Obtain module: for obtaining terminal device environmental information, and set according to terminal when having video on web application interface
Standby environmental information obtains the play mode that terminal device is supported;
Selecting module: the play mode for being supported according to terminal device selects corresponding playing module;
Download module: for downloading video data from application server according to the video related information;
Playing module: for playing the video on the web application interface when the video download is completed.
The selection logic of the selecting module includes: as a preferred method,
When the play mode that terminal device is supported is Flash standard mode, Flash playing module is selected;
When the play mode that terminal device is supported is HTML5 mode standard, HTML5 playing module is selected;
When the play mode that terminal device is supported includes Flash standard mode and HTML5 mode standard, HTML5 is selected to play
Module.
Further, further include interactive module: the play mode for supporting in terminal device includes Flash standard mode
When with HTML5 mode standard, realize that active of the user between Flash standard mode and HTML5 mode standard switches selection.
Compared with prior art, the present invention is adapted to multiple terminal facility environment using a set of web player, passes through acquisition
Current terminal device environment is cut on web application interface automatically according to the suitable playing module of terminal device environmental selection
It changes playing module and is downloaded and plays video, simplify player exploitation iteration work, reduce test maintaining cost.
Detailed description of the invention
Fig. 1 is one embodiment flow chart of the method for the present invention.
Fig. 2 is one example structure schematic diagram of present system.
Wherein, 1 is receiving module, and 2 is obtain module, and 3 be selecting module, and 4 be playing module, and 401 play mould for first
Block, 402 be the second playing module, and 5 be download module, and 6 be interactive module.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
For the ease of understanding of the invention, firstly, being solved to some nouns and concept involved in the embodiment of the present invention
It releases:
Video mentioned in the present invention refers to network video content and file.The video file can using Flash technology or
Person's HTML5 technology plays out in terminal device watches for user.
Web application refers to the application with certain function, such as video-on-demand applications, and application server refers to offer
The server or server cluster of the service.Before web application plays video, need to also download from application server should
Video.
In the present embodiment, the present invention provides a kind of while the Webpage video of Flash standard and HTML5 standard being supported to broadcast
Put method and system.
Fig. 1 is one kind that one embodiment of the invention provides while the Webpage video of Flash and HTML5 standard being supported to broadcast
Put the flow chart of method.The executing subject for the video web page playback method that this example provides is terminal, which can be individual
The portable terminals such as computer, mobile phone, tablet computer.Referring to Fig. 1, this method process includes:
Step A receives the video related information of video to be played on web application interface, and the video related information is for marking
Know source video sequence.
In embodiments of the present invention, web application interface contains video, and terminal will also receive video related information.Its
In, video related information is for identifying source video sequence, i.e. video saves the downloading such as address information needed, so as under subsequent determination
When load, according to the source video sequence information, the video is downloaded from web application server.
Step B obtains terminal device environmental information, obtains the broadcasting that terminal device is supported according to terminal device environmental information
Mode.
In embodiments of the present invention, terminal device environmental information includes the device model of terminal, system version, carrying webpage
Software version, play mode of software support of application etc..Playing environment includes the first playing environment, the second playing environment and the
Three playing environments.Wherein, the first playing environment can support Flash standard to play and two kinds of play mode of HTML5 standard simultaneously.
Second playing environment can only support HTML5 normal play mode.Third playing environment can only support Flash standard to play mould
Formula.
The process of " judging the play mode that equipment is supported " specifically includes: the software for carrying web application can provide correlation and look into
Interface is ask, so as to know the play mode currently supported according to the interface.
Step C selects corresponding playing module 4 according to the play mode that the terminal device confirmed in step B is supported.
The logic for selecting corresponding playing module 4 according to play mode includes:
When playing environment is the first video playing environment, i.e., when the play mode that terminal device is supported includes Flash standard mould
When formula and HTML5 mode standard, under the premise of without the selection of any play mode, automatic preferential selection HTML5 playing module;
And manual switching play mode function is provided, user can carry out actively between Flash standard mode and HTML5 mode standard
Switching selection.
In specific implement, since facility environment may be the second video playing environment and third video playing environment,
Second playing environment can only support HTML5 normal play mode.Third playing environment can only support Flash standard to play mould
Formula.Therefore, optionally, based on embodiment described in above-mentioned Fig. 1, the logic of corresponding playing module 4 is selected also according to play mode
Include:
When playing environment is the second video playing environment, i.e., when the play mode that terminal device is supported is HTML5 mode standard
When, select HTML5 playing module;
When playing environment is third video playing environment, i.e., when the play mode that terminal device is supported is Flash standard mode
When, select Flash playing module.
Step D, according to the video related information foradownloaded video;When the video download is completed, selected using step C
Playing module 4 play the video on the web application interface.
In method provided in an embodiment of the present invention, by obtaining current video playing environment, the first video playing environment
In automatically download and play video on web application interface, implementation method is more flexible.
Above-mentioned embodiment shown in FIG. 1 is that the side of video is played according to terminal device environment and different video types
Method, this method can be realized according to the default setting of server.In practical applications, user setting option can also be provided,
The method that downloading is set by user according to itself preference and demand and plays video.For example, can provide " preferential to use
The options for user selections such as Flash broadcasting " " preferentially being played using HTML5 " " inquiring me every time ".At the same time it can also for difference
Device type, provide the option how handled under different playing environments, the embodiment of the present invention is not specifically limited in this embodiment.
All the above alternatives can form alternative embodiment of the invention using any combination, different herein
One repeats.
Fig. 2 is a kind of structural schematic diagram of video web page play system provided in an embodiment of the present invention, and the system is for holding
The video web page playback method that the above-mentioned embodiment shown in FIG. 1 of row provides.Referring to fig. 2, which includes:
Receiving module 1: for receiving the video related information of video to be played, the video correlation letter on web application interface
Breath is for identifying source video sequence.
It obtains module 2: being used for when having video on web application interface, acquisition terminal device environmental information, and according to
Terminal device environmental information obtains the play mode that terminal device is supported.
Selecting module 3: the play mode for being supported according to terminal device selects corresponding suitable playing module 4.Institute
State selecting module 3 select logic include: when terminal device support play mode be Flash standard mode when, selection Flash
Playing module;When the play mode that terminal device is supported is HTML5 mode standard, HTML5 playing module is selected;When terminal is set
When the standby play mode supported includes Flash standard mode and HTML5 mode standard, HTML5 playing module is selected.
Download module 5: for downloading video data from application server according to the video related information.
Interactive module 6: it for realizing the interactive controlling of system and user, shows and plays relevant information, when terminal device branch
When the play mode held includes Flash standard mode and HTML5 mode standard, realize user in Flash standard mode and HTML5
Active between mode standard switches selection.
Playing module 4: for playing the video on the web application interface when the video download is completed.
Wherein, playing module 4 includes the first playing module 401 and the second playing module 402, and the first playing module 401 is used for when described
When terminal device Environmental Support FLASH play mode, video decoding and broadcasting are carried out using Flash standard;Second playing module
402 for carrying out video decoding and broadcasting using HTML5 standard when the terminal device Environmental Support HTML5 play mode.
System provided in an embodiment of the present invention, the play mode that can be supported according to terminal device select suitable play
For mode into downloading on web application interface and playing video, implementation method is more flexible.
It should be understood that the system of video playing provided by the above embodiment is when playing video, only with above-mentioned each function
Can module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different functions
Module is completed, i.e., the internal structure of system is divided to different functional modules, all or part of function described above is completed
Energy.In addition, the system of video playing provided by the above embodiment and the embodiment of the method for video playing belong to same design, tool
Body realizes that process is detailed in embodiment of the method, and which is not described herein again.
Those of ordinary skill in the art will appreciate that realizing all or part of the steps of above-described embodiment, hardware can be passed through
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can make read-only memory, disk or CD etc..
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than limitation, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form, within these are all belonged to the scope of protection of the present invention.
Claims (6)
1. a kind of video web page playback method, which comprises the following steps:
Step A receives the video related information of video to be played on web application interface, and the video related information is for marking
Know source video sequence;
Step B obtains terminal device environmental information, obtains the broadcasting mould that terminal device is supported according to terminal device environmental information
Formula;
Step C selects corresponding playing module (4) according to the play mode that the terminal device confirmed in step B is supported;
Step D, according to the video related information foradownloaded video;When the video download is completed, broadcasting for step C selection is utilized
Amplification module (4) plays the video on the web application interface.
2. video web page playback method as described in claim 1, which is characterized in that in the step C, selected according to play mode
The logic for selecting corresponding playing module (4) includes:
When the play mode that terminal device is supported is Flash standard mode, Flash playing module is selected;
When the play mode that terminal device is supported is HTML5 mode standard, HTML5 playing module is selected;
When the play mode that terminal device is supported includes Flash standard mode and HTML5 mode standard, HTML5 is selected to play
Module.
3. video web page playback method as claimed in claim 2, which is characterized in that when the play mode packet that terminal device is supported
When including Flash standard mode and HTML5 mode standard, automatic preferential selection HTML5 playing module;User is in Flash standard mould
Actively switching selection is carried out between formula and HTML5 mode standard.
4. a kind of video web page play system characterized by comprising
Receiving module (1): for receiving the video related information of video to be played on web application interface, the video is related
Information is for identifying source video sequence;
It obtains module (2): for obtaining terminal device environmental information, and according to end when having video on web application interface
End equipment environmental information obtains the play mode that terminal device is supported;
Selecting module (3): the play mode for being supported according to terminal device selects corresponding playing module (4);
Download module (5): for downloading video data from application server according to the video related information;
Playing module (4): for playing the video on the web application interface when the video download is completed.
5. video web page play system as claimed in claim 4, which is characterized in that the selection logic of the selecting module (3)
Include:
When the play mode that terminal device is supported is Flash standard mode, Flash playing module is selected;
When the play mode that terminal device is supported is HTML5 mode standard, HTML5 playing module is selected;
When the play mode that terminal device is supported includes Flash standard mode and HTML5 mode standard, HTML5 is selected to play
Module.
6. video web page play system as claimed in claim 5, which is characterized in that further include:
Interactive module (6): the play mode for supporting in terminal device includes Flash standard mode and HTML5 mode standard
When, realize that active of the user between Flash standard mode and HTML5 mode standard switches selection.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910484968.9A CN110248248A (en) | 2019-06-05 | 2019-06-05 | A kind of video web page playback method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910484968.9A CN110248248A (en) | 2019-06-05 | 2019-06-05 | A kind of video web page playback method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110248248A true CN110248248A (en) | 2019-09-17 |
Family
ID=67886068
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910484968.9A Pending CN110248248A (en) | 2019-06-05 | 2019-06-05 | A kind of video web page playback method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110248248A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130226979A1 (en) * | 2011-10-17 | 2013-08-29 | Brainshark, Inc. | Systems and methods for multi-device rendering of multimedia presentations |
CN103327392A (en) * | 2013-06-03 | 2013-09-25 | 贝壳网际(北京)安全技术有限公司 | Video playing processing method and system |
CN103533428A (en) * | 2012-10-31 | 2014-01-22 | Tcl集团股份有限公司 | Method for releasing intelligent terminal webpage video to television for broadcasting and intelligent terminal |
CN103618961A (en) * | 2013-11-28 | 2014-03-05 | 乐视网信息技术(北京)股份有限公司 | Method, system and browser for displaying video title |
CN104200405A (en) * | 2014-09-03 | 2014-12-10 | 四川上略互动网络技术有限公司 | Scenic region intelligent digital panorama system and client side and server side response method thereof |
CN104954867A (en) * | 2015-06-26 | 2015-09-30 | 努比亚技术有限公司 | Media playing method and device |
CN105959821A (en) * | 2016-05-30 | 2016-09-21 | 乐视控股(北京)有限公司 | Video play method and device |
-
2019
- 2019-06-05 CN CN201910484968.9A patent/CN110248248A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130226979A1 (en) * | 2011-10-17 | 2013-08-29 | Brainshark, Inc. | Systems and methods for multi-device rendering of multimedia presentations |
CN103533428A (en) * | 2012-10-31 | 2014-01-22 | Tcl集团股份有限公司 | Method for releasing intelligent terminal webpage video to television for broadcasting and intelligent terminal |
CN103327392A (en) * | 2013-06-03 | 2013-09-25 | 贝壳网际(北京)安全技术有限公司 | Video playing processing method and system |
CN103618961A (en) * | 2013-11-28 | 2014-03-05 | 乐视网信息技术(北京)股份有限公司 | Method, system and browser for displaying video title |
CN104200405A (en) * | 2014-09-03 | 2014-12-10 | 四川上略互动网络技术有限公司 | Scenic region intelligent digital panorama system and client side and server side response method thereof |
CN104954867A (en) * | 2015-06-26 | 2015-09-30 | 努比亚技术有限公司 | Media playing method and device |
CN105959821A (en) * | 2016-05-30 | 2016-09-21 | 乐视控股(北京)有限公司 | Video play method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103905474B (en) | A kind of information sharing method, terminal, server and system | |
EP1324605B1 (en) | Information processing device | |
RU2388075C2 (en) | Updating portable communication device using multimedia data files | |
CN101263675A (en) | Media player with user-operable key for automatic selection and recording to an associated playlist | |
CN104183250A (en) | Method and system for synchronizing function of music player of intelligent device and Bluetooth headset | |
CN105554550A (en) | Video playing method and device | |
CN102710992A (en) | Method, device and system for displaying interaction messages | |
CN102055845A (en) | Mobile communication terminal and picture switching method of music player thereof | |
CN103338139A (en) | Multi-screen interaction method and device, and terminal equipment | |
CN104901820A (en) | System, device and method for speaking sequence control | |
KR100903070B1 (en) | Apparatus and method for displaying data | |
WO2020207373A1 (en) | Method, device, terminal, and system for playing back multimedia resource | |
CN104918069A (en) | Play scene reduction method, system, playing terminal and control terminal | |
CN103605429A (en) | Processing method for response key operation and mobile terminal | |
CN106470146A (en) | The method and apparatus that instant messaging applicating Chinese is originally converted to voice | |
CN105872758A (en) | Intelligent television channel operation and play method and corresponding device | |
CN106257928A (en) | Audio file acquisition methods, update notification sending method, equipment and system | |
CN102868742A (en) | Method for automatically publishing information and mobile terminal | |
CN109473109A (en) | Data processing method, device and computer readable storage medium | |
CN104376859B (en) | The method and online music player of a kind of playlist adjust automatically | |
CN106815501A (en) | The application management method and device of mobile terminal | |
CN105391563A (en) | Information notifying method and apparatus | |
CN109995743A (en) | A kind of processing method and terminal of multimedia file | |
CN103369007A (en) | Method, system and mobile terminal for obtaining associated music information | |
CN105120392B (en) | A kind of creation method and mobile terminal of speaker grouping |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190917 |