CN103905927A - Video redirection method under virtual desktop scene, desktop server and system - Google Patents
Video redirection method under virtual desktop scene, desktop server and system Download PDFInfo
- Publication number
- CN103905927A CN103905927A CN201210574647.6A CN201210574647A CN103905927A CN 103905927 A CN103905927 A CN 103905927A CN 201210574647 A CN201210574647 A CN 201210574647A CN 103905927 A CN103905927 A CN 103905927A
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 238000004364 calculation method Methods 0.000 claims description 14
- 238000009877 rendering Methods 0.000 abstract 3
- 238000004422 calculation algorithm Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000002347 injection Methods 0.000 description 2
- 239000007924 injection Substances 0.000 description 2
- 230000036316 preload Effects 0.000 description 2
- 238000003860 storage Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/835—Generation of protective data, e.g. certificates
- H04N21/8355—Generation of protective data, e.g. certificates involving usage data, e.g. number of copies or viewings allowed
- H04N21/83555—Generation 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/239—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
- H04N21/2393—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management 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/254—Management at additional data server, e.g. shopping server, rights management server
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management 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/258—Client 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/25866—Management of end-user data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/858—Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
- H04N21/8586—Linking 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 video redirection method under a virtual desktop scene. A desktop server does not perform rendering processing on a video file in webpage files, and the video file in the webpage files is directly redirected to a desktop client to be decoded and played by utilizing processing capacity of a client terminal so that occupation of a great deal of system resource caused by rendering on the video file by the desktop server is avoided. Meanwhile, the client terminal directly plays code stream of the original video file. Compared with the situation that the video file is sent to the client terminal to display after rendering via the desktop server, frame quality is better and user experience is great.
Description
Technical field
The present invention relates to computer realm, relate in particular to method, desktop server and the system of video playback under a kind of virtual desktop scene.
Background technology
Remote desktop is a kind of popular technique of current enterprise working environment, the display screen that the content that is commonly used to that a computer screen is shown is sent to an other place shows, conventionally the Windows Telnet that we use is modal remote desktop program, can login easily other remote computer by it.The remote desktop system of most is all that IP based network transmits remote desktop.Remote desktop also not only refers to long-range screen display, can also comprise remote sound transmission, can plug the technology such as hardware mapping.Remote desktop can be called again virtual desktop.
Because the standardized process of HTML5 is progressively accelerated, most of video website is also selected the HTML5 basis of creating website the most.Video interception is carried out in video playback region in HTML5 webpage by desktop server, and by consecutive image compression algorithm, this region picture is compressed into the picture of a width, picture is sent to client shows by service end, cause like this service end in the time compressing processing, take great system resource, through the processing of compression algorithm, video quality has larger lower with respect to original video quality, and user experiences not good.
Summary of the invention
Embodiment of the present invention technical problem to be solved is, redirected method, desktop server and the system of video under a kind of virtual desktop scene is provided.Can make desktop server in the time processing the web page files that contains video, reduce the consumption of system, improve the image quality of video in client simultaneously.
In order to solve the problems of the technologies described above, first aspect present invention provides a kind of redirected method of video under virtual desktop scene, comprising:
Send web-page requests according to the instruction of client 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 comprises video tab, the video address information of described video tab is revised as to string token, described string token is used to indicate browser does not process the video file of described video address information points;
Obtain the video flowing of the video file of described video address information points;
Send described video flowing to described client, so that video flowing described in described client terminal playing.
In the possible implementation of the first, described in obtain the label of described web page files, specifically comprise:
Build the DOM object tree of described web page files by browser, from the node of described DOM object tree, obtain described label.
In conjunction with the possible implementation of first aspect the first, in the possible implementation of the second, also comprise:
Also comprise:
From described DOM object tree, obtain the window parameter of described video file; Wherein, described window parameter comprises 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.
In conjunction with the possible implementation of first aspect the second, in the third possible implementation, described in obtain the method for the window's position in described window parameter, specifically comprise:
Obtain the position of described video tab with respect to father's label in described DOM object tree, recursive calculation goes out the position of described video tab with respect to browser window step by step;
Go out the position of described video tab in client desktop according to the position calculation of described browser window.
In conjunction with first aspect to any in the third possible implementation of first aspect, in the 4th kind of possible implementation, described in obtain the method for block information in described window parameter, specifically comprise:
Whether be blocked with respect to video window described in the location positioning of described browser window according to video window, if yes, obtain the block information of described video window;
And described block information is sent to described client, so that the part that described client is blocked video window according to described block information is shown as pellucidity.
Second aspect present invention provides a kind of desktop server, comprising:
Web-page requests module, sends web-page requests for the instruction according to client to web page server;
Webpage receiver module, the web page files returning for receiving described web page server;
Label acquisition module, for obtaining the label of described web page files;
Video tab processing module, if the label for described web page files comprises video tab, the video address information of described video tab is revised as to string token, and described string token is used to indicate browser does not process the video file of described video address information points;
Video flowing acquisition module, for obtaining the video flowing of video file of described video address information points;
Video flowing sending module, for sending described video flowing to described client, so that video flowing described in described client terminal playing.
In the possible implementation of the first, described label acquisition module comprises:
Label acquiring unit for build the DOM object tree of described web page files by browser, obtains described label from the node of described DOM object tree.
In conjunction with the possible implementation of the first of second aspect, in the possible implementation of the second, also comprise:
Window parameter acquisition module, for obtaining the window parameter of described video file from described DOM object tree; Wherein, described window parameter comprises 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.
In conjunction with the possible implementation of the second of second aspect, in the third possible implementation, described window parameter acquisition module comprises:
The window's position acquiring unit, for obtaining the position of described video tab with respect to described DOM object tree father label, recursive calculation goes out the position of described video tab with respect to browser window step by step; Go out the position of described video tab at virtual machine desktop according to the position calculation of described browser window.
In conjunction with second aspect, to any in the third possible implementation of second aspect, in the 4th kind of possible implementation, described window parameter acquisition module comprises:
Block information acquiring unit, for whether being blocked with respect to video window described in the location positioning of described browser window according to video window, if yes, obtains the block information of described video window; And described block information is sent to described client, so that the part that described client is blocked video window according to described block information is shown as pellucidity.
Implement the present invention, there is following beneficial effect:
Desktop server is not played up processing to the video file in web page files, utilize the disposal ability of client, directly the video file in web page files be redirected to desktop client decoding and play, avoid desktop server to play up video file and taken great system resource, client is play-overed the code stream of original video files simultaneously, with be sent to client shows after desktop server is played up compared with, image quality is better, and user experiences good.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the schematic flow sheet of the redirected method of video under a kind of virtual desktop scene of the present invention;
Fig. 2 is another schematic flow sheet of the redirected method of video under a kind of virtual desktop scene of the present invention;
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 when 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.
Embodiment
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 clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Referring to Fig. 1, be the redirected method of video under a kind of virtual desktop scene of the present invention, comprising:
Concrete, when user passes through client-access webpage, described client sends a mouse click event to desktop server, described desktop server converts corresponding HTTP (Hypertext Transport Protocol to after receiving this mouse click event, HTML (Hypertext Markup Language), being called for short HTTP) request is sent to web page server, described web page server responds described HTTP request and returns to web page files to described desktop server, and described web page files comprises HTML5 web page files.
Concrete, desktop server obtains the label in web page files by the plug-in unit of browser, desktop server also can adopt DLL (Dynamic Link Library, dynamic link library, being called for short DLL) injection technique obtains the label in web page files, and the method the present invention who obtains does not limit.
If the label in the described web page files of step 104 comprises video tab, the video address information of described video tab is revised as to string token, described string token is used to indicate browser does not process the video file of described video address information points.
Concrete, in HTML5 web page files, generally including polytype label, desktop server judges in the label obtaining whether comprise video tab, if there is video tab, the video address information in video tab is revised as to string token.Taking the video tab of HTML5 web page files as example, its video tab contains src, poster, preload, autoplay, loop, controls, several attributes such as width and height, wherein src is used to refer to video address information, as <Video src=" http:media.w3.org/2010/05/sintel/trailer.mp4 " >, video address information " http:media.w3.org/2010/05/sintel/trailer.mp4 " is revised as string token by desktop server, described string token is used to indicate desktop server does not process the video file of video address information points, be that desktop server is not processed trailer.mp4 video file, described string token can be the local temporary address of desktop server or address blank, the present invention is not restricted, meanwhile, in the embodiment of the present invention, be character string by video address information flag, character string is wherein not limited to the listed situation of the embodiment of the present invention, can be also empty, empties by video address information.
Concrete, as the example of step 104, obtain the video flowing of the trailer.mp4 video file of video address information " http:media.w3.org/2010/05/sintel/trailer.mp4 " sensing.In video address information being revised as to string token in step 104, also need to preserve unmodified video address information; In step 105, according to the video flowing of the video file of video address information points described in the video address acquisition of information of preserving.
Concrete, while receiving the playing request of video of the video address information points of described client to described video tab, 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 is sent to web page server, web page server responds this HTTP request the video flowing of the video file of video address information points is sent to desktop server, desktop server is not played up processing to this video flowing, but send described video flowing to client, so that client is directly decoded and plays this video flowing.When client is directly when accessed web page server, the order request that now described client can directly send is to described web page server, described order request is HTTP request, described web page server is directly sent to client by the video flowing of the video file of video address information points after responding this HTTP request, so that client is directly decoded and plays this video flowing.
Implement embodiments of the invention, desktop server is not played up processing to the video file in web page files, utilize the disposal ability of client, directly the video file in web page files be redirected to desktop client decoding and play, avoided desktop server to play up video file and taken great system resource, client is play-overed the code stream of original video files simultaneously, be sent to client shows after desktop server is played up compared with, image quality is better, and user experiences good.
Referring to Fig. 2, be another schematic flow sheet of the redirected method of video under a kind of virtual desktop scene of the present invention, comprising:
Concrete, when user passes through client-access webpage, described client sends a mouse click event to desktop server, described desktop server receives and converts corresponding HTTP request to after this mouse click event and be sent to web page server, described web page server responds described HTTP request and returns to web page files to described desktop server, and described web page files comprises HTML5 web page files.
Concrete, BHO (Browser Helper Object, browser auxiliary object are called for short BHO) plug-in unit by browser builds the DOM object tree of described web page files, web page files is converted to DOM object tree, from the node of described DOM object tree, obtains described label.DOM object tree provides the operation entry to the label in web page files, is easy to computer processing.
If the label in the described web page files of step 204 comprises video tab, the video address information of described video tab is revised as to string token, described string token is used to indicate browser does not process the video file of described video address information points.
Concrete, the label of the corresponding web page files of each node of DOM object tree, adopt ergodic algorithm to inquire the video tab that whether exists in DOM object tree, if exist, the video address information of video tab is revised as to string token, described string token is used to indicate desktop server does not process the video file of video address information points, and described tab character string can be the local temporary address of desktop server or address blank, and the present invention is not restricted.
In video address information being revised as to string token in step 204, also need to preserve unmodified video address information; In step 205, according to the video flowing of the video file of video address information points described in the video address acquisition of information of preserving.
Concrete, desktop server obtains the window parameter of video window from DOM object tree, and this window parameter is passed to client, so that video window shows at client assigned address, user experiences the effect at desktop server local IP access in client.Wherein, window parameter comprises the window's position, window size and block information, the acquisition methods of the window's position is to obtain the position of described video tab with respect to father's label in DOM object tree, and recursive calculation goes out the position of described video tab with respect to browser window step by step; Go out the position of described video tab at virtual machine desktop according to the position calculation of described browser window.The acquisition methods of window size is the window size of inquiring about the width width attribute of video tab and height height attributes and determine video window in DOM object tree.Whether the method that block information obtains is to be blocked with respect to video window described in the location positioning of described browser window according to video window, if yes, obtain the block information of described video window, described block information comprise video window be blocked part end points coordinate, generally window is rectangle, the part being blocked of video window is rectangle or triangle, block information comprises four end points coordinates or leg-of-mutton three end points coordinates of rectangle, described block information is sent to client, so that the part that client is blocked video window according to described block information is shown as pellucidity.
207, send described video flowing to described client, so that described client is broadcast described video flowing.
Concrete, while receiving the playing request of video of the video address information points of described client to described video tab, send the video flowing of described video file to client, so that described client utilizes the hardware resource of self to play described video flowing.
Implement embodiments of the invention, desktop server is not played up processing to the video file in web page files, utilize the disposal ability of client, directly the video file in web page files be redirected to desktop client decoding and play, avoided desktop server to play up video file and taken great system resource, client is play-overed the code stream of original video files simultaneously, be sent to client shows after desktop server is played up compared with, image quality is better, and user experiences good.
Referring to Fig. 3, be the structural representation of a kind of audio/video player system of the present invention, comprise desktop server 2 and client 1, the course of work is:
User sends a mouse click event or KeyEvent to desktop server 2 by client 1, the web-page requests that desktop server 2 is browser according to this event simulation, desktop server 2 sends HTTP request to web page server, web page server responds this HTTP request and web page files is sent to desktop server 2, desktop server 2 obtains the label in the web page files receiving, the method of obtaining comprises the DOM object tree that utilizes browser to build label information, in traversal DOM object tree, node obtains label, judge and in label, whether comprise video tab, if there is video tab, the video address information in video tab is revised as to string token, the browser that described string token is used to indicate desktop server 2 is not processed the video file of described video address information points.Desktop server 2 obtains the video flowing of the video file of video address information points from web page server, and this video flowing is sent to client 1, and client 1 utilizes the hardware resource of self video flowing is decoded and play after receiving video flowing.
Further, desktop server 2 obtains the window parameter that comprises the window's position, window size and block information of the corresponding video file of described video tab from described DOM object tree, described window parameter is sent to client 1, so that video flowing shows at client 1 assigned address, user experiences and the effect of desktop server local IP access in client.
Embodiment of the present invention audio/video player system can be with reference to the description of the inventive method embodiment.
Implement embodiments of the invention, desktop server is not played up processing to the video file in web page files, utilize the disposal ability of client, directly the video file in web page files be redirected to desktop client decoding and play, avoided desktop server to play up video file and taken great system resource, client is play-overed the code stream of original video files simultaneously, be sent to client shows after desktop server is played up compared with, image quality is better, and user experiences good.
Referring to Fig. 4, be the structural representation of a kind of desktop server of the present invention, comprising:
Web-page requests module 21, sends web-page requests for the instruction according to client to web page server.
Concrete, when user passes through client-access webpage, described client sends a mouse click event to desktop server, web-page requests module 21 receives and converts corresponding HTTP request to after this mouse click event and be sent to web page server, described web page server responds described HTTP request and returns to web page files to described desktop server, and described web page files comprises HTML5 web page files.
Webpage receiver module 22, the web page files returning for receiving described web page server.
Concrete, label acquisition module 23 obtains the label in web page files by the plug-in unit of browser, desktop server also can adopt DLL (Dynamic Link Library, dynamic link library, being called for short DLL) injection technique obtains the label in web page files, and the method the present invention who obtains does not limit.
Video tab processing module 24, if the label for described web page files comprises video tab, the video address information of described video tab is revised as to string token, and described string token is used to indicate browser does not process the video file of described video address information points.
Concrete, in web page files, generally including polytype label, video tab processing module 24 judges in the label obtaining whether comprise video tab, if there is video tab, the video address information in video tab is revised as to string token.Taking the video tab of HTML5 web page files as example, its video tab contains src, poster, preload, autoplay, loop, controls, several attributes such as width and height, wherein src is used to refer to video address information, as <Video src=" http:media.w3.org/2010/05/sintel/trailer.mp4 " >, video address information " http:media.w3.org/2010/05/sintel/trailer.mp4 " is revised as string token by video tab processing module 24, described string token is used to indicate desktop server does not process the video file of video address information points, be that desktop server is not processed trailer.mp4 video file, described string token can be the local temporary address of desktop server or address blank, the present invention is not restricted.
Video flowing acquisition module 25, for obtaining the video flowing of video file of described video address information points.
Video flowing sending module 26, for sending described video flowing to described client, so that video flowing described in described client terminal playing.
Implement embodiments of the invention, desktop server is not played up processing to the video file in web page files, utilize the disposal ability of client, directly the video file in web page files be redirected to desktop client decoding and play, avoided desktop server to play up video file and taken great system resource, client is play-overed the code stream of original video files simultaneously, be sent to client shows after desktop server is played up compared with, image quality is better, and user experiences good.
Further, referring to 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, video flowing acquisition module 25 and video flowing sending module 26, also comprise:
Window parameter acquisition module 27, for obtaining the window parameter of described video file from described DOM object tree; Wherein, described window parameter comprises 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, window parameter module 24 comprises:
The window's position acquiring unit 271, for obtaining the position of described video tab with respect to described DOM object tree father label, recursive calculation goes out the position of described video tab with respect to browser window step by step; Go out the position of described video tab at virtual machine desktop according to the position calculation of described browser window.
Block information acquiring unit 272, for whether being blocked with respect to video window described in the location positioning of described browser window according to video window, if yes, obtains the block information of described video window; And described block information is sent to described client, so that the part that described client is blocked video window according to described block information is shown as pellucidity.
Concrete, whether block information acquiring unit 272 is blocked with respect to video window described in the location positioning of described browser window according to video window, if yes, obtain the block information of described video window, described block information comprise video window be blocked part end points coordinate, generally window is rectangle, the part being blocked of video window is rectangle or triangle, block information comprises four end points coordinates or leg-of-mutton three end points coordinates of rectangle, described block information is sent to client by block information acquiring unit 242, so that the part that client is blocked video window according to described block information is shown as pellucidity.
Further, label acquisition module 23 comprises:
Concrete, label acquiring unit 231 is by browser plug-in by the DOM object tree in web page files, and each node of described DOM object tree is converted by the label in web page files, adopts ergodic algorithm to obtain the label in DOM object tree.Become structurized model by the label in web page files, be convenient to computer label is inquired about and operated.
Implement embodiments of the invention, desktop server is not played up processing to the video file in web page files, utilize the disposal ability of client, directly the video file in web page files be redirected to desktop client decoding and play, avoided desktop server to play up video file and taken great system resource, client is play-overed the code stream of original video files simultaneously, be sent to client shows after desktop server is played up compared with, image quality is better, and user experiences good.
Referring to Fig. 8, for the another structural representation of a kind of desktop server of the present invention, comprise processor 61, memory 62, input unit 63 and output device 64, the quantity of the processor 61 in desktop server can be one or more, and Fig. 8 is taking a processor as example.In some embodiments of the present invention, processor 61, memory 62, input unit 63 and output device 64 can be connected by bus or other modes, in Fig. 8, are connected to example with bus.
Wherein, in memory 62, store batch processing code, and processor 61 is for calling the program code of memory 62 storages, for carrying out following operation:
Send web-page requests according to the instruction of client 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 comprises video tab, the video address information of described video tab is revised as to string token, described string token is used to indicate browser does not process the video file of described video address information points;
Obtain the video flowing of the video file of described video address information points;
Send described video flowing to described client, so that video flowing described in described client terminal playing.
In some embodiments of the invention, processor 61 is specifically for carrying out:
Build the DOM object tree of described web page files by browser, from the node of described DOM object tree, obtain described label.
In some embodiments of the invention, processor 61 is also for carrying out:
From described DOM object tree, obtain the window parameter of described video file; Wherein, described window parameter comprises 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.
Further, processor 61 is specifically for carrying out:
Obtain the position of described video tab with respect to father's label in described DOM object tree, recursive calculation goes out the position of described video tab with respect to browser window step by step;
Go out the position of described video tab at virtual machine desktop according to the position calculation of described browser window.
Further, processor 61 is specifically for carrying out:
Whether be blocked with respect to video window described in the location positioning of described browser window according to video window, if yes, obtain the block information of described video window;
And described block information is sent to described client, so that the part that described client is blocked video window according to described block information is shown as pellucidity.
Implement embodiments of the invention, desktop server is not played up processing to the video file in web page files, utilize the disposal ability of client, directly the video file in web page files be redirected to desktop client decoding and play, avoided desktop server to play up video file and taken great system resource, client is play-overed the code stream of original video files simultaneously, be sent to client shows after desktop server is played up compared with, image quality is better, and user experiences good.
The invention described above embodiment provides the desktop server can be with reference 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 carry out the hardware that instruction is relevant by computer program to complete, described program can be stored in a computer read/write memory medium, this program, in the time carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosed is only a kind of preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, one of ordinary skill in the art will appreciate that all or part of flow process that realizes above-described embodiment, and the equivalent variations of doing according to the claims in the present invention, still belong to the scope that invention is contained.
Claims (11)
1. the redirected method of video under virtual desktop scene, is characterized in that, comprising:
Send web-page requests according to the instruction of client 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 comprises video tab, the video address information of described video tab is revised as to string token, described string token is used to indicate browser does not process the video file of described video address information points;
Obtain the video flowing of the video file of described video address information points;
Send described video flowing to described client, so that video flowing described in described client terminal playing.
2. the method for claim 1, is characterized in that, described in obtain the label of described web page files, specifically comprise:
Build the DOM object tree of described web page files by described browser, from the node of described DOM object tree, obtain described label.
3. method as claimed in claim 2, is characterized in that, also comprises:
From described DOM object tree, obtain the window parameter of described video file; Wherein, described window parameter comprises 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.
4. method as claimed in claim 3, is characterized in that, described in obtain the method for the window's position in described window parameter, specifically comprise:
Obtain the position of described video tab with respect to father's label in described DOM object tree, recursive calculation goes out the position of described video tab with respect to browser window step by step;
Go out the position of described video tab at virtual machine desktop according to the position calculation of described browser window.
5. the method as described in claim 1-4 any one, is characterized in that, described in obtain the method for block information in described window parameter, specifically comprise:
Whether be blocked with respect to video window described in the location positioning of described browser window according to video window, if yes, obtain the block information of described video window; And described block information is sent to described client, so that the part that described client is blocked video window according to described block information is shown as pellucidity.
6. a desktop server, is characterized in that, comprising:
Web-page requests module, sends web-page requests for the instruction according to client to web page server;
Webpage receiver module, the web page files returning for receiving described web page server;
Label acquisition module, for obtaining the label of described web page files;
Video tab processing module, if the label for described web page files comprises video tab, the video address information of described video tab is revised as to string token, and described string token is used to indicate browser does not process the video file of described video address information points;
Video flowing acquisition module, for obtaining the video flowing of video file of described video address information points;
Video flowing sending module, for sending described video flowing to described client, so that video flowing described in described client terminal playing.
7. desktop server as claimed in claim 6, is characterized in that, described label acquisition module comprises:
Label acquiring unit for build the DOM object tree of described web page files by described browser, obtains described label from the node of described DOM object tree.
8. desktop server as claimed in claim 7, is characterized in that, also comprises:
Window parameter acquisition module, for obtaining the window parameter of described video file from described DOM object tree; Wherein, described window parameter comprises 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.
9. desktop server as claimed in claim 8, is characterized in that, described window parameter acquisition module comprises:
The window's position acquiring unit, for obtaining the position of described video tab with respect to described DOM object tree father label, recursive calculation goes out the position of described video tab with respect to browser window step by step; Go out the position of described video tab at virtual machine desktop according to the position calculation of described browser window.
10. the desktop server as described in claim 6-9 any one, is characterized in that, described window parameter acquisition module comprises:
Block information acquiring unit, for whether being blocked with respect to video window described in the location positioning of described browser window according to video window, if yes, obtains the block information of described video window; And described block information is sent to described client, so that the part that described client is blocked video window according to described block information is shown as pellucidity.
11. 1 kinds of audio/video player systems, is characterized in that, comprise client and the desktop server as described in claim 6-10 any one.
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 true CN103905927A (en) | 2014-07-02 |
CN103905927B 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) |
Cited By (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105163140A (en) * | 2015-07-22 | 2015-12-16 | 深圳市京华科讯科技有限公司 | Method and system for playing online videos by using virtual machine |
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 |
CN106462408A (en) * | 2014-05-20 | 2017-02-22 | 亚马逊科技公司 | Low latency connections to workspaces in a cloud computing environment |
CN106797398A (en) * | 2014-10-16 | 2017-05-31 | 华为技术有限公司 | Method and system for providing from virtual desktop serve to client |
CN106817607A (en) * | 2015-12-02 | 2017-06-09 | 中兴通讯股份有限公司 | Audio frequency and video multicast player method based on virtual desktop, apparatus and system |
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 |
CN107864384A (en) * | 2017-11-20 | 2018-03-30 | 顶联信息产业股份公司 | Redirect the method and device that internet video plays on cloud desktop |
CN108563479A (en) * | 2018-03-21 | 2018-09-21 | 新华三云计算技术有限公司 | Redirect control method, device, virtual machine and the Redirectional system of window |
CN109040792A (en) * | 2018-08-13 | 2018-12-18 | 中兴通讯股份有限公司 | A kind of processing method, cloud terminal and cloud desktop server that video redirects |
CN109068153A (en) * | 2018-09-28 | 2018-12-21 | 华为技术有限公司 | Video broadcasting method, device and computer readable storage medium |
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 |
CN110138817A (en) * | 2018-02-08 | 2019-08-16 | 中兴通讯股份有限公司 | Flow media playing method, device, equipment and computer readable storage medium |
CN110134450A (en) * | 2018-02-08 | 2019-08-16 | 中兴通讯股份有限公司 | A kind of video reorientation method, device and computer readable storage medium |
CN110324671A (en) * | 2018-03-30 | 2019-10-11 | 中兴通讯股份有限公司 | Video web page playback method and device, electronic equipment and storage medium |
CN111526428A (en) * | 2020-04-26 | 2020-08-11 | 湖南麒麟信安科技有限公司 | Method, system and medium for realizing HTML5 video playing in cloud desktop |
CN112367549A (en) * | 2020-11-10 | 2021-02-12 | 四川长虹电器股份有限公司 | Video playing implementation method of television browser and browser application operation method |
CN114416330A (en) * | 2021-12-01 | 2022-04-29 | 深信服科技股份有限公司 | Video redirection method, virtual machine, terminal, device and storage medium |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107529711A (en) * | 2017-08-01 | 2018-01-02 | 杭州安恒信息技术有限公司 | The display methods and device of Streaming Media |
CN109446460B (en) * | 2018-10-24 | 2021-11-19 | 国云科技股份有限公司 | HTML5 online video redirection system and implementation method thereof |
CN110381363A (en) * | 2019-07-17 | 2019-10-25 | 深信服科技股份有限公司 | Video encoding/decoding method, device, server and storage medium |
Citations (5)
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 |
US20120317295A1 (en) * | 2011-06-07 | 2012-12-13 | Cisco Technology, Inc. | Distributed Overlay Browser For Transparent Streaming Media Support In Virtualized Desktop Environment |
Family Cites Families (2)
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 |
CN102377777A (en) * | 2011-10-14 | 2012-03-14 | 深圳市京华科讯科技有限公司 | Hyper desktop virtualization method and system |
-
2012
- 2012-12-26 CN CN201210574647.6A patent/CN103905927B/en active Active
- 2012-12-26 CN CN201610514067.6A patent/CN106231369A/en active Pending
Patent Citations (5)
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 |
US20120317295A1 (en) * | 2011-06-07 | 2012-12-13 | Cisco Technology, Inc. | Distributed Overlay Browser For Transparent Streaming Media Support In Virtualized Desktop Environment |
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 |
Cited By (32)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106462408A (en) * | 2014-05-20 | 2017-02-22 | 亚马逊科技公司 | Low latency connections to workspaces in a cloud computing environment |
CN106462408B (en) * | 2014-05-20 | 2020-05-08 | 亚马逊科技公司 | Low latency connection to a workspace in a cloud computing environment |
US11409550B2 (en) | 2014-05-20 | 2022-08-09 | Amazon Technologies, Inc. | Low latency connections to workspaces in a cloud computing environment |
CN106797398A (en) * | 2014-10-16 | 2017-05-31 | 华为技术有限公司 | Method and system for providing from virtual desktop serve to client |
CN106797398B (en) * | 2014-10-16 | 2019-11-01 | 华为技术有限公司 | For providing the method and system of virtual desktop serve to 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 |
CN106817607A (en) * | 2015-12-02 | 2017-06-09 | 中兴通讯股份有限公司 | Audio frequency and video multicast player method based on virtual desktop, apparatus and system |
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 |
CN107864384A (en) * | 2017-11-20 | 2018-03-30 | 顶联信息产业股份公司 | Redirect the method and device that internet video plays on cloud desktop |
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 |
CN110134450A (en) * | 2018-02-08 | 2019-08-16 | 中兴通讯股份有限公司 | A kind of video reorientation method, device 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 |
CN110324671A (en) * | 2018-03-30 | 2019-10-11 | 中兴通讯股份有限公司 | Video web page playback method and device, electronic equipment and storage medium |
CN110324671B (en) * | 2018-03-30 | 2021-06-08 | 中兴通讯股份有限公司 | Webpage video playing method and device, electronic equipment and storage medium |
EP3780637A4 (en) * | 2018-03-30 | 2021-05-05 | ZTE Corporation | Webpage video playback method and apparatus, electronic device and storage medium |
CN109040792B (en) * | 2018-08-13 | 2021-04-09 | 中兴通讯股份有限公司 | Processing method for video redirection, cloud terminal and cloud desktop server |
CN109040792A (en) * | 2018-08-13 | 2018-12-18 | 中兴通讯股份有限公司 | A kind of processing method, cloud terminal and cloud desktop server that video redirects |
CN109068153A (en) * | 2018-09-28 | 2018-12-21 | 华为技术有限公司 | Video broadcasting method, device and computer readable storage medium |
CN109068153B (en) * | 2018-09-28 | 2020-10-16 | 华为技术有限公司 | Video playing method and device and computer readable storage medium |
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 |
CN111526428A (en) * | 2020-04-26 | 2020-08-11 | 湖南麒麟信安科技有限公司 | Method, system and medium for realizing HTML5 video playing in cloud desktop |
CN111526428B (en) * | 2020-04-26 | 2022-04-26 | 湖南麒麟信安科技股份有限公司 | Method, system and medium for realizing HTML5 video playing in cloud desktop |
CN112367549A (en) * | 2020-11-10 | 2021-02-12 | 四川长虹电器股份有限公司 | Video playing implementation method of television browser and browser application operation method |
CN112367549B (en) * | 2020-11-10 | 2021-08-06 | 四川长虹电器股份有限公司 | Video playing implementation method of television browser and browser application operation method |
CN114416330A (en) * | 2021-12-01 | 2022-04-29 | 深信服科技股份有限公司 | Video redirection method, virtual machine, terminal, device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN103905927B (en) | 2016-08-10 |
CN106231369A (en) | 2016-12-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103905927A (en) | Video redirection method under virtual desktop scene, desktop server and system | |
CN110446114B (en) | Multimedia data processing device, method, electronic equipment and storage medium | |
CN103763626A (en) | Method, device and system for pushing information | |
EP3203748B1 (en) | Cloud streaming service system, cloud streaming service method using optimal gpu, and apparatus for same | |
CN102708146A (en) | Locally editing a remotely stored image | |
CN102158553A (en) | Method and device for playing multi-media files for remote desktop | |
CN112653700A (en) | Website video communication method based on WEBRTC | |
CN105518614A (en) | Screencasting for multi-screen applications | |
US20170171643A1 (en) | Method and electronic device for displaying watermark | |
CN112073750B (en) | Remote desktop control method and system | |
CN112261377B (en) | Web edition monitoring video playing method, electronic equipment and storage medium | |
CN112911320B (en) | Live broadcast method, live broadcast device, computer equipment and storage medium | |
CN111163330A (en) | Live video rendering method, device, system, equipment and storage medium | |
CN103714143A (en) | Webpage data processing method and device and communication system | |
US8565317B2 (en) | User interface system, scene description generating device and method, scene description converting device and method, recording medium, and sending medium | |
CN104349177A (en) | Method for turning to play multimedia file under desktop cloud, virtual machine and system | |
CN112764795A (en) | Service-oriented cross-platform and cross-terminal information publishing system and method | |
CN112003664A (en) | Method and equipment for issuing emergency broadcast information through smart television | |
CN115914526A (en) | BIM (building information modeling) model visualization method, device, equipment and medium based on cloud rendering | |
CN109525852B (en) | Live video stream processing method, device and system and computer readable storage medium | |
CN103152429A (en) | Method and device based on web cross-platform and splicing wall interaction | |
CN111093091A (en) | Video processing method, server and system | |
CN114374869B (en) | Panoramic video playing method and device and computer storage medium | |
CN101800884A (en) | Information issuing method, television terminal and information issuing system | |
CN106851330B (en) | Web technology-based on-line on-demand micro-class video dotting playing method |
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 |
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 Technologies Co.,Ltd. Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd. |
|
TR01 | Transfer of patent right |