CN106231369A - 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 PDFInfo
- Publication number
- CN106231369A CN106231369A CN201610514067.6A CN201610514067A CN106231369A CN 106231369 A CN106231369 A CN 106231369A CN 201610514067 A CN201610514067 A CN 201610514067A CN 106231369 A CN106231369 A CN 106231369A
- 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.)
- Pending
Links
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 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
Technical field
The present invention relates to computer realm, particularly relate to a kind of method of video playback under virtual desktop scene, desktop clothes
Business device and system.
Background technology
Remote desktop is a kind of popular technique of current enterprise working environment, is commonly used to show a computer screen
The display screen that content is sent at other one shows, generally we use Windows Telnet be modal far
Journey desktop programs, can log in other remote computer easily by it.Current most remote desktop system is all
IP based network transmits remote desktop.Remote desktop also refers not only to long-range screen and shows, it is also possible to comprise remote sound
The technology such as transmission, pluggable hardware mapping.Remote 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 to build website the most
Basis.Video playback area in HTML5 webpage is carried out video interception by desktop server, and is incited somebody to action by consecutive image compression algorithm
This region picture is compressed into the picture of a width, and picture is sent to client and shows by service end, so causes service end to exist
When being compressed processing, occupying great system resource, through the process of compression algorithm, video quality is relative to original video
Quality has bigger relatively low, and Consumer's Experience is the best.
Summary of the invention
Embodiment of the present invention technical problem to be solved is, it is provided that under a kind of virtual desktop scene, video redirects
Method, desktop server and system.Desktop server can be made when processing the web page files containing video, reduce the consumption of system,
Improve 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 and redirects
Method, 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 revised as word
Symbol string labelling, described string token does not process, for indicating browser, the video file that described video address information is pointed to;
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:
Built the DOM object tree of described web page files by browser, obtain described from the node of described DOM object tree
Label.
In conjunction with the first possible implementation of first aspect, in the implementation that the second is possible, also include:
Also include:
The window parameter of described video file is obtained from described DOM object tree;Wherein, described window parameter includes window
Position, window size and block information;
Described window parameter is sent to described client, so that described client builds described according to described window parameter
The video window of video file.
In conjunction with the implementation that first aspect the second is possible, in the implementation that the third is possible, described acquisition institute
State the method for the window's position in window parameter, specifically include:
Obtaining described video tab relative to the position of father's label in described DOM object tree, recursive calculation goes out described step by step
Video tab is relative to the position of 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, possible at the 4th kind
In implementation, the method for block information in the described window parameter of described acquisition, specifically include:
Determine whether described video window is blocked according to video window relative to the position of described browser window, if
It is then to obtain the block information of described video window;
And described block information is sent to described client so that described client according to described block information by video
The part that window is blocked 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, by described video tab
Video address information be revised as string token, described string token is used for indicating browser not process described video address
The video file that 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 in described client terminal playing
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 DOM object by browser
The node of tree obtains described label.
In conjunction with the first possible implementation of second aspect, in the implementation that the second is possible, also include:
Window parameter acquisition module, for obtaining the window parameter of described video file from described DOM object tree;Its
In, described window parameter includes the window's position, window size and block information;Described window parameter is sent to described client
End, so that described client builds the video window of described video file according to described window parameter.
In conjunction with the implementation that the second of second aspect is possible, in the implementation that the third is possible, described window
Parameter acquisition module includes:
The window's position acquiring unit, for obtaining described video tab relative to the position of father's label in described DOM object tree
Putting, recursive calculation goes out the described video tab position relative to browser window step by step;Position according to described browser window
Calculate 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, possible at the 4th kind
In implementation, described window parameter acquisition module includes:
Block information acquiring unit, for according to video window relative to the position of described browser window determine described in regard
Frequently whether window is blocked, if it has, then obtain the block information of described video window;And described block information is sent to institute
State client, so that the part that video window is blocked by described client according to described block information 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 disposal ability of client, directly
Connect and the video file in web page files is redirected to desktop client decoding and plays, it is to avoid desktop server is to video file
Carrying out rendering and taking great system resource, client directly plays the code stream of original video files simultaneously, and through desktop
Server sends after rendering to be compared to client displaying, and image quality is more preferable, and 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 embodiment or existing
In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to
Other accompanying drawing is obtained 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 clear, complete
Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under not making creative work premise
Embodiment, 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 (Hypertext after receiving this mouse click event
Transport Protocol, HTML (Hypertext Markup Language), it is called for short HTTP) ask to send to web page server, described web service
Device responds described HTTP request and returns web page files extremely described desktop server, and 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 by the plug-in unit of browser, and desktop server also may be used
To use DLL (Dynamic Link Library, dynamic link library are called for short DLL) injection technique to obtain the mark in web page files
Signing, the method present invention of acquisition does not limits.
If the label in the described web page files of step 104 includes video tab, the video address of described video tab is believed
Breath is revised as string token, and described string token does not process regarding of described video address information sensing for indicating browser
Frequency file.
Concrete, HTML5 web page files generally includes polytype label, desktop server judges the label obtained
In whether include video tab, if there is video tab, the video address information in video tab is revised as string token.
As a example by the video tab of HTML5 web page files, its video tab contain src, poster, preload, autoplay, loop,
Several attribute such as controls, width and height, wherein 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 string token
For indicating desktop server not process the video file that video address information is pointed to, i.e. desktop server does not processes
Trailer.mp4 video file, described string token can be temporary address, desktop server this locality or address blank, the present invention
It is not restricted;Meanwhile, being character string by video address information flag in the embodiment of the present invention, character string therein is not limited to this
Situation listed by bright embodiment, it is also possible to for sky, will video address information empty.
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 " http:media.w3.org/2010/05/
Sintel/trailer.mp4 " video flowing of trailer.mp4 video file that points to.At step 104 video address is believed
While breath is revised as string token, in addition it is also necessary to preserve unmodified video address information;In step 105, according to preservation
Video address acquisition of information described in the video flowing of video file that points to of video address information.
Step 106, to described client send described video flowing so that described client broadcasts described video flowing.
Concrete, receive described client and the broadcasting of the video that the video address information of described video tab is pointed to is asked
When asking, send the video flowing of described video file to client, so that described client broadcasts described video flowing.
Desktop server generates corresponding HTTP request according to the playing request of client and sends to web page server, webpage
Server responds the video stream of the video file that video address information is pointed to by this HTTP request to desktop server, desktop
Server does not render process to this video flowing, but sends described video flowing to client, so that this is directly regarded by client
Frequently stream is decoded and plays.When client directly can access web page server, the most described client can directly be sent out
The order request sent is to described web page server, and described order request is HTTP request, and described web page server responds this HTTP
The video stream of the video file directly video address information pointed to after request is to client, so that client is directly to this
Video flowing is decoded and plays.
Implementing embodiments of the invention, desktop server does not renders process to the video file in web page files, utilizes
The disposal ability of client, is directly redirected to the video file in web page files desktop client decoding and plays, it is to avoid
Video file is rendered and takies great system resource by desktop server, and client directly plays original video literary composition simultaneously
The code stream of part, compared with sending after desktop server renders to client and showing, image quality is more preferable, and Consumer's Experience is good.
See Fig. 2, another schematic flow sheet of method redirected for video under a kind of virtual desktop scene of the present invention,
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 request and sends to web service after receiving this mouse click event
Device, described web page server responds described HTTP request and returns web page files to described desktop server, described web page files bag
Include 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 the node of described DOM object tree
Obtain described label.
Concrete, by the BHO (Browser Helper Object, browser auxiliary object are called for short BHO) of browser
Plug-in unit builds the DOM object tree of described web page files, web page files is converted to DOM object tree, from the joint of described DOM object tree
Point obtains described label.DOM object tree provides the operation entry to the label in web page files, it is easy to computer disposal.
If the label in the described web page files of step 204 includes video tab, the video address of described video tab is believed
Breath is revised as string token, and described string token does not process regarding of described video address information sensing for indicating browser
Frequency file.
Concrete, the label of each node correspondence web page files of DOM object tree, use ergodic algorithm to inquire DOM pair
As tree in whether there is video tab, if exist, the video address information of video tab is revised as string token, described
String token is for indicating desktop server not process the video file that video address information is pointed to, and described tab character string can
Thinking temporary address, desktop server this locality or address blank, the present 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 unmodified regarding
Frequently address information;In step 205, the video literary composition pointed to according to video address information described in the video address acquisition of information preserved
The video flowing of part.
Step 206, from described DOM object tree, obtain the window parameter of described video file;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
The video window of described video file is built according to described window parameter.
Concrete, desktop server obtains the window parameter of video window from DOM object tree, and is passed by this window parameter
Be handed to client so that video window specifies position display in client, user client experience to desktop server this
The effect that ground accesses.Wherein, window parameter includes the window's position, window size and block information, the acquisition methods of the window's position
For the described video tab of acquisition relative to the position of father's label in DOM object tree, recursive calculation goes out described video tab phase step by step
Position for browser window;Position calculation according to described browser window goes out described video tab at virtual machine desktop
Position.The acquisition methods of window size is width width attribute and the height height inquiring about video tab in DOM object tree
Attribute determines the window size of video window.The method that block information obtains is relative to described browser according to video window
The position of window determines 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, being hidden of video window
The part of gear is rectangle or triangle, then block information includes that four extreme coordinates of rectangle or three end points of triangle are sat
Mark, sends described block information to client, so that the portion that video window is blocked by client according to described block information
Divide and be shown as pellucidity.
207, described video flowing is sent to described client, so that described client broadcasts described video flowing.
Concrete, receive described client and the broadcasting of the video that the video address information of described video tab is pointed to is asked
When asking, send the video flowing of described video file to client, so that the hardware resource that described client utilizes self plays institute
State video flowing.
Implementing embodiments of the invention, desktop server does not renders process to the video file in web page files, utilizes
The disposal ability of client, is directly redirected to the video file in web page files desktop client decoding and plays, it is to avoid
Video file is rendered and takies great system resource by desktop server, and client directly plays original video literary composition simultaneously
The code stream of part, compared with sending after desktop server renders to client and showing, 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 and client
End 1, work process is:
User sends a mouse click event or KeyEvent to desktop server 2, desktop server by client 1
2 is the web-page requests of browser according to this event simulation, and desktop server 2 sends HTTP request to web page server, and webpage takes
Business device responds this HTTP request and is sent by web page files to desktop server 2, and desktop server 2 obtains the webpage literary composition received
Label in part, the method for acquisition includes the DOM object tree utilizing browser to build label information, saves in traversal DOM object tree
Point obtains label, it is judged that whether include video tab in label, if there is video tab, then by the video ground in video tab
Location information is revised as string token, described string token for indicate the browser of desktop server 2 do not process described in regard
Frequently the video file that address information is pointed to.Desktop server 2 obtains the video that video address information is pointed at web page server
The video flowing of file, and by this video stream to client 1, client 1 utilizes the hardware of self to provide after receiving video flowing
Video flowing is decoded and plays by source.
Further, desktop server 2 obtains the video file corresponding to described video tab from described DOM object tree
The window parameter including the window's position, window size and block information, by described window parameter send to client 1 so that
Video flowing specifies position display in client 1, user at client experience to the effect with 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, utilizes
The disposal ability of client, is directly redirected to the video file in web page files desktop client decoding and plays, it is to avoid
Video file is rendered and takies great system resource by desktop server, and client directly plays original video literary composition simultaneously
The code stream of part, compared with sending after desktop server renders to client and showing, 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 request and sends to web service after receiving this mouse click event
Device, described web page server responds described HTTP request and returns web page files to described desktop server, described web page files bag
Include 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 server by the plug-in unit of browser
DLL (Dynamic Link Library, dynamic link library are called for short DLL) injection technique can also be used to obtain in web page files
Label, 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 video mark
The video address information signed is revised as string token, and described string token is used for indicating browser not process described video ground
The video file that location information is pointed to.
Concrete, web page files generally includes polytype label, video tab processing module 24 judges acquisition
Whether label including video tab, if there is video tab, the video address information in video tab being revised as character string
Labelling.As a example by the video tab of HTML5 web page files, its video tab contain src, poster, preload, autoplay,
Several attribute such as loop, controls, width and height, wherein 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, described word
Symbol string labelling is for indicating desktop server not process the video file that video address information is pointed to, i.e. desktop server does not processes
Trailer.mp4 video file, described string token can be temporary address, desktop server this locality or address blank, the present invention
It 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 terminal playing institute
State video flowing.
Implementing embodiments of the invention, desktop server does not renders process to the video file in web page files, utilizes
The disposal ability of client, is directly redirected to the video file in web page files desktop client decoding and plays, it is to avoid
Video file is rendered and takies great system resource by desktop server, and client directly plays original video literary composition simultaneously
The code stream of part, compared with sending after desktop server renders to client and showing, 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 net
Page request module 21, webpage receiver module 22, label acquisition module 23, video tab processing module 24, video flowing acquisition module
25 and video stream module 26 outside, also include:
Window parameter acquisition module 27, for obtaining the window parameter of described video file from described DOM object tree;Its
In, described window parameter includes the window's position, window size and block information;Described window parameter is sent to described client
End, so that described client builds the video window of described video file according to described window parameter.
Concrete, window parameter module 24 includes:
The window's position acquiring unit 271, for obtaining described video tab relative to father's label in described DOM object tree
Position, recursive calculation goes out the described video tab position relative to browser window step by step;Position according to described browser window
Put the position calculating described video tab at virtual machine desktop.
Block information acquiring unit 272, for determining institute according to video window relative to the position of described browser window
State whether video window is blocked, if it has, then obtain the block information of described video window;And described block information is sent
To described client, so that the part that video window is blocked by described client according to described block information is shown as transparence
State.
Concrete, block information acquiring unit 272 determines 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, described block information includes regarding
Frequently 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 four extreme coordinates of rectangle or three extreme coordinates of triangle, and block information obtains
Described block information is sent to client by unit 242, so that video window is blocked by client according to described block information
Part be shown as pellucidity.
Further, label acquisition module 23 includes:
Label acquiring unit 231, for building the DOM object tree of described web page files, from described DOM pair by browser
Described label is obtained in the node of tree.
Concrete, label acquiring unit 231 by browser plug-in by the DOM object tree in web page files, described DOM pair
As each node of tree is converted by the label in web page files, ergodic algorithm is used to obtain the label in DOM object tree.Pass through
Label in web page files becomes structurized model, it is simple to label is inquired about and operates by computer.
Implementing embodiments of the invention, desktop server does not renders process to the video file in web page files, utilizes
The disposal ability of client, is directly redirected to the video file in web page files desktop client decoding and plays, it is to avoid
Video file is rendered and takies great system resource by desktop server, and client directly plays original video literary composition simultaneously
The code stream of part, compared with sending after desktop server renders to client and showing, 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 can be one or more, Fig. 8 with
As a example by one 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 as a example by bus connects.
Wherein, memorizer 62 stores batch processing code, and processor 61 is for calling the journey of storage in memorizer 62
Sequence code, 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 revised as word
Symbol string labelling, described string token does not process, for indicating browser, the video file that described video address information is pointed to;
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:
Built the DOM object tree of described web page files by browser, obtain described from the node of described DOM object tree
Label.
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 includes window
Position, window size and block information;
Described window parameter is sent to described client, so that described client builds described according to described window parameter
The video window of video file.
Further, processor 61 is specifically for performing:
Obtaining described video tab relative to the position of father's label in described DOM object tree, recursive calculation goes out described step by step
Video tab is relative to the position of 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 blocked according to video window relative to the position of described browser window, if
It is then to obtain the block information of described video window;
And described block information is sent to described client so that described client according to described block information by video
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, utilizes
The disposal ability of client, is directly redirected to the video file in web page files desktop client decoding and plays, it is to avoid
Video file is rendered and takies great system resource by desktop server, and client directly plays original video literary composition simultaneously
The code stream of part, compared with sending after desktop server renders to client and showing, 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, be permissible
Instructing relevant hardware by computer program to complete, described program can be stored in a computer read/write memory medium
In, 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
Dish, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access
Memory, RAM) etc..
Above disclosed it is only one preferred embodiment of the present invention, certainly can not limit the power of the present invention with this
Profit scope, one of ordinary skill in the art will appreciate that all or part of flow process realizing above-described embodiment, and weighs according to the present invention
Profit requires the equivalent variations made, and still falls within the scope that invention is contained.
Claims (11)
1. the method that under a virtual desktop scene, video redirects, it is characterised in that 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 revised as character string
Labelling, described string token does not process, for indicating browser, the video file that described video address information is pointed to;
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 includes:
Built the DOM object tree of described web page files by described browser, obtain described from the node of described DOM object tree
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 includes window position
Put, window size and block information;
Described window parameter is sent to described client, so that described client builds described video according to described window parameter
The video window of file.
4. method as claimed in claim 3, it is characterised in that the method for the window's position in the described window parameter of described acquisition,
Specifically include:
Obtaining described video tab relative to the position of father's label in described DOM object tree, recursive calculation goes out described video step by step
Label is relative to the position of 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 any one of claim 1-4, it is characterised in that block information in the described window parameter of described acquisition
Method, specifically include:
Determine whether described video window is blocked according to video window relative to the position of described browser window, if it is,
Then obtain the block information of described video window;
And described block information is sent to described client so that described client according to described block information by video window
The part being 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, by regarding of described video tab
Frequently address information is revised as string token, and described string token is used for indicating browser not process described video address information
The video file 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 video described in described client terminal playing
Stream.
7. desktop server as claimed in claim 6, it is characterised in that described label acquisition module includes:
Label acquiring unit, for building the DOM object tree of described web page files, from described DOM object by described browser
The node of 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 parameter of described video file from described DOM object tree;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.
9. desktop server as claimed in claim 8, it is characterised in that described window parameter acquisition module includes:
The window's position acquiring unit, for obtaining described video tab relative to the position of father's label in described DOM object tree, by
Level recursive calculation goes out the described video tab position relative to browser window;Position calculation according to described browser window goes out
Described video tab is in the position of virtual machine desktop.
10. the desktop server as described in any one of claim 6-9, it is characterised in that described window parameter acquisition module bag
Include:
Block information acquiring unit, for determining described video window according to video window relative to the position of described browser window
Whether mouth is blocked, if it has, then obtain the block information of described video window;And described block information is sent to described visitor
Family end, so that the part that video window is blocked by described client according to described block information is shown as pellucidity.
11. 1 kinds of audio/video player systems, it is characterised in that include client and the desktop as described in any one of claim 6-10
Server.
Priority Applications (1)
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 |
Applications Claiming Priority (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 |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210574647.6A Division CN103905927B (en) | 2012-12-26 | 2012-12-26 | Method, desktop server and the system that under virtual desktop scene, video redirects |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106231369A true CN106231369A (en) | 2016-12-14 |
Family
ID=50997041
Family Applications (2)
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 |
CN201210574647.6A Active CN103905927B (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 |
---|---|---|---|
CN201210574647.6A Active CN103905927B (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) | CN106231369A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107529711A (en) * | 2017-08-01 | 2018-01-02 | 杭州安恒信息技术有限公司 | The display methods and device of Streaming Media |
CN108563479A (en) * | 2018-03-21 | 2018-09-21 | 新华三云计算技术有限公司 | Redirect control method, device, virtual machine and the Redirectional system of window |
CN109446460A (en) * | 2018-10-24 | 2019-03-08 | 国云科技股份有限公司 | A kind of HTML5 Online Video Redirectional system and its implementation |
CN110113661A (en) * | 2019-04-10 | 2019-08-09 | 新华三云计算技术有限公司 | A kind of video broadcasting method and device |
CN110134450A (en) * | 2018-02-08 | 2019-08-16 | 中兴通讯股份有限公司 | A kind of video reorientation method, device and computer readable storage medium |
CN110381363A (en) * | 2019-07-17 | 2019-10-25 | 深信服科技股份有限公司 | Video encoding/decoding method, device, server and storage medium |
Families Citing this family (16)
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 |
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 |
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 |
CN110062286A (en) * | 2019-02-22 | 2019-07-26 | 上海映云信息技术有限公司 | A method of realizing that video redirects in virtual desktop |
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 (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102158553A (en) * | 2011-03-31 | 2011-08-17 | 华为技术有限公司 | 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 |
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 (2)
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 |
US9225763B2 (en) * | 2011-06-07 | 2015-12-29 | Cisco Technology, Inc. | Distributed overlay browser for transparent streaming media support in virtualized desktop environment |
-
2012
- 2012-12-26 CN CN201610514067.6A patent/CN106231369A/en active Pending
- 2012-12-26 CN CN201210574647.6A patent/CN103905927B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102158553A (en) * | 2011-03-31 | 2011-08-17 | 华为技术有限公司 | Method and device for playing multi-media files for remote desktop |
CN102387187A (en) * | 2011-07-28 | 2012-03-21 | 中兴通讯股份有限公司 | Server, client as well as method and system for remotely playing video file by using client |
CN102377777A (en) * | 2011-10-14 | 2012-03-14 | 深圳市京华科讯科技有限公司 | Hyper desktop virtualization method and system |
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 (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107529711A (en) * | 2017-08-01 | 2018-01-02 | 杭州安恒信息技术有限公司 | The display methods and device of Streaming Media |
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 |
CN109446460A (en) * | 2018-10-24 | 2019-03-08 | 国云科技股份有限公司 | A kind of HTML5 Online Video Redirectional system and its implementation |
CN109446460B (en) * | 2018-10-24 | 2021-11-19 | 国云科技股份有限公司 | HTML5 online video redirection system and implementation method thereof |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN103905927A (en) | 2014-07-02 |
CN103905927B (en) | 2016-08-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103905927B (en) | Method, desktop server and the system that under virtual desktop scene, video redirects | |
CN103220577B (en) | A kind of video broadcasting method, device and system | |
CN110446114B (en) | Multimedia data processing device, method, electronic equipment and storage medium | |
CN103763626A (en) | Method, device and system for pushing information | |
US10521176B2 (en) | Integrated learning using multiple devices | |
CN112770188A (en) | Video playing method and device | |
CN103873938A (en) | Video-tag-based webpage video full-screen playing method and browser of mobile terminal | |
CN109389365B (en) | Multi-person collaborative document processing method and device and electronic equipment | |
JP2014522517A (en) | Notification of data splitting in markup-based documents | |
CN104881452B (en) | Resource address sniffing method, device and system | |
CN111915705A (en) | Picture visual editing method, device, equipment and medium | |
CN113676766A (en) | Browser video display method and device, storage medium and electronic equipment | |
CN113422980B (en) | Video data processing method and device, electronic equipment and storage medium | |
CN109905753B (en) | Corner mark display method and device, storage medium and electronic device | |
CN112417340B (en) | Webpage picture processing method, computer equipment and storage medium | |
CN111107381A (en) | Live broadcast room bullet screen display method, storage medium, equipment and system | |
CN112492399B (en) | Information display method and device and electronic equipment | |
CN108132767B (en) | Application window preview method and system | |
CN114374869A (en) | Panoramic video playing method and device and computer storage medium | |
CN110688282B (en) | Webpage performance data monitoring and monitoring task distribution method and device | |
CN108471545B (en) | Set top box broadcasting method and device, set top box, server and medium | |
CN111866548A (en) | Marking method applied to medical video | |
CN114257876A (en) | Bullet screen display processing method and device, electronic equipment and storage medium | |
EP0841610A2 (en) | Hot areas in interactive movies | |
CN111770380A (en) | Video processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20161214 |
|
WD01 | Invention patent application deemed withdrawn after publication |