CN103338384A - Video play method and video play device - Google Patents

Video play method and video play device Download PDF

Info

Publication number
CN103338384A
CN103338384A CN2013102113758A CN201310211375A CN103338384A CN 103338384 A CN103338384 A CN 103338384A CN 2013102113758 A CN2013102113758 A CN 2013102113758A CN 201310211375 A CN201310211375 A CN 201310211375A CN 103338384 A CN103338384 A CN 103338384A
Authority
CN
China
Prior art keywords
video data
video
server
address
browser
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
CN2013102113758A
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.)
Ucweb Inc
Original Assignee
Ucweb Inc
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 Ucweb Inc filed Critical Ucweb Inc
Priority to CN2013102113758A priority Critical patent/CN103338384A/en
Publication of CN103338384A publication Critical patent/CN103338384A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a video play method and a video play device. The video play method comprises steps that: after page loading of a browser of a mobile terminal, whether a first video data in a Flash media format exists is searched to find out; when the first video data exists, the browser requests a server for converting the first video data into a second video data, the second video data has a video format supported by an inner core of a browser system, the second video is converted through the server, an address of the converted second video data is acquired; and the browser realizes injection of video labels and play control logic codes supported by the inner core of the browser system into a page, the second video data is loaded through the address of the second video data, and the second video data is played through the play control logic codes. According to the video play method, a Flash video can be played during use of the inner core of the browser system which does not support a Flash video.

Description

A kind of video broadcasting method and device
Technical field
The present invention relates to the mobile communication technology field, particularly relate to a kind of video broadcasting method and device.
Background technology
Along with popularizing of smart mobile phone and flat-panel devices, people are more and more stronger for utilizing browser to carry out the demand that Online Video plays.
Yet, the intelligent operating system of current popular is relatively sealing usually, for example: for the broadcast of Flash video, the existing windows phone that comprises, windows8RT, iPhone and iPad etc. have refused the use of Adobe Flash player, make the main flow video website of domestic a lot of application Flash videos can not carry out video playback in these equipment.
At present, some browsers on the market are at this situation of Flash video playback, have done some innovations and have attempted, and own kernel realizes but all be based on.For example: the browser that has is exactly by middleware server, and the flash resource the video website of needs visit converts the page from protocols having to, plays by the kernel analysis protocol then.
But such scheme is to realize using own kernel, has limited the use scene to a certain extent.This be because, considerable operating system is incompatible for third party's kernel, for example: the operating system of winphone, windows8RT and iPhone is not all supported installing and using of third party's kernel.
Summary of the invention
A kind of video broadcasting method and device are provided in the embodiment of the invention, have not supported under the situation of browser kernel of Flash to be implemented in use, also can the playing flash video.
In order to solve the problems of the technologies described above, the embodiment of the invention discloses following technical scheme:
A kind of video broadcasting method comprises:
The browser of portable terminal is searched first the video data whether described page exists the Flash media formats after the page loads;
When having described first video data, described browser is converted to second video data to the server request with described first video data, described second video data has the video format that described browser kernel is supported, and obtains the address of described second video data after described server conversion;
Described browser the injected system kernel is supported in the described page video tab and Play Control logical code, and load described second video data according to the address of described second video data, play described second video data according to described Play Control logical code.
Further, describedly search first the video data whether described page exists the Flash media formats, comprising:
Inject the JavaScript script at the described page, carry out described script to search each element in the HTML dom tree, the Flash video elementary label by described element carries identifies described first video data.
Further, described browser is converted to second video data to the server request with described first video data, described second video data has the video format that described browser kernel is supported, and obtains the address of described second video data after described server conversion, comprising:
Described browser sends first request message to first server that presets, described first request message is used for request and searches the address of described first video data and be converted to second video data, obtain described first video data by described first server according to the address of described first video data, described first video data is converted to described second video data;
Described browser receives the address of described second video data that described first server returns.
Further, described browser is converted to second video data to the server request with described first video data, described second video data has the video format that described browser kernel is supported, and obtains the address of described second video data after described server conversion, comprising:
Described browser sends first request message to the second server that presets, described first request message is used for request and searches the address of described first video data and be converted to second video data, by described second server described first request message is forwarded to first server, the address of searching described first video data according to described first request message by described first server, obtain described first video data by described first server according to the address of described first video data, described first video data is converted to described second video data, and the address of described second video data is back to described second server;
Described browser receives the address of described second video data that described second server returns.
Further, described browser the injected system kernel is supported in the described page video tab and Play Control logical code comprise:
Described browser injects the HTML5 video tab in the described page, be used for replacing described Flash video elementary label, and the Play Control logical code of injection JavaScript and CSS form is play for carrying out.
A kind of video play device comprises:
Search module, be used for after the page loads, searching first the video data whether described page exists the Flash media formats;
The request modular converter, be used for when having described first video data, to the server request described first video data is converted to second video data, described second video data has the video format that described browser kernel is supported, and obtains the address of described second video data after described server conversion;
Playing module, be used for to video tab and the Play Control logical code of described page injected system kernel support, and load described second video data according to the address of described second video data, play described second video data according to described Play Control logical code.
Further, the described module of searching comprises:
Script injects the unit, is used for injecting the JavaScript script at the described page;
Element is searched the unit, is used for carrying out described script to search each element in the HTML dom tree, and the Flash video elementary label by element carries identifies described first video data.
Further, the described request modular converter comprises:
First request unit, be used for sending first request message to first server that presets, described first request message is used for request and searches the address of described first video data and be converted to second video data, obtain described first video data by described first server according to the address of described first video data, described first video data is converted to described second video data;
First receiving element be used for to receive the address of described second video data that described first server returns.
Further, the described request modular converter comprises:
Second request unit, be used for sending first request message to the second server that presets, described first request message is used for request and searches the address of described first video data and be converted to second video data, by described second server described first request message is forwarded to first server, the address of searching described first video data according to described first request message by described first server, obtain described first video data by described first server according to the address of described first video data, described first video data is converted to described second video data, and the address of described second video data is back to described second server;
Second receiving element be used for to receive the address of described second video data that described second server returns.
Further, described playing module comprises:
First injects the unit, is used for being used for replacing described Flash video elementary label to the HTML5 video tab of described page injected system kernel support;
Second injects the unit, is used for being used for execution to the Play Control logical code of described page injection JavaScript and CSS form and plays;
The playback process unit is used for loading described second video data according to the address of described second video data, plays described second video data according to described Play Control logical code.
In the embodiment of the invention, after the system kernel of not supporting playing flash media formats video data is finished page loading, by searching the video data that whether has the Flash media formats in the current page, if there is the video data of Flash media formats, then request server is second video data with the Flash media format conversion, described second video data has the video format that current system kernel is supported, and the address that obtains described second video data, and then, the injected system kernel is supported in the described page video tab and Play Control logical code, and load described second video data according to the address of second video data that obtains, because after the format transformation, the form of video data has been updated to the form that system kernel is supported, thereby the system kernel of browser can be play this second video data.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart of a kind of video broadcasting method embodiment provided by the invention;
Fig. 2 is a kind of realization flow figure of step 102 among Fig. 1 provided by the invention;
Fig. 3 is the C/S Organization Chart of a kind of server provided by the invention;
Fig. 4 is the another kind of realization flow figure of step 102 among Fig. 1;
Fig. 5 is the C/S Organization Chart of another kind of server provided by the invention;
Fig. 6 is the flow chart of realizing the broadcast of Flash media formats video data by the windows8 system kernel provided by the invention;
Fig. 7 is the structure chart of a kind of video play device embodiment provided by the invention;
Fig. 8 is a kind of implementation structure figure that searches module provided by the invention;
Fig. 9 is a kind of implementation structure figure that asks modular converter provided by the invention;
Figure 10 is the implementation structure figure of another kind of request modular converter provided by the invention.
Embodiment
In order to make those skilled in the art person understand technical scheme in the embodiment of the invention better, and the above-mentioned purpose of the embodiment of the invention, feature and advantage can be become apparent more, below in conjunction with accompanying drawing technical scheme in the embodiment of the invention is described in further detail.
A kind of video broadcasting method and device are provided in the embodiment of the invention, have not supported under the situation of system kernel of Flash to be implemented in use, also can the playing flash video.
Referring to Fig. 1, be the flow process of a video broadcasting method embodiment provided by the invention, specifically can comprise:
The browser of step 101, portable terminal is searched first the video data whether described page exists the Flash media formats after the page loads.
In the embodiment of the invention, the system kernel of terminal is not supported playing flash media formats video data, finishes after the page loads when the browser of portable terminal, just begins to search the video data that whether has the Flash media formats on the page of loading.Here the portable terminal of saying for example can be mobile phone, PAD equipment or other portable equipments etc.
Step 102, when having described first video data, described browser is converted to second video data to the server request with described first video data, described second video data has the video format that described browser kernel is supported, and obtains the address of described second video data after described server conversion.
In this step, the browser kernel of terminal is by searching, when determining to have the video data of Flash media formats, because the browser kernel of terminal is not supported playing flash media formats video data, therefore, if play the video data of this part Flash media formats, just need carry out format conversion to the video data of this part Flash media formats, the video data of described Flash media formats is converted to the video format of current system kernel support.So browser sends the request of data transaction in this step to server.
Need to prove, for convenience, abbreviate the video data of Flash media formats as first video data, the video data that the video data of described Flash media formats is converted to the video format of current system kernel support abbreviates second video data as.
By obtaining the address of described second video data, thereby can load second video data according to the address of second video data, and this second video data is play.
Video tab and Play Control logical code that step 103, described browser injected system kernel in the described page is supported, and load described second video data according to the address of described second video data, play described second video data according to described Play Control logical code.
In this step, video tab and Play Control logical code that browser is supported by injected system kernel in current web page, and load described second video data according to the address of second video data, thereby realize the broadcast of second video data according to described Play Control logical code.
In this step, because after the format transformation, the form of video data is updated to the form that system kernel is supported, and then system kernel can be play described second video data.
In the embodiment of the invention, after the system kernel of not supporting playing flash media formats video data is finished page loading, by searching the video data that whether has the Flash media formats in the current page, if there is the video data of Flash media formats, then request server is second video data with the Flash media format conversion, described second video data has the video format that current system kernel is supported, and the address that obtains described second video data, and then, the injected system kernel is supported in the described page video tab and Play Control logical code, and load described second video data according to the address of second video data that obtains, because after the format transformation, the form of video data has been updated to the form that system kernel is supported, thereby the system kernel of browser can be play this second video data.
Technical solution of the present invention is more suitable for using in the intelligent operating system of comparatively sealing, for example: windows8RT.For windows8RT, Microsoft has limited the exploitation of third party's browser, and its system kernel does not allow to revise user agent (User Agent) parameter, causes most video website all to identify it and is the IE browser of desktop, makes video data represent and all uses the Flash media formats.Therefore, when these carry out the video website of data display with the Flash media formats when visit, can't realize online broadcast.The solution of the present invention, by being the supported video format of system with the Flash media format conversion, and the video tab of injected system kernel support is replaced original Flash video elementary label in the current web page, with the Play Control logical code that injects for the execution video playback, thereby can realize using under the situation of the system kernel of not supporting Flash, also can the playing flash video.
Wherein, in the above-mentioned steps 101, describedly search the implementation whether described page exists first video data of Flash media formats, can comprise:
Inject the JavaScript script at the described page, carry out described script to search HTML DOM(HTML Document Ob ject Model, DOM Document Object Model) each element in the tree, the Flash video elementary label by described element carries identifies described first video data.
Usually, system kernel is supported the WebView control, is example with windows8, and interface is InvokeScript(string, string[]).After the page loads successfully, inject one section JavaScript script by this interface to the WebView control, thereby carry out this JavaScript script by this WebView control, to search each element in the HTML dom tree, search the video data that whether has the Flash media formats.
At present, mainly contain two kinds of implementations at the html web page embedding Flash of standard element:
A kind of implementation is interpolation<embed〉label, the type(type) be appointed as<embed type=" application/x-shockwave-flash "; Another implementation is interpolation<object〉label, class id is appointed as clsid:d27cdb6e-ae6d-11cf-96b8-444553540000.
Therefore, if video data is the Flash media formats, then video data carries above-mentioned any video elementary label usually.By above-mentioned video elementary label, can identify the Flash element.
In a video broadcasting method embodiment provided by the invention, as shown in Figure 2, the implementation of above-mentioned steps 102 can for:
Step 201, described browser send first request message to first server that presets, described first request message is used for request and searches the address of described first video data and be converted to second video data, obtain described first video data by described first server according to the address of described first video data, described first video data is converted to described second video data;
Step 202, described browser receive the address of described second video data that described first server returns.
In above-described embodiment, adopt C/S framework as shown in Figure 3, dispose as resource and smell first server 302 of visiting server, this first server 302 is used for realization to the format conversion of described first video data, is generally the FLVCD server.Terminal 301 sends first request message to first server 302, to ask 302 pairs of first video datas of first server to carry out format conversion, at first, the address that first server 302 need be searched described first video data, obtain the video data of Flash media formats according to the address of described first video data, and then described first video data is converted to second video data, and generate the Streaming Media address of corresponding second video data, be back to terminal 301.
During concrete enforcement, described first server can have only one, and this first server can receive first request message that all terminals send; Also can be, dispose many described first servers, i.e. situation shown in Figure 3, different servers receives first request message that different terminals sends, and wherein, some server can be handled first request message that a plurality of terminals send simultaneously.
In the above-mentioned steps 201, directly communicated with first server by terminal, by described first server of terminal request first video data is carried out format conversion.In this implementation, when the protocol format of first server changes, and terminal still sends a request message with former protocol format because unknown in advance, then can't realize the format conversion to first video data.For fear of this defective, can between terminal and first server, set up second server, carry out buffer memory and the forwarding of request message by second server, and when the protocol format of first server changes, the protocol format of request message is adjusted.
Particularly, in a video broadcasting method embodiment provided by the invention, as shown in Figure 4, the implementation of above-mentioned steps 102 can for:
Step 401, described browser sends first request message to the second server that presets, described first request message is used for request and searches the address of described first video data and be converted to second video data, by described second server described first request message is forwarded to first server, the address of searching described first video data according to described first request message by described first server, obtain described first video data by described first server according to the address of described first video data, described first video data is converted to described second video data, and the address of described second video data is back to described second server;
Step 402, described browser receive the address of described second video data that described second server returns.
In above-described embodiment, adopt C/S framework as shown in Figure 5, smelling first server 302 and the terminal 301 middle second servers of disposing as transfer server 303 of visiting server as resource, terminal 301 sends first request message to second server 303, to ask 302 pairs of first video datas of first server to carry out format conversion, by second server 303 first request message is forwarded to first server 301, at first, the address that first server 302 need be searched described first video data, obtain the video data of Flash media formats according to the address of described first video data, and then described first video data is converted to second video data, and generate the Streaming Media address of corresponding second video data, be back to second server 303, by the forwarding of second server 303, the Streaming Media address of corresponding second video data is back to terminal 301 the most at last.
Like this, by setting up second server, carry out buffer memory and the forwarding of request message by second server, when second server can change at the protocol format of first server so, the protocol format of request message is adjusted.
In addition, in a video broadcasting method embodiment provided by the invention, in the above-mentioned steps 103, browser injects HTML5 video tab and Play Control logical code in the webpage of described address correspondence, and then, address according to described second video data loads second video data, plays described second video data according to the Play Control logical code.
In this implementation, be example with windows8, browser injects HTML5 video tab<video in the webpage of the video data that described Flash media formats is provided〉for replacing original Flash video elementary label, write JavaScript and CSS(Cascading Style Sheets, the CSS list) the Play Control logical code of form is injected into the Play Control logical code in the described page at last to carry out the broadcast of video.
For the ease of the understanding to technical solution of the present invention, below by embodiment, technical solution of the present invention is elaborated.
As shown in Figure 6, for realize the flow process that Flash media formats video data is play by the windows8 system kernel.This flow process specifically may further comprise the steps:
Step 601, finish the loading of certain video website page by the WebView control, carry out representing of this page.
Step 602, inject the JavaScript script to this page, carry out this script by the WebView control, to search each element in the HTML dom tree;
Step 603, by the video elementary label that element carries, determine whether the video data into the Flash media formats, if the video data of Flash media formats then continues execution in step 604; Otherwise, finish current flow process.
Step 604, to the background server request described first video data is converted to second video data, described second video data has the video format that current system kernel is supported, and the address that obtains described second video data, if successfully obtain the address of described second video data, then continue step 605; Otherwise, execution in step 608.
The video format that current system kernel is supported for example is MP4 form or flv form etc., because windows8 does not support that for the streaming media resource of flv form present embodiment illustrates with conversion mp4 form.
In this step, the way of realization of background server such as Fig. 3 and shown in Figure 5 no longer give unnecessary details herein.
Step 605, inject HTML5 video tab and Play Control logical code in the described webpage, and load described second video data according to the address of described second video data.
Step 606, judge whether video data is converted to the MP4 form, if then continue step 607; Otherwise, execution in step 608.
Step 607, broadcast are converted to the video data of MP4 form.
Step 608, injection script is used for the prompting user and opens the browser that current web page gives tacit consent to and carry out video playback in the webpage of described address correspondence.
Corresponding with video broadcasting method embodiment provided by the invention, the present invention also provides a kind of video play device.
As shown in Figure 7, be the embodiment of a kind of video play device provided by the invention, this device specifically can comprise:
Search module 701, be used for after the page loads, searching first the video data whether described page exists the Flash media formats;
Request modular converter 702, be used for when having described first video data, to the server request described first video data is converted to second video data, described second video data has the video format that described browser kernel is supported, and obtains the address of described second video data after described server conversion;
Playing module 703, be used for to video tab and the Play Control logical code of described page injected system kernel support, and load described second video data according to the address of described second video data, play described second video data according to described Play Control logical code.
Among this device embodiment, after the system kernel of not supporting playing flash media formats video data is finished page loading, by searching the video data that whether has the Flash media formats in the current page, if there is the video data of Flash media formats, then request server is second video data with the Flash media format conversion, described second video data has the video format that current system kernel is supported, and the address that obtains described second video data, and then, the injected system kernel is supported in the described page video tab and Play Control logical code, and load described second video data according to the address of second video data that obtains, because after the format transformation, the form of video data has been updated to the form that system kernel is supported, thereby the system kernel of browser can be play this second video data.
Among the embodiment of a kind of video play device as shown in Figure 8, the described module 701 of searching specifically can comprise:
Script injects unit 801, is used for injecting the JavaScript script at the described page;
Element is searched unit 802, is used for carrying out described script to search each element in the HTML dom tree, and the Flash video elementary label by element carries identifies described first video data.
Among the embodiment of a kind of video play device as shown in Figure 9, described request modular converter 702 specifically can comprise:
First request unit 901, be used for sending first request message to first server that presets, described first request message is used for request and searches the address of described first video data and be converted to second video data, obtain described first video data by described first server according to the address of described first video data, described first video data is converted to described second video data;
First receiving element 902 be used for to receive the address of described second video data that described first server returns.
Among the embodiment of another kind of video play device as shown in figure 10, described request modular converter 702 specifically can comprise:
Second request unit 1001, be used for sending first request message to the second server that presets, described first request message is used for request and searches the address of described first video data and be converted to second video data, by described second server described first request message is forwarded to first server, the address of searching described first video data according to described first request message by described first server, obtain described first video data by described first server according to the address of described first video data, described first video data is converted to described second video data, and the address of described second video data is back to described second server;
Second receiving element 1002 be used for to receive the address of described second video data that described second server returns.
In addition, the video tab of the system kernel support that described playing module injects in the described page is specially the HTML5 video tab, and described playing module specifically can comprise: first injects unit, second injects unit and playback process unit (not shown).
First injects the unit, is used for being used for replacing described Flash video elementary label to the HTML5 video tab of described page injected system kernel support;
Second injects the unit, is used for being used for execution to the Play Control logical code of described page injection JavaScript and CSS form and plays;
The playback process unit is used for loading described second video data according to the address of described second video data, plays described second video data according to described Play Control logical code.
Those of ordinary skills can recognize, unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions still are that software mode is carried out with hardware actually, depend on application-specific and the design constraint of technical scheme.The professional and technical personnel can specifically should be used for using distinct methods to realize described function to each, but this realization should not thought and exceeds scope of the present invention.
The those skilled in the art can be well understood to, and is the convenience described and succinct, and the concrete course of work of the system of foregoing description, device and unit can not repeat them here with reference to the corresponding process among the preceding method embodiment.
In several embodiment that the application provides, should be understood that disclosed system, apparatus and method can realize by other mode.For example, device embodiment described above only is schematic, for example, the division of described unit, only be that a kind of logic function is divided, during actual the realization other dividing mode can be arranged, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, the shown or coupling each other discussed or directly to be coupled or to communicate to connect can be by some interfaces, the indirect coupling of device or unit or communicate to connect can be electrically, machinery or other form.
Described unit as separating component explanation can or can not be physically to separate also, and the parts that show as the unit can be or can not be physical locations also, namely can be positioned at a place, perhaps also can be distributed on a plurality of network element.Can select wherein some or all of unit to realize the purpose of present embodiment scheme according to the actual needs.
In addition, each functional unit in each embodiment of the present invention can be integrated in the processing unit, also can be that the independent physics in each unit exists, and also can be integrated in the unit two or more unit.
If described function realizes with the form of SFU software functional unit and during as independently production marketing or use, can be stored in the computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or the part of this technical scheme can embody with the form of software product, this computer software product is stored in the storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) or processor (processor) carry out all or part of step of the described method of each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), various media that can be program code stored such as random access memory (RAM, RanHTML DOM Access Memory), magnetic disc or CD.
The above; only be the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by described protection range with claim.

Claims (10)

1. a video broadcasting method is characterized in that, comprising:
The browser of portable terminal is searched first the video data whether described page exists the Flash media formats after the page loads;
When having described first video data, described browser is converted to second video data to the server request with described first video data, described second video data has the video format that described browser kernel is supported, and obtains the address of described second video data after described server conversion;
Described browser the injected system kernel is supported in the described page video tab and Play Control logical code, and load described second video data according to the address of described second video data, play described second video data according to described Play Control logical code.
2. method according to claim 1 is characterized in that, describedly searches first the video data whether described page exists the Flash media formats, comprising:
Inject the JavaScript script at the described page, carry out described script to search each element in the HTML dom tree, the Flash video elementary label by described element carries identifies described first video data.
3. method according to claim 1, it is characterized in that, described browser is converted to second video data to the server request with described first video data, described second video data has the video format that described browser kernel is supported, and the address that obtains described second video data after described server conversion, comprising:
Described browser sends first request message to first server that presets, described first request message is used for request and searches the address of described first video data and be converted to second video data, obtain described first video data by described first server according to the address of described first video data, described first video data is converted to described second video data;
Described browser receives the address of described second video data that described first server returns.
4. method according to claim 1, it is characterized in that, described browser is converted to second video data to the server request with described first video data, described second video data has the video format that described browser kernel is supported, and the address that obtains described second video data after described server conversion, comprising:
Described browser sends first request message to the second server that presets, described first request message is used for request and searches the address of described first video data and be converted to second video data, by described second server described first request message is forwarded to first server, the address of searching described first video data according to described first request message by described first server, obtain described first video data by described first server according to the address of described first video data, described first video data is converted to described second video data, and the address of described second video data is back to described second server;
Described browser receives the address of described second video data that described second server returns.
5. according to each described method among the claim 2-4, it is characterized in that described browser the injected system kernel is supported in the described page video tab and Play Control logical code comprise:
Described browser injects the HTML5 video tab in the described page, be used for replacing described Flash video elementary label, and the Play Control logical code of injection JavaScript and CSS form is play for carrying out.
6. a video play device is characterized in that, comprising:
Search module, be used for after the page loads, searching first the video data whether described page exists the Flash media formats;
The request modular converter, be used for when having described first video data, to the server request described first video data is converted to second video data, described second video data has the video format that described browser kernel is supported, and obtains the address of described second video data after described server conversion;
Playing module, be used for to video tab and the Play Control logical code of described page injected system kernel support, and load described second video data according to the address of described second video data, play described second video data according to described Play Control logical code.
7. device according to claim 6 is characterized in that, the described module of searching comprises:
Script injects the unit, is used for injecting the JavaScript script at the described page;
Element is searched the unit, is used for carrying out described script to search each element in the HTML dom tree, and the Flash video elementary label by element carries identifies described first video data.
8. device according to claim 6 is characterized in that, the described request modular converter comprises:
First request unit, be used for sending first request message to first server that presets, described first request message is used for request and searches the address of described first video data and be converted to second video data, obtain described first video data by described first server according to the address of described first video data, described first video data is converted to described second video data;
First receiving element be used for to receive the address of described second video data that described first server returns.
9. device according to claim 6 is characterized in that, the described request modular converter comprises:
Second request unit, be used for sending first request message to the second server that presets, described first request message is used for request and searches the address of described first video data and be converted to second video data, by described second server described first request message is forwarded to first server, the address of searching described first video data according to described first request message by described first server, obtain described first video data by described first server according to the address of described first video data, described first video data is converted to described second video data, and the address of described second video data is back to described second server;
Second receiving element be used for to receive the address of described second video data that described second server returns.
10. according to each described device among the claim 7-9, it is characterized in that described playing module comprises:
First injects the unit, is used for being used for replacing described Flash video elementary label to the HTML5 video tab of described page injected system kernel support;
Second injects the unit, is used for being used for execution to the Play Control logical code of described page injection JavaScript and CSS form and plays;
The playback process unit is used for loading described second video data according to the address of described second video data, plays described second video data according to described Play Control logical code.
CN2013102113758A 2013-05-31 2013-05-31 Video play method and video play device Pending CN103338384A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013102113758A CN103338384A (en) 2013-05-31 2013-05-31 Video play method and video play device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013102113758A CN103338384A (en) 2013-05-31 2013-05-31 Video play method and video play device

Publications (1)

Publication Number Publication Date
CN103338384A true CN103338384A (en) 2013-10-02

Family

ID=49246470

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013102113758A Pending CN103338384A (en) 2013-05-31 2013-05-31 Video play method and video play device

Country Status (1)

Country Link
CN (1) CN103338384A (en)

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202680A (en) * 2014-08-11 2014-12-10 福建星网锐捷网络有限公司 Method and device for acquiring stream media
CN104270671A (en) * 2014-09-28 2015-01-07 可牛网络技术(北京)有限公司 Flash video playing method and device
CN104349185A (en) * 2014-11-19 2015-02-11 成都实景信息技术有限公司 Visual terminal management method for enterprise
CN104616331A (en) * 2015-02-16 2015-05-13 百度在线网络技术(北京)有限公司 Image processing method and device on mobile device
CN104866512A (en) * 2014-02-26 2015-08-26 腾讯科技(深圳)有限公司 Method, device and system for extracting webpage content
CN104881452A (en) * 2015-05-18 2015-09-02 百度在线网络技术(北京)有限公司 Resource locator sniffing method, device and system
CN104918119A (en) * 2014-03-11 2015-09-16 腾讯科技(深圳)有限公司 Video processing method based on iOS browser, and video processing apparatus based on iOS browser
CN106993238A (en) * 2017-04-14 2017-07-28 网宿科技股份有限公司 Audio and video playing method and device, audio frequency and video live broadcasting method and system based on Html5
CN107656947A (en) * 2016-10-24 2018-02-02 腾讯科技(北京)有限公司 A kind of multimedia messages player method and device
CN107679205A (en) * 2017-10-13 2018-02-09 青岛海信移动通信技术股份有限公司 Multimedia data playing method, device, computer equipment and storage medium
WO2018036544A1 (en) * 2016-08-26 2018-03-01 腾讯科技(深圳)有限公司 Method of playing video in browser window, device, and data storage medium
CN107995519A (en) * 2017-11-30 2018-05-04 广州酷狗计算机科技有限公司 The method, apparatus and storage medium that multimedia file plays
CN108156521A (en) * 2017-12-29 2018-06-12 北京奇虎科技有限公司 The method and apparatus of video playing on a kind of browser
WO2018107997A1 (en) * 2016-12-15 2018-06-21 广州市动景计算机科技有限公司 Method and device for converting video playing mode, and mobile terminal
CN108228836A (en) * 2018-01-04 2018-06-29 武汉斗鱼网络科技有限公司 Video compatible loading method, device and video component
CN108874448A (en) * 2017-05-09 2018-11-23 阿里巴巴集团控股有限公司 Realize the method and apparatus that object is positioned in coredump file
CN109218756A (en) * 2018-09-28 2019-01-15 广州市协衡网络科技有限公司 A kind of order method of camera shooting and video, device, server and storage medium
CN112367549A (en) * 2020-11-10 2021-02-12 四川长虹电器股份有限公司 Video playing implementation method of television browser and browser application operation method
CN113613044A (en) * 2021-07-20 2021-11-05 深圳Tcl新技术有限公司 Video playing method and device, storage medium and electronic equipment
CN114339400A (en) * 2021-12-28 2022-04-12 上海众源网络有限公司 Video frame extraction method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101246491A (en) * 2008-03-11 2008-08-20 孟智平 Method and system for using description document in web page
US20090003600A1 (en) * 2007-06-29 2009-01-01 Widevine Technologies, Inc. Progressive download or streaming of digital media securely through a localized container and communication protocol proxy
CN101873325A (en) * 2010-06-13 2010-10-27 优视科技有限公司 Flash supporting and processing method, system, mobile terminal and transfer server
CN102427563A (en) * 2000-12-22 2012-04-25 索尼株式会社 Distributed on-demand media transcoding system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102427563A (en) * 2000-12-22 2012-04-25 索尼株式会社 Distributed on-demand media transcoding system and method
US20090003600A1 (en) * 2007-06-29 2009-01-01 Widevine Technologies, Inc. Progressive download or streaming of digital media securely through a localized container and communication protocol proxy
CN101246491A (en) * 2008-03-11 2008-08-20 孟智平 Method and system for using description document in web page
CN101873325A (en) * 2010-06-13 2010-10-27 优视科技有限公司 Flash supporting and processing method, system, mobile terminal and transfer server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
雷锋网: "Skyfire:让iOS设备也能播放Flash的浏览器", 《硅谷》 *

Cited By (38)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015127882A1 (en) * 2014-02-26 2015-09-03 Tencent Technology (Shenzhen) Company Limited Method, apparatus and system for extracting webpage content
US10430514B2 (en) 2014-02-26 2019-10-01 Tencent Technology (Shenzhen) Company Limited Method and terminal for extracting webpage content, and non-transitory storage medium
CN104866512B (en) * 2014-02-26 2018-09-07 腾讯科技(深圳)有限公司 Extract the method, apparatus and system of web page contents
CN104866512A (en) * 2014-02-26 2015-08-26 腾讯科技(深圳)有限公司 Method, device and system for extracting webpage content
CN104918119B (en) * 2014-03-11 2018-09-04 腾讯科技(深圳)有限公司 Method for processing video frequency based on iOS browsers and video process apparatus
CN104918119A (en) * 2014-03-11 2015-09-16 腾讯科技(深圳)有限公司 Video processing method based on iOS browser, and video processing apparatus based on iOS browser
CN104202680B (en) * 2014-08-11 2017-11-03 福建星网锐捷网络有限公司 The method and device that Streaming Media is obtained
CN104202680A (en) * 2014-08-11 2014-12-10 福建星网锐捷网络有限公司 Method and device for acquiring stream media
CN104270671A (en) * 2014-09-28 2015-01-07 可牛网络技术(北京)有限公司 Flash video playing method and device
CN104349185A (en) * 2014-11-19 2015-02-11 成都实景信息技术有限公司 Visual terminal management method for enterprise
CN104616331A (en) * 2015-02-16 2015-05-13 百度在线网络技术(北京)有限公司 Image processing method and device on mobile device
CN104881452B (en) * 2015-05-18 2020-05-29 百度在线网络技术(北京)有限公司 Resource address sniffing method, device and system
CN104881452A (en) * 2015-05-18 2015-09-02 百度在线网络技术(北京)有限公司 Resource locator sniffing method, device and system
CN107786906B (en) * 2016-08-26 2021-05-25 腾讯科技(深圳)有限公司 Method and device for playing video in independent window by browser
CN107786906A (en) * 2016-08-26 2018-03-09 腾讯科技(深圳)有限公司 The method and apparatus that a kind of browser plays video in independent window
US10839137B2 (en) 2016-08-26 2020-11-17 Tencent Technology (Shenzhen) Company Limited Method and apparatus for playing video in independent window by browser, and storage medium
WO2018036544A1 (en) * 2016-08-26 2018-03-01 腾讯科技(深圳)有限公司 Method of playing video in browser window, device, and data storage medium
CN107656947B (en) * 2016-10-24 2022-06-07 腾讯科技(北京)有限公司 Multimedia information playing method and device
CN107656947A (en) * 2016-10-24 2018-02-02 腾讯科技(北京)有限公司 A kind of multimedia messages player method and device
WO2018107997A1 (en) * 2016-12-15 2018-06-21 广州市动景计算机科技有限公司 Method and device for converting video playing mode, and mobile terminal
US10841530B2 (en) 2016-12-15 2020-11-17 Alibaba Group Holding Limited Method, device, and mobile terminal for converting video playing mode
US11259096B2 (en) 2017-04-14 2022-02-22 Wangsu Science & Technology Co., Ltd. HTML5-based audio/video playing method and apparatus, and live audio/video streaming method and system
WO2018188168A1 (en) * 2017-04-14 2018-10-18 网宿科技股份有限公司 Html5-based audio-video playback method and device, audio and video live broadcast method and system
CN106993238A (en) * 2017-04-14 2017-07-28 网宿科技股份有限公司 Audio and video playing method and device, audio frequency and video live broadcasting method and system based on Html5
CN108874448A (en) * 2017-05-09 2018-11-23 阿里巴巴集团控股有限公司 Realize the method and apparatus that object is positioned in coredump file
CN108874448B (en) * 2017-05-09 2021-10-08 阿里巴巴集团控股有限公司 Method and equipment for positioning object in coredump file
CN107679205B (en) * 2017-10-13 2020-07-07 青岛海信移动通信技术股份有限公司 Multimedia data playing method and device, computer equipment and storage medium
CN107679205A (en) * 2017-10-13 2018-02-09 青岛海信移动通信技术股份有限公司 Multimedia data playing method, device, computer equipment and storage medium
CN107995519B (en) * 2017-11-30 2020-11-03 广州酷狗计算机科技有限公司 Method, device and storage medium for playing multimedia file
CN107995519A (en) * 2017-11-30 2018-05-04 广州酷狗计算机科技有限公司 The method, apparatus and storage medium that multimedia file plays
CN108156521A (en) * 2017-12-29 2018-06-12 北京奇虎科技有限公司 The method and apparatus of video playing on a kind of browser
CN108228836B (en) * 2018-01-04 2021-02-02 武汉斗鱼网络科技有限公司 Video compatible loading method and device and video component
CN108228836A (en) * 2018-01-04 2018-06-29 武汉斗鱼网络科技有限公司 Video compatible loading method, device and video component
CN109218756A (en) * 2018-09-28 2019-01-15 广州市协衡网络科技有限公司 A kind of order method of camera shooting and video, device, server and storage medium
CN112367549A (en) * 2020-11-10 2021-02-12 四川长虹电器股份有限公司 Video playing implementation method of television browser and browser application operation method
CN113613044A (en) * 2021-07-20 2021-11-05 深圳Tcl新技术有限公司 Video playing method and device, storage medium and electronic equipment
CN114339400A (en) * 2021-12-28 2022-04-12 上海众源网络有限公司 Video frame extraction method and device, electronic equipment and storage medium
CN114339400B (en) * 2021-12-28 2024-02-02 上海众源网络有限公司 Video frame extraction method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN103338384A (en) Video play method and video play device
CN102779151B (en) The searching method of application program, Apparatus and system
CN103618942B (en) Intelligent television and the playing method and device of browsing device net page video thereof
CN103729425B (en) Operate response method, client, browser and system
CN104471917A (en) Application information sharing method and device
CN102075528A (en) Method and equipment for playing network multimedia files of multiple encapsulation formats
CN103618936A (en) Smart television, as well as method and device for pre-downloading link pages in browser of smart television
CN105373608A (en) Input method based scene-mode content pushing method and system
US20170171334A1 (en) Single-account multiple-preference recommendation method for video website and electronic device
CN103714141A (en) Information pushing method and device
CN103581706A (en) Method and system for installing applications of smart television
CN103945259A (en) Online video playing method and device
CN106997302A (en) Firmware upgrade method, device and audio-frequence player device
CN105407407A (en) Video playing method and device
CN103064989A (en) Webpage storing and opening method and device
CN105701153B (en) Method and device for reading webpage resources and electronic equipment
CN103440295A (en) Method for uploading multimedia files and electronic terminal
CN101924791B (en) Method, device and system for displaying multimedia information
CN105323654A (en) Method and device for displaying content data from network
CN103747284A (en) Video pushing method and server
CN111581507B (en) Method and device for providing presentation information
CN104331407A (en) Multimedia file information recommending method and multimedia file information recommending device
CN103354927A (en) Method and apparatus for managing content in a processing device
CN105677730A (en) Method and device for reading webpage resources and electronic equipment
CN105824523A (en) Method for downloading application software and mobile terminal

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: 20131002

RJ01 Rejection of invention patent application after publication