CN107679205A - Multimedia data playing method, device, computer equipment and storage medium - Google Patents

Multimedia data playing method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN107679205A
CN107679205A CN201710951217.4A CN201710951217A CN107679205A CN 107679205 A CN107679205 A CN 107679205A CN 201710951217 A CN201710951217 A CN 201710951217A CN 107679205 A CN107679205 A CN 107679205A
Authority
CN
China
Prior art keywords
label
webpage
data
medium data
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710951217.4A
Other languages
Chinese (zh)
Other versions
CN107679205B (en
Inventor
李和意
顾杨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201710951217.4A priority Critical patent/CN107679205B/en
Publication of CN107679205A publication Critical patent/CN107679205A/en
Application granted granted Critical
Publication of CN107679205B publication Critical patent/CN107679205B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • G06F9/45529Embedded in an application, e.g. JavaScript in a Web browser

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to a kind of multimedia data playing method, device, computer equipment and storage medium, belong to technical field of mobile terminals.Methods described includes:When the label for detecting the first webpage includes the first label, the first label information is extracted;Extract the second label information of the second label in the second webpage;According to the corresponding relation between the first label and the second label, the 3rd webpage is generated;The 3rd webpage is loaded, the multi-medium data of the second label information instruction is played in the 3rd webpage.The present invention is when the label for detecting the first webpage includes the first label, extract the first label information, second label information in second webpage of extraction terminal version form corresponding with the first webpage, and according to the corresponding relation between the first label and the second label, the 3rd webpage is generated, multi-medium data is played in the 3rd webpage so that terminal is not in the case where configuring Flash plug-in units, it to the Flash video playbacks in the webpage of desktop version form, can still improve the performance of terminal.

Description

Multimedia data playing method, device, computer equipment and storage medium
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of multimedia data playing method, device, computer Equipment and storage medium.
Background technology
With the fast development of electronics industry and the popularization of mobile terminal, intelligentized mobile terminal is played the part of in people live Drill more and more important role.In busy Working Life, in view of mobile terminal possesses good portability, relative to such as For the PC such as computer (Personal Computer, personal computer) equipment, people are more willing to complete work using mobile terminal Make.At present, the processor performance more and more higher of mobile terminal, therefore, some are directed to the net of the desktop version form of PC equipment makings Page can also be browsed by mobile terminal.In order that the content in webpage is more lively, in the webpage of desktop version form generally The multi-medium data of such as Flash videos can be increased.Flash (animation standard) video is a kind of animated format based on vector, Video web page and interaction network page game currently as main flow are widely used in Internet.
In correlation technique, Flash videos utilize widely used Flash Player platforms on the webpage of desktop version form, Video is incorporated into Flash animations.When Flash videos in the webpage to desktop version form play out, PC equipment can Flash videos are played out by the Flash plug-in units installed in the browser based on the webpage in the form of browsing desktop version.
During the present invention is realized, inventor has found that correlation technique at least has problems with:
User is when the browser on based on mobile terminal browses the webpage of desktop version form, due to clear on mobile terminal Look in device and do not configure Flash plug-in units, therefore, it is impossible to be played out to the Flash videos in the webpage of desktop version form, terminal Poor-performing.
The content of the invention
To overcome mobile terminal present in correlation technique can not be carried out to the Flash videos in the webpage of desktop version form Play, the problem of the poor-performing of terminal, the present invention provide a kind of multimedia data playing method, device, computer equipment and Storage medium.
First aspect according to embodiments of the present invention, there is provided a kind of multimedia data playing method, methods described include:
When the label for detecting the first webpage includes the first label, the of the first label in first webpage is extracted One label information, first webpage are the webpage of desktop version form, and first label indicates Flash in first webpage The multi-medium data of type, first label information comprise at least the data of the multi-medium data indicated by first label Address and data format;
The second label information of the second label in second webpage is extracted, second webpage is and first net The webpage of terminal version form corresponding to page, second label indicate the multi-medium data of video type in second webpage, Second label information comprises at least the data address of the multi-medium data of second label instruction;
According to the corresponding relation between first label and second label, based on second label to described The first label in one webpage is replaced, and generates the 3rd webpage;
The 3rd webpage is loaded, the multimedia number of the second label information instruction is played in the 3rd webpage According to.
In another embodiment, it is described when the label for detecting the first webpage includes the first label, described in extraction First label information of the first label in the first webpage includes:
When the label for detecting first webpage includes first label, the in first webpage is obtained One label;
The data address is extracted in first label;
The data format of the multi-medium data of the first label instruction is extracted in the data address;
The first label information using the data address and the data format as first label.
In another embodiment, it is described extraction with second webpage in the second label the second label information it Before, methods described also includes:
Obtain the terminal iidentification of terminal;
The web-page requests for carrying the terminal iidentification are sent to server, so that the server is based on the terminal iidentification It is determined that and return to second webpage;
Receive second webpage that the server returns.
In another embodiment, according to the method for claim 1, it is characterised in that described according to described first Corresponding relation between label and second label, the first label in first webpage is entered based on second label Row is replaced, and before generating the 3rd webpage, methods described also includes:
According to the appearance order of first label and second label in webpage, first label and institute are established State the corresponding relation between the second label;And/or
Obtain the first title of first label and the second title of second label, establish first title with Corresponding relation between second the first label of title identical and the second label.
In another embodiment, loading the 3rd webpage, second mark is played in the 3rd webpage The multi-medium data of label information instruction includes:
3rd webpage is transmitted into the kernel of browser, so that the kernel of the browser is according to the described second mark The data address for signing information obtains multi-medium data, and plays the multi-medium data.
In another embodiment, methods described also includes:
If do not include second label in second webpage, based on first label in first webpage Position and first label the first label information in data format, second webpage is divided into multiple areas Domain;
For each region in the multiple region, based on default script and the region in first net Corresponding multi-medium data in page, generates Web page area, and the Web page area includes the multi-medium data of video type;
According to the corresponding relation between the Web page area and first label, based on the Web page area to described The first label in one webpage is replaced, and generates the 4th webpage;
The 4th webpage is loaded, the multi-medium data of the Web page area is played in the 4th webpage.
In another embodiment, methods described also includes:
When the label for being not detected by first webpage includes first label, by first webpage transmit to In the kernel of browser, so as to the kernel loads of the browser and show the content in first webpage.
Second aspect according to embodiments of the present invention, there is provided a kind of multi-medium data playing device, described device include:
First extraction module, for when the label for detecting the first webpage includes the first label, extracting described first First label information of the first label in webpage, first webpage are the webpage of desktop version form, the first label instruction The multi-medium data of Flash types in first webpage, it is signified that first label information comprises at least first label The data address and data format of the multi-medium data shown;
Second extraction module, for extracting the second label information of the second label in second webpage, described second Webpage is the webpage of terminal version form corresponding with first webpage, and second label indicates video in second webpage The multi-medium data of type, second label information is with comprising at least the data of the multi-medium data of second label instruction Location;
Replacement module, for according to the corresponding relation between first label and second label, based on described Two labels are replaced to the first label in first webpage, generate the 3rd webpage;
Playing module, for loading the 3rd webpage, in the 3rd webpage playing second label information refers to The multi-medium data shown.
In another embodiment, first extraction module, including:
Acquisition submodule, for when the label for detecting first webpage includes first label, obtaining institute State the first label in the first webpage;
Address extraction submodule, for extracting the data address in first label;
Form extracting sub-module, the multi-medium data indicated for extracting first label in the data address Data format;
Submodule is generated, for the first label using the data address and the data format as first label Information.
In another embodiment, described device also includes:
Acquisition module, for obtaining the terminal iidentification of terminal;
Sending module, the web-page requests of the terminal iidentification are carried for being sent to server, so that the server base Determined in the terminal iidentification and return to second webpage;
Receiving module, second webpage returned for receiving the server.
In another embodiment, described device also includes:
Module is established, for the appearance order according to first label and second label in webpage, establishes institute State the corresponding relation between the first label and second label;And/or obtain the first title of first label and described Second title of the second label, pair established between first title and second the first label of title identical and the second label It should be related to.
In another embodiment, the playing module, for the 3rd webpage to be transmitted into the kernel of browser, So that the kernel of the browser obtains multi-medium data according to the data address of second label information, and play described more Media data.
In another embodiment, described device also includes:
Division module, if for not including second label in second webpage, existed based on first label Position in first webpage and the data format in the first label information of first label, by second webpage It is divided into multiple regions;
Block generation module, for for each region in the multiple region, based on default script and institute Region corresponding multi-medium data in first webpage is stated, generates Web page area, the Web page area includes video type Multi-medium data;
Auto-building html files module, for according to the corresponding relation between the Web page area and first label, based on institute State Web page area to be replaced the first label in first webpage, generate the 4th webpage;
The playing module, it is additionally operable to load the 4th webpage, the Web page area is played in the 4th webpage Multi-medium data.
In another embodiment, described device also includes:
Transport module, described in when the label for being not detected by first webpage includes first label, inciting somebody to action First webpage is transmitted into the kernel of browser, so as to the kernel loads of the browser and show interior in first webpage Hold.
The third aspect according to embodiments of the present invention, there is provided a kind of computer equipment, including memory, processor and storage On a memory and the computer executable instructions that can run on a processor, computer described in the computing device can perform Above-mentioned multimedia data playing method is realized during instruction.
Fourth aspect according to embodiments of the present invention, there is provided a kind of computer-readable recording medium, it is described computer-readable Instruction is stored with storage medium, the instruction is executed by processor to complete above-mentioned multimedia data playing method.
The technical scheme that embodiments of the invention provide can include the following benefits:
When the label for detecting the first webpage includes the first label, the first mark of the first label in the first webpage is extracted Information is signed, then, extracts the second label letter of the second label in the second webpage of terminal version form corresponding with the first webpage Breath, and according to the corresponding relation between the first label and the second label, based on the second label to the first label in the first webpage It is replaced, generates the 3rd webpage, by the webpage of terminal loads the 3rd, play multi-medium data in the 3rd webpage so that terminal Browser in the case where not configuring Flash plug-in units, the Flash videos in the webpage of desktop version form can still be broadcast Put, improve the performance of terminal.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not Can the limitation present invention.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the present invention Example, and for explaining principle of the invention together with specification.
Fig. 1 is a kind of flow chart of multimedia data playing method according to an exemplary embodiment;
Fig. 2A is a kind of flow chart of multimedia data playing method according to an exemplary embodiment;
Fig. 2 B are a kind of flow charts of multimedia data playing method according to an exemplary embodiment;
Fig. 3 A are a kind of block diagrams of multi-medium data playing device according to an exemplary embodiment;
Fig. 3 B are a kind of block diagrams of multi-medium data playing device according to an exemplary embodiment;
Fig. 3 C are a kind of block diagrams of multi-medium data playing device according to an exemplary embodiment;
Fig. 3 D are a kind of block diagrams of multi-medium data playing device according to an exemplary embodiment;
Fig. 3 E are a kind of block diagrams of multi-medium data playing device according to an exemplary embodiment;
Fig. 3 F are a kind of block diagrams of multi-medium data playing device according to an exemplary embodiment;
Fig. 4 is a kind of block diagram of multi-medium data playing device 400 according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects being described in detail in claims, of the invention.
Fig. 1 is a kind of flow chart of multimedia data playing method according to an exemplary embodiment, such as Fig. 1 institutes Show, this method comprises the following steps.
In a step 101, when the label for detecting the first webpage includes the first label, extract first in the first webpage First label information of label, the first webpage are the webpage of desktop version form, and the first label indicates Flash types in the first webpage Multi-medium data, the first label information comprise at least the first label indicated by multi-medium data data address and data lattice Formula.
In a step 102, the second label information of the second label in the second webpage is extracted, the second webpage is and the first net The webpage of terminal version form corresponding to page, the second label indicate the multi-medium data of video type in the second webpage, the second label Information comprises at least the data address of the multi-medium data of the second label instruction.
In step 103, according to the corresponding relation between the first label and the second label, based on the second label to the first net The first label in page is replaced, and generates the 3rd webpage.
At step 104, the 3rd webpage is loaded, the multimedia number of the second label information instruction is played in the 3rd webpage According to.
Method provided in an embodiment of the present invention, when the label for detecting the first webpage includes the first label, extraction the First label information of the first label in one webpage, then, extract the second webpage of terminal version form corresponding with the first webpage In the second label the second label information, and according to the corresponding relation between the first label and the second label, based on the second mark Label are replaced to the first label in the first webpage, the 3rd webpage are generated, by the webpage of terminal loads the 3rd, in the 3rd webpage Play multi-medium data so that the browser of terminal, still can be to desktop version form in the case where not configuring Flash plug-in units Flash videos in webpage play out, and improve the performance of terminal.
In another embodiment, when the label for detecting the first webpage includes the first label, the first webpage is extracted In the first label information of the first label include:
When the label for detecting the first webpage includes the first label, the first label in the first webpage is obtained;
Data address is extracted in the first label;
The data format of the multi-medium data of the first label instruction is extracted in data address;
The first label information using data address and data format as the first label.
In another embodiment, before the second label information of extraction and the second label in the second webpage, method is also Including:
Obtain the terminal iidentification of terminal;
The web-page requests of carried terminal mark are sent to server, so that server is determined based on terminal iidentification and returns to the Two webpages;
The second webpage that the reception server returns.
In another embodiment, the corresponding relation according between first label and second label, base The first label in first webpage is replaced in second label, before generating the 3rd webpage, methods described is also Including:
According to the appearance order of first label and second label in webpage, first label and institute are established State the corresponding relation between the second label;And/or
Obtain the first title of first label and the second title of second label, establish first title with Corresponding relation between second the first label of title identical and the second label.
In another embodiment, loading the 3rd webpage, second mark is played in the 3rd webpage The multi-medium data of label information instruction includes:
3rd webpage is transmitted into the kernel of browser, so that the kernel of the browser is according to the described second mark The data address for signing information obtains multi-medium data, and plays the multi-medium data.
In another embodiment, methods described also includes:
If do not include second label in second webpage, based on first label in first webpage Position and first label the first label information in data format, second webpage is divided into multiple areas Domain;
For each region in the multiple region, based on default script and the region in first net Corresponding multi-medium data in page, generates Web page area, and the Web page area includes the multi-medium data of video type;
According to the corresponding relation between the Web page area and first label, based on the Web page area to described The first label in one webpage is replaced, and generates the 4th webpage;
The 4th webpage is loaded, the multi-medium data of the Web page area is played in the 4th webpage.
In another embodiment, methods described also includes:
When the label for being not detected by first webpage includes first label, by first webpage transmit to In the kernel of browser, so as to the kernel loads of the browser and show the content in first webpage.
Above-mentioned all optional technical schemes, any combination can be used to form the alternative embodiment of the present invention, herein no longer Repeat one by one.
Fig. 2A is a kind of flow chart of multimedia data playing method according to an exemplary embodiment, such as Fig. 2A institutes Show, this method comprises the following steps.
In step 201, whether include first label, if being not detected by the first webpage if detecting in the label of the first webpage Label includes the first label, then performs following step 202;Include the first label if detecting the label of the first webpage, Perform following step 203.
In embodiments of the present invention, the first webpage is the webpage of desktop version form, and the first label is indicated in the first webpage The multi-medium data of Flash types, may generally be<embed>Label.Because the performance of PC equipment is higher and function is more comprehensive, The designer of many webpages is when designing the webpage of desktop version form, it will usually more matchmakers of Flash types are added in webpage Volume data so that the webpage for the desktop version form produced it is not only attractive in appearance but also including can change size navigation interface and other Peculiar effect.If it was recognized by the inventor that the multi-medium data of Flash types in the webpage of desktop version form be present, There can be the first label in whole labels of the webpage of desktop version form, therefore, when the first webpage of desktop version form passes through When terminal is shown, the multimedia number for whether there are Flash types in the first webpage can be judged by detecting the first label According to needing to show.
Due to not disposing Flash plug-in units in the browser of terminal so that terminal possibly can not normally show desktop version shape The multi-medium data for the Flash types that the webpage of formula includes, therefore, terminal show desktop version form webpage when, it is necessary to The webpage of desktop version form is detected, when the label for being not detected by the first webpage includes indicating more matchmakers of Flash types During the first label of volume data, then it represents that do not include the multi-medium data of Flash types in current first webpage, can be with just Loaded and displayed is often carried out to the first webpage, namely performs following step 202;When the label for detecting the first webpage includes instruction During the first label of the multi-medium data of Flash types, then it represents that current first webpage includes the multimedia number of Flash types According in order that the multi-medium data of the Flash types in the first webpage can be normally shown, it is necessary to perform following step 203.
In step 202, when the label for being not detected by the first webpage includes the first label, by the first webpage transmit to In the kernel of browser, so that the content in the kernel loads of browser and the first webpage of display.
In embodiments of the present invention, when the label for being not detected by the first webpage includes the first label, then it represents that terminal The multi-medium data of Flash types is not included in the first webpage currently shown, terminal can be normally shown in the first webpage Content, it is therefore not necessary to perform other operations, only show the first webpage according to the flow of normal display webpage.Due to end Webpage is generally sent into the kernel of browser by the browser on end when showing webpage, and webpage is loaded, therefore, can First webpage is sent into the kernel of browser and loaded.The embodiment of the present invention shows the mode of the first webpage to terminal Limited without specific.
In step 203, when the label for detecting the first webpage includes the first label, the in the first webpage is obtained One label, data address is extracted in the first label, and the number of the multi-medium data of the first label instruction is extracted in data address According to form, the first label information using data address and data format as the first label.
In embodiments of the present invention, when the label for detecting the first webpage includes the first label, then it represents that terminal is worked as First webpage of preceding display includes the multi-medium data of Flash types, and terminal possibly can not normally show in the first webpage and wrap The multi-medium data of the Flash types included.It was recognized by the inventor that because the popularization of terminal and the utilization rate of terminal are higher, net The designer of page is when designing a webpage, it will usually the net of webpage and terminal version form for the webpage design desktop version form Page, and the multi-medium data that the webpage of terminal version form includes is the multi-medium data of video type, terminal can normally be broadcast Put, therefore, can be when the webpage for detecting desktop version form include the multi-medium data of Flash types, using terminal version The multi-medium data for the video type that the webpage of form includes is replaced to the multi-medium data of desktop version form so that eventually End can be with normal play multi-medium data.
In order to which multiple first labels included to the first webpage make a distinction, and it can subsequently be based on video type Multi-medium data the multi-medium data of the Flash types in the first webpage is replaced, when detecting the first label, lead to Often the first label information of the first label of extraction, the first label information can include the multi-medium data indicated by the first label Data address and data format.Wherein, data address can be the chained address in the src attributes of the first label, and data format can For the suffix of data address decline filename, in general, data format can be swf forms or flv forms.Actually should Appearance order and father label mark of first label in the first webpage can also be included during, in the first label information Know., can be according to order statistics from top to bottom when counting the appearance order of the first label, can also be according to from left to right Order is counted.It should be noted that because the first label that the first webpage includes can be corresponding with the first webpage Embodied in the webpage of terminal version form, and hence it is also possible to count the label of all the first labels occurred in the first webpage Number, to ensure accuracy during follow-up progress multi-medium data replacement.The embodiment of the present invention includes to the first label information Content and the statistical of the first label information limited without specific.
In step 204, the terminal iidentification of terminal is obtained, the web-page requests of carried terminal mark are sent to server, are connect Receive the second webpage that server returns.
In embodiments of the present invention, the second webpage is the webpage of terminal version form corresponding with the first webpage.Server exists During to terminal and PC equipment dispatching web pages, in order to which ensure webpage browses quality, it will usually directly issue desktop version form Webpage, so, when terminal needs to obtain the webpage of terminal version form, it is necessary to send the webpage of carried terminal mark to server Request, so that server determines it is currently webpage of the terminal in requesting terminal version form according to terminal iidentification.Wherein, terminal iidentification Can be UA (User Agent, user's mark).
During practical application, terminal actively can send web-page requests to server, can also work as and detect use Family triggering sends web-page requests when sending request key.If terminal actively sends web-page requests to server, terminal can be Detect that the label of the first webpage includes sending web-page requests during the first label, can also be finished extracting the first label information After retransmit web-page requests;If terminal sends web-page requests when detecting that user triggers and sends request key, terminal can be with When showing the first webpage, increase sends request key in the first webpage, for example, terminal can be when showing the first webpage, the The top of one webpage shows the transmission request key of " mobile phone version webpage ", and works as and detect that user's triggering is somebody's turn to do " mobile phone version webpage " and pressed During the region of key, web-page requests are sent to server.The embodiment of the present invention sends web-page requests to terminal to server Opportunity limits without specific.
When server receives the web-page requests of terminal, and terminal is carried out according to the terminal iidentification carried in web-page requests , can be by the net in the form of the first webpage determination terminal version corresponding with first webpage currently shown according to terminal after it is determined that Page, terminal is returned to using the webpage of the terminal version form as the second webpage.
In step 205, detect in the second webpage whether include the second label, if being wrapped in detecting the label of the second webpage The second label is included, then performs following step 206 to step 209;If detecting does not include the second label in the label of the second webpage, Following step 210 is then performed to step 213.
In embodiments of the present invention, the second label indicates the multi-medium data of video type in the second webpage, in general, Second label can be<video>Label.It was recognized by the inventor that Web page maker is in the webpage of design terminal version form, if The webpage for completing desktop version form has been designed, then may directly extract the Flash classes that the webpage of desktop version form includes The multimedia thumbnail of type, the thumbnail is included on the webpage of terminal version form, so, just cause terminal version form Do not include the multi-medium data that terminal can be shown in webpage, namely can not be by the multimedia number in the webpage of terminal version form According to extracting, therefore, it is necessary to detect in the second webpage whether include the second label, judge whether wrapped in the second webpage with this Include the multi-medium data of video type.
When the label for detecting the second webpage includes the second label, then it represents that current second webpage includes video class The multi-medium data of type, then the multi-medium data in the second webpage can be extracted, namely need to perform following step 206 To step 209;When not including the second label in the label for detecting the second webpage, then it represents that do not wrapped in current second webpage The multi-medium data of video type is included, multi-medium data can not be extracted in the second webpage, namely needs to perform following step 210 To step 213.
It should be noted that when receiving the second webpage, because the second webpage is the webpage of terminal version form, therefore, Terminal can directly display the second webpage, and no longer show the first webpage, namely without performing following either steps, directly Show the second webpage.During practical application, it was recognized by the inventor that because Web page maker is in design terminal version shape During the webpage of formula, the size of the webpage of usual terminal version form can be less than the webpage of desktop version form, and current, and terminal starts to become Develop in screen enlarging so that display effect and bad, the terminal version form of the terminal in the webpage of display terminal version form Webpage possibly can not occupy the screen of whole terminal, therefore, multi-medium data that can be in the webpage based on terminal version form Multi-medium data in the webpage of desktop version form is replaced so that terminal is showing the same of the webpage of desktop version form When, still can with normal play Web page maker in webpage increased multi-medium data.
In step 206, detecting the label of the second webpage includes the second label, then extracts the second mark in the second webpage Second label information of label, the second label information comprise at least the data address of the multi-medium data of the second label instruction.
In embodiments of the present invention, the mode of the second label information and the extraction first described in above-mentioned steps 203 are extracted The mode of label information is consistent, is no longer repeated herein.
It can also include the second label the appearance in the second webpage during practical application, in the second label information Order and father's tag identifier.Wherein, the mode of the appearance order of the second label and the appearance order of the first label of statistics are counted Mode it is consistent, no longer repeated herein.It should be noted that the multimedia number due to the Flash types in the first webpage It is one-to-one according to the multi-medium data with the video type in the second webpage, therefore, can there is one in the second webpage Individual second label is corresponding with the first label in the first webpage, so, can occur to count in the second webpage whole second The label number of label, to ensure accuracy during follow-up progress multi-medium data replacement, avoid not replacing for generation omission more Media data.The content and the statistical of the second label information that the embodiment of the present invention includes to the second label information are not entered Row is specific to be limited.
In step 207, the corresponding relation established between the first label and the second label.
In embodiments of the present invention, due to be between the first webpage and the second webpage mutually it is corresponding, therefore, the first webpage In content and the content in the second webpage be also one-to-one so that there is also corresponding between the first label and the second label Relation.In order that when the multi-medium data in the first webpage is replaced, based on the second label corresponding with the first label It is replaced, ensures the accuracy when carrying out multi-medium data replacement, avoids sending out when being subsequently generated the webpage replaced and completed Raw mistake, the corresponding relation that can be established between the first label and the second label, and it is more being subsequently based on corresponding relation progress The replacement of media data.Wherein, when establishing the corresponding relation between the first label and the second label, following two kinds can be taken Mode:
Mode one:According to the appearance order of the first label and the second label in webpage, the first label and the second mark are established Corresponding relation between label.
Due to generate the first label information and can also count during the second label information the appearance order of the first label with And second label appearance order, therefore, can according to the appearance order by the first label information of the first label with second mark Second label information of label is mapped, the corresponding relation established between the first label and the second label.It should be noted that by It may differ in the format of the first webpage and the format of the second webpage, therefore, establish between the first label and the second label Corresponding relation when, the comparative result of father's tag identifier of the first label and the second label can also be referred to.
Mode two:The first title of the first label and the second title of the second label are obtained, establishes the first title and second Corresponding relation between the label of title identical first and the second label.
Due to the filename that the decline of the first label and the data address of the second label is multi-medium data, and first Webpage is identical with the filename of mutual corresponding first label and the second label in the second webpage, therefore, can be by first The filename of label is as the first title, using the filename of the second label as the second title, establish the title of identical first with Second place be referred to as between corresponding relation.
It should be noted that either type in the above-mentioned two ways referred to can be used to establish the first label and the second mark Corresponding relation between label.And during practical application, the first label and second can be established using two ways simultaneously Corresponding relation between label, also can occupation mode one establish corresponding relation, and occupation mode two is closed to the corresponding of foundation System is verified;Or, occupation mode two establishes corresponding relation, and the corresponding relation of a pair of foundation of occupation mode is verified.This Inventive embodiments are limited without specific the mode for establishing corresponding relation between the first label and the second label.
In a step 208, according to the corresponding relation between the first label and the second label, based on the second label to the first net The first label in page is replaced, and generates the 3rd webpage.
In embodiments of the present invention, after the corresponding relation between the first label and the second label is determined, the first webpage In each first label can have a second corresponding label.Come for any first label in the first webpage Say, first label in the first webpage is replaced using the second label corresponding with first label., can when replacing First to delete first label in the first webpage, then, the second label is added to first label in the first webpage Position, complete the replacement to the first label.Above-mentioned replacement process is repeated, when by whole first mark in the first webpage After label are replaced using the second label, the 3rd new webpage can be generated.
It should be noted that due to being in order that terminal can show using the purpose of second the first label of tag replacement The multi-medium data for the Flash types that one webpage includes, therefore, the essence being replaced using the second label to the first label For the data address in the second label information to be added to the position of the first label so that subsequent terminal is loading the 3rd net , can be consistent with the multimedia data contents of Flash types according to the data address download in the second label information during page, and Terminal can ensure that terminal can completely show the whole in the first webpage with the multi-medium data of the video type of normal play Content.
In step 209, the 3rd webpage is loaded, the multimedia number of the second label information instruction is played in the 3rd webpage According to.
In embodiments of the present invention, after three webpages is generated, terminal can transmit the 3rd webpage to the kernel of browser In, so that the webpage of kernel loads the 3rd of browser, and play the multi-medium data in the 3rd webpage.Loading the 3rd webpage When, the kernel of browser can obtain the multimedia number of video type according to the data address of the second label information in the 3rd webpage According to.Because terminal can be with the multi-medium data of normal play video type, therefore, terminal can incite somebody to action when loading three webpages Full content in 3rd webpage is shown.
In step 210, if detecting does not include the second label in the second webpage, based on the first label in the first webpage In position and the first label the first label information in data format, the second webpage is divided into multiple regions.
In embodiments of the present invention, if detecting does not include the second label in the second webpage, then it represents that current second webpage In do not include the multi-medium data of video type, therefore, it is impossible to extract multi-medium data in the second webpage, so, just need The second webpage to be divided into based on the data format in position of first label in the first webpage and the first label information Multiple regions, and be subsequently the multi-medium data that can play of multiple Area generation terminals, so that terminal can be by the first net Content in page is all shown.
Wherein, the data lattice of the multi-medium data indicated due to when extracting the first label information, can determine whether the first label Formula, and the generation method of the multi-medium data of different data format is different, therefore, can the data format based on multi-medium data And first the position of label the second webpage is divided, the second webpage is divided into multiple regions.
In step 211, for each region in multiple regions, based on default script and region in the first net Corresponding multi-medium data in page, generates Web page area, and Web page area includes the multi-medium data of video type.
In embodiments of the present invention, due to more in multiple area maps to the first webpage for dividing to obtain in the second webpage The data format of media data is different, therefore, can be with when generation includes the Web page area for the multi-medium data that terminal can play According to data format of the multi-medium data in the first webpage, generated using different default scripts.In practical application During, because the data format of multi-medium data can be swf forms or flv forms, therefore, can play in generation terminal more During media data, the default script of application can be swf2js.js and flv.js.Wherein, it is swf's for data format Multi-medium data, swf2js.js default script can be used;Multi-medium data for data format for flv forms, Flv.js default script can be used.The embodiment of the present invention is to generating the default script of Web page area without tool Body limits.
For example, it is assumed that the first label in current first webpage is respectively label A, label B and label C, and label A is The data format of corresponding multi-medium data is swf in one webpage, the number of label B corresponding multi-medium data in the first webpage It is swf according to form, the data format of label C corresponding multi-medium data in the first webpage is flv, then using swf2js.js The multi-medium data for the Flash types that label A indicates in the first webpage is converted to the multi-medium data of video type, and will The multi-medium data of the video type of generation is added to the region that label A is mapped in the second webpage, generates Web page area;
The multi-medium data for the Flash types that label B indicates in the first webpage is converted to by video using swf2js.js The multi-medium data of type, and the multi-medium data of the video type of generation is mapped in the second webpage added to label B Region, generate Web page area;
The multi-medium data for the Flash types that label C indicates in the first webpage is converted to by video class using flv.js The multi-medium data of type, and the area that the multi-medium data of the video type of generation is mapped in the second webpage added to label C Domain, generate Web page area.
In the step 212, according to the corresponding relation between Web page area and the first label, based on Web page area to the first net The first label in page is replaced, and generates the 4th webpage.
In embodiments of the present invention, after generation all the first label corresponding Web page areas in the second webpage, due to The multi-medium data that Web page area in second webpage indicates all in accordance with the first label in the first webpage generates, therefore, first Corresponding relation between label and Web page area be present, so, can be with according to the corresponding pass between Web page area and the first label System, is replaced based on Web page area to the first label in the first webpage, generates the 4th webpage.Wherein it is possible to using step Method described in 208 is replaced to the first label in the first webpage, is generated the 4th webpage, is no longer repeated herein.
In step 213, the 4th webpage is loaded, the multi-medium data of Web page area is played in the 4th webpage.
In embodiments of the present invention, load the 4th webpage and play the process of multi-medium data and institute in above-mentioned steps 202 The process stated is consistent, is no longer repeated herein.
During practical application, the flow being referred in Fig. 2 B realizes the broadcasting to multi-medium data:
Browser in terminal asks the first webpage to server, and the first mark of the first label is extracted in the first webpage Information is signed, when the number of the first label information extracted is 0, the kernel that the first webpage is transmitted to browser is solved Analysis, and terminate current process;When the number of the first label information extracted is not 0, carried terminal mark is sent to server The web-page requests of knowledge, and the second label information of the second label is extracted in the second webpage that server returns, when what is extracted When the number of second label information is 0, Web page area is generated using default script, and using block in the first webpage First label is replaced, and the 4th webpage generated after replacement is transmitted to the kernel of browser and parsed, and is terminated current Flow;When the number of the second label information extracted is not 0, by the first label and the second label one-to-one corresponding, the is used Two labels are replaced to the first label in the first webpage, generate the 3rd webpage, and the 3rd webpage generated after replacement is transmitted Kernel to browser is parsed, and terminates current process.
Method provided in an embodiment of the present invention, when the label for detecting the first webpage includes the first label, extraction the First label information of the first label in one webpage, then, extract the second webpage of terminal version form corresponding with the first webpage In the second label the second label information, and according to the corresponding relation between the first label and the second label, based on the second mark Label are replaced to the first label in the first webpage, the 3rd webpage are generated, by the webpage of terminal loads the 3rd, in the 3rd webpage Play multi-medium data so that the browser of terminal, still can be to desktop version form in the case where not configuring Flash plug-in units Flash videos in webpage play out, and improve the performance of terminal.
Fig. 3 A are a kind of block diagrams of multi-medium data playing device according to an exemplary embodiment.Reference picture 3A, The device includes the first extraction module 301, the second extraction module 302, replacement module 303 and playing module 304.
First extraction module 301, for when the label for detecting the first webpage includes the first label, extracting first First label information of the first label in webpage, the first webpage are the webpage of desktop version form, and the first label indicates the first webpage The multi-medium data of middle Flash types, the first label information comprise at least the data of the multi-medium data indicated by the first label Address and data format;
Second extraction module 302, for extracting the second label information of the second label in the second webpage, the second webpage For the webpage of terminal version form corresponding with the first webpage, the second label indicates the multimedia number of video type in the second webpage According to the second label information comprises at least the data address of the multi-medium data of the second label instruction;
The replacement module 303, for according to the corresponding relation between the first label and the second label, based on the second label pair The first label in first webpage is replaced, and generates the 3rd webpage;
The playing module 304, for loading the 3rd webpage, more matchmakers of the second label information instruction are played in the 3rd webpage Volume data.
Device provided in an embodiment of the present invention, when the label for detecting the first webpage includes the first label, extraction the First label information of the first label in one webpage, then, extract the second webpage of terminal version form corresponding with the first webpage In the second label the second label information, and according to the corresponding relation between the first label and the second label, based on the second mark Label are replaced to the first label in the first webpage, the 3rd webpage are generated, by the webpage of terminal loads the 3rd, in the 3rd webpage Play multi-medium data so that the browser of terminal, still can be to desktop version form in the case where not configuring Flash plug-in units Flash videos in webpage play out, and improve the performance of terminal.
In another embodiment, referring to Fig. 3 B, first extraction module 301, including acquisition submodule 3011, address carries Take submodule 3012, form extracting sub-module 3013 and generation submodule 3014.
The acquisition submodule 3011, for when the label for detecting the first webpage includes the first label, obtaining first The first label in webpage;
The address extraction submodule 3012, for extracting data address in the first label;
The form extracting sub-module 3013, the number of the multi-medium data for extracting the instruction of the first label in data address According to form;
The generation submodule 3014, for the first label information using data address and data format as the first label.
In another embodiment, referring to Fig. 3 C, the device also includes acquisition module 305, sending module 306 and reception mould Block 307.
The acquisition module 305, for obtaining the terminal iidentification of terminal;
The sending module 306, the web-page requests of the terminal iidentification are carried for being sent to server, so that the service Device is determined based on the terminal iidentification and returns to second webpage;
The receiving module 307, second webpage returned for receiving the server.
In another embodiment, referring to Fig. 3 D, the device also includes establishing module 308.
This establishes module 308, for the appearance order according to the first label and the second label in webpage, establishes the first mark Corresponding relation between label and the second label;And/or the first title of the first label and the second title of the second label are obtained, The corresponding relation established between the first title and second the first label of title identical and the second label.
In another embodiment, the playing module 304, for the 3rd webpage to be transmitted into the kernel of browser, with The kernel of browser is obtained multi-medium data according to the data address of the second label information, and play multi-medium data.
In another embodiment, division module 309, block generation module 310 and net are also included referring to Fig. 3 E, the device Page generation module 311.
The division module 309, if for not including the second label in the second webpage, based on the first label in the first webpage In position and the first label the first label information in data format, the second webpage is divided into multiple regions;
The block generation module 310, for for each region in multiple regions, based on default script and area Domain corresponding multi-medium data in the first webpage, generates Web page area, and Web page area includes the multi-medium data of video type;
The auto-building html files module 311, for according to the corresponding relation between Web page area and the first label, based on webpage area Block is replaced to the first label in the first webpage, generates the 4th webpage;
The playing module 304, it is additionally operable to load the 4th webpage, the multimedia number of Web page area is played in the 4th webpage According to.
In another embodiment, transport module 312 is also included referring to Fig. 3 F, the device.
The transport module 312, for when the label for being not detected by the first webpage includes the first label, by the first webpage Transmit into the kernel of browser, so that the content in the kernel loads of browser and the first webpage of display.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 4 is a kind of block diagram of multi-medium data playing device 400 according to an exemplary embodiment.For example, dress It can be mobile phone to put 400, computer, digital broadcast terminal, messaging devices, game console, tablet device, medical treatment Equipment, body-building equipment, personal digital assistant etc..
Reference picture 4, device 400 can include following one or more assemblies:Processing component 402, memory 404, power supply Component 406, multimedia groupware 408, audio-frequency assembly 410, I/O (Input/Output, input/output) interface 412, sensor Component 414, and communication component 416.
The integrated operation of the usual control device 400 of processing component 402, such as communicated with display, call, data, phase The operation that machine operates and record operation is associated.Processing component 402 can refer to including one or more processors 420 to perform Order, to complete all or part of step of above-mentioned method.In addition, processing component 402 can include one or more modules, just Interaction between processing component 402 and other assemblies.For example, processing component 402 can include multi-media module, it is more to facilitate Interaction between media component 408 and processing component 402.
Memory 404 is configured as storing various types of data to support the operation in device 400.These data are shown Example includes the instruction of any application program or method for being operated on device 400, contact data, telephone book data, disappears Breath, picture, video etc..Memory 404 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, such as SRAM (Static Random Access Memory, static RAM), EEPROM (Electrically-Erasable Programmable Read-Only Memory, the read-only storage of electrically erasable Device), EPROM (Erasable Programmable Read Only Memory, Erasable Programmable Read Only Memory EPROM), PROM (Programmable Read-Only Memory, programmable read only memory), and ROM (Read-Only Memory, it is read-only to deposit Reservoir), magnetic memory, flash memory, disk or CD.
Power supply module 406 provides electric power for the various assemblies of device 400.Power supply module 406 can include power management system System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 400.
Multimedia groupware 408 is included in the screen of one output interface of offer between described device 400 and user.One In a little embodiments, screen can include LCD (Liquid Crystal Display, liquid crystal display) and TP (Touch Panel, touch panel).If screen includes touch panel, screen may be implemented as touch-screen, to receive from user's Input signal.Touch panel includes one or more touch sensors with the gesture on sensing touch, slip and touch panel.Institute Stating touch sensor can the not only border of sensing touch or sliding action, but also detect and the touch or slide phase The duration and pressure of pass.In certain embodiments, multimedia groupware 408 includes a front camera and/or rearmounted taken the photograph As head.When device 400 is in operator scheme, during such as screening-mode or video mode, front camera and/or rear camera can With the multi-medium data outside reception.Each front camera and rear camera can be a fixed optical lens systems Or there is focusing and optical zoom capabilities.
Audio-frequency assembly 410 is configured as output and/or input audio signal.For example, audio-frequency assembly 410 includes a MIC (Microphone, microphone), when device 400 is in operator scheme, such as call model, logging mode and speech recognition mode When, microphone is configured as receiving external audio signal.The audio signal received can be further stored in memory 404 Or sent via communication component 416.In certain embodiments, audio-frequency assembly 410 also includes a loudspeaker, for exporting audio Signal.
I/O interfaces 412 provide interface between processing component 402 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 414 includes one or more sensors, and the state for providing various aspects for device 400 is commented Estimate.For example, sensor cluster 414 can detect opening/closed mode of equipment 400, the relative positioning of component, such as component For the display and keypad of device 400, sensor cluster 414 can be with the position of 400 1 components of detection means 400 or device Put change, the existence or non-existence that user contacts with device 400, the orientation of device 400 or acceleration/deceleration and the temperature of device 400 Change.Sensor cluster 414 can include proximity transducer, be configured in no any physical contact near detection The presence of object.Sensor cluster 414 can also include optical sensor, such as CMOS (Complementary Metal Oxide Semiconductor, CMOS) or CCD (Charge-coupled Device, charge coupled cell) image biography Sensor, for being used in imaging applications.In certain embodiments, the sensor cluster 414 can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 416 is configured to facilitate the communication of wired or wireless way between device 400 and other equipment.Device 400 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation In example, communication component 416 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, also including NFC, (Near Field Communication, near field leads to the communication component 416 Letter) module, to promote junction service.For example, RFID (Radio Frequency can be based in NFC module Identification, radio frequency identification) technology, IrDA (Infra-red Data Association, Infrared Data Association) skill Art, UWB (Ultra Wideband, ultra wide band) technology, BT (Bluetooth, bluetooth) technologies and other technologies are realized.
In the exemplary embodiment, device 400 can be by one or more ASIC (Application Specific Integrated Circuit, application specific integrated circuit), DSP (Digital signal Processor, at data signal Manage device), DSPD (Digital signal Processor Device, digital signal processing appts), PLD (Programmable Logic Device, PLD), FPGA) (Field Programmable Gate Array, field programmable gate Array), controller, microcontroller, microprocessor or other electronic components realize, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 404 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 420 of device 400.For example, The non-transitorycomputer readable storage medium can be ROM, RAM (Random Access Memory, random access memory Device), CD-ROM (Compact Disc Read-Only Memory, compact disc read-only memory), tape, floppy disk and light data deposit Store up equipment etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is played by multi-medium data During the computing device of device so that multimedia playing apparatus is able to carry out above-mentioned multi-medium play method.
A kind of computer equipment, including memory, processor and storage can be run on a memory and on a processor Computer executable instructions, above-mentioned multi-medium data broadcasting side is realized described in the computing device during computer executable instructions Method.
Those skilled in the art will readily occur to the present invention its after considering specification and putting into practice invention disclosed herein Its embodiment.The application be intended to the present invention any modification, purposes or adaptations, these modifications, purposes or Person's adaptations follow the general principle of the present invention and including the undocumented common knowledges in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by following Claim is pointed out.
It should be appreciated that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present invention is only limited by appended claim.

Claims (16)

1. a kind of multimedia data playing method, it is characterised in that methods described includes:
When the label for detecting the first webpage includes the first label, the first mark of the first label in first webpage is extracted Information is signed, first webpage is the webpage of desktop version form, and first label indicates Flash types in first webpage Multi-medium data, first label information comprise at least first label indicated by multi-medium data data address And data format;
The second label information of the second label in the second webpage is extracted, second webpage is corresponding with first webpage The webpage of terminal version form, second label indicate the multi-medium data of video type in second webpage, described second Label information comprises at least the data address of the multi-medium data of second label instruction;
According to the corresponding relation between first label and second label, based on second label to first net The first label in page is replaced, and generates the 3rd webpage;
The 3rd webpage is loaded, the multi-medium data of the second label information instruction is played in the 3rd webpage.
2. according to the method for claim 1, it is characterised in that described when the label for detecting the first webpage includes first During label, extracting the first label information of the first label in first webpage includes:
When the label for detecting first webpage includes first label, the first mark in first webpage is obtained Label;
The data address is extracted in first label;
The data format of the multi-medium data of the first label instruction is extracted in the data address;
The first label information using the data address and the data format as first label.
3. according to the method for claim 1, it is characterised in that the second mark of the second label in the second webpage of the extraction Before signing information, methods described also includes:
Obtain the terminal iidentification of terminal;
The web-page requests for carrying the terminal iidentification are sent to server, so that the server is determined based on the terminal iidentification And return to second webpage;
Receive second webpage that the server returns.
4. according to the method for claim 1, it is characterised in that it is described according to first label and second label it Between corresponding relation, the first label in first webpage is replaced based on second label, generate the 3rd webpage Before, methods described also includes:
According to the appearance order of first label and second label in webpage, first label and described the are established Corresponding relation between two labels;And/or
The first title of first label and the second title of second label are obtained, establishes first title and second Corresponding relation between the label of title identical first and the second label.
5. according to the method for claim 1, it is characterised in that loading the 3rd webpage, in the 3rd webpage The middle multi-medium data for playing the second label information instruction includes:
3rd webpage is transmitted into the kernel of browser, so that the kernel of the browser is believed according to second label The data address of breath obtains multi-medium data, and plays the multi-medium data.
6. according to the method for claim 1, it is characterised in that methods described also includes:
If do not include second label, the position based on first label in first webpage in second webpage Put and the first label information of first label in data format, second webpage is divided into multiple regions;
For each region in the multiple region, based on default script and the region in first webpage Corresponding multi-medium data, generates Web page area, and the Web page area includes the multi-medium data of video type;
According to the corresponding relation between the Web page area and first label, based on the Web page area to first net The first label in page is replaced, and generates the 4th webpage;
The 4th webpage is loaded, the multi-medium data of the Web page area is played in the 4th webpage.
7. according to the method for claim 1, it is characterised in that methods described also includes:
When the label for being not detected by first webpage includes first label, first webpage is transmitted to browsing In the kernel of device, so as to the kernel loads of the browser and show the content in first webpage.
8. a kind of multi-medium data playing device, it is characterised in that described device includes:
First extraction module, for when the label for detecting the first webpage includes the first label, extracting first webpage In the first label the first label information, first webpage is the webpage of desktop version form, described in first label instruction The multi-medium data of Flash types in first webpage, first label information are comprised at least indicated by first label The data address and data format of multi-medium data;
Second extraction module, for extract the second webpage in the second label the second label information, second webpage be with The webpage of terminal version form corresponding to first webpage, second label indicate the more of video type in second webpage Media data, second label information comprise at least the data address of the multi-medium data of second label instruction;
Replacement module, for according to the corresponding relation between first label and second label, being marked based on described second Label are replaced to the first label in first webpage, generate the 3rd webpage;
Playing module, for loading the 3rd webpage, the second label information instruction is played in the 3rd webpage Multi-medium data.
9. device according to claim 8, it is characterised in that first extraction module, including:
Acquisition submodule, for when the label for detecting first webpage includes first label, obtain described the The first label in one webpage;
Address extraction submodule, for extracting the data address in first label;
Form extracting sub-module, the data of the multi-medium data for extracting the first label instruction in the data address Form;
Submodule is generated, for the data address and the data format to be believed as the first label of first label Breath.
10. device according to claim 8, it is characterised in that described device also includes:
Acquisition module, for obtaining the terminal iidentification of terminal;
Sending module, the web-page requests of the terminal iidentification are carried for being sent to server, so that the server is based on institute Terminal iidentification is stated to determine and return to second webpage;
Receiving module, second webpage returned for receiving the server.
11. device according to claim 8, it is characterised in that described device also includes:
Module is established, for the appearance order according to first label and second label in webpage, establishes described the Corresponding relation between one label and second label;And/or obtain the first title and described second of first label Second title of label, the corresponding pass established between first title and second the first label of title identical and the second label System.
12. device according to claim 8, it is characterised in that the playing module, for the 3rd webpage to be transmitted Into the kernel of browser, so that the kernel of the browser obtains multimedia according to the data address of second label information Data, and play the multi-medium data.
13. device according to claim 8, it is characterised in that described device also includes:
Division module, if for not including second label in second webpage, based on first label described Position in first webpage and the data format in the first label information of first label, second webpage is divided For multiple regions;
Block generation module, for for each region in the multiple region, based on default script and the area Domain corresponding multi-medium data in first webpage, generates Web page area, and the Web page area includes the more of video type Media data;
Auto-building html files module, for according to the corresponding relation between the Web page area and first label, based on the net Page block is replaced to the first label in first webpage, generates the 4th webpage;
The playing module, it is additionally operable to load the 4th webpage, the more of the Web page area is played in the 4th webpage Media data.
14. device according to claim 8, it is characterised in that described device also includes:
Transport module, for when the label for being not detected by first webpage includes first label, by described first Webpage is transmitted into the kernel of browser, so as to the kernel loads of the browser and show the content in first webpage.
15. a kind of computer equipment, it is characterised in that on a memory and can handled including memory, processor and storage The computer executable instructions run on device, claim 1 is realized during computer executable instructions described in the computing device To the multimedia data playing method described in 7 any one.
A kind of 16. computer-readable recording medium, it is characterised in that instruction is stored with the computer-readable recording medium, The instruction is executed by processor to complete the multimedia data playing method described in any one of claim 1 to 7.
CN201710951217.4A 2017-10-13 2017-10-13 Multimedia data playing method and device, computer equipment and storage medium Active CN107679205B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710951217.4A CN107679205B (en) 2017-10-13 2017-10-13 Multimedia data playing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710951217.4A CN107679205B (en) 2017-10-13 2017-10-13 Multimedia data playing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN107679205A true CN107679205A (en) 2018-02-09
CN107679205B CN107679205B (en) 2020-07-07

Family

ID=61140132

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710951217.4A Active CN107679205B (en) 2017-10-13 2017-10-13 Multimedia data playing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107679205B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111783010A (en) * 2020-01-19 2020-10-16 北京无限光场科技有限公司 Webpage blank page monitoring method, device, terminal and storage medium
CN117421000A (en) * 2023-09-06 2024-01-19 北京饼干科技有限公司 Method, device, electronic equipment and storage medium for generating distribution webpage

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090313127A1 (en) * 2008-06-11 2009-12-17 Yahoo! Inc. System and method for using contextual sections of web page content for serving advertisements in online advertising
CN103338384A (en) * 2013-05-31 2013-10-02 优视科技有限公司 Video play method and video play device
CN103856543A (en) * 2012-12-07 2014-06-11 腾讯科技(深圳)有限公司 Method for processing video, mobile terminal and server
CN105407407A (en) * 2014-06-26 2016-03-16 广州市动景计算机科技有限公司 Video playing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090313127A1 (en) * 2008-06-11 2009-12-17 Yahoo! Inc. System and method for using contextual sections of web page content for serving advertisements in online advertising
CN103856543A (en) * 2012-12-07 2014-06-11 腾讯科技(深圳)有限公司 Method for processing video, mobile terminal and server
CN103338384A (en) * 2013-05-31 2013-10-02 优视科技有限公司 Video play method and video play device
CN105407407A (en) * 2014-06-26 2016-03-16 广州市动景计算机科技有限公司 Video playing method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111783010A (en) * 2020-01-19 2020-10-16 北京无限光场科技有限公司 Webpage blank page monitoring method, device, terminal and storage medium
CN111783010B (en) * 2020-01-19 2023-09-19 北京有竹居网络技术有限公司 Webpage blank page monitoring method, device, terminal and storage medium
CN117421000A (en) * 2023-09-06 2024-01-19 北京饼干科技有限公司 Method, device, electronic equipment and storage medium for generating distribution webpage
CN117421000B (en) * 2023-09-06 2024-06-04 北京饼干科技有限公司 Method, device, electronic equipment and storage medium for generating distribution webpage

Also Published As

Publication number Publication date
CN107679205B (en) 2020-07-07

Similar Documents

Publication Publication Date Title
CN105488145B (en) Display methods, device and the terminal of web page contents
CN105094814A (en) Method and device for notification information display
CN105512909A (en) Commodity recommendation method apparatus
CN106294609A (en) page loading method and device
CN107066172A (en) The document transmission method and device of mobile terminal
CN105095427A (en) Search recommendation method and device
CN106055707A (en) Bullet screen display method and device
CN106789551B (en) Conversation message methods of exhibiting and device
CN105095227A (en) Method and apparatus for preloading webpage
CN104636164B (en) Start page generation method and device
CN104778405A (en) Method and device for blocking advertisements
CN107203398A (en) Using distribution method and device
CN107193606A (en) Using distribution method and device
CN106126632A (en) Recommend method and device
CN105373580A (en) Method and device for displaying subjects
CN104391878A (en) Book search method and book search device
CN105095081A (en) Application program function testing method and device
CN106095236A (en) The method and device of arranging desktop icons
CN105512220A (en) Image page output method and device
CN104461283A (en) Network view screen shooting method and device and electronic device
CN104536787A (en) Resource preloading method and device
CN106792041A (en) Content share method and device
CN105205153A (en) File storage method and device
CN104951184A (en) Application program downloading method and device
CN105611341B (en) A kind of method, apparatus and system for transmitting image

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
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder