CN108008935A - The treating method and apparatus of media resource - Google Patents

The treating method and apparatus of media resource Download PDF

Info

Publication number
CN108008935A
CN108008935A CN201610958181.8A CN201610958181A CN108008935A CN 108008935 A CN108008935 A CN 108008935A CN 201610958181 A CN201610958181 A CN 201610958181A CN 108008935 A CN108008935 A CN 108008935A
Authority
CN
China
Prior art keywords
window
page
object elements
scheme
media resource
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
CN201610958181.8A
Other languages
Chinese (zh)
Other versions
CN108008935B (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.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum 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 Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201610958181.8A priority Critical patent/CN108008935B/en
Publication of CN108008935A publication Critical patent/CN108008935A/en
Application granted granted Critical
Publication of CN108008935B publication Critical patent/CN108008935B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind for the treatment of method and apparatus of media resource.Wherein, this method includes:The insertion object elements of the page are obtained, wherein, the page includes at least:Media resource, insertion object elements include at least:Window-mode attribute;According to window-mode attribute, judge whether window scheme is first window pattern;In the case where window scheme is first window pattern, window scheme is revised as the second window scheme;The media resource included to the page carries out sectional drawing.The present invention solves the media resource played in the prior art on Website page under some window schemes, from the background can not direct sectional drawing technical problem.

Description

The treating method and apparatus of media resource
Technical field
The present invention relates to internet arena, in particular to a kind for the treatment of method and apparatus of media resource.
Background technology
With the fast development of internet, user can obtain the various media resources needed by internet, for example, can By network browsing news, to obtain News Resources;Video can be watched by network, obtain video resource.More and more User likes watching video by network, during video-see, interesting content often occurs, user wishes to pass through The mode of sectional drawing obtains image, can be transmitted to friend and be watched, or upload among the distribution platforms such as personal microblogging.
When user is by browser access video website, the window scheme category of the video playing page returned on browser Property can include a variety of window schemes, still, be not every kind of window scheme the video playing page can backstage directly Sectional drawing is carried out, moreover, user can not clearly know which kind of window scheme the window-mode attribute of the current video broadcasting page corresponds to, If the window-mode attribute that current video plays the page is the window scheme that can not directly carry out sectional drawing, user can not carry out Sectional drawing, reduces the likability of user.
For the media resource played in the prior art on Website page under some window schemes, can not directly it cut from the background The problem of figure, not yet propose effective solution at present.
The content of the invention
An embodiment of the present invention provides a kind for the treatment of method and apparatus of media resource, at least to solve net in the prior art The media resource played on the page stand under some window schemes, from the background can not direct sectional drawing technical problem.
One side according to embodiments of the present invention, there is provided a kind of processing method of media resource, including:Obtain the page Insertion object elements, wherein, the page includes at least:Media resource, insertion object elements include at least:Window-mode attribute; According to window-mode attribute, judge whether window scheme is first window pattern;It is the feelings of first window pattern in window scheme Under condition, window scheme is revised as the second window scheme;The media resource included to the page carries out sectional drawing.
Further, window scheme is revised as the second window scheme includes:Insertion object elements to the page carry out standby Part, obtain the first insertion object elements;Remove the insertion object elements of the page;By perform script language, by the first insertion pair The property value of the window-mode attribute of picture dot element is revised as the first preset value, obtains the second insertion object elements;By the second insertion Object elements are loaded onto in the page, and refresh page.
Further, the property value of the window-mode attribute of the first insertion object elements is revised as the first preset value, wrapped Include:Remove the second preset value in window-mode attribute;Load the first preset value.
Further, after the insertion object elements of the page are removed, the above method further includes:By the path attribute of the page Property value be arranged to carry out the address of page access.
Further, the above method further includes:In the case where window scheme is not first window pattern, the page is included Media resource carry out sectional drawing.
Another aspect according to embodiments of the present invention, additionally provides a kind of processing unit of media resource, including:Obtain single Member, for obtaining the insertion object elements of the page, wherein, the page includes at least:Media resource, insertion object elements are at least wrapped Include:Window-mode attribute;Judging unit, for according to window-mode attribute, judging whether window scheme is first window pattern; Unit is changed, in the case of being first window pattern in window scheme, window scheme is revised as the second window scheme;Cut Figure unit, the media resource for being included to the page carry out sectional drawing.
Further, modification unit includes:Backup module, backs up for the insertion object elements to the page, obtains First insertion object elements;Remove module, for removing the insertion object elements of the page;Modified module, for by performing foot This language, is revised as the first preset value by the property value of the window-mode attribute of the first insertion object elements, obtains the second insertion Object elements;Load-on module, for the second insertion object elements to be loaded onto in the page, and refresh page.
Further, modified module includes:Submodule is removed, for removing the second preset value in window-mode attribute; Submodule is loaded, for loading the first preset value.
Further, above device further includes:Setting unit, for the property value of the path attribute of the page to be arranged to nothing Method carries out the address of page access.
Further, sectional drawing unit is additionally operable in the case where window scheme is not first window pattern, directly to the page Comprising media resource carry out sectional drawing.
In embodiments of the present invention, the insertion object elements of the page can be obtained, judge whether window scheme is the first window Mouth mold formula, in the case where window scheme is first window pattern, the second window scheme is revised as by window scheme, and to the page Comprising media resource carry out sectional drawing, realize directly can carry out direct sectional drawing on backstage to media resource, so as to solve existing Have the media resource played in technology on Website page under some window schemes, from the background can not direct sectional drawing technical problem. Therefore, by the above embodiment of the present invention, it can realize and directly media resource is being cut from the background by varying window scheme Figure so as to media resource supervise it is more accurate, can further realize can be completed in server end it is wide to the video of dispensing Accuse the monitoring of the media resource of type.
Brief description of the drawings
Attached drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of the processing method of media resource according to embodiments of the present invention;
Fig. 2 is a kind of flow chart of the processing method of optional media resource according to embodiments of the present invention;And
Fig. 3 is a kind of schematic diagram of the processing unit of media resource according to embodiments of the present invention.
Embodiment
In order to make those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Attached drawing, is clearly and completely described the technical solution in the embodiment of the present invention, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people Member's all other embodiments obtained without making creative work, should all belong to the model that the present invention protects Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, " Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use Data can exchange in the appropriate case, so as to the embodiment of the present invention described herein can with except illustrating herein or Order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment Those steps or unit clearly listed, but may include not list clearly or for these processes, method, product Or the intrinsic other steps of equipment or unit.
First, the part noun or term occurred during the embodiment of the present application is described is suitable for following solution Release:
Flash:It is the standard for interactive polar plot and the Web animation released by macromedia companies, Flash supports high The mp3 audio streams of quality, word input field, interactive interface etc. many things.Flash player are almost on network Standard.The animation made by player or image are very common for this.
Wmode (window scheme):In webpage during embedded flash file, this parameter of wmode is often used.wmode Have five values, be respectively ' window', ' opaque', ' transparent', ' direct', ' gpu', latter two be for Related parameter that flashplayer10 and more highest version increase newly and hardware-accelerated.
Wmode='window' is default mode, and flashplayer has the window handle of oneself in such a mode, this It is be present in Windows one display example to mean that flash films, and be browser core display window it On, so flash is simply shown in a browser seemingly, but this is also the render mode of the most fast full blasts of flash.Due to It is independently of the html render surfaces of browser, this be just directed at flash films can always cover position overlapped with him it is all Html elements.
Wmode='opaque' is without window pattern, in this case window sentences of the flashplayer without oneself Handle, this just need browser tell flashplayer browser render surfaces draw time and position.At this moment flash Film would not be higher than browser html render surfaces but with html on the same page, therefore you can use z- Index values control html elements on flash films.
Wmode='transparent' is transparent mode, and the stage backgrounds of flashplayer are in such a mode Bright, flashplayer can only draw the element on stage, and equally, you can also control flash films using z-index Depth value, but be so the playback effect that can reduce flash films, Er Qie unlike Opaque patterns Version before flashplayer9.0.115 set wmode='opaque' or ' transparent' can cause screen mode toggle Failure.
Wmode='direct' aims at flashplayer10 and the parameter increased newly with more highest version, is carried out around browser Render, rendered equivalent in independent flashplayer.
Wmode='gpu' aims at flashplayer10 and the parameter increased newly with more highest version, makes full use of hardware to add Speed, but it is all good to be not intended under all situations using such a pattern, can sometimes be run counter to desire.
JS scripts:Javascript, main purpose are the speed issues left for settlement server terminal language.
Embodiment 1
According to embodiments of the present invention, there is provided a kind of embodiment of the method for the processing method of media resource, it is necessary to explanation It is that step shown in the flowchart of the accompanying drawings can perform in the computer system of such as a group of computer-executable instructions, Also, although logical order is shown in flow charts, in some cases, can be with different from order execution herein Shown or described step.
Fig. 1 is a kind of flow chart of the processing method of media resource according to embodiments of the present invention, as shown in Figure 1, the party Method includes the following steps:
Step S102, obtains the insertion object elements of the page, wherein, the page includes at least:Media resource, is inserted into object meta Element includes at least:Window-mode attribute.
Specifically, above-mentioned media resource can be flash video, the above-mentioned page can be for playing flash video The video playing page, above-mentioned insertion object elements can be the object elements of the video playing page, above-mentioned window-mode attribute Can be the wmode attributes in object elements.
In a kind of optional scheme, when user watches flash video by web browser, on web browser After the video playing page of the loading comprising flash video, the object elements of the video playing page can be obtained, and read The property value of wmode attributes in object elements.
Step S104, according to window-mode attribute, judges whether window scheme is first window pattern.
Specifically, when window scheme is under first window pattern, sectional drawing can not be directly carried out from the background, wherein, it is above-mentioned First window pattern can be direct patterns, direct render mode.
In a kind of optional scheme, after the property value of the wmode attributes in reading object elements, judge Whether the property value of wmode attributes is direct, that is, judges in object elements whether be wmode='direct', if Wmode='direct', it is determined that window scheme is direct patterns;If not wmode='direct', it is determined that window Pattern is not direct patterns.
Step S106, in the case where window scheme is first window pattern, the second window mould is revised as by window scheme Formula.
Specifically, when window scheme is under the second window scheme, sectional drawing can be directly carried out from the background, wherein, it is above-mentioned Second window scheme can be opaque patterns, without window pattern.
In a kind of optional scheme, if it is determined that window scheme is direct patterns, i.e. wmode='direct', then Determine that directly sectional drawing can not be carried out, it is necessary to change window scheme, be opaque patterns by direct Mode changes, i.e., by wmode =' direct' is revised as wmode='opaque'.
Step S108, the media resource included to the page carry out sectional drawing.
Optionally, it is directly right in the case where window scheme is not first window pattern in the above embodiment of the present invention The media resource that the page includes carries out sectional drawing.
In a kind of optional scheme, if it is determined that the property value of wmode attributes is direct, i.e. wmode=' Direct', then be revised as opaque patterns by window scheme, i.e., wmode='direct' be revised as wmode=' After opaque', when user needs to carry out sectional drawing to flash video, shot operation can be carried out to flash video from the background. If window scheme is not direct patterns, i.e. wmode='opaque', wmode='window', wmode='opaque', Wmode='transparent', wmode='gpu', then need not change window scheme, when user is needed to flash video When carrying out sectional drawing, sectional drawing directly can be carried out to flash from the background.
Above-described embodiment according to the present invention, can obtain the insertion object elements of the page, judge whether window scheme is One window scheme, in the case where window scheme is first window pattern, the second window scheme is revised as by window scheme, and right The media resource that the page includes carries out sectional drawing, and realize directly can carry out direct sectional drawing on backstage to media resource, so as to solve The media resource played in the prior art on Website page under some window schemes, from the background can not the technology of direct sectional drawing ask Topic.Therefore, by the above embodiment of the present invention, can by varying window scheme, realize from the background directly to media resource into Row sectional drawing so that it is more accurate to be supervised to media resource, and can further realize can complete to regard dispensing in server end The monitoring of the media resource of frequency adline.
Optionally, in the above embodiment of the present invention, step S106, the second window scheme is revised as by window scheme, bag Include:
Step S1062, the insertion object elements to the page back up, and obtain the first insertion object elements.
In a kind of optional scheme, if the property value of wmode attributes is direct, i.e. wmode='direct', then It is opaque patterns to need window scheme, first can be backed up the object elements of current video playing page, is preserved It is local on backstage.
Step S1064, removes the insertion object elements of the page.
In a kind of optional scheme, in order to realize that backstage carries out sectional drawing to flash video, by current video The object elements of broadcast page are backed up, and are stored in after backstage, by the object elements of current video playing page Deleted.
Step S1066, by perform script language, the property value of the window-mode attribute of the first insertion object elements is repaiied The first preset value is changed to, obtains the second insertion object elements.
Specifically, the first above-mentioned preset value can be opaque, above-mentioned perform script language can be JS scripts.
, can be by JS script sentences, by the object elements of backstage local backup in a kind of optional scheme The property value of wmode attributes is revised as opaque, i.e., wmode='direct' is revised as wmode='opaque', will change Object elements afterwards are preserved again.
Step S1068, the second insertion object elements are loaded onto in the page, and refresh page.
In a kind of optional scheme, the object elements of backstage local backup can be loaded onto current video broadcast page In face, and refresh current video and play the page, since the property value of the wmode attributes of the video playing page after refreshing is Opaque, then can carry out sectional drawing to the flash video in the video playing page.
Optionally, in the above embodiment of the present invention, step S1066, by the window scheme category of the first insertion object elements The property value of property is revised as the first preset value, including:
Step S10662, removes the second preset value in window-mode attribute.
Step S10664, loads the first preset value.
Specifically, the first above-mentioned preset value can be direct.
In a kind of optional scheme, in order to by the property value of the wmode attributes of the object elements of backstage local backup Opaque is revised as, i.e., wmode='direct' is revised as wmode='opaque', can backstage local backup Primitive element is deleted in the wmode attributes of object elements, that is, deletes the initial value in wmode='direct' Direct, and transformed element is loaded in wmode attributes, that is, conversion value opaque is loaded, obtains wmode=' opaque'。
Optionally, in the above embodiment of the present invention, after step S1064, the insertion object elements for removing the page, on The method of stating further includes:
The property value of the path attribute of the page, is arranged to carry out the address of page access by step S1060.
Specifically, above-mentioned path attribute can be src attributes, the above-mentioned address that can not carry out page access can not deposited Address, or address blank.
In a kind of optional scheme, in order to prevent from the background in the wmode property values of the object elements to local backup When modifying, current video, which plays the page, to be continued to load flash video on backstage, influences the modification efficiency of wmode property values, Therefore, after the object elements that current video is played to the page are deleted, current video can be played to the scr of the page The address being not present is arranged to, then by JS scripts by the wmode attributes of the object elements of backstage local backup Property value is revised as opaque, i.e., wmode='direct' is revised as wmode='opaque'.
Optionally, in the above embodiment of the present invention, before step S102, the insertion object elements for obtaining the page, on The method of stating further includes:
Step S1002, access request is sent by browser, wherein, access request includes at least:The address letter of the page Breath.
Specifically, the address information of the above-mentioned page can be the url addresses that flash video plays the page.
Step S1004, after the page of server return is received, loading page.
, can when user watches flash video by web browser (webbrowser) in a kind of optional scheme To pay a return visit the video playing page of flash video by web browser control, transmission carries video playing webpage url addresses Access request, after the content of pages of the video playing page of flash video server return is received, loads video playing The page, and obtain the object elements that current video plays the page.
With reference to shown in Fig. 2, the processing method of preferable media resource a kind of to the present invention is described in detail, and such as schemes Shown in 2, this method may include steps of:
Step S21, pays a return visit video playing page.
Optionally, video playing page can be paid a return visit by web browser (webbrowser) control, transmission, which carries, to be regarded Frequency plays the access request of webpage url addresses.
Step S22, loads video playing page.
Optionally, after the content of pages of video playing webpage of server return is received, in web browser Load video playing page.
Step S23, reads the property value of the wmode of object elements.
Step S24, judges whether the property value of wmode is equal to direct.
Optionally, the wmode property values of object elements in the page are read, if the property value of wmode is direct, into Enter step S25;If the property value of wmode is not direct, S210 is entered step.
Step S25, backup object elements.
Step S26, removes object elements.
Step S27, the property value for changing the wmode of backup object elements is opaque.
Step S28, addition backup object elements to video playing page.
Step S29, refreshing video broadcast page.
Optionally, backup object elements, remove object elements, the src of original object pages are arranged to not deposit Address, prevent continue backstage loading video.The wmode property values that backup object is adjusted by js sentences are opaque, Backup object is loaded onto in the page, refresh page.
Step S210, sectional drawing is carried out to video.
Optionally, sectional drawing is carried out to the flash that wmode is opaque.
By above-mentioned steps S21 to step S210, realize directly can carry out sectional drawing on backstage to flash, solve by In the form for the wmode that the website having asks to return after flash on a web browser be direct forms, therefore cannot be straight on backstage The problem of connecing sectional drawing so that it is more accurate that flash is supervised, since backstage directly can carry out sectional drawing to flash, so as to The monitoring of the video ads to the dispensing of flash forms can be completed in server end by realizing.
Embodiment 2
According to embodiments of the present invention, there is provided a kind of device embodiment of the processing unit of media resource.
Fig. 3 is a kind of schematic diagram of the processing unit of media resource according to embodiments of the present invention, as shown in figure 3, the dress Put including:
Acquiring unit 31, for obtaining the insertion object elements of the page, wherein, the page includes at least:Media resource, insertion Object elements include at least:Window-mode attribute.
Specifically, above-mentioned media resource can be flash video, the above-mentioned page can be the video playing for including flash The page, above-mentioned insertion object elements can be object elements, and above-mentioned window-mode attribute can be wmode attributes.
In a kind of optional scheme, when user watches flash video by web browser, on web browser After the video playing page of the loading comprising flash video, the object elements of the video playing page can be obtained, and read The property value of wmode attributes in object elements.
Judging unit 33, according to window-mode attribute, for judging whether window scheme is first window pattern.
Specifically, above-mentioned first window pattern can be direct patterns, direct render mode.
In a kind of optional scheme, after the property value of the wmode attributes in reading object elements, judge Whether the property value of wmode attributes is direct, that is, judges in object elements whether be wmode='direct', if Wmode='direct', it is determined that window scheme is direct patterns;If not wmode='direct', it is determined that window Pattern is not direct patterns.
Unit 35 is changed, in the case of being first window pattern in window scheme, window scheme is revised as second Window scheme.
Specifically, above-mentioned second window scheme can be opaque patterns, without window pattern.
In a kind of optional scheme, if it is determined that window scheme is direct patterns, i.e. wmode='direct', then Determine that directly sectional drawing can not be carried out, it is necessary to change window scheme, be opaque patterns by direct Mode changes, i.e., by wmode =' direct' is revised as wmode='opaque'.
Sectional drawing unit 37, the media resource for being included to the page carry out sectional drawing.
Optionally, in the above embodiment of the present invention, in the case where window scheme is not first window pattern, sectional drawing list The media resource that member 37 is additionally operable to directly include the page carries out sectional drawing.
In a kind of optional scheme, if it is determined that the property value of wmode attributes is direct, i.e. wmode=' Direct', then be revised as opaque patterns by window scheme, i.e., wmode='direct' be revised as wmode=' After opaque', when user needs to carry out sectional drawing to flash video, shot operation can be carried out to flash video from the background. If window scheme is not direct patterns, i.e. wmode='opaque', wmode='window', wmode='opaque', Wmode='transparent', wmode='gpu', then need not change window scheme, when user is needed to flash video When carrying out sectional drawing, sectional drawing directly can be carried out to flash from the background.
Above-described embodiment according to the present invention, can obtain the insertion object elements of the page, judge whether window scheme is One window scheme, in the case where window scheme is first window pattern, the second window scheme is revised as by window scheme, and right The media resource that the page includes carries out sectional drawing, and realize directly can carry out direct sectional drawing on backstage to media resource, so as to solve The media resource played in the prior art on Website page under some window schemes, from the background can not the technology of direct sectional drawing ask Topic.Therefore, by the above embodiment of the present invention, can by varying window scheme, realize from the background directly to media resource into Row sectional drawing so that it is more accurate to be supervised to media resource, and can further realize can complete to regard dispensing in server end The monitoring of the media resource of frequency adline.
Optionally, in the above embodiment of the present invention, above-mentioned sectional drawing unit 37 includes:
Backup module, is backed up for the insertion object elements to the page, obtains the first insertion object elements.
In a kind of optional scheme, if the property value of wmode attributes is direct, i.e. wmode='direct', then Need window scheme being revised as opaque patterns, first can be backed up the object elements of current video playing page, It is local to be stored in backstage.
Remove module, for removing the insertion object elements of the page.
In a kind of optional scheme, in order to realize that backstage carries out sectional drawing to flash video, by current video The object elements of broadcast page are backed up, and are stored in after backstage, by the object elements of current video playing page Deleted.
Modified module, for by perform script language, by the attribute of the window-mode attribute of the first insertion object elements Value is revised as the first preset value, obtains the second insertion object elements.
Specifically, the first above-mentioned preset value can be opaque, above-mentioned perform script language can be JS scripts.
, can be by JS script sentences, by the object elements of backstage local backup in a kind of optional scheme The property value of wmode attributes is revised as opaque, i.e., wmode='direct' is revised as wmode='opaque', will change Object elements afterwards are preserved again.
Load-on module, for the second insertion object elements to be loaded onto in the page, and refresh page.
In a kind of optional scheme, the object elements of backstage local backup can be loaded onto current video broadcast page In face, and refresh current video and play the page, since the property value of the wmode attributes of the video playing page after refreshing is Opaque, then can carry out sectional drawing to the flash video in the video playing page.
Optionally, in the above embodiment of the present invention, above-mentioned modified module includes:
Submodule is removed, for removing the second preset value in window-mode attribute.
Submodule is loaded, for loading the first preset value.
Specifically, the first above-mentioned preset value can be direct.
In a kind of optional scheme, in order to by the property value of the wmode attributes of the object elements of backstage local backup Opaque is revised as, i.e., wmode='direct' is revised as wmode='opaque', can backstage local backup Primitive element is deleted in the wmode attributes of object elements, that is, deletes the initial value in wmode='direct' Direct, and transformed element is loaded in wmode attributes, that is, conversion value opaque is loaded, obtains wmode=' opaque'。
Optionally, in the above embodiment of the present invention, above device further includes:
Setting unit, for the property value of the path attribute of the page to be arranged to carry out to the address of page access.
Specifically, above-mentioned path attribute can be src attributes, the above-mentioned address that can not carry out page access can not deposited Address, or address blank.
In a kind of optional scheme, in order to prevent from the background in the wmode property values of the object elements to local backup When modifying, current video, which plays the page, to be continued to load flash video on backstage, influences the modification efficiency of wmode property values, Therefore, after the object elements that current video is played to the page are deleted, current video can be played to the scr of the page The address being not present is arranged to, then by JS scripts by the wmode attributes of the object elements of backstage local backup Property value is revised as opaque, i.e., wmode='direct' is revised as wmode='opaque'.
Optionally, in the above embodiment of the present invention, above device further includes:
Access unit, for sending access request by browser, wherein, access request includes at least:The address of the page Information.
Specifically, the address information of the above-mentioned page can be the url addresses that flash video plays the page.
Loading unit, for receive server return the page after, loading page.
, can when user watches flash video by web browser (webbrowser) in a kind of optional scheme To pay a return visit the video playing page of flash video by web browser control, transmission carries video playing webpage url addresses Access request, after the content of pages of the video playing page of flash video server return is received, loads video playing The page, and obtain the object elements that current video plays the page.
The processing unit of above-mentioned media resource can include processor and memory, and above-mentioned acquiring unit, judging unit, repair Change unit and sectional drawing unit etc. to store in memory as program unit, performed by processor on stored in memory State program unit.Above-mentioned first window pattern, the second window scheme may be stored in memory.
Kernel is included in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can set one Or more, parse content of text by adjusting kernel parameter.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/ Or the form such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM), memory includes at least one deposit Store up chip.
Present invention also provides a kind of embodiment of computer program product, when being performed on data processing equipment, fits In the program code for performing initialization there are as below methods step:The insertion object elements of the page are obtained, wherein, the page at least wraps Include:Media resource, insertion object elements include at least:Window-mode attribute;According to window-mode attribute, judge that window scheme is No is first window pattern;In the case where window scheme is first window pattern, window scheme is revised as the second window mould Formula;The media resource included to the page carries out sectional drawing.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in some embodiment The part of detailed description, may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents, can pass through others Mode is realized.Wherein, device embodiment described above is only schematical, such as the division of the unit, Ke Yiwei A kind of division of logic function, can there is an other dividing mode when actually realizing, for example, multiple units or component can combine or Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module Connect, can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit The component shown may or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On unit.Some or all of unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products Embody, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or network equipment etc.) perform each embodiment the method for the present invention whole or Part steps.And foregoing storage medium includes:USB flash disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with store program codes Medium.
The above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (10)

  1. A kind of 1. processing method of media resource, it is characterised in that including:
    The insertion object elements of the page are obtained, wherein, the page includes at least:Media resource, the insertion object elements are extremely Include less:Window-mode attribute;
    According to the window-mode attribute, judge whether window scheme is first window pattern;
    In the case where the window scheme is the first window pattern, the window scheme is revised as the second window mould Formula;
    The media resource included to the page carries out sectional drawing.
  2. 2. according to the method described in claim 1, it is characterized in that, the window scheme is revised as the second window scheme bag Include:
    Insertion object elements to the page back up, and obtain the first insertion object elements;
    Remove the insertion object elements of the page;
    By perform script language, it is pre- that the property value of the window-mode attribute of the described first insertion object elements is revised as first If value, obtains the second insertion object elements;
    Described second insertion object elements are loaded onto in the page, and refresh the page.
  3. 3. the according to the method described in claim 2, it is characterized in that, window-mode attribute for being inserted into object elements by described first Property value be revised as the first preset value, including:
    Remove the second preset value in the window-mode attribute;
    Load first preset value.
  4. 4. according to the method described in claim 2, it is characterized in that, after the insertion object elements of the page are removed, institute The method of stating further includes:
    The property value of the path attribute of the page is arranged to carry out to the address of page access.
  5. 5. according to the method described in claim 1, it is characterized in that, the method further includes:It is not institute in the window scheme In the case of stating first window pattern, the media resource included to the page carries out sectional drawing.
  6. A kind of 6. processing unit of media resource, it is characterised in that including:
    Acquiring unit, for obtaining the insertion object elements of the page, wherein, the page includes at least:Media resource, it is described to insert Enter object elements to include at least:Window-mode attribute;
    Judging unit, for according to the window-mode attribute, judging whether the window scheme is first window pattern;
    Unit is changed, in the case of being the first window pattern in the window scheme, the window scheme is changed For the second window scheme;
    Sectional drawing unit, the media resource for being included to the page carry out sectional drawing.
  7. 7. device according to claim 6, it is characterised in that the modification unit includes:
    Backup module, is backed up for the insertion object elements to the page, obtains the first insertion object elements;
    Remove module, for removing the insertion object elements of the page;
    Modified module, for by perform script language, by the attribute of the window-mode attribute of the described first insertion object elements Value is revised as the first preset value, obtains the second insertion object elements;
    Load-on module, for the described second insertion object elements to be loaded onto in the page, and refreshes the page.
  8. 8. device according to claim 7, it is characterised in that the modified module includes:
    Submodule is removed, for removing the second preset value in the window-mode attribute;
    Submodule is loaded, for loading first preset value.
  9. 9. device according to claim 7, it is characterised in that described device further includes:
    Setting unit, for the property value of the path attribute of the page to be arranged to carry out to the address of page access.
  10. 10. device according to claim 6, it is characterised in that the sectional drawing unit is additionally operable in the window scheme not In the case of being the first window pattern, the media resource directly included to the page carries out sectional drawing.
CN201610958181.8A 2016-10-27 2016-10-27 Media resource processing method and device Active CN108008935B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610958181.8A CN108008935B (en) 2016-10-27 2016-10-27 Media resource processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610958181.8A CN108008935B (en) 2016-10-27 2016-10-27 Media resource processing method and device

Publications (2)

Publication Number Publication Date
CN108008935A true CN108008935A (en) 2018-05-08
CN108008935B CN108008935B (en) 2021-05-14

Family

ID=62047409

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610958181.8A Active CN108008935B (en) 2016-10-27 2016-10-27 Media resource processing method and device

Country Status (1)

Country Link
CN (1) CN108008935B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101291488A (en) * 2008-03-24 2008-10-22 中兴通讯股份有限公司 Screen printing method on mobile terminal
CN101493837A (en) * 2009-02-25 2009-07-29 腾讯科技(深圳)有限公司 Network video playing method in multi-page browser and processing device
US7956869B1 (en) * 2007-07-13 2011-06-07 Adobe Systems Incorporated Proximity based transparency of windows aiding in obscured window selection
CN102325225A (en) * 2011-09-20 2012-01-18 北京鹏润鸿途科技有限公司 Method and device for playing video of mobile phone website
US20140365933A1 (en) * 2013-06-07 2014-12-11 Insyde Software Corp. Method of starting applications installed on a mobile operating system in a multi-window mode and device using the same
CN106028092A (en) * 2016-05-25 2016-10-12 天脉聚源(北京)传媒科技有限公司 Television screenshot sharing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7956869B1 (en) * 2007-07-13 2011-06-07 Adobe Systems Incorporated Proximity based transparency of windows aiding in obscured window selection
CN101291488A (en) * 2008-03-24 2008-10-22 中兴通讯股份有限公司 Screen printing method on mobile terminal
CN101493837A (en) * 2009-02-25 2009-07-29 腾讯科技(深圳)有限公司 Network video playing method in multi-page browser and processing device
CN102325225A (en) * 2011-09-20 2012-01-18 北京鹏润鸿途科技有限公司 Method and device for playing video of mobile phone website
US20140365933A1 (en) * 2013-06-07 2014-12-11 Insyde Software Corp. Method of starting applications installed on a mobile operating system in a multi-window mode and device using the same
CN106028092A (en) * 2016-05-25 2016-10-12 天脉聚源(北京)传媒科技有限公司 Television screenshot sharing method and device

Also Published As

Publication number Publication date
CN108008935B (en) 2021-05-14

Similar Documents

Publication Publication Date Title
CN104821963B (en) Recommendation information methods of exhibiting and device
TWI542204B (en) Multimedia comment system and multimedia comment method
CN107087235A (en) Media content recommendations method, server and client
CN107656957A (en) Promotional content method for pushing, device, system and storage medium
US10880595B2 (en) Method and apparatus for adjusting virtual reality scene, and storage medium
CN108320319B (en) Cartoon synthesis method, device and equipment and computer readable storage medium
TW201411517A (en) A publish system and method for interactive video e-commerce
CN107679885A (en) A kind of ad data acquisition methods and device
CN109345303A (en) A kind of rich-media ads put-on method and device
CN108156152A (en) Streaming Media downloads method, apparatus, storage medium and the terminal device with playing
CN107786903A (en) video interactive method and device
CN105608158A (en) Method and apparatus for displaying picture in waterfall flow manner
CN107823881A (en) Special display effect method and device
CN106326403A (en) Web page generating method and device
CN112235603B (en) Video distribution system, method, computing device, user equipment and video playing method
CN108008935A (en) The treating method and apparatus of media resource
WO2008112213A1 (en) Method and system for an interactive, web-based environment
CN103702167B (en) Method and electronic equipment for displaying program preview
Percival HTML5 advertising
CN107798134A (en) A kind of data filtering method, device, equipment and storage medium
CN106339424A (en) Webpage preservation processing method and device
JP6448046B2 (en) Method for presenting composite media content and presentation system for executing the method
Zhuge Video consumption, social networking, and influence
CN111784421A (en) Method and device for displaying media information, storage medium and electronic equipment
JP2015176597A5 (en)

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant