CN103905927B - Method, desktop server and the system that under virtual desktop scene, video redirects - Google Patents

Method, desktop server and the system that under virtual desktop scene, video redirects Download PDF

Info

Publication number
CN103905927B
CN103905927B CN201210574647.6A CN201210574647A CN103905927B CN 103905927 B CN103905927 B CN 103905927B CN 201210574647 A CN201210574647 A CN 201210574647A CN 103905927 B CN103905927 B CN 103905927B
Authority
CN
China
Prior art keywords
video
window
client
web page
label
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210574647.6A
Other languages
Chinese (zh)
Other versions
CN103905927A (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.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201610514067.6A priority Critical patent/CN106231369A/en
Priority to CN201210574647.6A priority patent/CN103905927B/en
Publication of CN103905927A publication Critical patent/CN103905927A/en
Application granted granted Critical
Publication of CN103905927B publication Critical patent/CN103905927B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/835Generation of protective data, e.g. certificates
    • H04N21/8355Generation of protective data, e.g. certificates involving usage data, e.g. number of copies or viewings allowed
    • H04N21/83555Generation of protective data, e.g. certificates involving usage data, e.g. number of copies or viewings allowed using a structured language for describing usage rules of the content, e.g. REL
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/254Management at additional data server, e.g. shopping server, rights management server
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
    • H04N21/8586Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Graphics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a kind of method that under virtual desktop scene, video redirects, desktop server does not renders process to the video file in web page files, utilize the disposal ability of client, directly the video file in web page files is redirected to desktop client decoding and plays, avoid desktop server video file to be rendered and takies great system resource, client directly plays the code stream of original video files simultaneously, with send after desktop server renders to client show compared with, image quality is more preferable, and Consumer's Experience is good.

Description

Method, desktop server and the system that under virtual desktop scene, video redirects
Technical field
The present invention relates to computer realm, particularly relate to a kind of method of video playback under virtual desktop scene, Desktop server and system.
Background technology
Remote desktop is a kind of popular technique of current enterprise working environment, is commonly used to a computer screen The display screen that the content of display is sent at other one shows, the Windows Telnet that generally we use Program is modal remote desktop program, can log in other remote computer easily by it.Mesh Front most remote desktop system is all based on IP network to transmit remote desktop.Remote desktop not only Refer to that long-range screen shows, it is also possible to comprise the technology such as remote sound transmission, pluggable hardware mapping.Remotely Desktop is properly termed as again virtual desktop.
Owing to the standardized process of HTML5 is progressively accelerated, major part video website also selects HTML5 the most Build the basis of website.Video playback area in HTML5 webpage is carried out video interception by desktop server, and This region picture is compressed into the picture of a width by consecutive image compression algorithm, and picture is sent out by service end Give client to show, so cause service end when being compressed processing, occupy great system resource, Through the process of compression algorithm, video quality has bigger relatively low relative to original video quality, Consumer's Experience The best.
Summary of the invention
Embodiment of the present invention technical problem to be solved is, it is provided that video weight under a kind of virtual desktop scene Method, desktop server and the system of orientation.Can make desktop server when processing containing the web page files of video, The consumption of reduction system, improves the video image quality in client simultaneously.
In order to solve above-mentioned technical problem, first aspect present invention provides video under a kind of virtual desktop scene The method redirected, including:
Instruction according to client sends web-page requests to web page server;
Receive the web page files that described web page server returns;
Obtain the label of described web page files;
If the label of described web page files includes video tab, the video address information of described video tab is repaiied Changing string token into, described string token is used for indicating browser not process described video address information and refers to To video file;
Obtain the video flowing of the video file that described video address information is pointed to;
Described video flowing is sent to described client, so that video flowing described in described client terminal playing.
In the implementation that the first is possible, the label of the described web page files of described acquisition, specifically include:
The DOM object tree of described web page files is built, from the node of described DOM object tree by browser The described label of middle acquisition.
In conjunction with the first possible implementation of first aspect, in the implementation that the second is possible, also wrap Include:
Also include:
The window parameter of described video file is obtained from described DOM object tree;Wherein, described window parameter Including the window's position, window size and block information;
Described window parameter is sent to described client, so that described client is according to described window parameter structure Build the video window of described video file.
In conjunction with the implementation that first aspect the second is possible, in the implementation that the third is possible, described Obtain the method for the window's position in described window parameter, specifically include:
Obtain described video tab relative to the position of father's label, recursive calculation step by step in described DOM object tree Go out the described video tab position relative to browser window;
Position calculation according to described browser window goes out the described video tab position in client desktop.
In conjunction with any one in the third possible implementation of first aspect to first aspect, at the 4th kind In possible implementation, the method for block information in the described window parameter of described acquisition, specifically include:
Determine whether described video window is hidden according to video window relative to the position of described browser window Gear, if it has, then obtain the block information of described video window;
And described block information is sent to described client, so that described client is according to described block information The part being blocked by video window is shown as pellucidity.
Second aspect present invention provides a kind of desktop server, including:
Web-page requests module, for sending web-page requests according to the instruction of client to web page server;
Webpage receiver module, for receiving the web page files that described web page server returns;
Label acquisition module, for obtaining the label of described web page files;
Video tab processing module, if the label for described web page files includes video tab, regards described The video address information of frequency marking label is revised as string token, and described string token is used for indicating browser not Process the video file that described video address information is pointed to;
Video flowing acquisition module, for obtaining the video flowing of the video file that described video address information is pointed to;
Video stream module, for sending described video flowing to described client, so that described client is broadcast Put described video flowing.
In the implementation that the first is possible, described label acquisition module includes:
Label acquiring unit, for building the DOM object tree of described web page files, from described by browser The node of DOM object tree obtains described label.
In conjunction with the first possible implementation of second aspect, in the implementation that the second is possible, also Including:
Window parameter acquisition module, for obtaining the window ginseng of described video file from described DOM object tree Number;Wherein, described window parameter includes the window's position, window size and block information;Described window is joined Number sends to described client, so that described client builds described video file according to described window parameter Video window.
In conjunction with the implementation that the second of second aspect is possible, in the implementation that the third is possible, institute State window parameter acquisition module to include:
The window's position acquiring unit, is used for obtaining described video tab and marks relative to father in described DOM object tree The position signed, recursive calculation goes out the described video tab position relative to browser window step by step;According to described The position calculation of browser window goes out the described video tab position at virtual machine desktop.
In conjunction with any one in the third possible implementation of second aspect to second aspect, at the 4th kind In possible implementation, described window parameter acquisition module includes:
Block information acquiring unit, for determining relative to the position of described browser window according to video window Whether described video window is blocked, if it has, then obtain the block information of described video window;And by institute State block information to send to described client so that described client according to described block information by video window The part being blocked is shown as pellucidity.
Implement the present invention, have the advantages that
Desktop server does not renders process to the video file in web page files, utilizes the process energy of client Power, is directly redirected to the video file in web page files desktop client decoding and plays, it is to avoid desktop Video file is rendered and takies great system resource by server, and client is directly play original simultaneously The code stream of video file, with send after desktop server renders to client show compared with, image quality More preferably, Consumer's Experience is good.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to enforcement In example or description of the prior art, the required accompanying drawing used is briefly described, it should be apparent that, describe below In accompanying drawing be only some embodiments of the present invention, for those of ordinary skill in the art, do not paying On the premise of going out creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 be the present invention a kind of virtual desktop scene under the schematic flow sheet of method that redirects of video;
Fig. 2 be the present invention a kind of virtual desktop scene under another schematic flow sheet of method of redirecting of video;
Fig. 3 is the structural representation of a kind of audio/video player system of the present invention;
Fig. 4 is the structural representation of a kind of desktop server of the present invention;
Fig. 5 is another structural representation of a kind of desktop server of the present invention;
The structural representation of label acquisition module in Fig. 5 during Fig. 6;
Fig. 7 is the structural representation of window parameter acquisition module in Fig. 5;
Fig. 8 is the another structural representation of a kind of desktop server of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly Chu, be fully described by, it is clear that described embodiment be only a part of embodiment of the present invention rather than Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creation The every other embodiment obtained under property work premise, broadly falls into the scope of protection of the invention.
See Fig. 1, the method redirected for video under a kind of virtual desktop scene of the present invention, including:
Step 101, instruction according to client send web-page requests to web page server.
Concrete, when user is by client-access webpage, described client sends a mouse click event To desktop server, described desktop server is converted into corresponding HTTP after receiving this mouse click event (Hypertext Transport Protocol, HTML (Hypertext Markup Language) are called for short HTTP) request sends to webpage Server, described web page server responds described HTTP request and returns web page files extremely described desktop server, Described web page files includes HTML5 web page files.
Step 102, receive described web page server return web page files.
Step 103, the label obtained in described web page files.
Concrete, desktop server obtains the label in web page files, desktop services by the plug-in unit of browser Device can also use DLL (Dynamic Link Library, dynamic link library are called for short DLL) injection technique Obtaining the label in web page files, the method present invention of acquisition does not limits.
If the label in the described web page files of step 104 includes video tab, by the video of described video tab Address information is revised as string token, and described string token is used for indicating browser not process described video The video file that address information is pointed to.
Concrete, HTML5 web page files generally includes polytype label, desktop server judges to obtain Whether the label taken including video tab, if there is video tab, the video address in video tab being believed Breath is revised as string token.As a example by the video tab of HTML5 web page files, its video tab contains Several attribute such as src, poster, preload, autoplay, loop, controls, width and height, its Middle src is used to refer to video address information, such as < Video src= " http:media.w3.org/2010/05/sintel/trailer.mp4 " >, desktop server is by video address information " http:media.w3.org/2010/05/sintel/trailer.mp4 " is revised as string token, described character string Labelling does not process the video file that video address information is pointed to, i.e. desktop server for indicating desktop server Do not process trailer.mp4 video file, described string token can be temporary address, desktop server this locality or Address blank, the present invention is not restricted;Meanwhile, video address information flag is character by the embodiment of the present invention String, character string therein is not limited to situation listed by the embodiment of the present invention, it is also possible to for sky, will video address Information empties.
Step 105, obtain the video flowing of video file that described video address information is pointed to.
Concrete, such as the example of step 104, obtain video address information The video of the trailer.mp4 video file that " http:media.w3.org/2010/05/sintel/trailer.mp4 " points to Stream.While at step 104 video address information being revised as string token, in addition it is also necessary to preserve and do not repair The video address information changed;In step 105, according to video ground described in the video address acquisition of information preserved The video flowing of the video file that location information is pointed to.
Step 106, to described client send described video flowing so that described client broadcasts described video flowing.
Concrete, receive described client to the video that the video address information of described video tab is pointed to During playing request, send the video flowing of described video file to client, so that described client is broadcast described Video flowing.
Desktop server generates corresponding HTTP request according to the playing request of client and sends to web service Device, web page server responds the video flowing of the video file that video address information is pointed to by this HTTP request and sends out Delivering to desktop server, desktop server does not render process to this video flowing, but sends institute to client State video flowing, so that this video flowing is directly decoded and plays by client.When client can directly be visited When asking web page server, the order request that the most described client can directly transmit to described web page server, Described order request is HTTP request, and described web page server is direct by video after responding this HTTP request The video stream of the video file that address information is pointed to is to client, so that client is directly to this video flowing It is decoded and plays.
Implementing embodiments of the invention, desktop server does not renders process to the video file in web page files, Utilize the disposal ability of client, directly the video file in web page files is redirected to desktop client decoding And broadcasting, it is to avoid video file is rendered and takies great system resource, simultaneously by desktop server Client directly plays the code stream of original video files, sends to client with after desktop server renders Displaying is compared, and image quality is more preferable, and Consumer's Experience is good.
See Fig. 2, show for another flow process of the method for video redirection under a kind of virtual desktop scene of the present invention It is intended to, including:
Step 201, instruction according to client send web-page requests to web page server.
Concrete, when user is by client-access webpage, described client sends a mouse click event To desktop server, described desktop server is converted into corresponding HTTP after receiving this mouse click event Request sends to web page server, and described web page server responds described HTTP request and returns web page files extremely Described desktop server, described web page files includes HTML5 web page files.
Step 202, receive described web page server return web page files.
Step 203, built the DOM object tree of described web page files by browser, from described DOM pair Described label is obtained in the node of tree.
Concrete, by BHO (Browser Helper Object, browser auxiliary object, the letter of browser Claim BHO) plug-in unit build described web page files DOM object tree, web page files is converted to DOM object Tree, obtains described label from the node of described DOM object tree.DOM object tree provides web page files In the operation entry of label, it is easy to computer disposal.
If the label in the described web page files of step 204 includes video tab, by the video of described video tab Address information is revised as string token, and described string token is used for indicating browser not process described video The video file that address information is pointed to.
Concrete, the label of each node correspondence web page files of DOM object tree, use ergodic algorithm inquiry In DOM object tree, whether there is video tab, if existing, the video address information of video tab being repaiied Changing string token into, described string token is used for indicating desktop server not process video address information and refers to To video file, described tab character string can be temporary address, desktop server this locality or address blank, this Invention is not restricted.
Step 205, obtain the video flowing of video file that described video address information is pointed to.
While in step 204 video address information being revised as string token, in addition it is also necessary to preserve and do not repair The video address information changed;In step 205, according to video ground described in the video address acquisition of information preserved The video flowing of the video file that location information is pointed to.
Step 206, from described DOM object tree, obtain the window parameter of described video file;Wherein, institute State window parameter and include the window's position, window size and block information;Described window parameter is sent to described Client, so that described client builds the video window of described video file according to described window parameter.
Concrete, desktop server obtains the window parameter of video window from DOM object tree, and by this window Mouth parameter is transferred to client, so that video window specifies position display in client, user is at client body Test the effect at desktop server local IP access.Wherein, window parameter includes the window's position, window size And block information, the acquisition methods of the window's position is for obtaining described video tab relative to father in DOM object tree The position of label, recursive calculation goes out the described video tab position relative to browser window step by step;According to institute The position calculation stating browser window goes out the described video tab position at virtual machine desktop.Obtaining of window size Access method is width width attribute and the height height attributes inquiring about video tab in DOM object tree Determine the window size of video window.The method that block information obtains is clear relative to described according to video window Looking at the position of device window determines whether described video window is blocked, if it has, then obtain described video window Block information, described block information include video window be blocked part extreme coordinates, generally Window is rectangle, and the part being blocked of video window is rectangle or triangle, then block information includes rectangle Four extreme coordinates or three extreme coordinates of triangle, described block information is sent to client, with The part making client be blocked by video window according to described block information is shown as pellucidity.
207, described video flowing is sent to described client, so that described client broadcasts described video flowing.
Concrete, receive described client to the video that the video address information of described video tab is pointed to During playing request, send the video flowing of described video file to client, so that described client utilizes self Hardware resource play described video flowing.
Implementing embodiments of the invention, desktop server does not renders process to the video file in web page files, Utilize the disposal ability of client, directly the video file in web page files is redirected to desktop client decoding And broadcasting, it is to avoid video file is rendered and takies great system resource, simultaneously by desktop server Client directly plays the code stream of original video files, sends to client with after desktop server renders Displaying is compared, and image quality is more preferable, and Consumer's Experience is good.
See Fig. 3, for the structural representation of a kind of audio/video player system of the present invention, including desktop server 2 With client 1, work process is:
User sends a mouse click event or KeyEvent to desktop server 2, desktop by client 1 Server 2 is the web-page requests of browser according to this event simulation, and desktop server 2 is sent out to web page server HTTP request, web page server is sent to respond this HTTP request and send web page files to desktop server 2, Desktop server 2 obtains the label in the web page files received, and the method for acquisition includes utilizing browser structure Building the DOM object tree of label information, traversal DOM object tree interior joint obtains label, it is judged that in label Whether including video tab, if there is video tab, then the video address information in video tab being revised as String token, described string token is for indicating the browser of desktop server 2 not process described video The video file that address information is pointed to.Desktop server 2 obtains video address information at web page server and refers to To the video flowing of video file, and by this video stream to client 1, client 1 receives video flowing Video flowing is decoded and plays by the rear hardware resource utilizing self.
Further, desktop server 2 obtains corresponding to described video tab from described DOM object tree The window parameter including the window's position, window size and block information of video file, by described window parameter Send to client 1 so that video flowing specifies position display in client 1, user client experience to The effect of desktop server local IP access.
Embodiment of the present invention audio/video player system is referred to the description of the inventive method embodiment.
Implementing embodiments of the invention, desktop server does not renders process to the video file in web page files, Utilize the disposal ability of client, directly the video file in web page files is redirected to desktop client decoding And broadcasting, it is to avoid video file is rendered and takies great system resource, simultaneously by desktop server Client directly plays the code stream of original video files, sends to client with after desktop server renders Displaying is compared, and image quality is more preferable, and Consumer's Experience is good.
See Fig. 4, for the structural representation of a kind of desktop server of the present invention, including:
Web-page requests module 21, for sending web-page requests according to the instruction of client to web page server.
Concrete, when user is by client-access webpage, described client sends a mouse click event To desktop server, web-page requests module 21 is converted into corresponding HTTP after receiving this mouse click event Request sends to web page server, and described web page server responds described HTTP request and returns web page files extremely Described desktop server, described web page files includes HTML5 web page files.
Webpage receiver module 22, for receiving the web page files that described web page server returns.
Label acquisition module 23, for obtaining the label of described web page files.
Concrete, label acquisition module 23 obtains the label in web page files, desktop by the plug-in unit of browser Server can also use DLL (Dynamic Link Library, dynamic link library are called for short DLL) to inject Label in technical limit spacing web page files, the method present invention of acquisition does not limits.
Video tab processing module 24, if the label for described web page files includes video tab, by described The video address information of video tab is revised as string token, and described string token is used for indicating browser Do not process the video file that described video address information is pointed to.
Concrete, web page files generally includes polytype label, video tab processing module 24 judges Whether the label obtained includes video tab, if there is video tab, by the video address in video tab Information is revised as string token.As a example by the video tab of HTML5 web page files, its video tab contains Several attribute such as src, poster, preload, autoplay, loop, controls, width and height, its Middle src is used to refer to video address information, such as < Video src= " http:media.w3.org/2010/05/sintel/trailer.mp4 " >, video tab processing module 24 is by video Address information " http:media.w3.org/2010/05/sintel/trailer.mp4 " is revised as string token, institute State string token for indicating desktop server not process the video file that video address information is pointed to, i.e. table Face server does not process trailer.mp4 video file, and described string token can be that desktop server this locality is faced Time address or address blank, the present invention is not restricted.
Video flowing acquisition module 25, for obtaining the video flowing of the video file that described video address information is pointed to.
Video stream module 26, for sending described video flowing to described client, so that described client Play described video flowing.
Implementing embodiments of the invention, desktop server does not renders process to the video file in web page files, Utilize the disposal ability of client, directly the video file in web page files is redirected to desktop client decoding And broadcasting, it is to avoid video file is rendered and takies great system resource, simultaneously by desktop server Client directly plays the code stream of original video files, sends to client with after desktop server renders Displaying is compared, and image quality is more preferable, and Consumer's Experience is good.
Further, see Fig. 5-Fig. 7, for another structural representation of a kind of desktop server of the present invention, Except web-page requests module 21, webpage receiver module 22, label acquisition module 23, video tab processing module 24, outside video flowing acquisition module 25 and video stream module 26, also include:
Window parameter acquisition module 27, for obtaining the window of described video file from described DOM object tree Mouth parameter;Wherein, described window parameter includes the window's position, window size and block information;By described window Mouth parameter sends to described client, so that described client builds described video literary composition according to described window parameter The video window of part.
Concrete, window parameter module 24 includes:
The window's position acquiring unit 271, is used for obtaining described video tab relative in described DOM object tree The position of father's label, recursive calculation goes out the described video tab position relative to browser window step by step;According to The position calculation of described browser window goes out the described video tab position at virtual machine desktop.
Block information acquiring unit 272, for true relative to the position of described browser window according to video window Whether fixed described video window is blocked, if it has, then obtain the block information of described video window;And will Described block information sends to described client so that described client according to described block information by video window The part that mouth is blocked is shown as pellucidity.
Concrete, block information acquiring unit 272 according to video window relative to the position of described browser window Put and determine whether described video window is blocked, if it has, then obtain the block information of described video window, Described block information include video window be blocked part extreme coordinates, generally window is rectangle, The part being blocked of video window is rectangle or triangle, then block information includes that four end points of rectangle are sat Mark or three extreme coordinates of triangle, described block information is sent to visitor by block information acquiring unit 242 Family end, so that the part that video window is blocked by client according to described block information is shown as pellucidity.
Further, label acquisition module 23 includes:
Label acquiring unit 231, for being built the DOM object tree of described web page files by browser, from The node of described DOM object tree obtains described label.
Concrete, label acquiring unit 231 by browser plug-in by the DOM object tree in web page files, Each node of described DOM object tree is converted by the label in web page files, uses ergodic algorithm to obtain Label in DOM object tree.Structurized model is become, it is simple to computer by the label in web page files Label is inquired about and operates.
Implementing embodiments of the invention, desktop server does not renders process to the video file in web page files, Utilize the disposal ability of client, directly the video file in web page files is redirected to desktop client decoding And broadcasting, it is to avoid video file is rendered and takies great system resource, simultaneously by desktop server Client directly plays the code stream of original video files, sends to client with after desktop server renders Displaying is compared, and image quality is more preferable, and Consumer's Experience is good.
See Fig. 8, for the another structural representation of a kind of desktop server of the present invention, including processor 61, Memorizer 62, input equipment 63 and output device 64, the quantity of the processor 61 in desktop server is permissible Being one or more, Fig. 8 is as a example by a processor.In some embodiments of the present invention, processor 61, Memorizer 62, input equipment 63 and output device 64 can be connected by bus or other modes, in Fig. 8 with As a example by bus connects.
Wherein, memorizer 62 stores batch processing code, and processor 61 is used for calling in memorizer 62 The program code of storage, is used for performing following operation:
Instruction according to client sends web-page requests to web page server;
Receive the web page files that described web page server returns;
Obtain the label of described web page files;
If the label of described web page files includes video tab, the video address information of described video tab is repaiied Changing string token into, described string token is used for indicating browser not process described video address information and refers to To video file;
Obtain the video flowing of the video file that described video address information is pointed to;
Described video flowing is sent to described client, so that video flowing described in described client terminal playing.
In some embodiments of the invention, processor 61 is specifically for performing:
The DOM object tree of described web page files is built, from the node of described DOM object tree by browser The described label of middle acquisition.
In some embodiments of the invention, processor 61 is additionally operable to perform:
The window parameter of described video file is obtained from described DOM object tree;Wherein, described window parameter Including the window's position, window size and block information;
Described window parameter is sent to described client, so that described client is according to described window parameter structure Build the video window of described video file.
Further, processor 61 is specifically for performing:
Obtain described video tab relative to the position of father's label, recursive calculation step by step in described DOM object tree Go out the described video tab position relative to browser window;
Position calculation according to described browser window goes out the described video tab position at virtual machine desktop.
Further, processor 61 is specifically for performing:
Determine whether described video window is hidden according to video window relative to the position of described browser window Gear, if it has, then obtain the block information of described video window;
And described block information is sent to described client, so that described client will regard according to described block information Frequently the part that window is blocked is shown as pellucidity.
Implementing embodiments of the invention, desktop server does not renders process to the video file in web page files, Utilize the disposal ability of client, directly the video file in web page files is redirected to desktop client decoding And broadcasting, it is to avoid video file is rendered and takies great system resource, simultaneously by desktop server Client directly plays the code stream of original video files, sends to client with after desktop server renders Displaying is compared, and image quality is more preferable, and Consumer's Experience is good.
The invention described above embodiment provides desktop server to be referred to the description of the inventive method embodiment.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, Can be by computer program and complete to instruct relevant hardware, described program can be stored in a calculating In machine read/write memory medium, this program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method. Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, Or random store-memory body (Random Access Memory, RAM) etc. ROM).
Above disclosed only one preferred embodiment of the present invention, can not limit this with this certainly Bright interest field, one of ordinary skill in the art will appreciate that all or part of stream realizing above-described embodiment Journey, and according to the equivalent variations that the claims in the present invention are made, still fall within the scope that invention is contained.

Claims (11)

1. the method that under virtual desktop scene, video redirects, described method is performed by desktop server, It is characterized in that, described method includes:
Instruction according to client sends web-page requests to web page server;
Receive the web page files that described web page server returns;
Obtain the label of described web page files;
If the label of described web page files includes video tab, the video address information of described video tab is repaiied Changing string token into, described string token is used for indicating browser not process described video address information and refers to To video file;
Obtain the video flowing of the video file that described video address information is pointed to;
Described video flowing is sent to described client, so that video flowing described in described client terminal playing.
2. the method for claim 1, it is characterised in that the label of the described web page files of described acquisition, Specifically include:
The DOM object tree of described web page files is built, from described DOM object tree by described browser Node obtains described label.
3. method as claimed in claim 2, it is characterised in that also include:
The window parameter of described video file is obtained from described DOM object tree;Wherein, described window parameter Including the window's position, window size and block information;
Described window parameter is sent to described client, so that described client is according to described window parameter structure Build the video window of described video file.
4. method as claimed in claim 3, it is characterised in that obtain the window that described window parameter includes Position, specifically includes:
Obtain described video tab relative to the position of father's label, recursive calculation step by step in described DOM object tree Go out the described video tab position relative to browser window;
Position calculation according to described browser window goes out the described video tab position at virtual machine desktop.
5. the method as described in claim 3 or 4, it is characterised in that obtain what described window parameter included Block information, specifically includes:
Determine whether described video window is hidden according to video window relative to the position of described browser window Gear, if it has, then obtain the block information of described video window;
And described block information is sent to described client, so that described client will regard according to described block information Frequently the part that window is blocked is shown as pellucidity.
6. a desktop server, it is characterised in that including:
Web-page requests module, for sending web-page requests according to the instruction of client to web page server;
Webpage receiver module, for receiving the web page files that described web page server returns;
Label acquisition module, for obtaining the label of described web page files;
Video tab processing module, if the label for described web page files includes video tab, regards described The video address information of frequency marking label is revised as string token, and described string token is used for indicating browser not Process the video file that described video address information is pointed to;
Video flowing acquisition module, for obtaining the video flowing of the video file that described video address information is pointed to;
Video stream module, for sending described video flowing to described client, so that described client is broadcast Put described video flowing.
7. desktop server as claimed in claim 6, it is characterised in that described label acquisition module includes:
Label acquiring unit, for being built the DOM object tree of described web page files by described browser, from The node of described DOM object tree obtains described label.
8. desktop server as claimed in claim 7, it is characterised in that also include:
Window parameter acquisition module, for obtaining the window ginseng of described video file from described DOM object tree Number;Wherein, described window parameter includes the window's position, window size and block information;Described window is joined Number sends to described client, so that described client builds described video file according to described window parameter Video window.
9. desktop server as claimed in claim 8, it is characterised in that described window parameter acquisition module Including:
The window's position acquiring unit, is used for obtaining described video tab and marks relative to father in described DOM object tree The position signed, recursive calculation goes out the described video tab position relative to browser window step by step;According to described The position calculation of browser window goes out the described video tab position at virtual machine desktop.
10. desktop server as claimed in claim 8 or 9, it is characterised in that described window parameter obtains Delivery block includes:
Block information acquiring unit, for determining relative to the position of described browser window according to video window Whether described video window is blocked, if it has, then obtain the block information of described video window;And by institute State block information to send to described client so that described client according to described block information by video window The part being blocked is shown as pellucidity.
11. 1 kinds of audio/video player systems, it is characterised in that include client and as claim 6-10 is arbitrary Desktop server described in Xiang.
CN201210574647.6A 2012-12-26 2012-12-26 Method, desktop server and the system that under virtual desktop scene, video redirects Active CN103905927B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610514067.6A CN106231369A (en) 2012-12-26 2012-12-26 Method, desktop server and the system that under virtual desktop scene, video redirects
CN201210574647.6A CN103905927B (en) 2012-12-26 2012-12-26 Method, desktop server and the system that under virtual desktop scene, video redirects

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210574647.6A CN103905927B (en) 2012-12-26 2012-12-26 Method, desktop server and the system that under virtual desktop scene, video redirects

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201610514067.6A Division CN106231369A (en) 2012-12-26 2012-12-26 Method, desktop server and the system that under virtual desktop scene, video redirects

Publications (2)

Publication Number Publication Date
CN103905927A CN103905927A (en) 2014-07-02
CN103905927B true CN103905927B (en) 2016-08-10

Family

ID=50997041

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201210574647.6A Active CN103905927B (en) 2012-12-26 2012-12-26 Method, desktop server and the system that under virtual desktop scene, video redirects
CN201610514067.6A Pending CN106231369A (en) 2012-12-26 2012-12-26 Method, desktop server and the system that under virtual desktop scene, video redirects

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201610514067.6A Pending CN106231369A (en) 2012-12-26 2012-12-26 Method, desktop server and the system that under virtual desktop scene, video redirects

Country Status (1)

Country Link
CN (2) CN103905927B (en)

Families Citing this family (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10268492B2 (en) 2014-05-20 2019-04-23 Amazon Technologies, Inc. Low latency connections to workspaces in a cloud computing environment
US20160112528A1 (en) * 2014-10-16 2016-04-21 Futurewei Technologies, Inc. Method and System for Serving a Virtual Desktop to a Client
CN105163140A (en) * 2015-07-22 2015-12-16 深圳市京华科讯科技有限公司 Method and system for playing online videos by using virtual machine
CN106817607B (en) * 2015-12-02 2020-09-08 南京中兴新软件有限责任公司 Audio and video multicast playing method, device and system based on virtual desktop
CN105554518A (en) * 2015-12-04 2016-05-04 浙江宇视科技有限公司 Method and device for controlling video stream transmission
CN106210036A (en) * 2016-07-08 2016-12-07 中霆云计算科技(上海)有限公司 Video display accelerated method in virtual desktop display device
CN107018137A (en) * 2017-04-07 2017-08-04 成都长天信息技术有限公司 A kind of Flash reorientation methods and device
CN107222783A (en) * 2017-07-13 2017-09-29 山东超越数控电子有限公司 A kind of video based on SPICE protocol redirects implementation method
CN107529711A (en) * 2017-08-01 2018-01-02 杭州安恒信息技术有限公司 The display methods and device of Streaming Media
CN107864384B (en) * 2017-11-20 2020-12-25 顶联信息产业股份公司 Method and device for redirecting internet video playing on cloud desktop
CN110138817A (en) * 2018-02-08 2019-08-16 中兴通讯股份有限公司 Flow media playing method, device, equipment and computer readable storage medium
CN110134450B (en) * 2018-02-08 2021-08-10 中兴通讯股份有限公司 Video redirection method, device and computer readable storage medium
CN108563479A (en) * 2018-03-21 2018-09-21 新华三云计算技术有限公司 Redirect control method, device, virtual machine and the Redirectional system of window
CN110324671B (en) * 2018-03-30 2021-06-08 中兴通讯股份有限公司 Webpage video playing method and device, electronic equipment and storage medium
CN109040792B (en) * 2018-08-13 2021-04-09 中兴通讯股份有限公司 Processing method for video redirection, cloud terminal and cloud desktop server
CN109068153B (en) * 2018-09-28 2020-10-16 华为技术有限公司 Video playing method and device and computer readable storage medium
CN109446460B (en) * 2018-10-24 2021-11-19 国云科技股份有限公司 HTML5 online video redirection system and implementation method thereof
CN110062286A (en) * 2019-02-22 2019-07-26 上海映云信息技术有限公司 A method of realizing that video redirects in virtual desktop
CN110113661A (en) * 2019-04-10 2019-08-09 新华三云计算技术有限公司 A kind of video broadcasting method and device
CN110381363A (en) * 2019-07-17 2019-10-25 深信服科技股份有限公司 Video encoding/decoding method, device, server and storage medium
CN111526428B (en) * 2020-04-26 2022-04-26 湖南麒麟信安科技股份有限公司 Method, system and medium for realizing HTML5 video playing in cloud desktop
CN112367549B (en) * 2020-11-10 2021-08-06 四川长虹电器股份有限公司 Video playing implementation method of television browser and browser application operation method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101873460A (en) * 2010-05-31 2010-10-27 江苏中科梦兰电子科技有限公司 Method for expanding system-level multimedia functions on basis of layered display
CN102387187A (en) * 2011-07-28 2012-03-21 中兴通讯股份有限公司 Server, client as well as method and system for remotely playing video file by using client
CN102577327A (en) * 2011-12-26 2012-07-11 华为技术有限公司 Method, apparatus and system for realizing web browsing in remote desk environment
CN102761603A (en) * 2012-06-07 2012-10-31 福建升腾资讯有限公司 Webpage flash video redirection method in VDI environment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158553B (en) * 2011-03-31 2017-04-12 华为技术有限公司 Method and device for playing multi-media files for remote desktop
US9225763B2 (en) * 2011-06-07 2015-12-29 Cisco Technology, Inc. Distributed overlay browser for transparent streaming media support in virtualized desktop environment
CN102377777A (en) * 2011-10-14 2012-03-14 深圳市京华科讯科技有限公司 Hyper desktop virtualization method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101873460A (en) * 2010-05-31 2010-10-27 江苏中科梦兰电子科技有限公司 Method for expanding system-level multimedia functions on basis of layered display
CN102387187A (en) * 2011-07-28 2012-03-21 中兴通讯股份有限公司 Server, client as well as method and system for remotely playing video file by using client
CN102577327A (en) * 2011-12-26 2012-07-11 华为技术有限公司 Method, apparatus and system for realizing web browsing in remote desk environment
CN102761603A (en) * 2012-06-07 2012-10-31 福建升腾资讯有限公司 Webpage flash video redirection method in VDI environment

Also Published As

Publication number Publication date
CN103905927A (en) 2014-07-02
CN106231369A (en) 2016-12-14

Similar Documents

Publication Publication Date Title
CN103905927B (en) Method, desktop server and the system that under virtual desktop scene, video redirects
CN105847995B (en) Method for jumping video position through barrage anchor point
CN103338405A (en) Screen capture application method, equipment and system
CN103763626A (en) Method, device and system for pushing information
CN110446114B (en) Multimedia data processing device, method, electronic equipment and storage medium
CN102724586B (en) Page caching method and page caching system based on internet protocol television (IPTV)
CN109120949B (en) Video message pushing method, device, equipment and storage medium for video set
CN111163330A (en) Live video rendering method, device, system, equipment and storage medium
CN111104551B (en) Live broadcast room label determining method and device, storage medium and electronic equipment
US20170171643A1 (en) Method and electronic device for displaying watermark
US20170142389A1 (en) Method and device for displaying panoramic videos
CN103686454A (en) Information acquisition method and apparatus
CN112243137A (en) Live broadcast interface updating method, device, server and system
CN113225607B (en) Method and system for displaying gift in live broadcast room
CN112003664A (en) Method and equipment for issuing emergency broadcast information through smart television
CN101127780A (en) Method for downloading, saving and replaying online video and construction of online video network
CN104918071A (en) Video playing method, device and terminal equipment
CN112911320A (en) Live broadcast method and device, computer equipment and storage medium
CN114245228A (en) Page link releasing method and device and electronic equipment
CN103577496A (en) Method and device for displaying E-mail
CN106658077B (en) Human screen interactive appreciation method
CN109525852B (en) Live video stream processing method, device and system and computer readable storage medium
CN103136235A (en) Data processing platform, data processing system and data processing method
US20020065090A1 (en) Data providing system, method and computer program
CN109905753B (en) Corner mark display method and device, storage medium and electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220223

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Patentee after: Huawei Cloud Computing Technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.