WO2014146248A1 - Video transmission method, device, and system applied to remote desktop - Google Patents

Video transmission method, device, and system applied to remote desktop Download PDF

Info

Publication number
WO2014146248A1
WO2014146248A1 PCT/CN2013/072871 CN2013072871W WO2014146248A1 WO 2014146248 A1 WO2014146248 A1 WO 2014146248A1 CN 2013072871 W CN2013072871 W CN 2013072871W WO 2014146248 A1 WO2014146248 A1 WO 2014146248A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
client
server
playback capability
browser
Prior art date
Application number
PCT/CN2013/072871
Other languages
French (fr)
Chinese (zh)
Inventor
梁治平
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201380000716.5A priority Critical patent/CN104247364B/en
Priority to PCT/CN2013/072871 priority patent/WO2014146248A1/en
Publication of WO2014146248A1 publication Critical patent/WO2014146248A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/80Responding to QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • H04L65/762Media network packet handling at the source 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/04Protocols specially adapted for terminals or networks with limited capabilities; specially adapted for terminal portability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/08Protocols specially adapted for terminal emulation, e.g. Telnet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/303Terminal profiles

Definitions

  • the present invention relates to the field of Internet technologies, and in particular, to a video transmission method, device, and system for remote desktop. Background technique
  • the web server will preferentially transmit the HTML5 format video file to The server (wherein, the web server usually supports both the HTML5 format and the Flash format for the same video file;), the video file of the HTML5 format is decoded and rendered by the server, and then sent to the client for playing.
  • HTML5 Hyper Text Markup Language 5
  • the server decodes and renders the HTML5 format video file not only occupies more server resources, but also the HTML5 format video file is decoded and rendered and sent to the client, which also occupies high network bandwidth.
  • the technical problem to be solved by the embodiments of the present invention is to provide a video transmission method, device, and system for a remote desktop, which can reduce occupation of server resources and occupation of network bandwidth.
  • a first aspect of the embodiments of the present invention provides a video transmission method applied to a remote desktop, where the method includes:
  • the acquiring a video playing capability of the client includes:
  • the video playback capability of the browser of the server is:
  • the method further includes:
  • the video playing capability of the client is lower than the video playing capability of the browser of the server, modify the video playing capability information of the browser of the server saved by the server, so that the server saves the server
  • the video playback capability information of the browser of the server is updated to the video playback capability of the client.
  • the video playing capability of the client is used to interact with a web server to obtain a video file that meets the video playing capability of the client, including:
  • the sending by the sending, the connection request that carries the video playing capability of the client Before the web server is provided, the method further includes:
  • the method further includes:
  • the video playing capability of the server is used to interact with the web server to obtain a video file; and the video file is sent to the a client, such that the client decodes and plays the video file.
  • a second aspect of the embodiments of the present invention provides a computer storage medium storing a computer program capable of causing the computer to complete, for example, when the computer program in the computer storage medium is read to a computer All the steps of the video transmission method applied to the remote desktop provided by the first aspect of the embodiments of the present invention.
  • a third aspect of the embodiments of the present invention provides a video transmission device applied to a remote desktop, where the device includes:
  • the obtaining unit is configured to acquire the video playing capability of the client and the video playing capability of the browser of the server, and output the same to the comparing unit;
  • the comparing unit is configured to compare whether the video playing capability of the client is lower than the video playing capability of the browser of the server, and if yes, notify the interaction unit;
  • the interaction unit is configured to respond to the notification of the comparison unit, and use the video playback capability of the client to interact with a webpage server to obtain a video file that conforms to the video playback capability of the client, and output the video file to the sending unit;
  • the sending unit is configured to send the video file that meets the video playing capability of the client
  • the client is sent to the client to decode and play the video file.
  • the acquiring unit includes:
  • a receiving subunit configured to receive user agent information sent by the client, and output the information to the first scanning subunit
  • the first scanning sub-unit is configured to scan the user agent information sent by the client, obtain the video playing capability of the client included in the user agent information sent by the client, and output the video playing capability to the comparison unit.
  • the first scanning subunit is further configured to scan a browser of the server.
  • the user agent information acquires the video playing capability of the browser of the server included in the user agent information of the browser of the server, and outputs the video playing capability to the comparing unit.
  • the video transmission device further includes an injection unit;
  • the comparing unit is further configured to notify the injection unit when comparing a video playing capability of the client that is lower than a video playing capability of the browser of the server;
  • the injecting unit is configured to modify, according to the notification of the comparing unit, the video playing capability information of the browser of the server saved by the server, so that the server of the server of the server saved by the server is saved.
  • the playback capability information is updated to the video playback capability of the client, and the interaction unit is notified;
  • the interaction unit is further configured to: in response to the notification of the injection unit, perform the video playing capability of the client to interact with a webpage server, obtain a video file that conforms to the video playing capability of the client, and output the video file to the The step of sending the unit.
  • the interaction unit includes: a sending subunit, configured to send a connection request carrying the video playing capability of the client to the webpage server, so that the webpage server returns a video webpage that conforms to the video playing capability of the client, and triggers the parsing subunit;
  • the parsing subunit is configured to parse the video webpage, obtain a video tag, and output the video tag to the sending subunit;
  • the sending subunit is further configured to send a video file request carrying the video tag to the webpage server, and trigger a receiving subunit;
  • the receiving subunit is configured to receive a video file corresponding to the video tag returned by the webpage server, and output the video file to a sending unit.
  • the receiving subunit is further configured to receive a user by using the client a video webpage open event triggered on the browser of the server, and notifying the sending subunit;
  • the sending subunit is further configured to respond to the video webpage opening event, and perform the step of sending a connection request carrying the video playing capability of the client to the webpage server.
  • the comparing unit is further configured to: when comparing, the video playing capability of the client is not lower than the video playing capability of the browser of the server, triggering the interaction unit;
  • the interaction unit is further configured to: in response to the triggering of the comparing unit, use the video playing capability of the server to interact with the web server to obtain a video file, and output the video file to the sending unit;
  • the sending unit is configured to send the video file to a client, so that the client decodes and plays the video file.
  • a fourth aspect of the embodiments of the present invention provides a video transmission device applied to a remote desktop, including a transmitter, a receiver, a memory, and a processor respectively connected to the transmitter, the receiver, and the memory;
  • the memory stores a set of program codes
  • the processor is configured to invoke the storage Program code stored in the device to perform the following operations:
  • the processor triggers the receiver to enable the receiver to acquire video playback capabilities of a client
  • the processor acquires the video playing capability of the browser of the server, and compares the video playing capability of the client with the video playing capability of the browser of the server, if the video playing capability of the client is lower than that of the server.
  • the video playing capability of the device is performed by interacting with the web server by using the video playing capability of the client, obtaining a video file conforming to the video playing capability of the client, and triggering the transmitter;
  • the transmitter sends the video file conforming to the video playing capability of the client to the client for playing.
  • the receiver is configured to receive user agent information sent by a client, and scan user agent information sent by the client, to obtain the client.
  • the transmitted user agent information includes the video playback capability of the client.
  • the manner in which the processor obtains the video playing capability of the browser of the server is Specifically:
  • the processor scans the user agent information of the browser of the server to obtain the video playing capability of the browser of the server included in the user agent information of the browser of the server.
  • the processor modifies the video playback capability information of the browser of the server saved by the server to enable the service
  • the video playback capability information of the browser of the server saved at the end is updated to the video playback capability of the client.
  • the fourth possible implementation manner of the fourth aspect of the embodiments of the present invention The method in which the processor uses the video playing capability of the client to interact with a web server to obtain a video file that conforms to the video playing capability of the client is specifically:
  • the processor triggers the transmitter to send a connection request carrying the video playing capability of the client to the web server, so that the web server returns a video webpage that conforms to the video playing capability of the client;
  • the processor parses the video webpage to obtain a video tag
  • the processor triggers the transmitter to send a video file request carrying the video tag to the web server;
  • the processor triggers the receiver to receive a video file corresponding to the video tag returned by the web server.
  • the processor further triggers the receiver to receive the user by using the a video webpage open event triggered by the client on the browser of the server, and after the receiver receives the video webpage open event, triggering the transmitter to respond to the video click event sent by the client, and executing And the step of sending a connection request carrying the video playing capability of the client to the web server.
  • the processor also performs the following operations:
  • the video playing capability of the client is not lower than the video playing capability of the browser of the server, the video playing capability of the server is used to interact with the web server to obtain a video file, and the transmitter is triggered;
  • the transmitter transmits the video file to the client to cause the client to decode and play the video file.
  • the video playing capability of the client may be used to interact with the web server to obtain a video file that conforms to the video playing capability of the client and sent to the client.
  • the terminal performs decoding and playback.
  • the server does not need to decode and render the video file transmitted by the web server, and then sends the video file to the client for playback.
  • the video file transmitted by the web server is directly sent to the client for decoding and playing, thereby effectively reducing the occupation of the server resources and the occupation of the network bandwidth.
  • FIG. 1 is a flow chart of a video transmission method applied to a remote desktop according to an embodiment of the present invention
  • FIG. 2 is a flow chart of another video transmission method applied to a remote desktop according to an embodiment of the present invention.
  • FIG. 3 is a structural diagram of a video transmission device applied to a remote desktop according to an embodiment of the present invention
  • FIG. 4 is a structural diagram of another video transmission device applied to a remote desktop according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a workflow of a video transmission device applied to a remote desktop shown in FIG. 4.
  • FIG. 6 is a structural diagram of another video transmission device applied to a remote desktop according to an embodiment of the present invention. detailed description
  • the embodiment of the invention provides a video transmission method, device and system applied to a remote desktop. It can reduce the occupation of server resources and the occupation of network bandwidth. The details are described below separately.
  • FIG. 1 is a flowchart of a video transmission method applied to a remote desktop according to an embodiment of the present invention.
  • the video transmission method applied to the remote desktop described in FIG. 1 is executed by the server. It should be understood that the video transmission method applied to the remote desktop described in FIG. 1 can also be performed by other terminal devices or hosts as long as the terminal devices or hosts can interact with the web server and can establish a remote connection with the client.
  • the desktop is optional, and the embodiment of the present invention is not limited.
  • the video transmission method applied to the remote desktop may include the following steps.
  • the server obtains the video playing capability of the client.
  • the server may receive the user agent (UA) information sent by the client, and scan the UA information sent by the client to obtain the video playing capability of the client included in the UA information sent by the client.
  • the server may receive the User Agent (UA) information sent by the client during the initialization process of the client and the remote desktop, and scan the UA information sent by the client to obtain the UA information sent by the client.
  • the client's video playback capabilities may be received.
  • the server spontaneously scans the UA information of the client to obtain the video playback capability of the client included in the UA information of the client.
  • the server can spontaneously scan the UA information of the client during the initialization process of building the remote desktop with the client, and obtain the video playback capability of the client included in the UA information of the client.
  • the video playback capability of the client may be a video coding and decoding capability of the client (such as a video file codec that supports the Flash format), a browser version identifier of the client, and the like, which are not limited in the embodiment of the present invention.
  • the UA information of the client is usually included in the registration information of the client.
  • the server obtains a video playing capability of the browser of the server.
  • the server can scan the UA information of the browser of the server to obtain the video playing capability of the browser of the server included in the UA information of the browser of the server.
  • the video playback capability of the browser of the server may be a video codec capability of the browser of the server (such as a video file codec supporting the HTML5 format), a browser version identifier of the server, and the like, which are not limited in the embodiment of the present invention.
  • the UA information of the browser of the server is usually included in the registration information of the server. 103.
  • the server compares the video playing capability of the client and the video playing capability of the browser of the server. If the video playing capability of the client is lower than the video playing capability of the browser of the server, the video playing capability of the client is used to interact with the web server to obtain A video file that matches the video playback capabilities of the client.
  • the video playback capability of the client is a video file encoding and decoding format supported by the Flash format
  • the video playback capability of the local browser is a video file encoding and supporting the HTML5 format
  • the video playback capability of the client is lower than that of the local browser. Video playback capabilities.
  • the server may send a connection request carrying the video playing capability of the client to the web server, so that the web server returns the video conforming to the client.
  • the video webpage of the playback capability and the server can parse the video webpage to obtain a video label (such as a Flash video tag), and send a video file request carrying the video tag to the webpage server, thereby receiving the video tag returned by the webpage server. Corresponding video file.
  • the server before sending the connection request carrying the video playing capability of the client to the web server, the server may also receive a video webpage opening event triggered by the user on the browser of the server, and respond to the video webpage opening event. And then performing the step of sending a connection request carrying the video playback capability of the client to the web server.
  • the embodiment of the present invention further describes in detail how the server interacts with the web server by using the video playing capability of the client to obtain a video file that conforms to the video playing capability of the client, and will not be described in detail herein. .
  • the server may use the video playing capability of the server to interact with the web server to obtain a video file and send the video file to the client, so that The client decodes and plays the video file.
  • the server sends a video file that conforms to the video playing capability of the client to the client, so that the client decodes and plays the video file.
  • the client may first decode and render the video file, and then play the video file.
  • step 101 is not limited in the embodiment of the present invention.
  • FIG. 2 is a flowchart of another video transmission method applied to a remote desktop according to an embodiment of the present invention. As shown in FIG. 2, the method includes the following steps:
  • the client obtains its video playing capability.
  • the client can scan the UA information of the client to obtain the video playback capability of the UA information of the client.
  • the client can also obtain the video playback capability of the client by scanning the client's system configuration file or the client resource file.
  • the client sends the video playback capability of the client to the server.
  • the server obtains a video playing capability of the browser of the server.
  • the server can scan the UA information of the browser of the server saved by the server to obtain the video playing capability of the browser of the server.
  • the server compares the video playing capability of the client and the video playing capability of the browser of the server.
  • the server modifies the video playback capability information of the browser of the server saved by the server, so that the video playback capability information of the browser saved by the server is updated. The ability to play video for the client.
  • step 205 may be an optional step, that is, after the server obtains the video playing capability of the server and the client, the server may perform the comparison of step 204 before sending the message to the web server.
  • Step 207 is performed directly according to the comparison result, and step 205 is not needed, that is, the update of the video playing capability of the server is performed.
  • the server receives a video webpage start event triggered by the user on the browser of the server by the client.
  • the user can click on the video link or input the video URL on the browser of the server through the client, so that the video webpage open event can be triggered on the browser of the server.
  • the server sends a connection request carrying the video playing capability of the client to the web server.
  • the server receives the webpage server and returns a video webpage that matches the video playing capability of the client.
  • the server parses the video webpage to obtain a video label (such as a Flash video label). Wherein, when the monthly service end parses the video web page, the video page can also be rendered.
  • a video label such as a Flash video label
  • the server parses the video webpage to obtain a document object model (Document Object)
  • Model, DOM structure
  • the server sends a video file request carrying the video tag (such as a Flash video tag) to the web server.
  • the video tag such as a Flash video tag
  • the server receives the video file corresponding to the video label (such as a Flash video label) returned by the web server.
  • the video label such as a Flash video label
  • the server sends a video file to the client.
  • the client decodes and plays the video file.
  • the server does not need to decode the video file transmitted by the web server. After being rendered, it is sent to the client for playback. Instead, the video file transmitted by the web server is directly sent to the client for decoding and playing, thereby effectively reducing the occupation of the server resources and the occupation of the network bandwidth.
  • FIG. 3 is a structural diagram of a video transmission device applied to a remote desktop according to an embodiment of the present invention.
  • the video transmission device applied to the remote desktop described in FIG. 3 may be a server in physical implementation. It should be understood that the video transmission device applied to the remote desktop described in FIG. 3 may also be other terminal devices or hosts in physical implementation, as long as the terminal devices or hosts can interact with the web server and can communicate with the client.
  • the remote desktop can be constructed, which is not limited in the embodiment of the present invention.
  • the video transmission device applied to the remote desktop environment may include an obtaining unit 301, a comparing unit 302, an interaction unit 303, and a sending unit 304, where:
  • the obtaining unit 301 is configured to acquire the video playing capability of the client and the video playing capability of the browser of the server, and output the result to the comparing unit 302.
  • the video playback capability of the client may be a video codec capability of the client (such as a video file codec that supports the Flash format), a browser version identifier of the client, and the like. Limited.
  • the UA information of the client is usually included in the registration information of the client.
  • the video playback capability of the browser of the server may be a video codec capability of the browser of the server (such as a video file codec supporting the HTML5 format), a browser version identifier of the server, and the like, which are not limited in the embodiment of the present invention.
  • the UA information of the browser of the server is usually included in the registration information of the server.
  • the comparing unit 302 is configured to compare whether the video playing capability of the client is lower than the video playing capability of the browser of the server, and if yes, notify the interaction unit 303.
  • the comparison unit 302 can compare the video playback of the client.
  • the capability is lower than the video playback capability of the browser of the server, and the comparison unit 302 notifies the interaction unit 303 of the comparison result.
  • the interaction unit 303 is configured to respond to the notification of the comparing unit 302, and use the video playing capability of the client to interact with the web server to obtain a video file conforming to the video playing capability of the client, and output the video file to the sending unit 304.
  • the interaction unit 303 may send a connection request carrying the video playing capability of the client to the webpage server, so that the webpage server returns a video webpage that conforms to the video playing capability of the client, and then the monthly server can parse the video webpage.
  • Obtaining a video tag (such as a Flash video tag), and sending a video file carrying the video tag to the web server, thereby receiving the video file corresponding to the video tag returned by the web server, and outputting the video file to the sending unit 304.
  • the interaction unit 304 may also receive a video webpage open event triggered by the user on the browser of the server by the client, and open in response to the video webpage. The event, and then the step of sending a connection request carrying the video playback capability of the client to the web server.
  • the sending unit 304 is configured to send a video file that conforms to the video playing capability of the client to the client for playing, so that the client decodes and plays the video file.
  • FIG. 4 is a structural diagram of another video transmission device applied to a remote desktop according to an embodiment of the present invention.
  • the video transmission device applied to the remote desktop shown in FIG. 4 is optimized by the video transmission device applied to the remote desktop shown in FIG. 3.
  • the response shown in Figure 4 In the video transmission device for the remote desktop, the obtaining unit 301 includes a receiving subunit 3011 and a first scanning subunit 3012, where:
  • the receiving subunit 3011 is configured to receive the UA information sent by the client, and output the information to the first scanning subunit 3012;
  • the first scanning sub-unit 3012 is configured to scan the UA information sent by the client, obtain the video playing capability of the client included in the UA information sent by the client, and output the video playing capability to the comparing unit 302.
  • the first scanning sub-unit 3012 is further configured to scan the UA information of the browser of the server, and obtain the video playing capability of the browser of the server included in the UA information of the browser of the server, and output the video to the comparing unit 302.
  • the video transmission device shown in FIG. 4 further includes an injection unit 305;
  • the comparing unit 302 is further configured to notify the injection unit 305 when comparing the video playing capability of the client that is lower than the video playing capability of the browser of the server;
  • the injecting unit 305 is configured to: in response to the notification of the comparing unit 302, modify the video playing capability information of the browser of the server saved by the server, so that the video playing capability information of the browser of the server saved by the server is updated to the video playing capability of the client. And notifying the interaction unit 303;
  • the interaction unit 303 includes a transmission subunit 3031, a parsing subunit 3032, and a receiving subunit 3033, where:
  • the sending subunit 3031 is configured to send a connection request carrying the video playing capability of the client to the webpage server, so that the webpage server returns a video webpage that conforms to the video playing capability of the client, and the trigger parsing subunit 3032;
  • the parsing subunit 3032 is configured to parse the video webpage to obtain a video tag, and output the video tag to the sending subunit 3033;
  • the sending subunit 3031 is further configured to send a video file carrying the video tag to the web server, and trigger the receiving subunit 3033;
  • the receiving subunit 3033 is configured to receive a video file corresponding to the video label returned by the web server, and output the video file to the sending unit 304.
  • the receiving subunit 3033 is further configured to receive a video webpage open event triggered by the user on the browser of the server by the client, and notify the sending subunit 3031;
  • the sending subunit 3031 is further configured to respond to the video webpage open event and perform sending The step of carrying a connection request with the video playback capability of the client to the web server.
  • the video transmission device applied to the remote desktop environment described in FIG. 3 and FIG. 4 knows that, when the video playback capability of the client is lower than the video playback capability of the browser of the server, the video transmitted by the server to the web server is not needed. After the file is decoded and rendered, it is sent to the client for playback. Instead, the video file transmitted by the web server is directly sent to the client for decoding and playing, thereby effectively reducing the occupation of the server resources and the occupation of the network bandwidth.
  • FIG. 5 is a schematic diagram of the workflow of the video transmission device applied to the remote desktop shown in FIG.
  • the workflow of the video transmission device applied to the remote desktop includes the following steps:
  • the client obtains its video playing capability.
  • the client can scan the UA information of the client to obtain the video playback capability of the UA information of the client.
  • the client can also obtain the video playback capability of the client by scanning the client's system configuration file or the client resource file.
  • the client sends the video playing capability of the client to the acquiring unit 301.
  • the obtaining unit 301 outputs the video playing capability of the client to the comparing unit 302.
  • the obtaining unit 301 acquires a video playing capability of the browser of the server.
  • the obtaining unit 301 can scan the UA information of the browser of the server to obtain the video playing capability of the browser of the server.
  • the acquiring unit 301 transmits the video playing capability of the browser of the server to the comparing unit.
  • the comparing unit 302 compares the video playing capability of the client with the video playing capability of the browser of the server.
  • the comparison unit 302 After comparing the video playback capability of the client to the video playback capability of the browser of the server, the comparison unit 302 transmits the video playback capability of the client to the injection unit 305.
  • the injection unit 305 modifies the video playback capability information of the browser saved by the server, so that The video playback capability information of the browser of the server is updated to the video playback capability of the client.
  • the interaction unit 303 receives a video webpage open event triggered by the user on the browser of the server by the client.
  • the user can click on the video link or input the video URL on the browser of the server through the client, so that the video webpage open event can be triggered to the interaction unit 303 on the browser of the server.
  • the interaction unit 303 sends a connection request carrying the video playing capability of the client to the web server.
  • the interaction unit 303 receives, by the web server, a video webpage that matches the video playback capability of the client.
  • the interaction unit 303 parses the video webpage to obtain a video tag (such as a Flash video tag).
  • the interaction unit 303 parses the video webpage
  • the videopage may also be rendered.
  • the interaction unit 303 parses the video webpage to obtain a DOM structure, and obtains a video label from the DOM structure.
  • the interaction unit 303 sends a video file request carrying the video tag (such as a Flash video tag) to the web server.
  • the video tag such as a Flash video tag
  • the interaction unit 303 may have a video tag processing engine built in, so that the interaction unit 303 can perform the foregoing steps 512 to 513.
  • the interaction unit 303 receives the video file corresponding to the video label (such as a Flash video label) returned by the web server.
  • the video label such as a Flash video label
  • the interaction unit 303 outputs the video file to the sending unit 304.
  • the sending unit 305 sends the video file to the client for decoding and playing.
  • the workflow of the video transmission device applied to the remote desktop described in FIG. 5 shows that, in the case that the video playback capability of the client is lower than the video playback capability of the browser of the server, the video file transmitted by the server to the web server is not required. After being decoded and rendered, it is sent to the client for playback. Instead, the video file transmitted by the web server is directly sent to the client for decoding and playing, thereby effectively reducing the occupation of the server resources and the occupation of the network bandwidth.
  • FIG. 6 is a structural diagram of another video transmission device applied to a remote desktop according to an embodiment of the present invention.
  • the video transmission device applied to the remote desktop may include The camera 601, the receiver 602, the memory 603, and the processor 604 connected to the transmitter 601, the receiver 602, and the memory 03, respectively; in one embodiment, the processor 604 can communicate with the transmitter 601, the receiver 602, and the bus.
  • the memory 603 is connected.
  • the memory 603 stores a set of program codes
  • the processor 604 is configured to call the program code stored in the memory 603 to perform the following operations:
  • the processor 604 triggers the receiver 602 to cause the receiver 602 to acquire the video playing capability of the client;
  • the processor 604 acquires the video playing capability of the browser of the server, and compares the video playing capability of the client with the video playing capability of the browser of the server. If the video playing capability of the client is lower than the video playing capability of the browser of the server, the client is used.
  • the video playing capability of the terminal interacts with the web server to obtain a video file that conforms to the video playing capability of the client, and triggers the transmitter 601;
  • the transmitter 601 sends a video file conforming to the video playback capability of the client to the client for decoding and playback.
  • the receiver 602 is configured to receive the user agent information sent by the client, and scan the user agent information sent by the client to obtain the video playing capability of the client included in the user agent information sent by the client.
  • the manner in which the processor 604 obtains the video playback capability of the browser of the server is:
  • the processor 604 scans the user agent information of the browser of the server to obtain the video playing capability of the browser of the server included in the user agent information of the browser of the server.
  • processor 604 also performs the following operations:
  • the processor 604 modifies the video playing capability information of the browser of the server saved by the server, so that the video playing capability of the browser of the server saved by the server is enabled. The information is updated to the client's video playback capabilities.
  • the processor 604 uses the video playback capability of the client to interact with the web server to obtain a video file that conforms to the video playback capability of the client.
  • the processor 604 triggers the transmitter 601 to send a connection request carrying the video playing capability of the client to the web server, so that the web server returns a video webpage that conforms to the video playing capability of the client; the processor 604 parses the video webpage to obtain a video label;
  • the processor 604 triggers the transmitter 601 to send a video file request carrying the video tag to the webpage.
  • the processor 604 triggers the receiver 602 to receive the video file corresponding to the video tag returned by the web server.
  • the processor 604 also triggers the receiver 602 to receive a video webpage open event triggered by the user on the browser of the server by the client, and triggers the transmitter 601 to respond to the client after the receiver 602 receives the video webpage open event.
  • the video click event sent by the terminal performs the step of sending a connection request carrying the video playing capability of the client to the web server.
  • processor 604 also performs the following operations:
  • the video playback capability of the client is not lower than the video playback capability of the browser of the server, the video playback capability of the server is used to interact with the web server to obtain a video file, and the transmitter 601 is triggered;
  • Transmitter 601 sends the video file to the client to cause the client to decode and play the video file.
  • the video transmission device applied to the remote desktop described in FIG. 6 knows that, in the case that the video playback capability of the client is lower than the video playback capability of the browser of the server, the server does not need to decode the video file transmitted by the web server. After being rendered, it is sent to the client for playback. Instead, the video file transmitted by the web server is directly sent to the client for decoding and playing, thereby effectively reducing the occupation of the server resources and the occupation of the network bandwidth.
  • the computer storage medium stores a computer program capable of causing the computer to perform all of the steps of the method illustrated in Figures 1 and 2 when the computer program in the computer storage medium is read to the computer.
  • the program may be stored in a computer readable storage medium, and the storage medium may include: Flash disk, read-only memory (ROM), random access memory (RAM), disk or optical disk.

Abstract

A video transmission method applied to a remote desktop, and a related device and system. The method comprises: obtaining a video playing capability of a client; obtaining a video playing capability of a browser of a server; comparing the video playing capability of the client with the video playing capability of the browser of the server, and if the video playing capability of the client is lower than the video playing capability of the browser of the server, interacting with a webpage server by using the video playing capability of the client, and obtaining a video file meeting the video playing capability of the client; and sending the video file meeting the video playing capability of the client to the client, so that the client decodes and plays the video file. Occupation of resources of the server and occupation of a network bandwidth can be reduced.

Description

一种应用于远程桌面的视频传输方法及设备、 系统 技术领域  Video transmission method, device and system applied to remote desktop
本发明涉及互联网技术领域,尤其涉及一种应用于远程桌面的视频传输方 法及设备、 系统。 背景技术  The present invention relates to the field of Internet technologies, and in particular, to a video transmission method, device, and system for remote desktop. Background technique
在远程桌面中,当客户端的用户通过服务端的浏览器来访问网页服务器的 视频页面并点击需要播放的视频文件时, 如果客户端仅支持 Flash格式的视频 文件播放, 而 良务端的浏览器支持超文本标记语言 5 ( Hypertext Markup Language 5, HTML5 )格式的视频文件播放, 也即是说客户端的视频播放能力 低于服务端的浏览器视频播放能力,那么网页服务器会优先将 HTML5格式的 视频文件传输给服务端 (其中, 网页服务器对同一视频文件通常同时支持 HTML5格式和 Flash格式;), 由服务端对 HTML5格式的视频文件进行解码和 渲染后发送给客户端进行播放。  In the remote desktop, when the client user accesses the video page of the web server through the browser of the server and clicks on the video file to be played, if the client only supports the video file playback in the flash format, the browser of the service end supports the super Text file language 5 (Hypertext Markup Language 5, HTML5) format video file playback, which means that the client's video playback capability is lower than the browser's browser video playback capability, then the web server will preferentially transmit the HTML5 format video file to The server (wherein, the web server usually supports both the HTML5 format and the Flash format for the same video file;), the video file of the HTML5 format is decoded and rendered by the server, and then sent to the client for playing.
然而实践中发现,服务端对 HTML5格式的视频文件进行解码和渲染不仅 会占用更多的服务端资源, 而且 HTML5格式的视频文件进行解码和渲染后发 送给客户端也会占用较高的网络带宽。 发明内容  However, in practice, it is found that the server decodes and renders the HTML5 format video file not only occupies more server resources, but also the HTML5 format video file is decoded and rendered and sent to the client, which also occupies high network bandwidth. . Summary of the invention
本发明实施例所要解决的技术问题是提供一种应用于远程桌面的视频传 输方法及设备、 系统, 能够降低对服务端资源的占用以及对网络带宽的占用。  The technical problem to be solved by the embodiments of the present invention is to provide a video transmission method, device, and system for a remote desktop, which can reduce occupation of server resources and occupation of network bandwidth.
本发明实施例第一方面提供一种应用于远程桌面的视频传输方法,所述方 法包括:  A first aspect of the embodiments of the present invention provides a video transmission method applied to a remote desktop, where the method includes:
获取客户端的视频播放能力;  Get the video playback capability of the client;
获取服务端的浏览器的视频播放能力;  Get the video playback capability of the browser of the server;
比较所述客户端的视频播放能力和所述服务端的浏览器的视频播放能力; 若所述客户端的视频播放能力低于所述服务端的浏览器的视频播放能力, 则采用所述客户端的视频播放能力与网页服务器进行交互,获得符合所述客户 端的视频播放能力的视频文件; Comparing the video playing capability of the client and the video playing capability of the browser of the server; if the video playing capability of the client is lower than the video playing capability of the browser of the server, And using the video playing capability of the client to interact with the web server to obtain a video file that conforms to the video playing capability of the client;
将所述符合所述客户端的视频播放能力的视频文件发送给所述客户端,以 使得所述客户端对所述视频文件进行解码和播放。  Transmitting the video file conforming to the video playing capability of the client to the client, so that the client decodes and plays the video file.
在本发明实施例第一方面的第一种可能的实现方式中,所述获取客户端的 视频播放能力包括:  In the first possible implementation manner of the first aspect of the embodiment, the acquiring a video playing capability of the client includes:
接收客户端发送的用户代理信息;  Receiving user agent information sent by the client;
扫描所述客户端发送的用户代理信息,获取所述客户端发送的用户代理信 息包含的所述客户端的视频播放能力。  Scanning the user agent information sent by the client, and acquiring the video playing capability of the client included in the user agent information sent by the client.
结合本发明实施例第一方面的第一种可能的实现方式,在本发明实施例第 一方面的第二种可能的实现方式中,所述获取服务端的浏览器的视频播放能力 包括:  With reference to the first possible implementation manner of the first aspect of the embodiments of the present invention, in a second possible implementation manner of the first aspect of the embodiment, the video playback capability of the browser of the server is:
扫描服务端的浏览器的用户代理信息,获取所述服务端的浏览器的用户代 理信息包含的服务端的浏览器的视频播放能力。  Scanning the user agent information of the browser of the server to obtain the video playing capability of the browser of the server included in the user agent information of the browser of the server.
结合本发明实施例第一方面或本发明实施例第一方面的第一至第二种可 能的实现方式中的任一种,在本发明实施例第一方面的第三种可能的实现方式 中, 所述方法还包括:  In a third possible implementation manner of the first aspect of the embodiment of the present invention, in combination with the first aspect of the first embodiment of the present invention or the first to the second possible implementation manner of the first aspect of the embodiment The method further includes:
若所述客户端的视频播放能力低于所述服务端的浏览器的视频播放能力, 则修改所述服务端保存的所述服务端的浏览器的视频播放能力信息,以使所述 服务端保存的所述服务端的浏览器的视频播放能力信息更新为所述客户端的 视频播放能力。  If the video playing capability of the client is lower than the video playing capability of the browser of the server, modify the video playing capability information of the browser of the server saved by the server, so that the server saves the server The video playback capability information of the browser of the server is updated to the video playback capability of the client.
结合本发明实施例第一方面或本发明实施例第一方面的第一至第三种可 能的实现方式中的任一种,在本发明实施例第一方面的第四种可能的实现方式 中, 所述采用所述客户端的视频播放能力与网页服务器进行交互, 获得符合所 述客户端的视频播放能力的视频文件包括:  In conjunction with the first aspect of the first embodiment of the present invention or the first to third possible implementation manners of the first aspect of the present invention, in a fourth possible implementation manner of the first aspect of the embodiment of the present invention, The video playing capability of the client is used to interact with a web server to obtain a video file that meets the video playing capability of the client, including:
发送携带有所述客户端的视频播放能力的连接请求给网页服务器,以使所 述网页服务器返回符合所述客户端的视频播放能力的视频网页;  Sending a connection request carrying the video playing capability of the client to the web server, so that the web server returns a video webpage that conforms to the video playing capability of the client;
解析所述视频网页, 获得视频标签;  Parsing the video webpage to obtain a video tag;
发送携带有所述视频标签的视频文件请求给所述网页服务器; 接收所述网页服务器返回的所述视频标签对应的视频文件。 Sending a video file carrying the video tag to the web server; Receiving a video file corresponding to the video tag returned by the web server.
结合本发明实施例第一方面的第四种可能的实现方式,在本发明实施例第 一方面的第五种可能的实现方式中,所述发送携带有所述客户端的视频播放能 力的连接请求给网页服务器之前, 所述方法还包括:  With reference to the fourth possible implementation manner of the first aspect of the embodiments of the present invention, in a fifth possible implementation manner of the first aspect of the embodiments, the sending, by the sending, the connection request that carries the video playing capability of the client Before the web server is provided, the method further includes:
接收用户通过所述客户端在所述服务端的浏览器上触发的视频网页开启 事件;  Receiving a video webpage open event triggered by the user on the browser of the server by the client;
响应所述视频网页开启事件,执行所述的发送携带有所述客户端的视频播 放能力的连接请求给网页服务器的步骤。  And in response to the video webpage open event, performing the step of transmitting a connection request carrying the video playback capability of the client to the webpage server.
结合本发明实施例第一方面或本发明实施例第一方面的第一至第五种可 能的实现方式中的任一种,在本发明实施例第一方面的第六种可能的实现方式 中, 所述方法还包括:  In conjunction with the first aspect of the first embodiment of the present invention or the first to fifth possible implementation manners of the first aspect of the present invention, in a sixth possible implementation manner of the first aspect of the embodiment of the present invention, The method further includes:
若所述客户端的视频播放能力不低于所述服务端的浏览器的视频播放能 力,则采用所述服务端的视频播放能力与网页服务器进行交互,获得视频文件; 将所述视频文件发送给所述客户端, 以使得所述客户端对所述视频文件进 行解码和播放。  If the video playing capability of the client is not lower than the video playing capability of the browser of the server, the video playing capability of the server is used to interact with the web server to obtain a video file; and the video file is sent to the a client, such that the client decodes and plays the video file.
本发明实施例第二方面提供一种计算机存储介质,所述计算机存储介质存 储有计算机程序,当所述计算机存储介质中的所述计算机程序被读取到计算机 时,能够使得所述计算机完成如本发明实施例第一方面提供的应用于远程桌面 的视频传输方法的全部步骤。  A second aspect of the embodiments of the present invention provides a computer storage medium storing a computer program capable of causing the computer to complete, for example, when the computer program in the computer storage medium is read to a computer All the steps of the video transmission method applied to the remote desktop provided by the first aspect of the embodiments of the present invention.
本发明实施例第三方面提供一种应用于远程桌面的视频传输设备,所述设 备包括:  A third aspect of the embodiments of the present invention provides a video transmission device applied to a remote desktop, where the device includes:
获取单元,用于获取客户端的视频播放能力和服务端的浏览器的视频播放 能力, 并输出给比较单元;  The obtaining unit is configured to acquire the video playing capability of the client and the video playing capability of the browser of the server, and output the same to the comparing unit;
所述比较单元,用于比较所述客户端的视频播放能力是否低于所述服务端 的浏览器的视频播放能力, 如果是, 则通知交互单元;  The comparing unit is configured to compare whether the video playing capability of the client is lower than the video playing capability of the browser of the server, and if yes, notify the interaction unit;
所述交互单元, 用于响应所述比较单元的通知, 采用所述客户端的视频播 放能力与网页服务器进行交互,获得符合所述客户端的视频播放能力的视频文 件, 并输出给发送单元;  The interaction unit is configured to respond to the notification of the comparison unit, and use the video playback capability of the client to interact with a webpage server to obtain a video file that conforms to the video playback capability of the client, and output the video file to the sending unit;
所述发送单元,用于将所述符合所述客户端的视频播放能力的视频文件发 送给客户端, 以使得所述客户端对所述视频文件进行解码和播放。 在本发明实施例第三方面的第一种可能的实现方式中, 所述获取单元包 括: The sending unit is configured to send the video file that meets the video playing capability of the client The client is sent to the client to decode and play the video file. In a first possible implementation manner of the third aspect of the embodiment, the acquiring unit includes:
接收子单元, 用于接收客户端发送的用户代理信息, 并输出给第一扫描子 单元;  a receiving subunit, configured to receive user agent information sent by the client, and output the information to the first scanning subunit;
所述第一扫描子单元, 用于扫描所述客户端发送的用户代理信息, 获取所 述客户端发送的用户代理信息包含的所述客户端的视频播放能力,并输出给比 较单元。  The first scanning sub-unit is configured to scan the user agent information sent by the client, obtain the video playing capability of the client included in the user agent information sent by the client, and output the video playing capability to the comparison unit.
结合本发明实施例第三方面的第一种可能的实现方式,在本发明实施例第 三方面的第二种可能的实现方式中,所述第一扫描子单元还用于扫描服务端的 浏览器的用户代理信息,获取所述服务端的浏览器的用户代理信息包含的服务 端的浏览器的视频播放能力, 并输出给比较单元。  With reference to the first possible implementation manner of the third aspect of the embodiments of the present invention, in a second possible implementation manner of the third aspect of the embodiments, the first scanning subunit is further configured to scan a browser of the server. The user agent information acquires the video playing capability of the browser of the server included in the user agent information of the browser of the server, and outputs the video playing capability to the comparing unit.
结合本发明实施例第三方面或本发明实施例第一方面的第一至第二种可 能的实现方式中的任一种,在本发明实施例第三方面的第三种可能的实现方式 中, 所述视频传输设备还包括注入单元;  In a third possible implementation manner of the third aspect of the embodiment of the present invention, in combination with the third aspect of the embodiment of the present invention or the first to the second possible implementation manner of the first aspect of the embodiment of the present invention The video transmission device further includes an injection unit;
所述比较单元,还用于在比较出所述客户端的视频播放能力低于所述服务 端的浏览器的视频播放能力时, 通知所述注入单元;  The comparing unit is further configured to notify the injection unit when comparing a video playing capability of the client that is lower than a video playing capability of the browser of the server;
所述注入单元, 用于响应所述比较单元的通知,修改所述服务端保存的所 述服务端的浏览器的视频播放能力信息,以使所述服务端保存的所述服务端的 浏览器的视频播放能力信息更新为所述客户端的视频播放能力,并通知交互单 元;  The injecting unit is configured to modify, according to the notification of the comparing unit, the video playing capability information of the browser of the server saved by the server, so that the server of the server of the server saved by the server is saved. The playback capability information is updated to the video playback capability of the client, and the interaction unit is notified;
所述交互单元,还用于响应所述注入单元的通知,执行所述的采用所述客 户端的视频播放能力与网页服务器进行交互,获得符合所述客户端的视频播放 能力的视频文件, 并输出给发送单元的步骤。  The interaction unit is further configured to: in response to the notification of the injection unit, perform the video playing capability of the client to interact with a webpage server, obtain a video file that conforms to the video playing capability of the client, and output the video file to the The step of sending the unit.
结合本发明实施例第三方面或本发明实施例第三方面的第一至第三种可 能的实现方式中的任一种,在本发明实施例第三方面的第四种可能的实现方式 中, 所述交互单元包括: 发送子单元,用于发送携带有所述客户端的视频播放能力的连接请求给网 页服务器,以使所述网页服务器返回符合所述客户端的视频播放能力的视频网 页, 以及触发解析子单元; In a fourth possible implementation manner of the third aspect of the embodiment of the present invention, in combination with the third aspect of the embodiment of the present invention or the first to the third possible implementation manner of the third aspect of the embodiment of the present invention The interaction unit includes: a sending subunit, configured to send a connection request carrying the video playing capability of the client to the webpage server, so that the webpage server returns a video webpage that conforms to the video playing capability of the client, and triggers the parsing subunit;
所述解析子单元, 用于解析所述视频网页, 获得视频标签, 并输出给所述 发送子单元;  The parsing subunit is configured to parse the video webpage, obtain a video tag, and output the video tag to the sending subunit;
所述发送子单元,还用于发送携带有所述视频标签的视频文件请求给所述 网页服务器, 并触发接收子单元;  The sending subunit is further configured to send a video file request carrying the video tag to the webpage server, and trigger a receiving subunit;
所述接收子单元,用于接收所述网页服务器返回的所述视频标签对应的视 频文件, 并输出给发送单元。  The receiving subunit is configured to receive a video file corresponding to the video tag returned by the webpage server, and output the video file to a sending unit.
结合本发明实施例第三方面的第四种可能的实现方式,在本发明实施例第 三方面的第五种可能的实现方式中,所述接收子单元还用于接收用户通过所述 客户端在所述服务端的浏览器上触发的视频网页开启事件,并通知所述发送子 单元;  With reference to the fourth possible implementation manner of the third aspect of the embodiments of the present invention, in a fifth possible implementation manner of the third aspect of the embodiments, the receiving subunit is further configured to receive a user by using the client a video webpage open event triggered on the browser of the server, and notifying the sending subunit;
所述发送子单元,还用于响应所述视频网页开启事件, 并执行所述的发送 携带有所述客户端的视频播放能力的连接请求给网页服务器的步骤。  The sending subunit is further configured to respond to the video webpage opening event, and perform the step of sending a connection request carrying the video playing capability of the client to the webpage server.
结合本发明实施例第三方面或本发明实施例第三方面的第一至第五种可 能的实现方式中的任一种,在本发明实施例第三方面的第六种可能的实现方式 中, 所述比较单元,还用于在比较出所述客户端的视频播放能力不低于所述服 务端的浏览器的视频播放能力时, 触发交互单元;  In a sixth possible implementation manner of the third aspect of the embodiment of the present invention, in combination with the third aspect of the embodiment of the present invention or the first to the fifth possible implementation manners of the third aspect of the embodiment of the present invention The comparing unit is further configured to: when comparing, the video playing capability of the client is not lower than the video playing capability of the browser of the server, triggering the interaction unit;
所述交互单元,还用于响应所述比较单元的触发, 采用所述服务端的视频 播放能力与网页服务器进行交互, 获得视频文件, 并输出给发送单元;  The interaction unit is further configured to: in response to the triggering of the comparing unit, use the video playing capability of the server to interact with the web server to obtain a video file, and output the video file to the sending unit;
所述发送单元, 用于将所述视频文件发送给客户端, 以使得所述客户端对 所述视频文件进行解码和播放。  The sending unit is configured to send the video file to a client, so that the client decodes and plays the video file.
本发明实施例第四方面提供一种应用于远程桌面的视频传输设备,包括发 射机、接收机、存储器以及分别与所述发射机、 所述接收机和所述存储器连接 的处理器;  A fourth aspect of the embodiments of the present invention provides a video transmission device applied to a remote desktop, including a transmitter, a receiver, a memory, and a processor respectively connected to the transmitter, the receiver, and the memory;
其中, 所述存储器中存储一组程序代码,且所述处理器用于调用所述存储 器中存储的程序代码, 用于执行以下操作: Wherein the memory stores a set of program codes, and the processor is configured to invoke the storage Program code stored in the device to perform the following operations:
所述处理器触发所述接收机,以使得所述接收机获取客户端的视频播放能 力;  The processor triggers the receiver to enable the receiver to acquire video playback capabilities of a client;
所述处理器获取服务端的浏览器的视频播放能力,并比较所述客户端的视 频播放能力和所述服务端的浏览器的视频播放能力,若所述客户端的视频播放 能力低于所述服务端的浏览器的视频播放能力,则采用所述客户端的视频播放 能力与网页服务器进行交互, 获得符合所述客户端的视频播放能力的视频文 件, 并触发所述发射机;  The processor acquires the video playing capability of the browser of the server, and compares the video playing capability of the client with the video playing capability of the browser of the server, if the video playing capability of the client is lower than that of the server. The video playing capability of the device is performed by interacting with the web server by using the video playing capability of the client, obtaining a video file conforming to the video playing capability of the client, and triggering the transmitter;
所述发射机将所述符合所述客户端的视频播放能力的视频文件发送给客 户端播放。  The transmitter sends the video file conforming to the video playing capability of the client to the client for playing.
在本发明实施例第四方面的第一种可能的实现方式中,所述接收机用于接 收客户端发送的用户代理信息, 并扫描所述客户端发送的用户代理信息, 获取 所述客户端发送的用户代理信息包含的所述客户端的视频播放能力。  In a first possible implementation manner of the fourth aspect of the embodiments, the receiver is configured to receive user agent information sent by a client, and scan user agent information sent by the client, to obtain the client. The transmitted user agent information includes the video playback capability of the client.
结合本发明实施例第四方面的第一种可能的实现方式,在本发明实施例第 四方面的第二种可能的实现方式中,所述处理器获取服务端的浏览器的视频播 放能力的方式具体为:  With reference to the first possible implementation manner of the fourth aspect of the embodiments of the present invention, in a second possible implementation manner of the fourth aspect of the embodiments of the present disclosure, the manner in which the processor obtains the video playing capability of the browser of the server is Specifically:
所述处理器扫描服务端的浏览器的用户代理信息,获取所述服务端的浏览 器的用户代理信息包含的服务端的浏览器的视频播放能力。  The processor scans the user agent information of the browser of the server to obtain the video playing capability of the browser of the server included in the user agent information of the browser of the server.
结合本发明实施例第四方面或本发明实施例第四方面的第一至第二种可 能的实现方式中的任一种,在本发明实施例第三方面的第三种可能的实现方式 中, 所述处理器还执行以下操作:  In a third possible implementation manner of the third aspect of the embodiment of the present invention, in combination with the fourth aspect of the embodiment of the present invention or the first to the second possible implementation manner of the fourth aspect of the embodiment of the present invention The processor also performs the following operations:
若所述客户端的视频播放能力低于所述服务端的浏览器的视频播放能力, 则所述处理器修改所述服务端保存的所述服务端的浏览器的视频播放能力信 息,以使所述服务端保存的所述服务端的浏览器的视频播放能力信息更新为所 述客户端的视频播放能力。  If the video playback capability of the client is lower than the video playback capability of the browser of the server, the processor modifies the video playback capability information of the browser of the server saved by the server to enable the service The video playback capability information of the browser of the server saved at the end is updated to the video playback capability of the client.
结合本发明实施例第四方面或本发明实施例第四方面的第一至第三种可 能的实现方式中的任一种,在本发明实施例第四方面的第四种可能的实现方式 中, 所述处理器采用所述客户端的视频播放能力与网页服务器进行交互,获得 符合所述客户端的视频播放能力的视频文件的方式具体为: With reference to the fourth aspect of the embodiments of the present invention or any one of the first to third possible implementation manners of the fourth aspect of the embodiments of the present invention, the fourth possible implementation manner of the fourth aspect of the embodiments of the present invention The method in which the processor uses the video playing capability of the client to interact with a web server to obtain a video file that conforms to the video playing capability of the client is specifically:
所述处理器触发所述发射机发送携带有所述客户端的视频播放能力的连 接请求给网页服务器,以使所述网页服务器返回符合所述客户端的视频播放能 力的视频网页;  The processor triggers the transmitter to send a connection request carrying the video playing capability of the client to the web server, so that the web server returns a video webpage that conforms to the video playing capability of the client;
所述处理器解析所述视频网页, 获得视频标签;  The processor parses the video webpage to obtain a video tag;
所述处理器触发所述发射机发送携带有所述视频标签的视频文件请求给 所述网页服务器;  The processor triggers the transmitter to send a video file request carrying the video tag to the web server;
所述处理器触发所述接收机接收所述网页服务器返回的所述视频标签对 应的视频文件。  The processor triggers the receiver to receive a video file corresponding to the video tag returned by the web server.
结合本发明实施例第四方面的第四种可能的实现方式,在本发明实施例第 四方面的第五种可能的实现方式中,所述处理器还触发所述接收机接收用户通 过所述客户端在所述服务端的浏览器上触发的视频网页开启事件,并在所述接 收机接收到所述视频网页开启事件后,触发所述发射机响应所述客户端发送的 视频点击事件,执行所述的发送携带有所述客户端的视频播放能力的连接请求 给网页服务器的步骤。  With reference to the fourth possible implementation manner of the fourth aspect of the embodiments of the present invention, in a fifth possible implementation manner of the fourth aspect of the embodiments, the processor further triggers the receiver to receive the user by using the a video webpage open event triggered by the client on the browser of the server, and after the receiver receives the video webpage open event, triggering the transmitter to respond to the video click event sent by the client, and executing And the step of sending a connection request carrying the video playing capability of the client to the web server.
结合本发明实施例第四方面或本发明实施例第四方面的第一至第五种可 能的实现方式中的任一种,在本发明实施例第四方面的第六种可能的实现方式 中, 所述处理器还执行以下操作:  With reference to the fourth aspect of the embodiments of the present invention or any one of the first to the fifth possible implementation manners of the fourth aspect of the embodiments of the present invention, in a sixth possible implementation manner of the fourth aspect of the embodiments of the present invention, The processor also performs the following operations:
若所述客户端的视频播放能力不低于所述服务端的浏览器的视频播放能 力,则采用所述服务端的视频播放能力与网页服务器进行交互,获得视频文件, 并触发所述发射机;  If the video playing capability of the client is not lower than the video playing capability of the browser of the server, the video playing capability of the server is used to interact with the web server to obtain a video file, and the transmitter is triggered;
所述发射机将所述视频文件发送给所述客户端,以使得所述客户端对所述 视频文件进行解码和播放。  The transmitter transmits the video file to the client to cause the client to decode and play the video file.
本发明实施例中,若客户端的视频播放能力低于本地浏览器的视频播放能 力, 那么可以采用客户端的视频播放能力与网页服务器进行交互, 获得符合客 户端的视频播放能力的视频文件并发送给客户端进行解码和播放。通过实施本 发明实施例 ,即使在客户端的视频播放能力低于服务端的浏览器的视频播放能 力的情况下,服务端也无需对网页服务器传输的视频文件进行解码和渲染后再 发送给客户端播放,而是将网页服务器传输的视频文件直接发送给客户端进行 解码和播放, 从而可以有效降低对服务端资源的占用以及对网络带宽的占用。 附图说明 In the embodiment of the present invention, if the video playing capability of the client is lower than the video playing capability of the local browser, the video playing capability of the client may be used to interact with the web server to obtain a video file that conforms to the video playing capability of the client and sent to the client. The terminal performs decoding and playback. By implementing this In the embodiment of the present invention, even if the video playing capability of the client is lower than the video playing capability of the browser of the server, the server does not need to decode and render the video file transmitted by the web server, and then sends the video file to the client for playback. The video file transmitted by the web server is directly sent to the client for decoding and playing, thereby effectively reducing the occupation of the server resources and the occupation of the network bandwidth. DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要 使用的附图作筒单地介绍,显而易见地, 下面描述中的附图仅仅是本发明的一 些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还 可以根据这些附图获得其他的附图;  In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained according to these drawings without any creative work;
图 1 是本发明实施例提供的一种应用于远程桌面的视频传输方法的流程 图;  1 is a flow chart of a video transmission method applied to a remote desktop according to an embodiment of the present invention;
图 2是本发明实施例提供的另一种应用于远程桌面的视频传输方法的流 程图;  2 is a flow chart of another video transmission method applied to a remote desktop according to an embodiment of the present invention;
图 3 是本发明实施例提供的一种应用于远程桌面的视频传输设备的结构 图;  3 is a structural diagram of a video transmission device applied to a remote desktop according to an embodiment of the present invention;
图 4是本发明实施例提供的另一种应用于远程桌面的视频传输设备的结 构图;  4 is a structural diagram of another video transmission device applied to a remote desktop according to an embodiment of the present invention;
图 5是图 4所示的应用于远程桌面的视频传输设备的工作流程示意图; 图 6是本发明实施例提供的另一种应用于远程桌面的视频传输设备的结 构图。 具体实施方式  5 is a schematic diagram of a workflow of a video transmission device applied to a remote desktop shown in FIG. 4. FIG. 6 is a structural diagram of another video transmission device applied to a remote desktop according to an embodiment of the present invention. detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。基于本发明中的实施例, 本领域普通技术人员在没有做出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  BRIEF DESCRIPTION OF THE DRAWINGS The technical solutions in the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without the creative work are all within the scope of the present invention.
本发明实施例提供了一种应用于远程桌面的视频传输方法及设备、 系统, 能够降低对服务端资源的占用以及对网络带宽的占用。 以下分别进行详细说 明。 The embodiment of the invention provides a video transmission method, device and system applied to a remote desktop. It can reduce the occupation of server resources and the occupation of network bandwidth. The details are described below separately.
请参阅图 1 , 图 1是本发明实施例提供的一种应用于远程桌面的视频传输 方法的流程图。本发明实施例中, 图 1所描述的应用于远程桌面的视频传输方 法由服务端来执行。应该理解的是, 图 1所描述的应用于远程桌面的视频传输 方法也可以由其他终端设备或主机来执行,只要这些终端设备或主机能够与网 页服务器交互, 并且与客户端之间能够构建远程桌面即可, 本发明实施例不作 限定。 如图 1所示, 该应用于远程桌面的视频传输方法可以包括以下步骤。  Referring to FIG. 1, FIG. 1 is a flowchart of a video transmission method applied to a remote desktop according to an embodiment of the present invention. In the embodiment of the present invention, the video transmission method applied to the remote desktop described in FIG. 1 is executed by the server. It should be understood that the video transmission method applied to the remote desktop described in FIG. 1 can also be performed by other terminal devices or hosts as long as the terminal devices or hosts can interact with the web server and can establish a remote connection with the client. The desktop is optional, and the embodiment of the present invention is not limited. As shown in FIG. 1, the video transmission method applied to the remote desktop may include the following steps.
101、 服务端获取客户端的视频播放能力。  101. The server obtains the video playing capability of the client.
一个实施例中,服务端可以接收客户端发送的用户代理(User Agent, UA ) 信息, 并扫描客户端发送的 UA信息, 获取客户端发送的 UA信息包含的客户 端的视频播放能力。举例来说,服务端可以在和客户端构建远程桌面的初始化 过程中接收客户端发送的用户代理(User Agent, UA )信息, 并扫描客户端发 送的 UA信息, 获取客户端发送的 UA信息包含的客户端的视频播放能力。  In an embodiment, the server may receive the user agent (UA) information sent by the client, and scan the UA information sent by the client to obtain the video playing capability of the client included in the UA information sent by the client. For example, the server may receive the User Agent (UA) information sent by the client during the initialization process of the client and the remote desktop, and scan the UA information sent by the client to obtain the UA information sent by the client. The client's video playback capabilities.
另一个实施例中, 服务端自发扫描客户端的 UA信息, 获取客户端的 UA 信息包含的客户端的视频播放能力。举例来说,服务端可以在和客户端构建远 程桌面的初始化过程中自发扫描客户端的 UA信息,获取客户端的 UA信息包 含的客户端的视频播放能力。  In another embodiment, the server spontaneously scans the UA information of the client to obtain the video playback capability of the client included in the UA information of the client. For example, the server can spontaneously scan the UA information of the client during the initialization process of building the remote desktop with the client, and obtain the video playback capability of the client included in the UA information of the client.
其中, 客户端的视频播放能力可以是客户端的视频编解码能力 (如支持 Flash格式的视频文件编解码)、客户端的浏览器版本标识等, 本发明实施例不 作限定。  The video playback capability of the client may be a video coding and decoding capability of the client (such as a video file codec that supports the Flash format), a browser version identifier of the client, and the like, which are not limited in the embodiment of the present invention.
其中, 客户端的 UA信息通常包含在客户端的注册信息中。  The UA information of the client is usually included in the registration information of the client.
102、 服务端获取服务端的浏览器的视频播放能力。  102. The server obtains a video playing capability of the browser of the server.
一个实施例中, 服务端可以扫描服务端的浏览器的 UA信息, 获取服务端 的浏览器的 UA信息包含的服务端的浏览器的视频播放能力。  In one embodiment, the server can scan the UA information of the browser of the server to obtain the video playing capability of the browser of the server included in the UA information of the browser of the server.
其中,服务端的浏览器的视频播放能力可以是服务端的浏览器的视频编解 码能力 (如支持 HTML5格式的视频文件编解码)、 服务端的浏览器版本标识 等, 本发明实施例不作限定。  The video playback capability of the browser of the server may be a video codec capability of the browser of the server (such as a video file codec supporting the HTML5 format), a browser version identifier of the server, and the like, which are not limited in the embodiment of the present invention.
其中, 服务端的浏览器的 UA信息通常包含在服务端的注册信息中。 103、 服务端比较客户端的视频播放能力和服务端的浏览器的视频播放能 力, 若客户端的视频播放能力低于服务端的浏览器的视频播放能力, 采用客户 端的视频播放能力与网页服务器进行交互,获得符合客户端的视频播放能力的 视频文件。 The UA information of the browser of the server is usually included in the registration information of the server. 103. The server compares the video playing capability of the client and the video playing capability of the browser of the server. If the video playing capability of the client is lower than the video playing capability of the browser of the server, the video playing capability of the client is used to interact with the web server to obtain A video file that matches the video playback capabilities of the client.
举例来说, 如果客户端的视频播放能力为支持 Flash格式的视频文件编解 码, 而本地浏览器的视频播放能力为支持 HTML5格式的视频文件编解码, 那 么说明客户端的视频播放能力低于本地浏览器的视频播放能力。  For example, if the video playback capability of the client is a video file encoding and decoding format supported by the Flash format, and the video playback capability of the local browser is a video file encoding and supporting the HTML5 format, the video playback capability of the client is lower than that of the local browser. Video playback capabilities.
本发明实施例中,若客户端的视频播放能力低于本地浏览器的视频播放能 力,那么服务端可以发送携带有客户端的视频播放能力的连接请求给网页服务 器, 以使网页服务器返回符合客户端的视频播放能力的视频网页, 进而服务端 可以解析该视频网页, 以获得视频标签(如 Flash视频标签), 并发送携带有 该视频标签的视频文件请求给网页服务器,从而接收网页服务器返回的该视频 标签对应的视频文件。  In the embodiment of the present invention, if the video playing capability of the client is lower than the video playing capability of the local browser, the server may send a connection request carrying the video playing capability of the client to the web server, so that the web server returns the video conforming to the client. The video webpage of the playback capability, and the server can parse the video webpage to obtain a video label (such as a Flash video tag), and send a video file request carrying the video tag to the webpage server, thereby receiving the video tag returned by the webpage server. Corresponding video file.
一个实施例,服务端在发送携带有客户端的视频播放能力的连接请求给网 页服务器之前,还可以接收用户通过客户端在服务器的浏览器上触发的视频网 页开启事件, 并响应该视频网页开启事件, 然后再执行发送携带有客户端的视 频播放能力) 的连接请求给网页服务器的步骤。  In an embodiment, before sending the connection request carrying the video playing capability of the client to the web server, the server may also receive a video webpage opening event triggered by the user on the browser of the server, and respond to the video webpage opening event. And then performing the step of sending a connection request carrying the video playback capability of the client to the web server.
本发明实施例后续还会进一步结合具体实施例来详细描述服务端是如何 采用客户端的视频播放能力与网页服务器进行交互,从而获得符合客户端的视 频播放能力的视频文件的, 此处先不作详细介绍。  The embodiment of the present invention further describes in detail how the server interacts with the web server by using the video playing capability of the client to obtain a video file that conforms to the video playing capability of the client, and will not be described in detail herein. .
一个实施例中,若客户端的视频播放能力不低于服务端的浏览器的视频播 放能力, 则服务端可以采用服务端的视频播放能力与网页服务器进行交互, 获 得视频文件并发送给客户端, 以使得客户端对视频文件进行解码和播放。  In an embodiment, if the video playing capability of the client is not lower than the video playing capability of the browser of the server, the server may use the video playing capability of the server to interact with the web server to obtain a video file and send the video file to the client, so that The client decodes and plays the video file.
104、 服务端将符合客户端的视频播放能力的视频文件发送给客户端, 以 使得客户端对视频文件进行解码和播放。  104. The server sends a video file that conforms to the video playing capability of the client to the client, so that the client decodes and plays the video file.
其中, 客户端接收到视频文件后, 可以先对视频文件进行解码和渲染, 然 后再进行播放。  After receiving the video file, the client may first decode and render the video file, and then play the video file.
应该理解的是,本发明实施例对上述步骤 101和步骤 102之间的先后顺序 不作限定。  It should be understood that the sequence between the foregoing step 101 and step 102 is not limited in the embodiment of the present invention.
通过图 1所描述的应用于远程桌面的视频传输方法可知,在客户端的视频 播放能力低于服务端的浏览器的视频播放能力的情况下,服务端也无需对网页 服务器传输的视频文件进行解码和渲染后再发送给客户端播放,而是将网页服 务器传输的视频文件直接发送给客户端进行解码和播放,从而可以有效降低对 服务端资源的占用以及对网络带宽的占用。 请参阅图 2, 图 2是本发明实施例提供的另一种应用于远程桌面的视频传 输方法的流程图。 如图 2所示, 该方法包括以下步骤: The video transmission method applied to the remote desktop described in FIG. 1 shows that the video on the client side When the playback capability is lower than the video playback capability of the browser of the server, the server does not need to decode and render the video file transmitted by the web server and then send it to the client for playback, but directly sends the video file transmitted by the web server. The client is decoded and played, so that the occupation of the server resources and the occupation of the network bandwidth can be effectively reduced. Referring to FIG. 2, FIG. 2 is a flowchart of another video transmission method applied to a remote desktop according to an embodiment of the present invention. As shown in FIG. 2, the method includes the following steps:
201、 客户端获取其视频播放能力。  201. The client obtains its video playing capability.
其中, 客户端可以扫描客户端的 UA信息, 获取客户端的 UA信息包含的 视频播放能力。  The client can scan the UA information of the client to obtain the video playback capability of the UA information of the client.
一个实施例中,客户端也可以通过扫描客户端的系统配置文件或者客户端 资源文件来获得客户端的视频播放能力。  In one embodiment, the client can also obtain the video playback capability of the client by scanning the client's system configuration file or the client resource file.
202、 客户端发送客户端的视频播放能力给服务端。  202. The client sends the video playback capability of the client to the server.
203、 服务端获取服务端的浏览器的视频播放能力。  203. The server obtains a video playing capability of the browser of the server.
其中,服务端可以扫描服务端保存的服务端的浏览器的 UA信息, 获得服 务端的浏览器的视频播放能力。  The server can scan the UA information of the browser of the server saved by the server to obtain the video playing capability of the browser of the server.
204、 服务端比较客户端的视频播放能力和服务端的浏览器的视频播放能 力。  204. The server compares the video playing capability of the client and the video playing capability of the browser of the server.
205、 若客户端的视频播放能力低于服务端的浏览器的视频播放能力, 服 务端修改服务端保存的服务端的浏览器的视频播放能力信息,以使服务端保存 的浏览器的视频播放能力信息更新为客户端的视频播放能力。  205. If the video playback capability of the client is lower than the video playback capability of the browser of the server, the server modifies the video playback capability information of the browser of the server saved by the server, so that the video playback capability information of the browser saved by the server is updated. The ability to play video for the client.
本领域技术人员可以理解, 上述步骤 205可以是可选步骤, 即服务端在获 取到服务端和客户端的视频播放能力之后,服务端可以在向网页服务器发送消 息之前, 先进行步骤 204的比较, 直接根据比较结果进行步骤 207, 而不需要 执行步骤 205, 即进行服务端的视频播放能力的更新。  A person skilled in the art may understand that the foregoing step 205 may be an optional step, that is, after the server obtains the video playing capability of the server and the client, the server may perform the comparison of step 204 before sending the message to the web server. Step 207 is performed directly according to the comparison result, and step 205 is not needed, that is, the update of the video playing capability of the server is performed.
206、 服务端接收用户通过客户端在服务端的浏览器上触发的视频网页开 启事件。  206. The server receives a video webpage start event triggered by the user on the browser of the server by the client.
其中,用户通过客户端在服务端的浏览器上可以点击视频链接或输入视频 网址, 从而可以在服务端的浏览器上触发视频网页开启事件。 207、服务端发送携带有客户端的视频播放能力的连接请求给网页服务器。The user can click on the video link or input the video URL on the browser of the server through the client, so that the video webpage open event can be triggered on the browser of the server. 207. The server sends a connection request carrying the video playing capability of the client to the web server.
208、服务端接收网页服务器返回符合客户端的视频播放能力的视频网页。208. The server receives the webpage server and returns a video webpage that matches the video playing capability of the client.
209、 服务端解析该视频网页, 以获得视频标签(如 Flash视频标签)。 其中, 月良务端解析该视频网页时, 还可以对该视频页面进行渲染。 209. The server parses the video webpage to obtain a video label (such as a Flash video label). Wherein, when the monthly service end parses the video web page, the video page can also be rendered.
其中, 服务端解析该视频网页可以获得文档对象模型 (Document Object Wherein, the server parses the video webpage to obtain a document object model (Document Object)
Model, DOM ) 结构, 并从 DOM结构中获得视频标签。 Model, DOM) structure, and get video tags from the DOM structure.
210、 服务端发送携带有该视频标签(如 Flash视频标签) 的视频文件请 求给网页服务器。  210. The server sends a video file request carrying the video tag (such as a Flash video tag) to the web server.
211、 服务端接收网页服务器返回的该视频标签(如 Flash视频标签)对 应的视频文件。  211. The server receives the video file corresponding to the video label (such as a Flash video label) returned by the web server.
212、 服务端发送视频文件给客户端。  212. The server sends a video file to the client.
213、 客户端解码和播放视频文件。  213. The client decodes and plays the video file.
通过图 2所描述的应用于远程桌面的视频传输方法可知,在客户端的视频 播放能力低于服务端的浏览器的视频播放能力的情况下,也无需服务端对网页 服务器传输的视频文件进行解码和渲染后再发送给客户端播放,而是将网页服 务器传输的视频文件直接发送给客户端进行解码和播放,从而可以有效降低对 服务端资源的占用以及对网络带宽的占用。  According to the video transmission method applied to the remote desktop described in FIG. 2, in the case that the video playback capability of the client is lower than the video playback capability of the browser of the server, the server does not need to decode the video file transmitted by the web server. After being rendered, it is sent to the client for playback. Instead, the video file transmitted by the web server is directly sent to the client for decoding and playing, thereby effectively reducing the occupation of the server resources and the occupation of the network bandwidth.
请参阅图 3 , 图 3是本发明实施例提供的一种应用于远程桌面的视频传输 设备的结构图。本发明实施例中, 图 3所描述的应用于远程桌面的视频传输设 备在物理实现上可以是服务端。应该理解的是, 图 3所描述的应用于远程桌面 的视频传输设备在物理实现上也可以是其他终端设备或主机,只要这些终端设 备或主机能够与网页服务器交互, 并且与客户端之间能够构建远程桌面即可, 本发明实施例不作限定。  Referring to FIG. 3, FIG. 3 is a structural diagram of a video transmission device applied to a remote desktop according to an embodiment of the present invention. In the embodiment of the present invention, the video transmission device applied to the remote desktop described in FIG. 3 may be a server in physical implementation. It should be understood that the video transmission device applied to the remote desktop described in FIG. 3 may also be other terminal devices or hosts in physical implementation, as long as the terminal devices or hosts can interact with the web server and can communicate with the client. The remote desktop can be constructed, which is not limited in the embodiment of the present invention.
如图 3 所示, 该应用于远程桌面环境的视频传输设备可以包括获取单元 301、 比较单元 302、 交互单元 303以及发送单元 304, 其中:  As shown in FIG. 3, the video transmission device applied to the remote desktop environment may include an obtaining unit 301, a comparing unit 302, an interaction unit 303, and a sending unit 304, where:
获取单元 301 , 用于获取客户端的视频播放能力和服务端的浏览器的视频 播放能力, 并输出给比较单元 302。  The obtaining unit 301 is configured to acquire the video playing capability of the client and the video playing capability of the browser of the server, and output the result to the comparing unit 302.
其中, 客户端的视频播放能力可以是客户端的视频编解码能力 (如支持 Flash格式的视频文件编解码)、客户端的浏览器版本标识等, 本发明实施例不 作限定。 The video playback capability of the client may be a video codec capability of the client (such as a video file codec that supports the Flash format), a browser version identifier of the client, and the like. Limited.
其中, 客户端的 UA信息通常包含在客户端的注册信息中。  The UA information of the client is usually included in the registration information of the client.
其中,服务端的浏览器的视频播放能力可以是服务端的浏览器的视频编解 码能力 (如支持 HTML5格式的视频文件编解码)、 服务端的浏览器版本标识 等, 本发明实施例不作限定。  The video playback capability of the browser of the server may be a video codec capability of the browser of the server (such as a video file codec supporting the HTML5 format), a browser version identifier of the server, and the like, which are not limited in the embodiment of the present invention.
其中, 服务端的浏览器的 UA信息通常包含在服务端的注册信息中。  The UA information of the browser of the server is usually included in the registration information of the server.
比较单元 302, 用于比较客户端的视频播放能力是否低于服务端的浏览器 的视频播放能力, 如果是, 则通知交互单元 303。  The comparing unit 302 is configured to compare whether the video playing capability of the client is lower than the video playing capability of the browser of the server, and if yes, notify the interaction unit 303.
举例来说, 如果客户端的视频播放能力为支持 Flash格式的视频文件编解 码,而服务端的浏览器的视频播放能力为支持 HTML5格式的视频文件编解码, 那么比较单元 302 可以比较出客户端的视频播放能力低于服务端的浏览器的 视频播放能力, 比较单元 302将比较结果通知交互单元 303。  For example, if the video playback capability of the client is a video file encoding and decoding format supported by the Flash format, and the video playback capability of the browser of the server is a video file encoding and supporting the HTML5 format, the comparison unit 302 can compare the video playback of the client. The capability is lower than the video playback capability of the browser of the server, and the comparison unit 302 notifies the interaction unit 303 of the comparison result.
交互单元 303, 用于响应比较单元 302的通知, 采用客户端的视频播放能 力与网页服务器进行交互, 获得符合客户端的视频播放能力的视频文件, 并输 出给发送单元 304。  The interaction unit 303 is configured to respond to the notification of the comparing unit 302, and use the video playing capability of the client to interact with the web server to obtain a video file conforming to the video playing capability of the client, and output the video file to the sending unit 304.
本发明实施例中,交互单元 303可以发送携带有客户端的视频播放能力的 连接请求给网页服务器,以使网页服务器返回符合客户端的视频播放能力的视 频网页, 进而月良务端可以解析该视频网页, 以获得视频标签(如 Flash视频标 签), 并发送携带有该视频标签的视频文件请求给网页服务器, 从而接收网页 服务器返回的该视频标签对应的视频文件, 并输出给发送单元 304。  In the embodiment of the present invention, the interaction unit 303 may send a connection request carrying the video playing capability of the client to the webpage server, so that the webpage server returns a video webpage that conforms to the video playing capability of the client, and then the monthly server can parse the video webpage. Obtaining a video tag (such as a Flash video tag), and sending a video file carrying the video tag to the web server, thereby receiving the video file corresponding to the video tag returned by the web server, and outputting the video file to the sending unit 304.
一个实施例,交互单元 304在发送携带有客户端的视频播放能力的连接请 求给网页服务器之前,还可以接收用户通过客户端在服务端的浏览器上触发的 视频网页开启事件, 并响应该视频网页开启事件, 然后再执行发送携带有客户 端的视频播放能力的连接请求给网页服务器的步骤。  In an embodiment, before sending the connection request carrying the video playing capability of the client to the web server, the interaction unit 304 may also receive a video webpage open event triggered by the user on the browser of the server by the client, and open in response to the video webpage. The event, and then the step of sending a connection request carrying the video playback capability of the client to the web server.
发送单元 304, 用于将符合客户端的视频播放能力的视频文件发送给客户 端播放, 以使得客户端对所述视频文件进行解码和播放。 请一并参阅图 4, 图 4是本发明实施例提供的另一种应用于远程桌面的视 频传输设备的结构图。其中, 图 4所示的应用于远程桌面的视频传输设备是由 图 3所示的应用于远程桌面的视频传输设备进行优化得到的。在图 4所示的应 用于远程桌面的视频传输设备中, 获取单元 301包括接收子单元 3011和第一 扫描子单元 3012, 其中: The sending unit 304 is configured to send a video file that conforms to the video playing capability of the client to the client for playing, so that the client decodes and plays the video file. Referring to FIG. 4, FIG. 4 is a structural diagram of another video transmission device applied to a remote desktop according to an embodiment of the present invention. The video transmission device applied to the remote desktop shown in FIG. 4 is optimized by the video transmission device applied to the remote desktop shown in FIG. 3. The response shown in Figure 4 In the video transmission device for the remote desktop, the obtaining unit 301 includes a receiving subunit 3011 and a first scanning subunit 3012, where:
接收子单元 3011 , 用于接收客户端发送的 UA信息, 并输出给第一扫描 子单元 3012;  The receiving subunit 3011 is configured to receive the UA information sent by the client, and output the information to the first scanning subunit 3012;
第一扫描子单元 3012, 用于扫描客户端发送的 UA信息, 获取客户端发 送的 UA信息包含的客户端的视频播放能力, 并输出给比较单元 302。  The first scanning sub-unit 3012 is configured to scan the UA information sent by the client, obtain the video playing capability of the client included in the UA information sent by the client, and output the video playing capability to the comparing unit 302.
本发明实施例中,第一扫描子单元 3012还用于扫描服务端的浏览器的 UA 信息, 获取服务端的浏览器的 UA信息包含的服务端的浏览器的视频播放能 力, 并输出给比较单元 302。  In the embodiment of the present invention, the first scanning sub-unit 3012 is further configured to scan the UA information of the browser of the server, and obtain the video playing capability of the browser of the server included in the UA information of the browser of the server, and output the video to the comparing unit 302.
一个实施例中, 图 4所示的视频传输设备还包括注入单元 305;  In one embodiment, the video transmission device shown in FIG. 4 further includes an injection unit 305;
相应地,比较单元 302还用于在比较出客户端的视频播放能力低于服务端 的浏览器的视频播放能力时, 通知注入单元 305;  Correspondingly, the comparing unit 302 is further configured to notify the injection unit 305 when comparing the video playing capability of the client that is lower than the video playing capability of the browser of the server;
注入单元 305 , 用于响应比较单元 302的通知, 修改服务端保存的服务端 的浏览器的视频播放能力信息,以使服务端保存的服务端的浏览器的视频播放 能力信息更新为客户端的视频播放能力, 并通知交互单元 303;  The injecting unit 305 is configured to: in response to the notification of the comparing unit 302, modify the video playing capability information of the browser of the server saved by the server, so that the video playing capability information of the browser of the server saved by the server is updated to the video playing capability of the client. And notifying the interaction unit 303;
一个实施例中, 图 4所示的视频传输设备中, 交互单元 303包括发送子单 元 3031、 解析子单元 3032以及接收子单元 3033 , 其中:  In one embodiment, in the video transmission device shown in FIG. 4, the interaction unit 303 includes a transmission subunit 3031, a parsing subunit 3032, and a receiving subunit 3033, where:
发送子单元 3031 , 用于发送携带有客户端的视频播放能力的连接请求给 网页服务器, 以使网页服务器返回符合客户端的视频播放能力的视频网页, 以 及触发解析子单元 3032;  The sending subunit 3031 is configured to send a connection request carrying the video playing capability of the client to the webpage server, so that the webpage server returns a video webpage that conforms to the video playing capability of the client, and the trigger parsing subunit 3032;
解析子单元 3032, 用于解析视频网页获得视频标签, 并输出给发送子单 元 3033;  The parsing subunit 3032 is configured to parse the video webpage to obtain a video tag, and output the video tag to the sending subunit 3033;
发送子单元 3031 , 还用于发送携带有该视频标签的视频文件请求给网页 服务器, 并触发接收子单元 3033;  The sending subunit 3031 is further configured to send a video file carrying the video tag to the web server, and trigger the receiving subunit 3033;
接收子单元 3033 , 用于接收网页服务器返回的该视频标签对应的视频文 件, 并输出给发送单元 304  The receiving subunit 3033 is configured to receive a video file corresponding to the video label returned by the web server, and output the video file to the sending unit 304.
一个实施例中, 在图 4所示的视频传输设备中, 接收子单元 3033还用于 接收用户通过客户端在服务端的浏览器上触发的视频网页开启事件,并通知发 送子单元 3031 ;  In one embodiment, in the video transmission device shown in FIG. 4, the receiving subunit 3033 is further configured to receive a video webpage open event triggered by the user on the browser of the server by the client, and notify the sending subunit 3031;
相应地, 发送子单元 3031还用于响应该视频网页开启事件, 并执行发送 携带有客户端的视频播放能力的连接请求给网页服务器的步骤。 Correspondingly, the sending subunit 3031 is further configured to respond to the video webpage open event and perform sending The step of carrying a connection request with the video playback capability of the client to the web server.
通过图 3、 图 4所描述的应用于远程桌面环境的视频传输设备可知, 在客 户端的视频播放能力低于服务端的浏览器的视频播放能力的情况下,也无需服 务端对网页服务器传输的视频文件进行解码和渲染后再发送给客户端播放,而 是将网页服务器传输的视频文件直接发送给客户端进行解码和播放,从而可以 有效降低对服务端资源的占用以及对网络带宽的占用。  The video transmission device applied to the remote desktop environment described in FIG. 3 and FIG. 4 knows that, when the video playback capability of the client is lower than the video playback capability of the browser of the server, the video transmitted by the server to the web server is not needed. After the file is decoded and rendered, it is sent to the client for playback. Instead, the video file transmitted by the web server is directly sent to the client for decoding and playing, thereby effectively reducing the occupation of the server resources and the occupation of the network bandwidth.
为了更好的理解本发明实施例前面所描述的应用于远程桌面的视频传输 方法, 下面进一步介绍图 4所示的应用于远程桌面的视频传输设备的工作流 程,相信通过介绍图 4所示的应用于远程桌面的视频传输设备的工作流程,会 使得前面所描述的应用于远程桌面的视频传输方法的效果更加显著。请参阅图 5 , 图 5是图 4所示的应用于远程桌面的视频传输设备的工作流程示意图。 其 中, 该应用于远程桌面的视频传输设备的工作流程包括以下步骤:  For a better understanding of the video transmission method applied to the remote desktop described in the foregoing embodiments of the present invention, the workflow of the video transmission device applied to the remote desktop shown in FIG. 4 is further described below. The workflow of a video transmission device applied to a remote desktop will make the effect of the video transmission method described above applied to the remote desktop more significant. Please refer to FIG. 5, which is a schematic diagram of the workflow of the video transmission device applied to the remote desktop shown in FIG. The workflow of the video transmission device applied to the remote desktop includes the following steps:
501、 客户端获取其视频播放能力。  501. The client obtains its video playing capability.
其中, 客户端可以扫描客户端的 UA信息, 获取客户端的 UA信息包含的 视频播放能力。  The client can scan the UA information of the client to obtain the video playback capability of the UA information of the client.
一个实施例中,客户端也可以通过扫描客户端的系统配置文件或者客户端 资源文件来获得客户端的视频播放能力。  In one embodiment, the client can also obtain the video playback capability of the client by scanning the client's system configuration file or the client resource file.
502、 客户端发送客户端的视频播放能力给获取单元 301。  502. The client sends the video playing capability of the client to the acquiring unit 301.
503、 获取单元 301将客户端的视频播放能力输出给比较单元 302。  503. The obtaining unit 301 outputs the video playing capability of the client to the comparing unit 302.
504、 获取单元 301获取服务端的浏览器的视频播放能力。  504. The obtaining unit 301 acquires a video playing capability of the browser of the server.
其中, 获取单元 301可以扫描服务端的浏览器的 UA信息, 获得服务端的 浏览器的视频播放能力。  The obtaining unit 301 can scan the UA information of the browser of the server to obtain the video playing capability of the browser of the server.
505、 获取单元 301 将服务端的浏览器的视频播放能力传输给比较单元 505. The acquiring unit 301 transmits the video playing capability of the browser of the server to the comparing unit.
302。 302.
506、 比较单元 302比较客户端的视频播放能力和服务端的浏览器的视频 播放能力。  506. The comparing unit 302 compares the video playing capability of the client with the video playing capability of the browser of the server.
507、 比较单元 302比较客户端的视频播放能力低于服务端的浏览器的视 频播放能力后, 将客户端的视频播放能力传输给注入单元 305。  507. After comparing the video playback capability of the client to the video playback capability of the browser of the server, the comparison unit 302 transmits the video playback capability of the client to the injection unit 305.
508、 注入单元 305修改服务端保存的浏览器的视频播放能力信息, 以使 服务端的浏览器的视频播放能力信息更新为客户端的视频播放能力。508. The injection unit 305 modifies the video playback capability information of the browser saved by the server, so that The video playback capability information of the browser of the server is updated to the video playback capability of the client.
509、 交互单元 303接收用户通过客户端在服务端的浏览器上触发的视频 网页开启事件。 509. The interaction unit 303 receives a video webpage open event triggered by the user on the browser of the server by the client.
其中,用户通过客户端在服务端的浏览器上可以点击视频链接或输入视频 网址, 从而可以在服务端的浏览器上触发视频网页开启事件给交互单元 303。  The user can click on the video link or input the video URL on the browser of the server through the client, so that the video webpage open event can be triggered to the interaction unit 303 on the browser of the server.
510、 交互单元 303发送携带有客户端的视频播放能力的连接请求给网页 服务器。  510. The interaction unit 303 sends a connection request carrying the video playing capability of the client to the web server.
511、 交互单元 303接收网页服务器返回符合客户端的视频播放能力的视 频网页。  511. The interaction unit 303 receives, by the web server, a video webpage that matches the video playback capability of the client.
512、 交互单元 303解析该视频网页, 以获得视频标签(如 Flash视频标 佥)。  512. The interaction unit 303 parses the video webpage to obtain a video tag (such as a Flash video tag).
其中, 交互单元 303解析该视频网页时, 还可以对该视频页面进行渲染。 其中, 交互单元 303解析该视频网页可以获得 DOM结构, 并从 DOM结 构中获得视频标签。  Wherein, when the interaction unit 303 parses the video webpage, the videopage may also be rendered. The interaction unit 303 parses the video webpage to obtain a DOM structure, and obtains a video label from the DOM structure.
513、 交互单元 303发送携带有该视频标签(如 Flash视频标签) 的视频 文件请求给网页服务器。  513. The interaction unit 303 sends a video file request carrying the video tag (such as a Flash video tag) to the web server.
本发明实施例中, 交互单元 303可以内置有视频标签处理引擎,使得交互 单元 303可以执行上述步骤 512~步骤 513。  In the embodiment of the present invention, the interaction unit 303 may have a video tag processing engine built in, so that the interaction unit 303 can perform the foregoing steps 512 to 513.
514、 交互单元 303接收网页服务器返回的该视频标签(如 Flash视频标 签)对应的视频文件。  514. The interaction unit 303 receives the video file corresponding to the video label (such as a Flash video label) returned by the web server.
515、 交互单元 303输出视频文件给发送单元 304  515. The interaction unit 303 outputs the video file to the sending unit 304.
516、 发送单元 305视频文件发送给客户端进行解码和播放。  516. The sending unit 305 sends the video file to the client for decoding and playing.
通过图 5所描述的应用于远程桌面的视频传输设备的工作流程可知,在客 户端的视频播放能力低于服务端的浏览器的视频播放能力的情况下,也无需服 务端对网页服务器传输的视频文件进行解码和渲染后再发送给客户端播放,而 是将网页服务器传输的视频文件直接发送给客户端进行解码和播放,从而可以 有效降低对服务端资源的占用以及对网络带宽的占用。  The workflow of the video transmission device applied to the remote desktop described in FIG. 5 shows that, in the case that the video playback capability of the client is lower than the video playback capability of the browser of the server, the video file transmitted by the server to the web server is not required. After being decoded and rendered, it is sent to the client for playback. Instead, the video file transmitted by the web server is directly sent to the client for decoding and playing, thereby effectively reducing the occupation of the server resources and the occupation of the network bandwidth.
请参阅图 6, 图 6是本发明实施例提供的另一种应用于远程桌面的视频传 输设备的结构图。如图 6所示, 该应用于远程桌面的视频传输设备可以包括发 射机 601、 接收机 602、 存储器 603以及分别与发射机 601、 接收机 602和存 储器 03连接的处理器 604; —个实施例中, 处理器 604可以通过总线与发射 机 601、 接收机 602和存储器 603连接。 Referring to FIG. 6, FIG. 6 is a structural diagram of another video transmission device applied to a remote desktop according to an embodiment of the present invention. As shown in FIG. 6, the video transmission device applied to the remote desktop may include The camera 601, the receiver 602, the memory 603, and the processor 604 connected to the transmitter 601, the receiver 602, and the memory 03, respectively; in one embodiment, the processor 604 can communicate with the transmitter 601, the receiver 602, and the bus. The memory 603 is connected.
其中, 存储器 603 中存储一组程序代码, 且处理器 604用于调用存储器 603中存储的程序代码, 用于执行以下操作:  The memory 603 stores a set of program codes, and the processor 604 is configured to call the program code stored in the memory 603 to perform the following operations:
处理器 604触发接收机 602, 以使得接收机 602获取客户端的视频播放能 力;  The processor 604 triggers the receiver 602 to cause the receiver 602 to acquire the video playing capability of the client;
处理器 604获取服务端的浏览器的视频播放能力,并比较客户端的视频播 放能力和服务端的浏览器的视频播放能力,若客户端的视频播放能力低于服务 端的浏览器的视频播放能力,则采用客户端的视频播放能力与网页服务器进行 交互, 获得符合客户端的视频播放能力的视频文件, 并触发发射机 601 ;  The processor 604 acquires the video playing capability of the browser of the server, and compares the video playing capability of the client with the video playing capability of the browser of the server. If the video playing capability of the client is lower than the video playing capability of the browser of the server, the client is used. The video playing capability of the terminal interacts with the web server to obtain a video file that conforms to the video playing capability of the client, and triggers the transmitter 601;
发射机 601 将符合客户端的视频播放能力的视频文件发送给客户端进行 解码和播放。  The transmitter 601 sends a video file conforming to the video playback capability of the client to the client for decoding and playback.
一个实施例中,接收机 602用于接收客户端发送的用户代理信息, 并扫描 客户端发送的用户代理信息,获取客户端发送的用户代理信息包含的客户端的 视频播放能力。  In one embodiment, the receiver 602 is configured to receive the user agent information sent by the client, and scan the user agent information sent by the client to obtain the video playing capability of the client included in the user agent information sent by the client.
一个实施例中,处理器 604获取服务端的浏览器的视频播放能力的方式具 体为:  In one embodiment, the manner in which the processor 604 obtains the video playback capability of the browser of the server is:
处理器 604扫描服务端的浏览器的用户代理信息,获取服务端的浏览器的 用户代理信息包含的服务端的浏览器的视频播放能力。  The processor 604 scans the user agent information of the browser of the server to obtain the video playing capability of the browser of the server included in the user agent information of the browser of the server.
一个实施例中, 处理器 604还执行以下操作:  In one embodiment, processor 604 also performs the following operations:
若客户端的视频播放能力低于服务端的浏览器的视频播放能力,则处理器 604修改服务端保存的服务端的浏览器的视频播放能力信息, 以使服务端保存 的服务端的浏览器的视频播放能力信息更新为客户端的视频播放能力。  If the video playing capability of the client is lower than the video playing capability of the browser of the server, the processor 604 modifies the video playing capability information of the browser of the server saved by the server, so that the video playing capability of the browser of the server saved by the server is enabled. The information is updated to the client's video playback capabilities.
一个实施例中,处理器 604采用客户端的视频播放能力与网页服务器进行 交互, 获得符合客户端的视频播放能力的视频文件的方式具体为:  In one embodiment, the processor 604 uses the video playback capability of the client to interact with the web server to obtain a video file that conforms to the video playback capability of the client.
处理器 604触发发射机 601发送携带有客户端的视频播放能力的连接请求 给网页服务器, 以使网页服务器返回符合客户端的视频播放能力的视频网页; 处理器 604解析该视频网页, 获得视频标签;  The processor 604 triggers the transmitter 601 to send a connection request carrying the video playing capability of the client to the web server, so that the web server returns a video webpage that conforms to the video playing capability of the client; the processor 604 parses the video webpage to obtain a video label;
处理器 604触发发射机 601发送携带有该视频标签的视频文件请求给网页 服务器; The processor 604 triggers the transmitter 601 to send a video file request carrying the video tag to the webpage. Server
处理器 604触发接收机 602接收网页服务器返回的该视频标签对应的视频 文件。  The processor 604 triggers the receiver 602 to receive the video file corresponding to the video tag returned by the web server.
一个实施例中,处理器 604还触发接收机 602接收用户通过客户端在服务 端的浏览器上触发的视频网页开启事件,并在接收机 602接收到视频网页开启 事件后, 触发发射机 601响应客户端发送的视频点击事件,执行发送携带有客 户端的视频播放能力的连接请求给网页服务器的步骤。  In one embodiment, the processor 604 also triggers the receiver 602 to receive a video webpage open event triggered by the user on the browser of the server by the client, and triggers the transmitter 601 to respond to the client after the receiver 602 receives the video webpage open event. The video click event sent by the terminal performs the step of sending a connection request carrying the video playing capability of the client to the web server.
一个实施例中, 处理器 604还执行以下操作:  In one embodiment, processor 604 also performs the following operations:
若客户端的视频播放能力不低于服务端的浏览器的视频播放能力,则采用 服务端的视频播放能力与网页服务器进行交互, 获得视频文件, 并触发发射机 601 ;  If the video playback capability of the client is not lower than the video playback capability of the browser of the server, the video playback capability of the server is used to interact with the web server to obtain a video file, and the transmitter 601 is triggered;
发射机 601将该视频文件发送给客户端,以使得客户端对该视频文件进行 解码和播放。  Transmitter 601 sends the video file to the client to cause the client to decode and play the video file.
通过图 6所描述的应用于远程桌面的视频传输设备可知,在客户端的视频 播放能力低于服务端的浏览器的视频播放能力的情况下,也无需服务端对网页 服务器传输的视频文件进行解码和渲染后再发送给客户端播放,而是将网页服 务器传输的视频文件直接发送给客户端进行解码和播放,从而可以有效降低对 服务端资源的占用以及对网络带宽的占用。  The video transmission device applied to the remote desktop described in FIG. 6 knows that, in the case that the video playback capability of the client is lower than the video playback capability of the browser of the server, the server does not need to decode the video file transmitted by the web server. After being rendered, it is sent to the client for playback. Instead, the video file transmitted by the web server is directly sent to the client for decoding and playing, thereby effectively reducing the occupation of the server resources and the occupation of the network bandwidth.
一个实施例中,计算机存储介质存储有计算机程序, 当计算机存储介质中 的计算机程序被读取到计算机时, 能够使得计算机完成图 1、 图 2所示方法的 全部步骤。  In one embodiment, the computer storage medium stores a computer program capable of causing the computer to perform all of the steps of the method illustrated in Figures 1 and 2 when the computer program in the computer storage medium is read to the computer.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步 骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读 存储介质中, 存储介质可以包括: 闪存盘、 只读存储器(Read-Only Memory , ROM ), 随机存取器(Random Access Memory, RAM ), 磁盘或光盘等。  A person skilled in the art may understand that all or part of the various steps of the foregoing embodiments may be completed by a program instructing related hardware. The program may be stored in a computer readable storage medium, and the storage medium may include: Flash disk, read-only memory (ROM), random access memory (RAM), disk or optical disk.
以上对本发明实施例提供的一种应用于远程桌面的视频传输方法及相关 式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思 想; 同时, 对于本领域的一般技术人员, 依据本发明的思想, 在具体实施方式 及应用范围上均会有改变之处, 综上所述, 本说明书内容不应理解为对本发明 的限制。 The video transmission method and related to the remote desktop provided by the embodiment of the present invention The description of the above embodiments is only for helping to understand the method of the present invention and its core ideas; at the same time, for those skilled in the art, according to the idea of the present invention, it will be in the specific embodiment and application range. In the above, the contents of the specification are not to be construed as limiting the invention.

Claims

权 利 要 求 Rights request
1、 一种应用于远程桌面的视频传输方法, 其特征在于, 所述方法包括: 获取客户端的视频播放能力; 1. A video transmission method applied to remote desktop, characterized in that the method includes: obtaining the video playback capability of the client;
获取服务端的浏览器的视频播放能力; Obtain the video playback capabilities of the server-side browser;
比较所述客户端的视频播放能力和所述服务端的浏览器的视频播放能力; 若所述客户端的视频播放能力低于所述服务端的浏览器的视频播放能力, 则采用所述客户端的视频播放能力与网页服务器进行交互,获得符合所述客户 端的视频播放能力的视频文件; Compare the video playback capability of the client and the video playback capability of the server's browser; if the video playback capability of the client is lower than the video playback capability of the server's browser, use the video playback capability of the client Interact with the web server to obtain video files that meet the video playback capabilities of the client;
将所述符合所述客户端的视频播放能力的视频文件发送给所述客户端,以 使得所述客户端对所述视频文件进行解码和播放。 The video file that meets the video playback capability of the client is sent to the client, so that the client decodes and plays the video file.
2、 根据权利要求 1所述的视频传输方法, 其特征在于, 所述获取客户端 的视频播放能力包括: 2. The video transmission method according to claim 1, wherein the obtaining the video playback capability of the client includes:
接收客户端发送的用户代理信息; Receive user agent information sent by the client;
扫描所述客户端发送的用户代理信息,获取所述客户端发送的用户代理信 息包含的所述客户端的视频播放能力。 Scan the user agent information sent by the client to obtain the video playback capability of the client contained in the user agent information sent by the client.
3、 根据权利要求 2所述的视频传输方法, 其特征在于, 所述获取服务端 的浏览器的视频播放能力包括: 3. The video transmission method according to claim 2, wherein said obtaining the video playback capability of the server's browser includes:
扫描服务端的浏览器的用户代理信息,获取所述服务端的浏览器的用户代 理信息包含的服务端的浏览器的视频播放能力。 Scan the user agent information of the server's browser to obtain the video playback capability of the server's browser contained in the user agent information of the server's browser.
4、 根据权利要求 1、 2或 3所述的视频传输方法, 其特征在于, 所述方法 还包括: 4. The video transmission method according to claim 1, 2 or 3, characterized in that the method further includes:
若所述客户端的视频播放能力低于所述服务端的浏览器的视频播放能力, 则修改所述服务端保存的所述服务端的浏览器的视频播放能力信息,以使所述 服务端保存的所述服务端的浏览器的视频播放能力信息更新为所述客户端的 视频播放能力。 If the video playback capability of the client is lower than the video playback capability of the server's browser, modify the video playback capability information of the server's browser saved by the server so that all the video playback capabilities of the server's browser are saved. The video playback capability information of the server's browser is updated to the video playback capability of the client.
5、 根据权利要求 1~4任一项所述的视频传输方法, 其特征在于, 所述采 用所述客户端的视频播放能力与网页服务器进行交互,获得符合所述客户端的 视频播放能力的视频文件包括: 5. The video transmission method according to any one of claims 1 to 4, characterized in that, the video playback capability of the client is used to interact with the web server to obtain a video file that conforms to the video playback capability of the client. include:
发送携带有所述客户端的视频播放能力的连接请求给网页服务器,以使所 述网页服务器返回符合所述客户端的视频播放能力的视频网页; Send a connection request carrying the video playback capability of the client to the web server so that all The web server returns a video web page that meets the video playback capability of the client;
解析所述视频网页, 获得视频标签; Parse the video web page and obtain the video tag;
发送携带有所述视频标签的视频文件请求给所述网页服务器; Send a video file request carrying the video tag to the web server;
接收所述网页服务器返回的所述视频标签对应的视频文件。 Receive the video file corresponding to the video tag returned by the web server.
6、 根据权利要求 5所述的视频传输方法, 其特征在于, 所述发送携带有 所述客户端的视频播放能力的连接请求给网页服务器之前, 所述方法还包括: 接收用户通过所述客户端在所述服务端的浏览器上触发的视频网页开启 事件; 6. The video transmission method according to claim 5, characterized in that, before sending the connection request carrying the video playback capability of the client to the web server, the method further includes: receiving the user's request through the client. A video webpage opening event triggered on the server's browser;
响应所述视频网页开启事件,执行所述的发送携带有所述客户端的视频播 放能力的连接请求给网页服务器的步骤。 In response to the video webpage opening event, the step of sending a connection request carrying the video playback capability of the client to the webpage server is performed.
7、 根据权利要求 1~6任一项所述的视频传输方法, 其特征在于, 所述方 法还包括: 7. The video transmission method according to any one of claims 1 to 6, characterized in that the method further includes:
若所述客户端的视频播放能力不低于所述服务端的浏览器的视频播放能 力,则采用所述服务端的视频播放能力与网页服务器进行交互,获得视频文件; 对所述视频文件进行解码; If the video playback capability of the client is not lower than the video playback capability of the server's browser, use the video playback capability of the server to interact with the web server to obtain the video file; decode the video file;
将所述解码后的视频文件发送给所述客户端, 以使得所述客户端对所述解 码后的视频文件进行播放。 The decoded video file is sent to the client, so that the client plays the decoded video file.
8、 一种计算机存储介质, 其特征在于, 8. A computer storage medium, characterized by:
所述计算机存储介质存储有计算机程序,当所述计算机存储介质中的所述 计算机程序被读取到计算机时, 能够使得所述计算机完成如权利要求 1 至 7 任一项所述的步骤。 The computer storage medium stores a computer program. When the computer program in the computer storage medium is read into a computer, it can cause the computer to complete the steps described in any one of claims 1 to 7.
9、 一种应用于远程桌面的视频传输设备, 其特征在于, 所述设备包括: 获取单元,用于获取客户端的视频播放能力和服务端的浏览器的视频播放 能力, 并输出给比较单元; 9. A video transmission device applied to remote desktop, characterized in that the device includes: an acquisition unit, used to acquire the video playback capability of the client and the video playback capability of the browser of the server, and output them to the comparison unit;
所述比较单元,用于比较所述客户端的视频播放能力是否低于所述服务端 的浏览器的视频播放能力, 如果是, 则通知交互单元; The comparison unit is used to compare whether the video playback capability of the client is lower than the video playback capability of the browser of the server, and if so, notify the interaction unit;
所述交互单元, 用于响应所述比较单元的通知, 采用所述客户端的视频播 放能力与网页服务器进行交互,获得符合所述客户端的视频播放能力的视频文 件, 并输出给发送单元; The interactive unit is configured to respond to the notification of the comparison unit, use the video playback capability of the client to interact with the web server, obtain a video file that meets the video playback capability of the client, and output it to the sending unit;
所述发送单元,用于将所述符合所述客户端的视频播放能力的视频文件发 送给客户端, 以使得所述客户端对所述视频文件进行解码和播放。 The sending unit is configured to send the video file that meets the video playback capability of the client. Send it to the client, so that the client can decode and play the video file.
10、 根据权利要求 9所述的视频传输设备, 其特征在于, 所述获取单元包 括: 10. The video transmission device according to claim 9, characterized in that the acquisition unit includes:
接收子单元, 用于接收客户端发送的用户代理信息, 并输出给第一扫描子 单元; The receiving subunit is used to receive the user agent information sent by the client and output it to the first scanning subunit;
所述第一扫描子单元, 用于扫描所述客户端发送的用户代理信息, 获取所 述客户端发送的用户代理信息包含的所述客户端的视频播放能力,并输出给比 较单元。 The first scanning subunit is used to scan the user agent information sent by the client, obtain the video playback capability of the client contained in the user agent information sent by the client, and output it to the comparison unit.
11、 根据权利要求 10所述的视频传输设备, 其特征在于, 所述第一扫描 子单元还用于扫描服务端的浏览器的用户代理信息,获取所述服务端的浏览器 的用户代理信息包含的服务端的浏览器的视频播放能力, 并输出给比较单元。 11. The video transmission device according to claim 10, characterized in that, the first scanning subunit is also used to scan the user agent information of the browser of the server, and obtain the user agent information contained in the browser of the server. The video playback capability of the server-side browser is output to the comparison unit.
12、 根据权利要求 9、 10或 11所述的视频传输设备, 其特征在于, 还包 括注入单元; 12. The video transmission device according to claim 9, 10 or 11, further comprising an injection unit;
所述比较单元,还用于在比较出所述客户端的视频播放能力低于所述服务 端的浏览器的视频播放能力时, 通知所述注入单元; The comparison unit is also configured to notify the injection unit when the video playback capability of the client is lower than the video playback capability of the browser of the server;
所述注入单元, 用于响应所述比较单元的通知,修改所述服务端保存的所 述服务端的浏览器的视频播放能力信息,以使所述服务端保存的所述服务端的 浏览器的视频播放能力信息更新为所述客户端的视频播放能力,并通知交互单 元; The injection unit is configured to respond to the notification of the comparison unit and modify the video playback capability information of the browser of the server saved by the server, so that the video playback capability information of the browser of the server saved by the server The playback capability information is updated to the video playback capability of the client, and the interactive unit is notified;
所述交互单元,还用于响应所述注入单元的通知,执行所述的采用所述客 户端的视频播放能力与网页服务器进行交互,获得符合所述客户端的视频播放 能力的视频文件, 并输出给发送单元的步骤。 The interaction unit is also configured to respond to the notification of the injection unit, perform the interaction with the web server using the video playback capability of the client, obtain a video file that conforms to the video playback capability of the client, and output it to Steps for sending units.
13、 根据权利要求 9~12任一项所述的视频传输设备, 其特征在于, 所述 交互单元包括: 13. The video transmission device according to any one of claims 9 to 12, characterized in that the interactive unit includes:
发送子单元,用于发送携带有所述客户端的视频播放能力的连接请求给网 页服务器,以使所述网页服务器返回符合所述客户端的视频播放能力的视频网 页, 以及触发解析子单元; The sending subunit is used to send a connection request carrying the video playback capability of the client to the web server, so that the web server returns a video web page that conforms to the video playback capability of the client, and triggers the parsing subunit;
所述解析子单元, 用于解析所述视频网页, 获得视频标签, 并输出给所述 发送子单元; The parsing subunit is used to parse the video web page, obtain the video tag, and output it to the sending subunit;
所述发送子单元,还用于发送携带有所述视频标签的视频文件请求给所述 网页服务器, 并触发接收子单元; The sending subunit is also used to send a video file request carrying the video tag to the Web server, and trigger the receiving subunit;
所述接收子单元,用于接收所述网页服务器返回的所述视频标签对应的视 频文件, 并输出给发送单元。 The receiving subunit is used to receive the video file corresponding to the video tag returned by the web server, and output it to the sending unit.
14、 根据权利要求 13所述的视频传输设备, 其特征在于, 所述接收子单 元还用于接收用户通过所述客户端在所述服务端的浏览器上触发的视频网页 开启事件, 并通知所述发送子单元; 14. The video transmission device according to claim 13, characterized in that, the receiving subunit is also used to receive a video web page opening event triggered by the user on the browser of the server through the client, and notify the user The above sending subunit;
所述发送子单元,还用于响应所述视频网页开启事件, 并执行所述的发送 携带有所述客户端的视频播放能力的连接请求给网页服务器的步骤。 The sending subunit is also used to respond to the video webpage opening event and perform the step of sending a connection request carrying the video playback capability of the client to the webpage server.
15、 根据权利要求 9~14任一项所述的视频传输设备, 其特征在于, 所述比较单元,还用于在比较出所述客户端的视频播放能力不低于所述服 务端的浏览器的视频播放能力时, 触发交互单元; 15. The video transmission device according to any one of claims 9 to 14, characterized in that the comparison unit is also used to compare and determine that the video playback capability of the client is not lower than that of the browser of the server. When the video playback capability is enabled, the interactive unit is triggered;
所述交互单元,还用于响应所述比较单元的触发, 采用所述服务端的视频 播放能力与网页服务器进行交互, 获得视频文件, 并输出给发送单元; The interactive unit is also used to respond to the trigger of the comparison unit, use the video playback capability of the server to interact with the web server, obtain the video file, and output it to the sending unit;
所述发送单元, 用于将所述视频文件发送给客户端, 以使得所述客户端对 所述视频文件进行解码和播放。 The sending unit is used to send the video file to the client, so that the client decodes and plays the video file.
16、 一种应用于远程桌面的视频传输设备, 其特征在于, 包括发射机、 接 收机、存储器以及分别与所述发射机、所述接收机和所述存储器连接的处理器; 其中, 所述存储器中存储一组程序代码,且所述处理器用于调用所述存储 器中存储的程序代码, 用于执行如权利要求 1-7任一项所述的方法。 16. A video transmission device for remote desktop, characterized in that it includes a transmitter, a receiver, a memory, and a processor connected to the transmitter, the receiver, and the memory respectively; wherein, A set of program codes is stored in the memory, and the processor is used to call the program codes stored in the memory to execute the method according to any one of claims 1-7.
PCT/CN2013/072871 2013-03-19 2013-03-19 Video transmission method, device, and system applied to remote desktop WO2014146248A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201380000716.5A CN104247364B (en) 2013-03-19 2013-03-19 Video transmission method, device, and system applied to remote desktop
PCT/CN2013/072871 WO2014146248A1 (en) 2013-03-19 2013-03-19 Video transmission method, device, and system applied to remote desktop

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/072871 WO2014146248A1 (en) 2013-03-19 2013-03-19 Video transmission method, device, and system applied to remote desktop

Publications (1)

Publication Number Publication Date
WO2014146248A1 true WO2014146248A1 (en) 2014-09-25

Family

ID=51579270

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/072871 WO2014146248A1 (en) 2013-03-19 2013-03-19 Video transmission method, device, and system applied to remote desktop

Country Status (2)

Country Link
CN (1) CN104247364B (en)
WO (1) WO2014146248A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100221B (en) * 2015-07-01 2019-01-25 北京金山安全软件有限公司 Media information delivery method and device based on client
CN109756754B (en) * 2017-11-01 2022-04-22 腾讯科技(深圳)有限公司 Video playing method and device, storage medium and electronic device
CN114302176B (en) * 2021-12-03 2024-02-09 杭州海康威视系统技术有限公司 Video playing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110035466A1 (en) * 2009-08-10 2011-02-10 Sling Media Pvt Ltd Home media aggregator system and method
CN102007774A (en) * 2008-04-18 2011-04-06 日本电气株式会社 Server device, content distribution method, and program
CN102025760A (en) * 2009-09-21 2011-04-20 华为技术有限公司 Media transmission method and device for HTTP
US20110320610A1 (en) * 2010-06-25 2011-12-29 Canon Kabushiki Kaisha Providing content to client device
CN102916994A (en) * 2011-08-02 2013-02-06 华为技术有限公司 Page viewing method, server and terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8793331B2 (en) * 2008-05-16 2014-07-29 Wyse Technology L.L.C. Multimedia redirection
CN102158553B (en) * 2011-03-31 2017-04-12 华为技术有限公司 Method and device for playing multi-media files for remote desktop
CN102577327B (en) * 2011-12-26 2014-05-07 华为技术有限公司 Method, apparatus and system for realizing web browsing in remote desk environment
CN102546803B (en) * 2012-01-13 2014-08-20 浙江工商大学 Remote desktop communication method based on capability set
CN102761603B (en) * 2012-06-07 2014-10-22 福建升腾资讯有限公司 Webpage flash video redirection method in VDI environment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102007774A (en) * 2008-04-18 2011-04-06 日本电气株式会社 Server device, content distribution method, and program
US20110035466A1 (en) * 2009-08-10 2011-02-10 Sling Media Pvt Ltd Home media aggregator system and method
CN102025760A (en) * 2009-09-21 2011-04-20 华为技术有限公司 Media transmission method and device for HTTP
US20110320610A1 (en) * 2010-06-25 2011-12-29 Canon Kabushiki Kaisha Providing content to client device
CN102916994A (en) * 2011-08-02 2013-02-06 华为技术有限公司 Page viewing method, server and terminal

Also Published As

Publication number Publication date
CN104247364B (en) 2017-05-10
CN104247364A (en) 2014-12-24

Similar Documents

Publication Publication Date Title
CN107835178B (en) Multi-protocol service communication method and device and electronic equipment
JP6283132B2 (en) Mobile device, communication method and recording medium
US10382514B2 (en) Presentation of media in an application
US9438544B2 (en) Processing method for mobile device to display email, server, and mobile device
WO2014015738A1 (en) Method, device and system for playing streamed media
US11842150B2 (en) Delivering auto-play media content element from cross origin resources
CN108337528A (en) A kind of method and apparatus of preview video
CN106878460B (en) Communication processing method and device
WO2011150818A1 (en) Common message header bearer method and device for converting simple object access protocol application programming interface (soap api) into representional state transfer application programming interface (rest api)
CN109510754B (en) Online document generation method, device and system and electronic equipment
WO2019227427A1 (en) File download method, device and apparatus/terminal/server
TW201517572A (en) A method, device, and system thereof for data processing
WO2017174026A1 (en) Client connection method and system
CN108416021B (en) Browser webpage content processing method and device, electronic equipment and readable medium
WO2017020523A1 (en) Method and apparatus for remote control of terminal
US11196868B2 (en) Audio data processing method, server, client and server, and storage medium
CN105141567A (en) Interactive data processing method and system of terminal application and service end and interaction method
CN114040232A (en) Screen projection system, method, electronic device and storage medium
WO2014146248A1 (en) Video transmission method, device, and system applied to remote desktop
TWI673983B (en) Data compression transmission method and system, terminal and server thereof
CN110113298B (en) Data transmission method, device, signaling server and computer readable medium
WO2019007027A1 (en) Video playing method and system, electronic device and readable storage medium
KR101621530B1 (en) Method and System for Providing Flash Contents via Mobile Network and Method and Apparatus for Converting Flash Contents
CN113794932A (en) Method and device for playing video stream at webpage end, electronic equipment and storage medium
WO2020039239A1 (en) Sharing-based multi-task execution method and apparatus and device/terminal/server

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13879147

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13879147

Country of ref document: EP

Kind code of ref document: A1