WO2013116975A1 - Stream media playing method, device and system - Google Patents

Stream media playing method, device and system Download PDF

Info

Publication number
WO2013116975A1
WO2013116975A1 PCT/CN2012/070894 CN2012070894W WO2013116975A1 WO 2013116975 A1 WO2013116975 A1 WO 2013116975A1 CN 2012070894 W CN2012070894 W CN 2012070894W WO 2013116975 A1 WO2013116975 A1 WO 2013116975A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual desktop
streaming media
client
desktop client
server
Prior art date
Application number
PCT/CN2012/070894
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 CN201280000264.6A priority Critical patent/CN103348657B/en
Priority to PCT/CN2012/070894 priority patent/WO2013116975A1/en
Publication of WO2013116975A1 publication Critical patent/WO2013116975A1/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/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/612Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for unicast

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a streaming media playing method, device, and system. Background technique
  • VDI Virtual Desktop Infrastructu says re, virtual desktop
  • the client in the virtual desktop application scenario is called a virtual desktop client.
  • the server in the virtual desktop application scenario is called a virtual desktop server, and the virtual desktop client and the virtual desktop server form a virtual desktop system.
  • the virtual desktop server When the existing virtual desktop system plays the streaming media, the virtual desktop server first obtains the streaming media from the media source for playing, and the virtual desktop client obtains the streaming media from the virtual desktop server to play to the user, where the streaming media exists.
  • the secondary forwarding which seriously occupies the CPU (Central Processing Unit) resources and bandwidth of the virtual desktop server, increases the burden on the virtual desktop server, and is likely to cause delays in streaming media and affect the user experience.
  • the embodiment of the invention provides a streaming media playing method, device and system, so as to reduce the burden of the virtual desktop server and reduce the delay of the streaming media when playing the streaming media.
  • the technical solution is as follows:
  • the embodiment of the present invention provides a streaming media playing method, where the method includes: The virtual desktop server receives the request for playing the streaming media sent by the virtual desktop client, and obtains the streaming media receiving address of the virtual desktop client;
  • the virtual desktop server sends a media source connection request to the media source, where the media source connection request includes the streaming media receiving address;
  • the virtual desktop server Forwarding, by the virtual desktop server, the streaming media sending address to the virtual desktop client, so that the virtual desktop client establishes a connection with the media source according to the streaming media sending address, and receives an address in the streaming media.
  • an embodiment of the present invention further provides a streaming media playing method, where the method includes:
  • the virtual desktop client sends a request to play the streaming media to the virtual desktop server;
  • the virtual desktop client After the virtual desktop server sends a media source connection request including the streaming media receiving address to the media source and receives a streaming media sending address returned by the media source, the virtual desktop client receives the virtual desktop server. Forwarding the streaming media sending address;
  • the virtual desktop client establishes a connection with the media source according to the streaming media sending address, and receives the streaming media at the streaming media receiving address to perform streaming media playback.
  • the virtual desktop client receives a play notification message sent by the virtual desktop server, where the play notification message includes location information of a play control point;
  • the virtual desktop client When the virtual desktop client determines that the play control point is located in the virtual desktop client according to the location information of the play control point in the play notification message, the virtual desktop client sends a media source to the media source. Establishing a connection request, where the media source connection establishment request includes a streaming media receiving address of the virtual desktop client;
  • the virtual desktop client establishes a connection with the media source according to the streaming media sending address, and receives the streaming media at the streaming media receiving address to perform streaming media playback.
  • the embodiment of the present invention further provides a virtual desktop server, including:
  • a second acquiring module configured to send a media source connection request to the media source, where the media source establishes a connection request Include the streaming media receiving address, and receive a streaming media sending address returned by the media source;
  • a forwarding module configured to forward the streaming media sending address to the virtual desktop client, so that the virtual desktop client establishes a connection with the media source according to the streaming media sending address, and receives an address in the streaming media. Receive streaming media and play streaming media.
  • the playing module is configured to establish a connection with the media source according to the streaming media sending address, and receive the streaming media on the streaming media receiving address to perform streaming media playback.
  • a first receiving module configured to receive a play notification message sent by the virtual desktop server, where the play notification message includes location information of a play control point;
  • a second receiving module configured to receive a streaming media sending address returned by the media source
  • the playing module is configured to establish a connection with the media source according to the streaming media sending address, and receive the streaming media on the streaming media receiving address to perform streaming media playback.
  • the embodiment of the present invention further provides a streaming media playing system, including: the virtual desktop server and the virtual desktop client.
  • the virtual desktop server obtains the streaming media receiving address of the virtual desktop client and sends it to the media source, and sends the streaming media sending address returned by the media source to the virtual desktop client, or directly streams the media through the virtual desktop client.
  • the receiving address is sent to the media source and the streaming media sending address is obtained from the media source, so that the virtual desktop client can establish a connection with the media source and receive the streaming media on the streaming media receiving address, and play the streaming media, because the virtual desktop is not needed.
  • the server performs streaming media playback, avoids secondary forwarding of streaming media, greatly reduces the CPU resource usage and bandwidth usage of the virtual desktop server, reduces the burden on the virtual desktop server, and reduces the burden on the virtual desktop server.
  • the intended desktop client and the streaming media directly establish a connection to transmit streaming media, which reduces the delay of streaming media and greatly improves the user experience.
  • FIG. 1 is a schematic structural diagram of a virtual desktop system according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of a streaming media playing method according to Embodiment 2 of the present invention.
  • FIG. 6 is a schematic diagram of interaction of a streaming media playing method according to Embodiment 2 of the present invention.
  • FIG. 7 is a schematic diagram of an implementation of a streaming media playing method according to Embodiment 2 of the present invention.
  • FIG. 8 is a flowchart of a streaming media playing method according to Embodiment 3 of the present invention.
  • FIG. 9 is a schematic diagram of interaction of a streaming media playing method according to Embodiment 3 of the present invention.
  • FIG. 11 is a schematic diagram of streaming media playback interaction provided by Embodiment 4 of the present invention.
  • FIG. 12 is a schematic diagram of an implementation of a streaming media playing method according to Embodiment 4 of the present invention.
  • FIG. 14 is a schematic structural diagram of a virtual desktop server according to Embodiment 5 of the present invention.
  • FIG. 15 is a schematic structural diagram of another virtual desktop server according to Embodiment 5 of the present invention.
  • FIG. 16 is a schematic structural diagram of a virtual desktop client according to Embodiment 6 of the present invention.
  • FIG. 17 is a schematic structural diagram of another virtual desktop client according to Embodiment 6 of the present invention.
  • FIG. 18 is a schematic structural diagram of a virtual desktop client according to Embodiment 7 of the present invention.
  • FIG. 19 is a schematic structural diagram of a streaming media playback system according to Embodiment 8 of the present invention. detailed description
  • FIG. 1 is a schematic structural diagram of a virtual desktop system according to an embodiment of the present invention.
  • the virtual desktop system includes a virtual desktop client and a virtual desktop server.
  • the virtual desktop client requests the virtual desktop server to play the streaming media
  • the virtual desktop client obtains the streaming sending address from the virtual desktop server or the media source, and directly sends the streaming receiving address of the virtual desktop client or forwards through the virtual desktop server.
  • the media source is provided, so that the virtual desktop client can directly establish a connection with the media source, receive the streaming media at the streaming media receiving address, and play the streaming media.
  • the virtual desktop server includes two functional entities: a player and a player assistant.
  • the virtual desktop server can interact with the media source through the player, and the player assistant can interact with the virtual desktop client.
  • the virtual desktop client includes a functional entity: a player agent through which interaction with the virtual desktop server and interaction with the media source can be achieved.
  • the virtual desktop client involved in the embodiments of the present invention may be of various types, including but not limited to: a desktop PC (Per SOn al Computer, personal computer), a portable device, a mobile terminal, a dedicated TC (Thin Client, a thin terminal), and the like. Etc., the present invention is not limited thereto.
  • the media source refers to a device that stores media data on an IP (Internet Protocol) network
  • the cache node refers to a node that caches media data on a media source.
  • IP Internet Protocol
  • the media source is overloaded. Therefore, the media source can be equipped with a cache node to cache common media data, thereby reducing the load on the media source. The user can get the required media data from the cache node.
  • RTSP Real Time Streaming Protocol
  • HTTP Hypertext Transfer Protocol
  • SIP Session Initiation Protocol
  • RTSP Real Time Streaming Protocol
  • HTTP Hypertext Transfer Protocol
  • SIP Session Initiation Protocol
  • RTSP Real Time Streaming Protocol
  • HTTP Hypertext Transfer Protocol
  • SIP Session Initiation Protocol
  • RTSP Real Time Streaming Protocol
  • HTTP Hypertext Transfer Protocol
  • SIP Session Initiation Protocol
  • a variety of protocols may be used, including but not limited to: RTSP, HTTP, SIP, etc., which is not limited by the present invention.
  • a variety of protocols may be used, including but not limited to: RTP (Real-time Transport Protocol), UDP (User Datagram Protocol, The user datagram protocol) and the like are not limited by the present invention.
  • RTP Real-time Transport Protocol
  • UDP User Datagram Protocol
  • the user datagram protocol and the like are not limited by the present invention.
  • an embodiment of the present invention provides a streaming media playing method, including:
  • the virtual desktop server receives a request for playing a streaming media sent by the virtual desktop client, and obtains a streaming media receiving address of the virtual desktop client.
  • the virtual desktop server sends a media source connection request to the media source, where the media source connection request includes the streaming media receiving address:
  • the virtual desktop server receives a streaming media sending address returned by the media source.
  • the virtual desktop server forwards the streaming media sending address to the virtual desktop client, so that the virtual desktop client establishes a connection with the media source according to the streaming media sending address, and receives the streaming media at the streaming media receiving address, and performs streaming media. Play.
  • an embodiment of the present invention further provides a streaming media playing method, including:
  • the virtual desktop client sends a request to play the streaming media to the virtual desktop server;
  • the virtual desktop client sends the streaming receiving address of the virtual desktop client to the virtual desktop server.
  • the virtual desktop server sends a media source that includes the streaming media receiving address to the media source to establish a connection request, and receives the return from the media source. After the streaming media sends the address, the virtual desktop client receives the streaming media sending address forwarded by the virtual desktop server;
  • the virtual desktop client establishes a connection with the media source according to the streaming media sending address, and receives the streaming media on the streaming media receiving address, and performs streaming media playback.
  • an embodiment of the present invention further provides a streaming media playing method, including:
  • the virtual desktop client receives a play notification message sent by the virtual desktop server, where the play notification message includes location information of the play control point;
  • the virtual desktop client determines, according to the location information of the play control point in the play notification message, that the play control point is located in the virtual desktop client, the virtual desktop client sends a media source connection request to the media source, where the media The source connection request includes a streaming media receiving address of the virtual desktop client;
  • the virtual desktop client receives a streaming media sending address returned by the media source.
  • the virtual desktop client establishes a connection with the media source according to the streaming media sending address, and receives the streaming media on the streaming media receiving address to perform streaming media playback.
  • the method for obtaining the streaming media receiving address of the virtual desktop client is sent to the media source by the virtual desktop server, and the streaming media sending address returned by the media source is sent to the virtual desktop client, or by virtual
  • the desktop client directly sends the streaming media receiving address to the media source and obtains the streaming media sending address from the media source, so that the virtual desktop client can establish a connection with the media source and receive the streaming media at the streaming media receiving address to perform streaming media playback. Because the streaming of the virtual desktop server is not required, the secondary forwarding of the streaming media is avoided, the CPU resource consumption and bandwidth occupation of the virtual desktop server are greatly reduced, the burden of the virtual desktop server is reduced, and the virtual desktop is adopted.
  • the client directly establishes a connection with the streaming media to transmit the streaming media, which reduces the delay of the streaming media and greatly improves the user experience.
  • an embodiment of the present invention further provides a streaming media playing method, where a virtual desktop server directly requests a virtual desktop client to obtain a streaming media receiving address of the virtual desktop client, and the method includes:
  • the virtual desktop server receives a response message returned by the virtual desktop client, and obtains a streaming media receiving address of the virtual desktop client from the response message.
  • the virtual desktop server sends a media source connection request to the media source, where the media source connection request includes the streaming media receiving address.
  • the virtual desktop server receives a streaming media sending address returned by the media source.
  • the virtual desktop server forwards the streaming media sending address to the virtual desktop client, so that the virtual desktop client establishes a connection with the media source according to the streaming media sending address, and receives the streaming media at the streaming media receiving address, and performs streaming media. Play.
  • the foregoing method may be implemented by a player and a player assistant in the virtual desktop server, and a player agent in the virtual desktop client.
  • a player and a player assistant in the virtual desktop server may be implemented by a player and a player assistant in the virtual desktop server, and a player agent in the virtual desktop client.
  • the specific process of the foregoing method is as follows:
  • the player of the virtual desktop server sends a streaming media receiving address request to the player assistant;
  • the player and the player assistant are functional entities in the virtual desktop server, and the assistant can serve as a message transmission channel between the player of the virtual desktop server and the player agent of the virtual desktop client. , to ensure that the player is as simple as possible, and can capture the control action of the player of the virtual desktop server, and transmit it to the player agent of the virtual desktop client for corresponding processing.
  • the player and player helper can be either a functional entity or two separate functional entities.
  • the player assistant forwards the streaming media receiving address request to the player proxy of the virtual desktop client;
  • the player proxy of the virtual desktop client After receiving the streaming media receiving address request, the player proxy of the virtual desktop client returns a streaming media receiving address of the virtual desktop client to a player assistant of the virtual desktop server;
  • the streaming media receiving address of the virtual desktop client refers to the information related to the address of the receiving streaming media, including but not limited to: the IP address, the port, and the like of the virtual desktop client.
  • the player assistant of the virtual desktop server After receiving the streaming media receiving address, the player assistant of the virtual desktop server forwards the streaming media receiving address to the player;
  • the player After receiving the streaming media receiving address, the player initiates a media source connection request to the media source, where the media receiving address included in the media source establishing connection request is the streaming media of the received virtual desktop client.
  • the media source saves the media data in a cache (Cache) node as an example.
  • the virtual desktop server establishes a channel between the player and the media source's Cache node for control flow transmission.
  • the streaming media sending address refers to information related to the address of the sending streaming media, including but not limited to: sending the media source of the streaming media or the IP address, port, and the like of the cache node, and the present invention does not limited.
  • the player of the virtual desktop server may also establish a connection with the Cache node by using another streaming control protocol, such as HTTP, SIP, etc., which is not limited by the present invention.
  • SIP is a session layer signaling control protocol used to create, modify, and release sessions of one or more participants, usually for Internet multimedia conferencing, IP telephony, or streaming media playback.
  • the player of the virtual desktop server After receiving the response, the player of the virtual desktop server sends the streaming media sending address to the player assistant.
  • the player assistant After receiving the streaming address, the player assistant forwards the streaming agent to the player agent of the virtual desktop client.
  • the player agent of the virtual desktop client can open the port of the streaming media receiving address, receive the streaming media sent by the media source, and start playing the streaming media.
  • the player agent of the virtual desktop client and the media source/cache node may use the streaming media transmission protocol to perform streaming media transmission, such as RTP, UDP, etc., which is not limited by the present invention.
  • the embodiment of the present invention further provides a streaming media playing method, in which a virtual desktop server sends a notification message to a virtual desktop client to obtain a streaming media receiving address of the virtual desktop client, where the method includes:
  • the virtual desktop server receives a request for playing a streaming media sent by the virtual desktop client.
  • the play control point refers to a play control function.
  • the virtual desktop client may have a play control function, or the virtual desktop server has a play control function. Therefore, in different scenarios, the play control points are different.
  • the location information of the play control point refers to whether the play control point is located on the virtual desktop server or the virtual desktop client.
  • the virtual desktop server can know the location information of the play control point according to its own settings, and The notification message sends it to the virtual desktop client. After the virtual desktop client receives the information, it can be determined that the playback control point is located on the virtual desktop server or on the virtual desktop client according to the location information of the playback control point, so that different subsequent processing processes are performed.
  • the virtual desktop server receives the streaming media receiving address sent by the virtual desktop client; wherein, the virtual desktop If the client determines that the play control point is located on the virtual desktop server, the virtual desktop server sends the streaming receiving address of the virtual desktop client to the media source; if it is determined that the playback control point is located in the virtual desktop client, the flow can be directly flowed.
  • the media receiving address is sent to the media source.
  • the virtual desktop server sends a media source connection request to the media source, where the media source establishes a connection request including a streaming media receiving address of the virtual desktop client.
  • the virtual desktop server receives a streaming media sending address returned by the media source.
  • the virtual desktop server forwards the streaming media sending address to the virtual desktop client, so that the virtual desktop client establishes a connection with the media source according to the streaming media sending address, and receives the streaming media at the streaming media receiving address, and performs streaming media. Play.
  • the foregoing method may be implemented by using a player and a player assistant in the virtual desktop server, and a player agent in the virtual desktop client.
  • a player and a player assistant in the virtual desktop server may be implemented by using a player and a player assistant in the virtual desktop server, and a player agent in the virtual desktop client.
  • the specific process of the foregoing method is as follows: 901: The player of the virtual desktop server sends a play notification message to the player Assistant, where the play notification message includes location information of the play control point;
  • the play notification message may further include other information related to streaming media playback, such as a play action, an address or a link of the Cache node, and the like, which is not limited by the present invention.
  • the embodiment is described by taking a playback control point in a virtual desktop server as an example.
  • the player After receiving the play notification message, the player forwards the play notification message to the player agent of the virtual desktop client.
  • the player of the virtual desktop server after receiving the request message, forwards the media source connection request message to the player;
  • the player After receiving the media source connection request message, the player sends a media source connection request message to the media source, where the virtual desktop client receives the streaming media receiving address.
  • the media data is stored in the Cache node, and the player may specifically send an RTSP-based media source connection request message (Setup message) to the Cache node to establish a connection with the Cache node, and of course, other protocols may also be used. Not limited.
  • the media source After receiving the connection request message, the media source returns a response message to the broadcaster of the virtual desktop server, where the media sending address is included;
  • 907 After receiving the player of the virtual desktop server, sending the response message to the player assistant; 908: the player assistant forwards the response message to the player agent of the virtual desktop client;
  • the agent of the virtual desktop client After receiving the response message, the agent of the virtual desktop client establishes a connection with the media source according to the streaming media sending address, and receives the streaming media at the streaming media receiving address to play the streaming media.
  • the player agent can open the port of the streaming media receiving address, start receiving the streaming media sent by the media source, and play the streaming media.
  • an embodiment of the present invention further provides a streaming media playing method, where a virtual desktop client directly interacts with a media source to exchange a streaming media receiving address and a streaming media sending address, where the method includes:
  • the virtual desktop client sends a request to play streaming media to the desktop server;
  • the virtual desktop client receives a streaming media sending address returned by the media source
  • the virtual desktop client establishes a connection with the media source according to the streaming media sending address, and receives the streaming media on the streaming media receiving address to perform streaming media playback.
  • the foregoing method can be implemented by using a player and a player assistant in the virtual desktop server, and a player agent in the virtual desktop client.
  • a player and a player assistant in the virtual desktop server can be implemented by using a player and a player assistant in the virtual desktop server, and a player agent in the virtual desktop client.
  • the specific process of the foregoing method is as follows:
  • the information such as the address or the link of the Cache node is not limited by the present invention.
  • the playback control point is located in the virtual desktop client as an example.
  • the player of the virtual machine desktop server forwards the play notification message to the player agent of the virtual desktop client;
  • the player agent of the virtual desktop client determines, according to the location information of the play control point, whether the play control point is located on the virtual desktop server or the virtual desktop client, if it is determined to be located in the virtual desktop The client, the player agent directly sends a media source connection request message to the media source, where the virtual desktop client receives the streaming media receiving address;
  • the agent of the virtual desktop client After receiving the response message, the agent of the virtual desktop client establishes a connection with the media source according to the streaming media sending address, and receives the streaming media at the streaming media receiving address to play the streaming media.
  • the player agent can open the port of the streaming media receiving address, start receiving the streaming media sent by the media source, and play the streaming media.
  • the player of the virtual desktop server captures the adjustment operation performed by the player through the filter interface (Filter interface), and sends it to the player agent of the virtual desktop client through the message interface;
  • the player of the virtual desktop server when the user performs operations on the player for streaming control, such as controlling the suspension of streaming media or When the user fast forwards, the player of the virtual desktop server directly establishes a connection with the media source or the cache node, notifies the media source or the cache node to perform the pause or fast forward operation of the streaming media, and does not need to notify the player agent of the virtual desktop client.
  • the player agent sent to the virtual desktop client, so that the player agent of the virtual desktop client can perform the same operation, perform related display on the interface, and ensure the consistency of the player adjustment between the virtual desktop server and the virtual desktop client.
  • an embodiment of the present invention further provides a virtual desktop server, including:
  • the first obtaining module 11 is configured to receive a request for playing a streaming media sent by the virtual desktop client, and obtain a streaming media receiving address of the virtual desktop client.
  • the second obtaining module 12 is configured to send a media source connection request to the media source, where the media source connection request includes the streaming media receiving address, and the streaming media sending address returned by the media source is received;
  • the forwarding module 13 is configured to forward the streaming media sending address to the virtual desktop client, so that the virtual desktop client establishes a connection with the media source according to the streaming media sending address, and receives the streaming media. Receive streaming media at the address to play streaming media.
  • the first obtaining module 11 may include:
  • a requesting unit 11a configured to send a request message of a streaming media receiving address to the virtual desktop client
  • an obtaining unit lib configured to receive a response message returned by the virtual desktop client, and obtain the virtual message from the response message The streaming receiving address of the desktop client.
  • the first obtaining module 11 includes:
  • a notification unit lie configured to send a play notification message to the virtual desktop client, where the play notification message includes location information of a play control point;
  • the server may further include:
  • the adjusting module 14 is configured to receive, after the streaming of the virtual desktop client, the player adjustment instruction sent by the virtual desktop client, and the player of the virtual desktop server according to the player adjustment instruction Performing an adjustment operation, and sending the adjustment operation to the virtual desktop client, so that the virtual desktop client Perform the same adjustments to the local player.
  • the virtual desktop server provided by the embodiment of the present invention obtains a streaming media receiving address of the virtual desktop client and sends the address to the media source, and sends the streaming media sending address returned by the media source to the virtual desktop client, so that the virtual desktop client can Establishing a connection with the media source and receiving the streaming media at the streaming media receiving address, and playing the streaming media, since the streaming of the virtual desktop server is not required, the secondary forwarding of the streaming media is avoided, and the virtual desktop is greatly reduced.
  • the server's CPU resource consumption and bandwidth consumption reduce the burden on the virtual desktop server, and directly connect the streaming media to the streaming media through the virtual desktop client, which reduces the delay of streaming media and greatly improves the user experience.
  • an embodiment of the present invention further provides a virtual desktop client, including:
  • the requesting module 21 is configured to send a request for playing the streaming media to the virtual desktop server;
  • the sending module 22 is configured to send a streaming media receiving address of the virtual desktop client to the virtual desktop server;
  • the receiving module 23 is configured to: after the virtual desktop server sends a media source connection request including the streaming media receiving address to the media source, and receives a streaming media sending address returned by the media source, receiving the virtual desktop server Forwarding the streaming media sending address;
  • the playing module 24 is configured to establish a connection with the media source according to the streaming media sending address, and receive the streaming media at the streaming media receiving address to perform streaming media playback.
  • the transmitting module 22 can include:
  • a request receiving unit 22a configured to receive a request message of a streaming media receiving address sent by the virtual desktop server
  • a response unit 22b configured to: after the request receiving unit receives the request message, return a response message to the virtual The desktop server, where the response message includes a streaming media receiving address of the virtual desktop client.
  • the sending module 22 includes:
  • the notification receiving unit 22c is configured to receive a play notification message sent by the virtual desktop server, where the play notification message includes location information of a play control point;
  • a determining unit 22d configured to determine, according to the location information of the play control point in the play notification message, whether the play control point is located in the virtual desktop server;
  • the sending unit 22e is configured to: when the determining unit determines that the play control point is located in the virtual desktop server, send a streaming media receiving address of the virtual desktop client to the virtual desktop server.
  • the virtual desktop client may further include:
  • the adjusting module 25 is configured to send, after the playing module 24 plays the streaming media, a player adjustment instruction to the virtual desktop server, where the virtual desktop server plays the virtual desktop server according to the player adjustment instruction.
  • the device receives the adjustment operation sent by the virtual desktop server, and performs the same adjustment operation on the local player according to the received adjustment operation.
  • the virtual desktop client provided by the embodiment of the present invention sends a streaming media receiving address of the virtual desktop client to the media source through the virtual desktop server, and obtains a streaming media sending address returned by the media source, so that a connection can be established with the media source.
  • the streaming media receives the streaming media and plays the streaming media. Since the streaming of the virtual desktop server is not required, the secondary forwarding of the streaming media is avoided, which greatly reduces the CPU resource usage and bandwidth of the virtual desktop server. Occupancy, reducing the burden on the virtual desktop server, and directly connecting the streaming media through the virtual desktop client and streaming media, reducing the delay of streaming media and greatly improving the user experience.
  • Example 7 Example 7
  • an embodiment of the present invention further provides a virtual desktop client, including:
  • the requesting module 31 is configured to send a request for playing the streaming media to the virtual desktop server;
  • the first receiving module 32 is configured to receive a play notification message sent by the virtual desktop server, where the play notification message includes location information of the play control point;
  • the sending module 33 is configured to: when the virtual desktop client determines, according to the location information of the play control point in the play notification message, that the play control point is located in the virtual desktop client, send a media source connection request to the media source, where
  • the media source connection request includes a streaming media receiving address of the virtual desktop client;
  • a second receiving module 34 configured to receive a streaming media sending address returned by the media source
  • the playing module 35 is configured to establish a connection with the media source according to the streaming media sending address, and receive the streaming media on the streaming media receiving address to perform streaming media playback.
  • the client may further include:
  • an adjustment module configured to send a player adjustment instruction to the virtual desktop server after the playback module 35 performs streaming media playback, and receive the adjustment operation after the virtual desktop server performs an adjustment operation on the virtual desktop server player according to the player adjustment instruction.
  • the adjustment operation sent by the virtual desktop server performs the same adjustment operation on the local player according to the received adjustment operation.
  • the virtual desktop client determines that the playback control point is located on the virtual desktop client according to the play notification message sent by the virtual desktop server, and directly sends the streaming media receiving address of the virtual desktop client to the media source, and obtains the media.
  • the streaming media sending address returned by the source so that a connection can be established with the media source and the streaming media is received at the streaming media receiving address, and the streaming media is played, since the streaming of the virtual desktop server is not required. It avoids the secondary forwarding of streaming media, greatly reduces the CPU resource usage and bandwidth usage of the virtual desktop server, reduces the burden on the virtual desktop server, and directly establishes a connection and transmission streaming media through the virtual desktop client and the streaming media. Reduce the delay of streaming media and greatly improve the user experience.
  • an embodiment of the present invention further provides a streaming media playing system, including: a virtual desktop server 41 as described in Embodiment 5, and a virtual desktop client 42 as described in Embodiment 6.
  • the streaming media playing system obtained by the embodiment of the present invention obtains a streaming media receiving address of the virtual desktop client by using the virtual desktop server, and sends the streaming media receiving address to the media source, and sends the streaming media sending address returned by the media source to the virtual desktop client, or
  • the virtual desktop client directly sends the streaming media receiving address to the media source and obtains the streaming media sending address from the media source, so that the virtual desktop client can establish a connection with the media source and receive the streaming media at the streaming media receiving address, and perform streaming media.
  • Playback because the virtual desktop server does not need to play the streaming media, avoiding the secondary forwarding of the streaming media, greatly reducing the CPU resource consumption and bandwidth occupation of the virtual desktop server, reducing the burden of the virtual desktop server, and
  • the desktop client directly connects to the streaming media to transmit streaming media, which reduces the delay of streaming media and greatly improves the user experience.
  • the streaming media playing system provided by the foregoing embodiment, only the division of each functional module is used for example. In an actual application, the foregoing function may be allocated by different functional modules according to requirements. Upon completion, the internal structure of the device is divided into different functional modules to perform all or part of the functions described above.
  • the streaming media playing system and the streaming media playing method are provided in the same embodiment.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to the technical field of communications. Disclosed are a stream media playing method, device and system, the method comprising: a virtual desktop server receives a stream media play request transmitted by a virtual desktop client side, acquires the stream media receiving address of the virtual desktop client side, transmits to a media source a media source connection establishment request containing the stream media receiving address, receives a stream media transmitting address returned by the media source, and forwards the same to the virtual desktop client side, allowing the virtual desktop client side to establish a connection with the media source and receive the stream media for playing. A virtual desktop server, comprising a first acquisition module, a second acquisition module and a forwarding module; a virtual desktop client side, comprising a request module, a transmitting module, a receiving module and a play module. The system comprises the virtual desktop server and the virtual desktop client side. The present invention reduces CPU resource occupation and bandwidth occupation of the virtual desktop server, thus reducing the burden of the virtual desktop server.

Description

流媒体播放方法、 设备及系统 技术领域  Streaming media playing method, device and system
本发明涉及通信技术领域, 特别涉及一种流媒体播放方法、 设备及系统。 背景技术  The present invention relates to the field of communications technologies, and in particular, to a streaming media playing method, device, and system. Background technique
VDI (Virtual Desktop Infrastructu说re, 虚拟桌面) 技术是操作系统和应用均运行于远端的服 务器上, 通过本地的客户端控制该操作系统和应用, 并将屏幕信息回传到客户端的技术。 该虚拟桌面应用场景下的客户端称为虚拟桌面客户端, 该虚拟桌面应用场景下的服务器称 为虚拟桌面服务器, 虚拟桌面客户端和虚拟桌面服务器组成了虚拟桌面系统。 VDI (Virtual Desktop Infrastructu says re, virtual desktop) technology is a technology in which the operating system and applications run on a remote server, the operating system and applications are controlled by a local client, and the screen information is transmitted back to the client. The client in the virtual desktop application scenario is called a virtual desktop client. The server in the virtual desktop application scenario is called a virtual desktop server, and the virtual desktop client and the virtual desktop server form a virtual desktop system.
 Book
在虚拟桌面系统中, 虚拟桌面服务器通过虚拟桌面客户端传来的鼠标、 键盘等事件来 控制操作系统的运行, 并将虚拟桌面服务器上的显示信息回传给虚拟桌面客户端。 所述操 作系统可以为虚拟化平台上运行的操作系统, 也可以是直接运行在虚拟桌面服务器上的操 作系统。  In a virtual desktop system, the virtual desktop server controls the operation of the operating system through events such as a mouse, keyboard, and the like transmitted from the virtual desktop client, and returns the display information on the virtual desktop server to the virtual desktop client. The operating system can be an operating system running on a virtualization platform or an operating system running directly on a virtual desktop server.
现有的虚拟桌面系统在播放流媒体时, 通常由虚拟桌面服务器上运行的播放器来完成 虚拟桌面客户端请求的流媒体的播放, 通过该播放器可以进行流媒体的控制、 解码和缓冲 等操作, 虚拟桌面客户端通过获取虚拟桌面服务器的显存或截取视频流等方式, 将解码后 的流媒体从虚拟桌面服务器重定向到虚拟桌面客户端上, 播放给用户。  When playing the streaming media, the existing virtual desktop system usually uses the player running on the virtual desktop server to complete the streaming of the virtual desktop client request, and the player can perform streaming media control, decoding, buffering, and the like. The virtual desktop client redirects the decoded streaming media from the virtual desktop server to the virtual desktop client by playing the video storage of the virtual desktop server or intercepting the video stream, and playing the video to the user.
在实现本发明的过程中, 发明人发现现有技术至少存在以下问题:  In the process of implementing the present invention, the inventors have found that the prior art has at least the following problems:
现有的虚拟桌面系统在进行流媒体的播放时, 虚拟桌面服务器先从媒体源获取流媒体 进行播放, 虚拟桌面客户端再从虚拟桌面服务器获取该流媒体播放给用户, 其中存在流媒 体的二次转发,严重地占用了虚拟桌面服务器的 CPU (Central Processing Unit, 中央处理器) 资源和带宽, 增加了虚拟桌面服务器的负担, 并且, 很容易造成流媒体的延迟, 影响用户 的体验。 发明内容  When the existing virtual desktop system plays the streaming media, the virtual desktop server first obtains the streaming media from the media source for playing, and the virtual desktop client obtains the streaming media from the virtual desktop server to play to the user, where the streaming media exists. The secondary forwarding, which seriously occupies the CPU (Central Processing Unit) resources and bandwidth of the virtual desktop server, increases the burden on the virtual desktop server, and is likely to cause delays in streaming media and affect the user experience. Summary of the invention
本发明实施例提供了一种流媒体播放方法、 设备及系统, 以实现在播放流媒体时减轻 虚拟桌面服务器的负担以及减少流媒体的延迟。 所述技术方案如下:  The embodiment of the invention provides a streaming media playing method, device and system, so as to reduce the burden of the virtual desktop server and reduce the delay of the streaming media when playing the streaming media. The technical solution is as follows:
一方面, 本发明实施例提供了一种流媒体播放方法, 所述方法包括: 虚拟桌面服务器接收虚拟桌面客户端发送的播放流媒体的请求, 获取所述虚拟桌面客 户端的流媒体接收地址; In one aspect, the embodiment of the present invention provides a streaming media playing method, where the method includes: The virtual desktop server receives the request for playing the streaming media sent by the virtual desktop client, and obtains the streaming media receiving address of the virtual desktop client;
所述虚拟桌面服务器向媒体源发送媒体源建立连接请求, 所述媒体源建立连接请求中 包括所述流媒体接收地址;  The virtual desktop server sends a media source connection request to the media source, where the media source connection request includes the streaming media receiving address;
所述虚拟桌面服务器接收所述媒体源返回的流媒体发送地址;  Receiving, by the virtual desktop server, a streaming media sending address returned by the media source;
所述虚拟桌面服务器将所述流媒体发送地址转发给所述虚拟桌面客户端, 使得所述虚 拟桌面客户端根据所述流媒体发送地址与所述媒体源建立连接并在所述流媒体接收地址上 接收流媒体, 进行流媒体的播放。  Forwarding, by the virtual desktop server, the streaming media sending address to the virtual desktop client, so that the virtual desktop client establishes a connection with the media source according to the streaming media sending address, and receives an address in the streaming media. Receive streaming media and play streaming media.
另一方面, 本发明实施例还提供了一种流媒体播放方法, 所述方法包括:  On the other hand, an embodiment of the present invention further provides a streaming media playing method, where the method includes:
虚拟桌面客户端向虚拟桌面服务器发送播放流媒体的请求;  The virtual desktop client sends a request to play the streaming media to the virtual desktop server;
所述虚拟桌面客户端将所述虚拟桌面客户端的流媒体接收地址发送给所述虚拟桌面服 务器;  Sending, by the virtual desktop client, a streaming media receiving address of the virtual desktop client to the virtual desktop server;
当所述虚拟桌面服务器向媒体源发送包含所述流媒体接收地址的媒体源建立连接请求 且收到所述媒体源返回的流媒体发送地址后, 所述虚拟桌面客户端接收所述虚拟桌面服务 器转发的所述流媒体发送地址;  After the virtual desktop server sends a media source connection request including the streaming media receiving address to the media source and receives a streaming media sending address returned by the media source, the virtual desktop client receives the virtual desktop server. Forwarding the streaming media sending address;
所述虚拟桌面客户端根据所述流媒体发送地址与所述媒体源建立连接, 并在所述流媒 体接收地址上接收流媒体, 进行流媒体的播放。  The virtual desktop client establishes a connection with the media source according to the streaming media sending address, and receives the streaming media at the streaming media receiving address to perform streaming media playback.
再一方面, 本发明实施例还提供了一种流媒体播放方法, 包括:  In another aspect, the embodiment of the present invention further provides a streaming media playing method, including:
虚拟桌面客户端向虚拟桌面服务器发送播放流媒体的请求;  The virtual desktop client sends a request to play the streaming media to the virtual desktop server;
所述虚拟桌面客户端接收所述虚拟桌面服务器发送的播放通知消息, 所述播放通知消 息包含播放控制点的位置信息;  The virtual desktop client receives a play notification message sent by the virtual desktop server, where the play notification message includes location information of a play control point;
当所述虚拟桌面客户端根据所述播放通知消息中的所述播放控制点的位置信息确定所 述播放控制点位于所述虚拟桌面客户端时, 所述虚拟桌面客户端向媒体源发送媒体源建立 连接请求, 所述媒体源建立连接请求中包括所述虚拟桌面客户端的流媒体接收地址;  When the virtual desktop client determines that the play control point is located in the virtual desktop client according to the location information of the play control point in the play notification message, the virtual desktop client sends a media source to the media source. Establishing a connection request, where the media source connection establishment request includes a streaming media receiving address of the virtual desktop client;
所述虚拟桌面客户端接收所述媒体源返回的流媒体发送地址;  Receiving, by the virtual desktop client, a streaming media sending address returned by the media source;
所述虚拟桌面客户端根据所述流媒体发送地址与所述媒体源建立连接, 并在所述流媒 体接收地址上接收流媒体, 进行流媒体的播放。  The virtual desktop client establishes a connection with the media source according to the streaming media sending address, and receives the streaming media at the streaming media receiving address to perform streaming media playback.
又一方面, 本发明实施例还提供了一种虚拟桌面服务器, 包括:  In another aspect, the embodiment of the present invention further provides a virtual desktop server, including:
第一获取模块, 用于接收虚拟桌面客户端发送的播放流媒体的请求, 获取所述虚拟桌 面客户端的流媒体接收地址;  a first obtaining module, configured to receive a request for playing a streaming media sent by the virtual desktop client, and obtain a streaming media receiving address of the virtual desktop client;
第二获取模块, 用于向媒体源发送媒体源建立连接请求, 所述媒体源建立连接请求中 包括所述流媒体接收地址, 接收所述媒体源返回的流媒体发送地址; a second acquiring module, configured to send a media source connection request to the media source, where the media source establishes a connection request Include the streaming media receiving address, and receive a streaming media sending address returned by the media source;
转发模块, 用于将所述流媒体发送地址转发给所述虚拟桌面客户端, 使得所述虚拟桌 面客户端根据所述流媒体发送地址与所述媒体源建立连接并在所述流媒体接收地址上接收 流媒体, 进行流媒体的播放。  a forwarding module, configured to forward the streaming media sending address to the virtual desktop client, so that the virtual desktop client establishes a connection with the media source according to the streaming media sending address, and receives an address in the streaming media. Receive streaming media and play streaming media.
再一方面, 本发明实施例还提供了一种虚拟桌面客户端, 包括:  In another aspect, the embodiment of the present invention further provides a virtual desktop client, including:
请求模块, 用于向虚拟桌面服务器发送播放流媒体的请求;  a requesting module, configured to send a request for playing a streaming media to the virtual desktop server;
发送模块, 用于将所述虚拟桌面客户端的流媒体接收地址发送给所述虚拟桌面服务器; 接收模块, 用于当所述虚拟桌面服务器向媒体源发送包含所述流媒体接收地址的媒体 源建立连接请求且收到所述媒体源返回的流媒体发送地址后, 接收所述虚拟桌面服务器转 发的所述流媒体发送地址;  a sending module, configured to send a streaming media receiving address of the virtual desktop client to the virtual desktop server, and a receiving module, configured to: when the virtual desktop server sends a media source that includes the streaming media receiving address to a media source, After receiving the request and receiving the streaming media sending address returned by the media source, receiving the streaming media sending address forwarded by the virtual desktop server;
播放模块, 用于根据所述流媒体发送地址与所述媒体源建立连接, 并在所述流媒体接 收地址上接收流媒体, 进行流媒体的播放。  The playing module is configured to establish a connection with the media source according to the streaming media sending address, and receive the streaming media on the streaming media receiving address to perform streaming media playback.
另一方面, 本发明实施例还提供了一种虚拟桌面客户端, 包括:  On the other hand, an embodiment of the present invention further provides a virtual desktop client, including:
请求模块, 用于端向虚拟桌面服务器发送播放流媒体的请求;  a requesting module, configured to send a request for playing a streaming media to the virtual desktop server;
第一接收模块, 用于接收所述虚拟桌面服务器发送的播放通知消息, 所述播放通知消 息包含播放控制点的位置信息;  a first receiving module, configured to receive a play notification message sent by the virtual desktop server, where the play notification message includes location information of a play control point;
发送模块, 用于当所述虚拟桌面客户端根据所述播放通知消息中的所述播放控制点的 位置信息确定所述播放控制点位于所述虚拟桌面客户端时, 向媒体源发送媒体源建立连接 请求, 所述媒体源建立连接请求中包括所述虚拟桌面客户端的流媒体接收地址;  a sending module, configured to: when the virtual desktop client determines, according to the location information of the play control point in the play notification message, that the play control point is located in the virtual desktop client, send a media source to the media source. a connection request, where the media source connection request includes a streaming media receiving address of the virtual desktop client;
第二接收模块, 用于接收所述媒体源返回的流媒体发送地址;  a second receiving module, configured to receive a streaming media sending address returned by the media source;
播放模块, 用于根据所述流媒体发送地址与所述媒体源建立连接, 并在所述流媒体接 收地址上接收流媒体, 进行流媒体的播放。  The playing module is configured to establish a connection with the media source according to the streaming media sending address, and receive the streaming media on the streaming media receiving address to perform streaming media playback.
另一方面, 本发明实施例还提供了一种流媒体播放系统, 包括: 所述的虚拟桌面服务 器和所述的虚拟桌面客户端。  In another aspect, the embodiment of the present invention further provides a streaming media playing system, including: the virtual desktop server and the virtual desktop client.
本发明实施例提供的技术方案带来的有益效果是:  The beneficial effects brought by the technical solutions provided by the embodiments of the present invention are:
本发明实施例通过虚拟桌面服务器获取虚拟桌面客户端的流媒体接收地址并发送给媒 体源, 以及将媒体源返回的流媒体发送地址发送给虚拟桌面客户端, 或者通过虚拟桌面客 户端直接将流媒体接收地址发送给媒体源并从媒体源获取流媒体发送地址, 使得虚拟桌面 客户端可以与媒体源建立连接并在流媒体接收地址上接收流媒体, 进行流媒体的播放, 由 于不需要在虚拟桌面服务器进行流媒体的播放, 避免了流媒体的二次转发, 极大地降低了 虚拟桌面服务器的 CPU资源占用和带宽占用, 减轻了虚拟桌面服务器的负担, 并且通过虚 拟桌面客户端与流媒体直接建立连接传输流媒体, 减少了流媒体的延迟, 极大地提高了用 户的体验。 附图说明 In the embodiment of the present invention, the virtual desktop server obtains the streaming media receiving address of the virtual desktop client and sends it to the media source, and sends the streaming media sending address returned by the media source to the virtual desktop client, or directly streams the media through the virtual desktop client. The receiving address is sent to the media source and the streaming media sending address is obtained from the media source, so that the virtual desktop client can establish a connection with the media source and receive the streaming media on the streaming media receiving address, and play the streaming media, because the virtual desktop is not needed. The server performs streaming media playback, avoids secondary forwarding of streaming media, greatly reduces the CPU resource usage and bandwidth usage of the virtual desktop server, reduces the burden on the virtual desktop server, and reduces the burden on the virtual desktop server. The intended desktop client and the streaming media directly establish a connection to transmit streaming media, which reduces the delay of streaming media and greatly improves the user experience. DRAWINGS
为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例描述中所需要使用的 附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对于本 领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的 附图。  In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described. It is obvious that the drawings in the following description are only some embodiments of the present invention. Other drawings may also be obtained from those of ordinary skill in the art in view of the drawings.
图 1是本发明实施例提供的虚拟桌面系统架构示意图;  1 is a schematic structural diagram of a virtual desktop system according to an embodiment of the present invention;
图 2是本发明实施例 1提供的一种流媒体播放方法流程图;  2 is a flowchart of a streaming media playing method according to Embodiment 1 of the present invention;
图 3是本发明实施例 1提供的另一种流媒体播放方法流程图;  3 is a flowchart of another streaming media playing method according to Embodiment 1 of the present invention;
图 4是本发明实施例 1提供的再一种流媒体播放方法流程图;  4 is a flowchart of still another streaming media playing method according to Embodiment 1 of the present invention;
图 5是本发明实施例 2提供的流媒体播放方法流程图;  FIG. 5 is a flowchart of a streaming media playing method according to Embodiment 2 of the present invention; FIG.
图 6是本发明实施例 2提供的流媒体播放方法交互示意图;  6 is a schematic diagram of interaction of a streaming media playing method according to Embodiment 2 of the present invention;
图 7是本发明实施例 2提供的流媒体播放方法架构实现示意图;  7 is a schematic diagram of an implementation of a streaming media playing method according to Embodiment 2 of the present invention;
图 8是本发明实施例 3提供的流媒体播放方法流程图;  8 is a flowchart of a streaming media playing method according to Embodiment 3 of the present invention;
图 9是本发明实施例 3提供的流媒体播放方法交互示意图;  9 is a schematic diagram of interaction of a streaming media playing method according to Embodiment 3 of the present invention;
图 10是本发明实施例 4提供的流媒体播放方法流程图;  FIG. 10 is a flowchart of a streaming media playing method according to Embodiment 4 of the present invention; FIG.
图 11是本发明实施例 4提供的流媒体播放交互示意图;  11 is a schematic diagram of streaming media playback interaction provided by Embodiment 4 of the present invention;
图 12是本发明实施例 4提供的流媒体播放方法架构实现示意图;  FIG. 12 is a schematic diagram of an implementation of a streaming media playing method according to Embodiment 4 of the present invention; FIG.
图 13是本发明实施例提供的调整播放器的流程示意图;  FIG. 13 is a schematic flowchart of adjusting a player according to an embodiment of the present invention;
图 14是本发明实施例 5提供的一种虚拟桌面服务器结构示意图;  14 is a schematic structural diagram of a virtual desktop server according to Embodiment 5 of the present invention;
图 15是本发明实施例 5提供的另一种虚拟桌面服务器结构示意图;  15 is a schematic structural diagram of another virtual desktop server according to Embodiment 5 of the present invention;
图 16是本发明实施例 6提供的一种虚拟桌面客户端结构示意图;  16 is a schematic structural diagram of a virtual desktop client according to Embodiment 6 of the present invention;
图 17是本发明实施例 6提供的另一种虚拟桌面客户端结构示意图;  17 is a schematic structural diagram of another virtual desktop client according to Embodiment 6 of the present invention;
图 18是本发明实施例 7提供的一种虚拟桌面客户端结构示意图;  18 is a schematic structural diagram of a virtual desktop client according to Embodiment 7 of the present invention;
图 19是本发明实施例 8提供的流媒体播放系统结构示意图。 具体实施方式  FIG. 19 is a schematic structural diagram of a streaming media playback system according to Embodiment 8 of the present invention. detailed description
为使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图对本发明实施方式作 进一歩地详细描述。 本发明实施例涉及虚拟桌面系统的流媒体播放技术。参见图 1, 为本发明实施例提供的 虚拟桌面系统的架构示意图。 所述虚拟桌面系统包括虚拟桌面客户端和虚拟桌面服务器。 当虚拟桌面客户端向虚拟桌面服务器请求播放流媒体时, 虚拟桌面客户端从虚拟桌面服务 器或者媒体源获取流媒体发送地址, 并将虚拟桌面客户端的流媒体接收地址直接发送或者 通过虚拟桌面服务器转发给媒体源, 从而虚拟桌面客户端可以和媒体源直接建立连接, 在 所述流媒体接收地址上接收流媒体并进行流媒体的播放。 其中, 虚拟桌面服务器包括两个 功能实体: 播放器和播放器助手 (Assistant), 虚拟桌面服务器通过该播放器可以与媒体源 进行交互, 通过播放器助手可以与虚拟桌面客户端进行交互。 虚拟桌面客户端包括一个功 能实体: 播放器代理 (Agent), 通过该播放器代理可以实现与虚拟桌面服务器之间的交互, 以及与媒体源之间的交互。 The embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Embodiments of the present invention relate to a streaming media playback technology of a virtual desktop system. FIG. 1 is a schematic structural diagram of a virtual desktop system according to an embodiment of the present invention. The virtual desktop system includes a virtual desktop client and a virtual desktop server. When the virtual desktop client requests the virtual desktop server to play the streaming media, the virtual desktop client obtains the streaming sending address from the virtual desktop server or the media source, and directly sends the streaming receiving address of the virtual desktop client or forwards through the virtual desktop server. The media source is provided, so that the virtual desktop client can directly establish a connection with the media source, receive the streaming media at the streaming media receiving address, and play the streaming media. The virtual desktop server includes two functional entities: a player and a player assistant. The virtual desktop server can interact with the media source through the player, and the player assistant can interact with the virtual desktop client. The virtual desktop client includes a functional entity: a player agent through which interaction with the virtual desktop server and interaction with the media source can be achieved.
本发明实施例涉及的虚拟桌面客户端可以有多种类型,包括但不限于:台式 PC(PerSOnal Computer, 个人计算机)、 便携机、 移动终端、 专用的 TC (Thin Client, 瘦终端) 等等, 本 发明对此不限定。 本发明实施例中, 媒体源是指 IP (Internet Protocol, 网际协议) 网络上存 储媒体数据的设备, 缓存节点是指缓存有媒体源上的媒体数据的节点。 通常, 媒体源上的 媒体数据被很多用户访问时, 会导致媒体源负荷过重, 因此, 媒体源可以配备缓存节点, 以缓存常用的媒体数据, 从而减轻媒体源的负荷。 用户可以从缓存节点上获取需要的媒体 数据。 The virtual desktop client involved in the embodiments of the present invention may be of various types, including but not limited to: a desktop PC (Per SOn al Computer, personal computer), a portable device, a mobile terminal, a dedicated TC (Thin Client, a thin terminal), and the like. Etc., the present invention is not limited thereto. In the embodiment of the present invention, the media source refers to a device that stores media data on an IP (Internet Protocol) network, and the cache node refers to a node that caches media data on a media source. Generally, when media data on a media source is accessed by many users, the media source is overloaded. Therefore, the media source can be equipped with a cache node to cache common media data, thereby reducing the load on the media source. The user can get the required media data from the cache node.
本发明实施例中, 虚拟桌面服务器与媒体源或缓存节点之间进行控制流的交互时, 可 以采用多种协议, 包括但不限于: RTSP (Real Time Streaming Protocol, 实施流传输协议)、 HTTP (Hyper Text Transfer Protocol, 超文本传输协议)、 SIP ( Session Initiation Protocol, 会 话初始协议) 等等, 本发明对此不限定。 虚拟桌面客户端与媒体源或缓存节点之间进行控 制流的交互时, 可以采用多种协议, 包括但不限于: RTSP、 HTTP, SIP等等, 本发明对此 不限定。 虚拟桌面客户端与媒体源或缓存节点之间进行媒体流的交互时, 也可以采用多种 协议,包括但不限于: RTP( Real-time Transport Protocol,实时传输协议)、 UDP(User Datagram Protocol, 用户数据报协议) 等等, 本发明对此不限定。  In the embodiment of the present invention, when the control flow is exchanged between the virtual desktop server and the media source or the cache node, multiple protocols may be used, including but not limited to: RTSP (Real Time Streaming Protocol), HTTP ( Hypertext Transfer Protocol, SIP (Session Initiation Protocol), and the like, which are not limited by the present invention. When the interaction between the virtual desktop client and the media source or the cache node is controlled, a variety of protocols may be used, including but not limited to: RTSP, HTTP, SIP, etc., which is not limited by the present invention. When a media stream is exchanged between a virtual desktop client and a media source or a cache node, a variety of protocols may be used, including but not limited to: RTP (Real-time Transport Protocol), UDP (User Datagram Protocol, The user datagram protocol) and the like are not limited by the present invention.
实施例 1  Example 1
参见图 2, 本发明实施例提供了一种流媒体播放方法, 包括:  Referring to FIG. 2, an embodiment of the present invention provides a streaming media playing method, including:
201: 虚拟桌面服务器接收虚拟桌面客户端发送的播放流媒体的请求, 获取虚拟桌面客 户端的流媒体接收地址;  201: The virtual desktop server receives a request for playing a streaming media sent by the virtual desktop client, and obtains a streaming media receiving address of the virtual desktop client.
202: 虚拟桌面服务器向媒体源发送媒体源建立连接请求, 该媒体源建立连接请求中包 括所述流媒体接收地址: 203: 虚拟桌面服务器接收媒体源返回的流媒体发送地址; 202: The virtual desktop server sends a media source connection request to the media source, where the media source connection request includes the streaming media receiving address: 203: The virtual desktop server receives a streaming media sending address returned by the media source.
204: 虚拟桌面服务器将该流媒体发送地址转发给虚拟桌面客户端, 使得虚拟桌面客户 端根据该流媒体发送地址与媒体源建立连接并在该流媒体接收地址上接收流媒体, 进行流 媒体的播放。  204: The virtual desktop server forwards the streaming media sending address to the virtual desktop client, so that the virtual desktop client establishes a connection with the media source according to the streaming media sending address, and receives the streaming media at the streaming media receiving address, and performs streaming media. Play.
参见图 3, 本发明实施例还提供了一种流媒体播放方法, 包括:  Referring to FIG. 3, an embodiment of the present invention further provides a streaming media playing method, including:
301: 虚拟桌面客户端向虚拟桌面服务器发送播放流媒体的请求;  301: The virtual desktop client sends a request to play the streaming media to the virtual desktop server;
302: 虚拟桌面客户端将虚拟桌面客户端的流媒体接收地址发送给虚拟桌面服务器; 303: 当虚拟桌面服务器向媒体源发送包含该流媒体接收地址的媒体源建立连接请求且 收到媒体源返回的流媒体发送地址后, 虚拟桌面客户端接收虚拟桌面服务器转发的所述流 媒体发送地址;  302: The virtual desktop client sends the streaming receiving address of the virtual desktop client to the virtual desktop server. 303: The virtual desktop server sends a media source that includes the streaming media receiving address to the media source to establish a connection request, and receives the return from the media source. After the streaming media sends the address, the virtual desktop client receives the streaming media sending address forwarded by the virtual desktop server;
304: 虚拟桌面客户端根据所述流媒体发送地址与媒体源建立连接, 并在该流媒体接收 地址上接收流媒体, 进行流媒体的播放。  304: The virtual desktop client establishes a connection with the media source according to the streaming media sending address, and receives the streaming media on the streaming media receiving address, and performs streaming media playback.
参见图 4, 本发明实施例还提供了一种流媒体播放方法, 包括:  Referring to FIG. 4, an embodiment of the present invention further provides a streaming media playing method, including:
401: 虚拟桌面客户端向虚拟桌面服务器发送播放流媒体的请求;  401: The virtual desktop client sends a request to play the streaming media to the virtual desktop server;
402: 虚拟桌面客户端接收虚拟桌面服务器发送的播放通知消息, 所述播放通知消息包 含播放控制点的位置信息;  402: The virtual desktop client receives a play notification message sent by the virtual desktop server, where the play notification message includes location information of the play control point;
403: 当虚拟桌面客户端根据该播放通知消息中的播放控制点的位置信息确定所述播放 控制点位于虚拟桌面客户端时, 虚拟桌面客户端向媒体源发送媒体源建立连接请求, 所述 媒体源建立连接请求中包括虚拟桌面客户端的流媒体接收地址;  403: When the virtual desktop client determines, according to the location information of the play control point in the play notification message, that the play control point is located in the virtual desktop client, the virtual desktop client sends a media source connection request to the media source, where the media The source connection request includes a streaming media receiving address of the virtual desktop client;
404: 虚拟桌面客户端接收媒体源返回的流媒体发送地址;  404: The virtual desktop client receives a streaming media sending address returned by the media source.
405: 虚拟桌面客户端根据所述流媒体发送地址与媒体源建立连接, 并在所述流媒体接 收地址上接收流媒体, 进行流媒体的播放。  405: The virtual desktop client establishes a connection with the media source according to the streaming media sending address, and receives the streaming media on the streaming media receiving address to perform streaming media playback.
本发明实施例提供的上述任一方法, 通过虚拟桌面服务器获取虚拟桌面客户端的流媒 体接收地址并发送给媒体源, 以及将媒体源返回的流媒体发送地址发送给虚拟桌面客户端, 或者通过虚拟桌面客户端直接将流媒体接收地址发送给媒体源并从媒体源获取流媒体发送 地址, 使得虚拟桌面客户端可以与媒体源建立连接并在流媒体接收地址上接收流媒体, 进 行流媒体的播放, 由于不需要在虚拟桌面服务器进行流媒体的播放, 避免了流媒体的二次 转发, 极大地降低了虚拟桌面服务器的 CPU资源占用和带宽占用, 减轻了虚拟桌面服务器 的负担, 并且通过虚拟桌面客户端与流媒体直接建立连接传输流媒体, 减少了流媒体的延 迟, 极大地提高了用户的体验。 实施例 2 The method for obtaining the streaming media receiving address of the virtual desktop client is sent to the media source by the virtual desktop server, and the streaming media sending address returned by the media source is sent to the virtual desktop client, or by virtual The desktop client directly sends the streaming media receiving address to the media source and obtains the streaming media sending address from the media source, so that the virtual desktop client can establish a connection with the media source and receive the streaming media at the streaming media receiving address to perform streaming media playback. Because the streaming of the virtual desktop server is not required, the secondary forwarding of the streaming media is avoided, the CPU resource consumption and bandwidth occupation of the virtual desktop server are greatly reduced, the burden of the virtual desktop server is reduced, and the virtual desktop is adopted. The client directly establishes a connection with the streaming media to transmit the streaming media, which reduces the delay of the streaming media and greatly improves the user experience. Example 2
参见图 5, 本发明实施例还提供了一种流媒体播放方法, 由虚拟桌面服务器直接向虚拟 桌面客户端请求并获取虚拟桌面客户端的流媒体接收地址, 所述方法包括:  Referring to FIG. 5, an embodiment of the present invention further provides a streaming media playing method, where a virtual desktop server directly requests a virtual desktop client to obtain a streaming media receiving address of the virtual desktop client, and the method includes:
501: 虚拟桌面服务器接收虚拟桌面客户端发送的播放流媒体的请求, 向虚拟桌面客户 端发送流媒体接收地址的请求消息;  501: The virtual desktop server receives the request for playing the streaming media sent by the virtual desktop client, and sends a request message for the streaming media receiving address to the virtual desktop client.
502: 虚拟桌面服务器接收虚拟桌面客户端返回的应答消息, 从该应答消息中获取虚拟 桌面客户端的流媒体接收地址;  502: The virtual desktop server receives a response message returned by the virtual desktop client, and obtains a streaming media receiving address of the virtual desktop client from the response message.
503: 虚拟桌面服务器向媒体源发送媒体源建立连接请求, 该媒体源建立连接请求中包 括所述流媒体接收地址;  503: The virtual desktop server sends a media source connection request to the media source, where the media source connection request includes the streaming media receiving address.
504: 虚拟桌面服务器接收媒体源返回的流媒体发送地址;  504: The virtual desktop server receives a streaming media sending address returned by the media source.
505: 虚拟桌面服务器将该流媒体发送地址转发给虚拟桌面客户端, 使得虚拟桌面客户 端根据该流媒体发送地址与媒体源建立连接并在该流媒体接收地址上接收流媒体, 进行流 媒体的播放。  505: The virtual desktop server forwards the streaming media sending address to the virtual desktop client, so that the virtual desktop client establishes a connection with the media source according to the streaming media sending address, and receives the streaming media at the streaming media receiving address, and performs streaming media. Play.
具体地, 上述方法可以通过虚拟桌面服务器中的播放器和播放器助手, 以及虚拟桌面 客户端内的播放器代理来实现, 参见图 6和图 7, 上述方法的具体流程如下:  Specifically, the foregoing method may be implemented by a player and a player assistant in the virtual desktop server, and a player agent in the virtual desktop client. Referring to FIG. 6 and FIG. 7, the specific process of the foregoing method is as follows:
601: 虚拟桌面服务器的播放器向播放器助手发送流媒体接收地址请求;  601: The player of the virtual desktop server sends a streaming media receiving address request to the player assistant;
其中, 所述播放器和播放器助手为虚拟桌面服务器内的功能实体, 播放器助手 ( Assistant) 可以作为虚拟桌面服务器的播放器和虚拟桌面客户端的播放器代理 (Agent) 之间的消息传送通道, 用以保证播放器尽量简化, 并且可以捕捉虚拟桌面服务器的播放器 的控制动作, 传送给虚拟桌面客户端的播放器 Agent进行相应处理。实际部署和实现时, 播 放器和播放器助手可以是一个功能实体, 也可以是两个独立的功能实体。  The player and the player assistant are functional entities in the virtual desktop server, and the assistant can serve as a message transmission channel between the player of the virtual desktop server and the player agent of the virtual desktop client. , to ensure that the player is as simple as possible, and can capture the control action of the player of the virtual desktop server, and transmit it to the player agent of the virtual desktop client for corresponding processing. In actual deployment and implementation, the player and player helper can be either a functional entity or two separate functional entities.
602: 播放器助手向虚拟桌面客户端的播放器代理转发流媒体接收地址请求;  602: The player assistant forwards the streaming media receiving address request to the player proxy of the virtual desktop client;
603: 虚拟桌面客户端的播放器代理接收到该流媒体接收地址请求后, 返回虚拟桌面客 户端的流媒体接收地址给虚拟桌面服务器的播放器助手;  603: After receiving the streaming media receiving address request, the player proxy of the virtual desktop client returns a streaming media receiving address of the virtual desktop client to a player assistant of the virtual desktop server;
本实施例中, 虚拟桌面客户端的流媒体接收地址是指与接收流媒体的地址相关的信息, 包括但不限于: 虚拟桌面客户端的 IP地址、 端口等信息, 本发明实施例对此不限定。  In this embodiment, the streaming media receiving address of the virtual desktop client refers to the information related to the address of the receiving streaming media, including but not limited to: the IP address, the port, and the like of the virtual desktop client.
604: 虚拟桌面服务器的播放器助手收到该流媒体接收地址后, 转发该流媒体接收地址 给播放器;  604: After receiving the streaming media receiving address, the player assistant of the virtual desktop server forwards the streaming media receiving address to the player;
605: 播放器收到该流媒体接收地址后, 向媒体源发起媒体源建立连接请求, 其中该媒 体源建立连接请求中包括的流媒体接收地址是所述已收到的虚拟桌面客户端的流媒体接收 地址: 606: 媒体源收到该媒体源建立连接请求后, 返回应答给虚拟桌面服务器的播放器, 其 中包括流媒体发送地址; 605: After receiving the streaming media receiving address, the player initiates a media source connection request to the media source, where the media receiving address included in the media source establishing connection request is the streaming media of the received virtual desktop client. receiving address: 606: After receiving the connection request by the media source, the media source returns a player that answers the response to the virtual desktop server, where the streaming media sending address is included;
图 6和图 7中以媒体源将媒体数据保存在缓存 (Cache) 节点为例进行说明, 虚拟桌面 服务器通过播放器与媒体源的 Cache节点之间建立通道进行控制流的传输。  In FIG. 6 and FIG. 7, the media source saves the media data in a cache (Cache) node as an example. The virtual desktop server establishes a channel between the player and the media source's Cache node for control flow transmission.
其中, 播放器与 Cache节点之间通过流媒体控制协议建立连接, 例如, 可以采用 RTSP 与 Cache节点之间建立连接, RTSP是 TCP/IP协议体系中的一个应用层协议, 该协议定义 了在 IP网络上传输多媒体数据的控制协议, 通常视频点播和 IPTV等一般均采用该协议。 具体地, 步骤 605中播放器可以通过 RTSP的 setup消息(媒体源建立连接请求消息), 将流 媒体接收地址传输给 Cache节点, Cache节点在 setup响应消息中返回流媒体发送地址。  The player establishes a connection with the Cache node through a streaming media control protocol. For example, a connection may be established between the RTSP and the Cache node. The RTSP is an application layer protocol in the TCP/IP protocol system, and the protocol defines the IP. A control protocol for transmitting multimedia data on a network, which is generally adopted by video on demand and IPTV. Specifically, in step 605, the player can transmit the streaming media receiving address to the Cache node through the RTSP setup message (the media source establishes the connection request message), and the Cache node returns the streaming media sending address in the setup response message.
本实施例中, 所述流媒体发送地址是指与发送流媒体的地址相关的信息, 包括但不限 于: 发送流媒体的媒体源或缓存节点的 IP地址、 端口等信息, 本发明对此不限定。  In this embodiment, the streaming media sending address refers to information related to the address of the sending streaming media, including but not limited to: sending the media source of the streaming media or the IP address, port, and the like of the cache node, and the present invention does not limited.
另外, 虚拟桌面服务器的播放器还可以采用其它流媒体控制协议与 Cache节点之间建 立连接, 如 HTTP、 SIP等等, 本发明对此不限定。 其中, SIP是会话层的信令控制协议, 用于创建、 修改和释放一个或多个参与者的会话, 通常用于 Internet多媒体会议、 IP电话或 流媒体播放等。  In addition, the player of the virtual desktop server may also establish a connection with the Cache node by using another streaming control protocol, such as HTTP, SIP, etc., which is not limited by the present invention. SIP is a session layer signaling control protocol used to create, modify, and release sessions of one or more participants, usually for Internet multimedia conferencing, IP telephony, or streaming media playback.
607: 虚拟桌面服务器的播放器接收到所述应答后, 将其中的流媒体发送地址发送给播 放器助手;  607: After receiving the response, the player of the virtual desktop server sends the streaming media sending address to the player assistant.
608:播放器助手收到该流媒体发送地址后,将其转发给虚拟桌面客户端的播放器代理; 608: After receiving the streaming address, the player assistant forwards the streaming agent to the player agent of the virtual desktop client.
609: 虚拟桌面客户端的播放器代理接收到该流媒体发送地址后, 根据该流媒体发送地 址与媒体源建立连接, 在流媒体接收地址上接收流媒体, 进行流媒体的播放。 609: After receiving the streaming media sending address, the player proxy of the virtual desktop client establishes a connection with the media source according to the streaming media sending address, and receives the streaming media at the streaming media receiving address to play the streaming media.
具体地, 虚拟桌面客户端的播放器代理可以打开流媒体接收地址的端口, 接收媒体源 发送的流媒体, 开始播放流媒体。  Specifically, the player agent of the virtual desktop client can open the port of the streaming media receiving address, receive the streaming media sent by the media source, and start playing the streaming media.
本实施例中, 虚拟桌面客户端的播放器代理与媒体源 /缓存节点之间可以采用流媒体传 输协议进行流媒体的传输, 如 RTP、 UDP等, 本发明对此不限定。  In this embodiment, the player agent of the virtual desktop client and the media source/cache node may use the streaming media transmission protocol to perform streaming media transmission, such as RTP, UDP, etc., which is not limited by the present invention.
本实施例中, 安装在虚拟桌面客户端的播放器代理在接收到流媒体发送地址后, 根据 该流媒体发送地址与媒体源 /缓存节点建立连接, 媒体源 /缓存节点的流媒体就会直接推送到 虚拟桌面客户端, 由播放器代理进行流媒体的播放, 其中包括流媒体的解压和缓冲等等, 此处不做过多说明。  In this embodiment, after receiving the streaming media sending address, the player agent installed in the virtual desktop client establishes a connection with the media source/cache node according to the streaming media sending address, and the streaming media of the media source/cache node is directly pushed. To the virtual desktop client, the player agent performs streaming media playback, including decompression and buffering of the streaming media, etc., and does not describe too much here.
本实施例提供的上述方法, 通过虚拟桌面服务器直接向虚拟桌面客户端请求并获取流 媒体接收地址并发送给媒体源, 以及将媒体源返回的流媒体发送地址发送给虚拟桌面客户 端, 使得虚拟桌面客户端可以与媒体源建立连接并在流媒体接收地址上接收流媒体, 进行 流媒体的播放, 由于不需要在虚拟桌面服务器进行流媒体的播放, 避免了流媒体的二次转 发, 极大地降低了虚拟桌面服务器的 CPU资源占用和带宽占用, 减轻了虚拟桌面服务器的 负担, 并且通过虚拟桌面客户端与流媒体直接建立连接传输流媒体, 减少了流媒体的延迟, 极大地提高了用户的体验。 实施例 3 The above method provided by the embodiment directly requests and obtains a streaming media receiving address from the virtual desktop server and sends the streaming media receiving address to the media source, and sends the streaming media sending address returned by the media source to the virtual desktop client, so that the virtual The desktop client can establish a connection with the media source and receive the streaming media at the streaming receiving address. Streaming media playback, because there is no need to play streaming media on the virtual desktop server, avoiding secondary forwarding of streaming media, greatly reducing the CPU resource consumption and bandwidth occupation of the virtual desktop server, and reducing the burden on the virtual desktop server. And the virtual desktop client directly establishes a connection and transport streaming media with the streaming media, which reduces the delay of the streaming media and greatly improves the user experience. Example 3
参见图 8, 本发明实施例还提供了一种流媒体播放方法, 由虚拟桌面服务器向虚拟桌面 客户端发送通知消息以获取虚拟桌面客户端的流媒体接收地址, 所述方法包括:  Referring to FIG. 8, the embodiment of the present invention further provides a streaming media playing method, in which a virtual desktop server sends a notification message to a virtual desktop client to obtain a streaming media receiving address of the virtual desktop client, where the method includes:
801: 虚拟桌面服务器接收虚拟桌面客户端发送的播放流媒体的请求;  801: The virtual desktop server receives a request for playing a streaming media sent by the virtual desktop client.
802: 虚拟桌面服务器向虚拟桌面客户端发送播放通知消息, 所述播放通知消息包含播 放控制点的位置信息;  802: The virtual desktop server sends a play notification message to the virtual desktop client, where the play notification message includes location information of the play control point;
所述播放控制点是指播放控制功能, 在本发明中, 虚拟桌面客户端可以具有播放控制 功能, 或者虚拟桌面服务器具有播放控制功能, 因此, 在不同的场景下, 所述播放控制点 位于不同的设备上。 所述播放控制点的位置信息是指所述播放控制点位于虚拟桌面服务器 上还是位于虚拟桌面客户端上, 通常虚拟桌面服务器根据自身的设置可以获知播放控制点 的位置信息, 并且通过所述播放通知消息将其发送给虚拟桌面客户端。 虚拟桌面客户端收 到后, 根据该播放控制点的位置信息可以判断出所述播放控制点位于虚拟桌面服务器上还 是位于虚拟桌面客户端上, 从而进行不同的后续处理过程。  The play control point refers to a play control function. In the present invention, the virtual desktop client may have a play control function, or the virtual desktop server has a play control function. Therefore, in different scenarios, the play control points are different. On the device. The location information of the play control point refers to whether the play control point is located on the virtual desktop server or the virtual desktop client. Generally, the virtual desktop server can know the location information of the play control point according to its own settings, and The notification message sends it to the virtual desktop client. After the virtual desktop client receives the information, it can be determined that the playback control point is located on the virtual desktop server or on the virtual desktop client according to the location information of the playback control point, so that different subsequent processing processes are performed.
803: 当虚拟桌面客户端根据所述播放通知消息中的播放控制点的位置信息确定播放控 制点位于虚拟桌面服务器时, 虚拟桌面服务器接收虚拟桌面客户端发送的流媒体接收地址; 其中, 虚拟桌面客户端如果确定出播放控制点位于虚拟桌面服务器, 则会通过虚拟桌 面服务器将虚拟桌面客户端的流媒体接收地址发送给媒体源; 如果确定出播放控制点位于 虚拟桌面客户端, 则可以直接将流媒体接收地址发送给媒体源。  803: When the virtual desktop client determines, according to the location information of the play control point in the play notification message, that the play control point is located in the virtual desktop server, the virtual desktop server receives the streaming media receiving address sent by the virtual desktop client; wherein, the virtual desktop If the client determines that the play control point is located on the virtual desktop server, the virtual desktop server sends the streaming receiving address of the virtual desktop client to the media source; if it is determined that the playback control point is located in the virtual desktop client, the flow can be directly flowed. The media receiving address is sent to the media source.
804: 虚拟桌面服务器向媒体源发送媒体源建立连接请求, 该媒体源建立连接请求中包 括虚拟桌面客户端的流媒体接收地址;  804: The virtual desktop server sends a media source connection request to the media source, where the media source establishes a connection request including a streaming media receiving address of the virtual desktop client.
805: 虚拟桌面服务器接收媒体源返回的流媒体发送地址;  805: The virtual desktop server receives a streaming media sending address returned by the media source.
806: 虚拟桌面服务器将该流媒体发送地址转发给虚拟桌面客户端, 使得虚拟桌面客户 端根据该流媒体发送地址与媒体源建立连接并在该流媒体接收地址上接收流媒体, 进行流 媒体的播放。  806: The virtual desktop server forwards the streaming media sending address to the virtual desktop client, so that the virtual desktop client establishes a connection with the media source according to the streaming media sending address, and receives the streaming media at the streaming media receiving address, and performs streaming media. Play.
具体地, 上述方法可以通过虚拟桌面服务器中的播放器和播放器助手, 以及虚拟桌面 客户端内的播放器代理来实现, 参见图 7和图 9, 上述方法的具体流程如下: 901: 虚拟桌面服务器的播放器向播放器 Assistant发送播放通知消息, 所述播放通知消 息中包括播放控制点的位置信息; Specifically, the foregoing method may be implemented by using a player and a player assistant in the virtual desktop server, and a player agent in the virtual desktop client. Referring to FIG. 7 and FIG. 9, the specific process of the foregoing method is as follows: 901: The player of the virtual desktop server sends a play notification message to the player Assistant, where the play notification message includes location information of the play control point;
另外, 所述播放通知消息中还可以包括其它与流媒体播放相关的信息, 如播放动作、 Cache节点的地址或链接等信息, 本发明对此不限定。 具体地, 本实施例以播放控制点位于 虚拟桌面服务器为例进行说明。  In addition, the play notification message may further include other information related to streaming media playback, such as a play action, an address or a link of the Cache node, and the like, which is not limited by the present invention. Specifically, the embodiment is described by taking a playback control point in a virtual desktop server as an example.
902: 播放器 Assistant收到该播放通知消息后, 向虚拟桌面客户端的播放器 Agent转发 该播放通知消息;  902: After receiving the play notification message, the player forwards the play notification message to the player agent of the virtual desktop client.
903: 虚拟桌面客户端的播放器 Agent收到该播放通知消息后, 根据其中的播放控制点 的位置信息, 判断播放控制点位于虚拟桌面服务器还是虚拟桌面客户端, 如果判断出播放 控制点位于虚拟桌面服务器, 则发送媒体源建立连接请求消息, 该消息中包括播放器 Agent 所在的虚拟桌面客户端的流媒体接收地址;  903: After receiving the play notification message, the player agent of the virtual desktop client determines, according to the location information of the play control point, whether the play control point is located on the virtual desktop server or the virtual desktop client, if it is determined that the play control point is located on the virtual desktop The server sends a media source connection request message, where the message includes a streaming media receiving address of the virtual desktop client where the player agent is located;
904: 虚拟桌面服务器的播放器 Assistant收到该请求消息后, 向播放器转发该媒体源建 立连接请求消息;  904: The player of the virtual desktop server, after receiving the request message, forwards the media source connection request message to the player;
905: 播放器收到该媒体源建立连接请求消息后, 向媒体源发送媒体源建立连接请求消 息, 其中包括虚拟桌面客户端的流媒体接收地址;  905: After receiving the media source connection request message, the player sends a media source connection request message to the media source, where the virtual desktop client receives the streaming media receiving address.
以媒体数据保存在 Cache节点为例,播放器可以具体地发送基于 RTSP的媒体源建立连 接请求消息 (Setup消息) 给 Cache节点, 与 Cache节点建立连接, 当然也可以采用其它协 议, 本发明对此不限定。  For example, the media data is stored in the Cache node, and the player may specifically send an RTSP-based media source connection request message (Setup message) to the Cache node to establish a connection with the Cache node, and of course, other protocols may also be used. Not limited.
906: 媒体源收到该媒体源建立连接请求消息后, 返回应答消息给虚拟桌面服务器的播 放器, 其中包括流媒体发送地址;  906: After receiving the connection request message, the media source returns a response message to the broadcaster of the virtual desktop server, where the media sending address is included;
907: 虚拟桌面服务器的播放器收到后, 向播放器 Assistant发送所述应答消息; 908: 播放器 Assistant将所述应答消息转发给虚拟桌面客户端的播放器 Agent;  907: After receiving the player of the virtual desktop server, sending the response message to the player assistant; 908: the player assistant forwards the response message to the player agent of the virtual desktop client;
909: 虚拟桌面客户端的播放器 Agent收到所述应答消息后, 根据其中的流媒体发送地 址与媒体源建立连接, 并在流媒体接收地址上接收流媒体, 进行流媒体的播放。  909: After receiving the response message, the agent of the virtual desktop client establishes a connection with the media source according to the streaming media sending address, and receives the streaming media at the streaming media receiving address to play the streaming media.
具体地, 播放器代理可以打开流媒体接收地址的端口, 开始接收媒体源发送的流媒体, 播放流媒体。  Specifically, the player agent can open the port of the streaming media receiving address, start receiving the streaming media sent by the media source, and play the streaming media.
本实施例提供的上述方法, 通过虚拟桌面服务器向虚拟桌面客户端发送通知消息并获 取流媒体接收地址并发送给媒体源, 以及将媒体源返回的流媒体发送地址发送给虚拟桌面 客户端, 使得虚拟桌面客户端可以与媒体源建立连接并在流媒体接收地址上接收流媒体, 进行流媒体的播放, 由于不需要在虚拟桌面服务器进行流媒体的播放, 避免了流媒体的二 次转发, 极大地降低了虚拟桌面服务器的 CPU资源占用和带宽占用, 减轻了虚拟桌面服务 器的负担, 并且通过虚拟桌面客户端与流媒体直接建立连接传输流媒体, 减少了流媒体的 延迟, 极大地提高了用户的体验。 实施例 4 The foregoing method provided by the embodiment sends a notification message to the virtual desktop client through the virtual desktop server, acquires the streaming media receiving address, and sends the streaming media receiving address to the media source, and sends the streaming media sending address returned by the media source to the virtual desktop client, so that The virtual desktop client can establish a connection with the media source and receive the streaming media at the streaming media receiving address to play the streaming media. Since the streaming of the virtual desktop server is not required, the secondary forwarding of the streaming media is avoided. The earth reduces the CPU resource consumption and bandwidth usage of the virtual desktop server, and reduces the virtual desktop service. The burden of the device, and the direct connection between the virtual desktop client and the streaming media to transport the streaming media, reducing the delay of the streaming media, greatly improving the user experience. Example 4
参见图 10, 本发明实施例还提供了一种流媒体播放方法, 由虚拟桌面客户端与媒体源 直接交互以便双方交换流媒体接收地址和流媒体发送地址, 所述方法包括:  Referring to FIG. 10, an embodiment of the present invention further provides a streaming media playing method, where a virtual desktop client directly interacts with a media source to exchange a streaming media receiving address and a streaming media sending address, where the method includes:
1001: 虚拟桌面客户端向桌面服务器发送播放流媒体的请求;  1001: The virtual desktop client sends a request to play streaming media to the desktop server;
1002: 虚拟桌面客户端接收虚拟桌面服务器发送的播放通知消息, 所述播放通知消息 包含播放控制点的位置信息;  1002: The virtual desktop client receives a play notification message sent by the virtual desktop server, where the play notification message includes location information of the play control point;
1003: 当虚拟桌面客户端根据所述播放通知消息中的播放控制点的位置信息确定播放 控制点位于虚拟桌面客户端时, 虚拟桌面客户端向媒体源发送媒体源建立连接请求, 所述 媒体源建立连接请求中包括虚拟桌面客户端的流媒体接收地址;  1003: When the virtual desktop client determines, according to the location information of the play control point in the play notification message, that the play control point is located in the virtual desktop client, the virtual desktop client sends a media source connection request to the media source, where the media source is Establishing a connection request includes a streaming media receiving address of the virtual desktop client;
1004: 虚拟桌面客户端接收媒体源返回的流媒体发送地址;  1004: The virtual desktop client receives a streaming media sending address returned by the media source;
1005: 虚拟桌面客户端根据该流媒体发送地址与媒体源建立连接, 并在所述流媒体接 收地址上接收流媒体, 进行流媒体的播放。  1005: The virtual desktop client establishes a connection with the media source according to the streaming media sending address, and receives the streaming media on the streaming media receiving address to perform streaming media playback.
具体地, 上述方法可以通过虚拟桌面服务器中的播放器和播放器助手, 以及虚拟桌面 客户端内的播放器代理来实现, 参见图 11和图 12, 上述方法的具体流程如下:  Specifically, the foregoing method can be implemented by using a player and a player assistant in the virtual desktop server, and a player agent in the virtual desktop client. Referring to FIG. 11 and FIG. 12, the specific process of the foregoing method is as follows:
1101: 虚拟桌面服务器的播放器向播放器 Assistant发送播放通知消息, 其中包括播放 控制点的位置信息;  1101: The player of the virtual desktop server sends a play notification message to the player assistant, where the location information of the play control point is included;
另外, 所述播放通知消息中还可以包括其它与流媒体播放相关的信息, 如播放动作、 In addition, the play notification message may further include other information related to streaming media playback, such as a play action,
Cache节点的地址或链接等信息, 本发明对此不限定。 具体地, 本实施例以播放控制点位于 虚拟桌面客户端为例进行说明。 The information such as the address or the link of the Cache node is not limited by the present invention. Specifically, in this embodiment, the playback control point is located in the virtual desktop client as an example.
1102: 虚拟机桌面服务器的播放器 Assistant向虚拟桌面客户端的播放器 Agent转发所 述播放通知消息;  1102: The player of the virtual machine desktop server forwards the play notification message to the player agent of the virtual desktop client;
1103:虚拟桌面客户端的播放器 Agent收到所述播放通知消息后,根据其中的播放控制 点的位置信息, 判断播放控制点是位于虚拟桌面服务器还是位于虚拟桌面客户端, 如果判 断出位于虚拟桌面客户端,则播放器 Agent直接向媒体源发送媒体源建立连接请求消息,其 中包括虚拟桌面客户端的流媒体接收地址;  1103: After receiving the play notification message, the player agent of the virtual desktop client determines, according to the location information of the play control point, whether the play control point is located on the virtual desktop server or the virtual desktop client, if it is determined to be located in the virtual desktop The client, the player agent directly sends a media source connection request message to the media source, where the virtual desktop client receives the streaming media receiving address;
具体地, 以媒体数据保存在 Cache节点为例, 播放器 Agent可以具体地发送基于 RTSP 的媒体源建立连接请求消息 (Setup消息) 给 Cache节点, 与 Cache节点建立连接, 当然也 可以采用其它协议, 本发明对此不限定。 1104: 媒体源收到虚拟桌面客户端的播放器 Agent发送的媒体源建立连接请求消息后, 返回应答消息, 其中包括流媒体发送地址; Specifically, the media agent is stored in the Cache node as an example, and the player agent may specifically send an RTSP-based media source connection request message (Setup message) to the Cache node to establish a connection with the Cache node, and of course, other protocols may also be used. The present invention is not limited thereto. 1104: After receiving the connection request message sent by the media source sent by the player agent of the virtual desktop client, the media source returns a response message, including a streaming media sending address.
1105:虚拟桌面客户端的播放器 Agent收到所述应答消息后,根据其中的流媒体发送地 址与媒体源建立连接, 并在流媒体接收地址上接收流媒体, 进行流媒体的播放。  1105: After receiving the response message, the agent of the virtual desktop client establishes a connection with the media source according to the streaming media sending address, and receives the streaming media at the streaming media receiving address to play the streaming media.
具体地,播放器 Agent可以打开流媒体接收地址的端口,开始接收媒体源发送的流媒体, 播放流媒体。  Specifically, the player agent can open the port of the streaming media receiving address, start receiving the streaming media sent by the media source, and play the streaming media.
本实施例提供的上述方法, 通过虚拟桌面服务器向虚拟桌面客户端发送通知消息, 通 知播放控制点的位置信息, 使得虚拟桌面客户端直接将流媒体接收地址发送给媒体源, 并 根据媒体源返回的流媒体发送地址与媒体源建立连接, 并在流媒体接收地址上接收流媒体, 进行流媒体的播放, 由于不需要在虚拟桌面服务器进行流媒体的播放, 避免了流媒体的二 次转发, 极大地降低了虚拟桌面服务器的 CPU资源占用和带宽占用, 减轻了虚拟桌面服务 器的负担, 并且通过虚拟桌面客户端与流媒体直接建立连接传输流媒体, 减少了流媒体的 延迟, 极大地提高了用户的体验。 另外, 在本发明中, 上述实施例提供的任一方法中, 进一步地, 所述方法还可以包括 以下步骤:  The method provided in this embodiment sends a notification message to the virtual desktop client through the virtual desktop server, and notifies the location information of the playback control point, so that the virtual desktop client directly sends the streaming media receiving address to the media source, and returns according to the media source. The streaming media sending address establishes a connection with the media source, and receives the streaming media on the streaming media receiving address to perform streaming media playback. Since the streaming media is not required to be played on the virtual desktop server, the secondary forwarding of the streaming media is avoided. The CPU usage and bandwidth usage of the virtual desktop server are greatly reduced, the burden of the virtual desktop server is reduced, and the connection and transmission of the streaming media is directly established through the virtual desktop client and the streaming media, thereby reducing the delay of the streaming media and greatly improving the User experience. In addition, in the present invention, in any of the methods provided by the foregoing embodiments, the method may further include the following steps:
在虚拟桌面客户端进行流媒体的播放之后, 虚拟桌面服务器接收虚拟桌面客户端发送 的播放器调整指令, 根据所述播放器调整指令对虚拟桌面服务器的播放器执行调整操作, 并将所述调整操作发送给虚拟桌面客户端, 使得虚拟桌面客户端对本地的播放器执行相同 的调整操作。  After the virtual desktop client plays the streaming media, the virtual desktop server receives the player adjustment instruction sent by the virtual desktop client, performs an adjustment operation on the player of the virtual desktop server according to the player adjustment instruction, and performs the adjustment. The operation is sent to the virtual desktop client, causing the virtual desktop client to perform the same adjustments to the local player.
具体地, 可以通过虚拟桌面服务器内的播放器和播放器助手, 以及虚拟桌面客户端内 的播放器代理来实现, 参见图 13, 具体流程如下:  Specifically, it can be implemented by a player and a player assistant in the virtual desktop server, and a player agent in the virtual desktop client. Referring to FIG. 13, the specific process is as follows:
1301: 虚拟桌面服务器的播放器收到虚拟桌面客户端的播放器代理发来的播放器调整 指令, 根据该播放器调整指令对虚拟桌面服务器的播放器执行调整操作;  1301: The player of the virtual desktop server receives a player adjustment instruction sent by the player agent of the virtual desktop client, and performs an adjustment operation on the player of the virtual desktop server according to the player adjustment instruction;
其中, 所述播放器调整指令是由虚拟桌面客户端的用户触发的, 用于对播放器的窗口 进行调整, 如调整窗口的大小等, 本发明对此不限定;  The player adjustment command is triggered by the user of the virtual desktop client, and is used to adjust the window of the player, such as adjusting the size of the window, etc., which is not limited by the present invention;
1302: 虚拟桌面服务器的播放器 Assistant通过过滤器接口 (Filter接口)捕获所述播放 器执行的调整操作, 并通过消息接口将其发送给虚拟桌面客户端的播放器 Agent;  1302: The player of the virtual desktop server captures the adjustment operation performed by the player through the filter interface (Filter interface), and sends it to the player agent of the virtual desktop client through the message interface;
1303:虚拟桌面客户端的播放器 Agent收到该调整操作后,对虚拟桌面客户端的播放器 执行相同的调整操作。  1303: The player of the virtual desktop client performs the same adjustment operation on the player of the virtual desktop client after receiving the adjustment operation.
在本发明中, 当用户对播放器进行针对流媒体控制的操作, 比如控制流媒体的暂停或 者快进等操作时, 虚拟桌面服务器的播放器会直接与媒体源或缓存节点建立连接, 通知媒 体源或者缓存节点进行流媒体的暂停或者快进等操作, 不必通知虚拟桌面客户端的播放器 代理; 当用户对播放器进行针对播放器本身设置的操作, 比如对播放器的窗口大小进行调 整等操作时, 虚拟桌面服务器的播放器会执行相应的操作, 并由播放器助手捕获到该操作 后发送给虚拟桌面客户端的播放器代理, 从而使得虚拟桌面客户端的播放器代理能够执行 相同的操作, 进行界面上的相关显示, 保证虚拟桌面服务器和虚拟桌面客户端双方播放器 调整的一致性。 实施例 5 In the present invention, when the user performs operations on the player for streaming control, such as controlling the suspension of streaming media or When the user fast forwards, the player of the virtual desktop server directly establishes a connection with the media source or the cache node, notifies the media source or the cache node to perform the pause or fast forward operation of the streaming media, and does not need to notify the player agent of the virtual desktop client. When the user performs operations on the player itself, such as adjusting the size of the player's window, the player of the virtual desktop server performs the corresponding operation, and the player assistant captures the operation. The player agent sent to the virtual desktop client, so that the player agent of the virtual desktop client can perform the same operation, perform related display on the interface, and ensure the consistency of the player adjustment between the virtual desktop server and the virtual desktop client. Example 5
参见图 14, 本发明实施例还提供了一种虚拟桌面服务器, 包括:  Referring to FIG. 14, an embodiment of the present invention further provides a virtual desktop server, including:
第一获取模块 11, 用于接收虚拟桌面客户端发送的播放流媒体的请求, 获取所述虚拟 桌面客户端的流媒体接收地址;  The first obtaining module 11 is configured to receive a request for playing a streaming media sent by the virtual desktop client, and obtain a streaming media receiving address of the virtual desktop client.
第二获取模块 12, 用于向媒体源发送媒体源建立连接请求, 所述媒体源建立连接请求 中包括所述流媒体接收地址, 接收所述媒体源返回的流媒体发送地址;  The second obtaining module 12 is configured to send a media source connection request to the media source, where the media source connection request includes the streaming media receiving address, and the streaming media sending address returned by the media source is received;
转发模块 13, 用于将所述流媒体发送地址转发给所述虚拟桌面客户端, 使得所述虚拟 桌面客户端根据所述流媒体发送地址与所述媒体源建立连接并在所述流媒体接收地址上接 收流媒体, 进行流媒体的播放。  The forwarding module 13 is configured to forward the streaming media sending address to the virtual desktop client, so that the virtual desktop client establishes a connection with the media source according to the streaming media sending address, and receives the streaming media. Receive streaming media at the address to play streaming media.
参见图 15, 第一获取模块 11可以包括:  Referring to FIG. 15, the first obtaining module 11 may include:
请求单元 lla, 用于向所述虚拟桌面客户端发送流媒体接收地址的请求消息; 获取单元 lib, 用于接收所述虚拟桌面客户端返回的应答消息, 从所述应答消息中获取 所述虚拟桌面客户端的流媒体接收地址。  a requesting unit 11a, configured to send a request message of a streaming media receiving address to the virtual desktop client, and an obtaining unit lib, configured to receive a response message returned by the virtual desktop client, and obtain the virtual message from the response message The streaming receiving address of the desktop client.
或者, 第一获取模块 11包括:  Alternatively, the first obtaining module 11 includes:
通知单元 lie, 用于向所述虚拟桌面客户端发送播放通知消息, 所述播放通知消息包含 播放控制点的位置信息;  a notification unit lie, configured to send a play notification message to the virtual desktop client, where the play notification message includes location information of a play control point;
接收单元 lld,用于当所述虚拟桌面客户端根据所述播放通知消息中的所述播放控制点 的位置信息确定所述播放控制点位于所述虚拟桌面服务器时, 接收所述虚拟桌面客户端发 送的流媒体接收地址。  The receiving unit 11d is configured to receive the virtual desktop client when the virtual desktop client determines that the play control point is located in the virtual desktop server according to the location information of the play control point in the play notification message. The streamed media receiving address.
本实施例中, 所述服务器还可以包括:  In this embodiment, the server may further include:
调整模块 14, 用于在所述虚拟桌面客户端进行流媒体的播放之后, 接收所述虚拟桌面 客户端发送的播放器调整指令, 根据所述播放器调整指令对所述虚拟桌面服务器的播放器 执行调整操作, 并将所述调整操作发送给所述虚拟桌面客户端, 使得所述虚拟桌面客户端 对本地的播放器执行相同的调整操作。 The adjusting module 14 is configured to receive, after the streaming of the virtual desktop client, the player adjustment instruction sent by the virtual desktop client, and the player of the virtual desktop server according to the player adjustment instruction Performing an adjustment operation, and sending the adjustment operation to the virtual desktop client, so that the virtual desktop client Perform the same adjustments to the local player.
本发明实施例提供的上述虚拟桌面服务器, 通过获取虚拟桌面客户端的流媒体接收地 址并发送给媒体源, 以及将媒体源返回的流媒体发送地址发送给虚拟桌面客户端, 使得虚 拟桌面客户端可以与媒体源建立连接并在流媒体接收地址上接收流媒体, 进行流媒体的播 放, 由于不需要在虚拟桌面服务器进行流媒体的播放, 避免了流媒体的二次转发, 极大地 降低了虚拟桌面服务器的 CPU资源占用和带宽占用, 减轻了虚拟桌面服务器的负担, 并且 通过虚拟桌面客户端与流媒体直接建立连接传输流媒体, 减少了流媒体的延迟, 极大地提 高了用户的体验。 实施例 6  The virtual desktop server provided by the embodiment of the present invention obtains a streaming media receiving address of the virtual desktop client and sends the address to the media source, and sends the streaming media sending address returned by the media source to the virtual desktop client, so that the virtual desktop client can Establishing a connection with the media source and receiving the streaming media at the streaming media receiving address, and playing the streaming media, since the streaming of the virtual desktop server is not required, the secondary forwarding of the streaming media is avoided, and the virtual desktop is greatly reduced. The server's CPU resource consumption and bandwidth consumption reduce the burden on the virtual desktop server, and directly connect the streaming media to the streaming media through the virtual desktop client, which reduces the delay of streaming media and greatly improves the user experience. Example 6
参见图 16, 本发明实施例还提供了一种虚拟桌面客户端, 包括:  Referring to FIG. 16, an embodiment of the present invention further provides a virtual desktop client, including:
请求模块 21, 用于向虚拟桌面服务器发送播放流媒体的请求;  The requesting module 21 is configured to send a request for playing the streaming media to the virtual desktop server;
发送模块 22, 用于将所述虚拟桌面客户端的流媒体接收地址发送给所述虚拟桌面服务 器;  The sending module 22 is configured to send a streaming media receiving address of the virtual desktop client to the virtual desktop server;
接收模块 23, 用于当所述虚拟桌面服务器向媒体源发送包含所述流媒体接收地址的媒 体源建立连接请求且收到所述媒体源返回的流媒体发送地址后, 接收所述虚拟桌面服务器 转发的所述流媒体发送地址;  The receiving module 23 is configured to: after the virtual desktop server sends a media source connection request including the streaming media receiving address to the media source, and receives a streaming media sending address returned by the media source, receiving the virtual desktop server Forwarding the streaming media sending address;
播放模块 24, 用于根据所述流媒体发送地址与所述媒体源建立连接, 并在所述流媒体 接收地址上接收流媒体, 进行流媒体的播放。  The playing module 24 is configured to establish a connection with the media source according to the streaming media sending address, and receive the streaming media at the streaming media receiving address to perform streaming media playback.
参见图 17, 发送模块 22可以包括:  Referring to Figure 17, the transmitting module 22 can include:
请求接收单元 22a, 用于接收所述虚拟桌面服务器发送的流媒体接收地址的请求消息; 应答单元 22b, 用于在所述请求接收单元收到所述请求消息后, 返回应答消息给所述虚 拟桌面服务器, 所述应答消息中包括所述虚拟桌面客户端的流媒体接收地址。  a request receiving unit 22a, configured to receive a request message of a streaming media receiving address sent by the virtual desktop server, and a response unit 22b, configured to: after the request receiving unit receives the request message, return a response message to the virtual The desktop server, where the response message includes a streaming media receiving address of the virtual desktop client.
或者, 发送模块 22包括:  Alternatively, the sending module 22 includes:
通知接收单元 22c, 用于接收所述虚拟桌面服务器发送的播放通知消息, 所述播放通知 消息包含播放控制点的位置信息;  The notification receiving unit 22c is configured to receive a play notification message sent by the virtual desktop server, where the play notification message includes location information of a play control point;
确定单元 22d, 用于根据所述播放通知消息中的所述播放控制点的位置信息, 确定所述 播放控制点是否位于所述虚拟桌面服务器;  a determining unit 22d, configured to determine, according to the location information of the play control point in the play notification message, whether the play control point is located in the virtual desktop server;
发送单元 22e, 用于当所述确定单元确定所述播放控制点位于所述虚拟桌面服务器时, 发送所述虚拟桌面客户端的流媒体接收地址给所述虚拟桌面服务器。  The sending unit 22e is configured to: when the determining unit determines that the play control point is located in the virtual desktop server, send a streaming media receiving address of the virtual desktop client to the virtual desktop server.
本实施例中, 所述虚拟桌面客户端还可以包括: 调整模块 25, 用于在播放模块 24进行流媒体的播放之后, 向所述虚拟桌面服务器发送 播放器调整指令, 当所述虚拟桌面服务器根据所述播放器调整指令对所述虚拟桌面服务器 的播放器执行调整操作后, 接收所述虚拟桌面服务器发送的所述调整操作, 根据收到的所 述调整操作对本地的播放器执行相同的调整操作。 In this embodiment, the virtual desktop client may further include: The adjusting module 25 is configured to send, after the playing module 24 plays the streaming media, a player adjustment instruction to the virtual desktop server, where the virtual desktop server plays the virtual desktop server according to the player adjustment instruction. After performing the adjusting operation, the device receives the adjustment operation sent by the virtual desktop server, and performs the same adjustment operation on the local player according to the received adjustment operation.
本发明实施例提供的上述虚拟桌面客户端, 通过虚拟桌面服务器将虚拟桌面客户端的 流媒体接收地址发送给媒体源, 并获取媒体源返回的流媒体发送地址, 从而可以与媒体源 建立连接并在流媒体接收地址上接收流媒体, 进行流媒体的播放, 由于不需要在虚拟桌面 服务器进行流媒体的播放,避免了流媒体的二次转发,极大地降低了虚拟桌面服务器的 CPU 资源占用和带宽占用, 减轻了虚拟桌面服务器的负担, 并且通过虚拟桌面客户端与流媒体 直接建立连接传输流媒体, 减少了流媒体的延迟, 极大地提高了用户的体验。 实施例 7  The virtual desktop client provided by the embodiment of the present invention sends a streaming media receiving address of the virtual desktop client to the media source through the virtual desktop server, and obtains a streaming media sending address returned by the media source, so that a connection can be established with the media source. The streaming media receives the streaming media and plays the streaming media. Since the streaming of the virtual desktop server is not required, the secondary forwarding of the streaming media is avoided, which greatly reduces the CPU resource usage and bandwidth of the virtual desktop server. Occupancy, reducing the burden on the virtual desktop server, and directly connecting the streaming media through the virtual desktop client and streaming media, reducing the delay of streaming media and greatly improving the user experience. Example 7
参见图 18, 本发明实施例还提供了一种虚拟桌面客户端, 包括:  Referring to FIG. 18, an embodiment of the present invention further provides a virtual desktop client, including:
请求模块 31, 用于端向虚拟桌面服务器发送播放流媒体的请求;  The requesting module 31 is configured to send a request for playing the streaming media to the virtual desktop server;
第一接收模块 32, 用于接收虚拟桌面服务器发送的播放通知消息, 所述播放通知消息 包含播放控制点的位置信息;  The first receiving module 32 is configured to receive a play notification message sent by the virtual desktop server, where the play notification message includes location information of the play control point;
发送模块 33, 用于当虚拟桌面客户端根据所述播放通知消息中的播放控制点的位置信 息确定所述播放控制点位于虚拟桌面客户端时, 向媒体源发送媒体源建立连接请求, 所述 媒体源建立连接请求中包括虚拟桌面客户端的流媒体接收地址;  The sending module 33 is configured to: when the virtual desktop client determines, according to the location information of the play control point in the play notification message, that the play control point is located in the virtual desktop client, send a media source connection request to the media source, where The media source connection request includes a streaming media receiving address of the virtual desktop client;
第二接收模块 34, 用于接收媒体源返回的流媒体发送地址;  a second receiving module 34, configured to receive a streaming media sending address returned by the media source;
播放模块 35, 用于根据所述流媒体发送地址与媒体源建立连接, 并在所述流媒体接收 地址上接收流媒体, 进行流媒体的播放。  The playing module 35 is configured to establish a connection with the media source according to the streaming media sending address, and receive the streaming media on the streaming media receiving address to perform streaming media playback.
本实施例中, 所述客户端还可以包括:  In this embodiment, the client may further include:
调整模块, 用于在播放模块 35进行流媒体的播放之后, 向虚拟桌面服务器发送播放器 调整指令, 当虚拟桌面服务器根据所述播放器调整指令对虚拟桌面服务器的播放器执行调 整操作后, 接收虚拟桌面服务器发送的所述调整操作, 根据收到的调整操作对本地的播放 器执行相同的调整操作。  And an adjustment module, configured to send a player adjustment instruction to the virtual desktop server after the playback module 35 performs streaming media playback, and receive the adjustment operation after the virtual desktop server performs an adjustment operation on the virtual desktop server player according to the player adjustment instruction. The adjustment operation sent by the virtual desktop server performs the same adjustment operation on the local player according to the received adjustment operation.
本发明实施例提供的上述虚拟桌面客户端, 根据虚拟桌面服务器发送的播放通知消息 确定播放控制点位于虚拟桌面客户端后, 将虚拟桌面客户端的流媒体接收地址直接发送给 媒体源, 并获取媒体源返回的流媒体发送地址, 从而可以与媒体源建立连接并在流媒体接 收地址上接收流媒体, 进行流媒体的播放, 由于不需要在虚拟桌面服务器进行流媒体的播 放,避免了流媒体的二次转发,极大地降低了虚拟桌面服务器的 CPU资源占用和带宽占用, 减轻了虚拟桌面服务器的负担, 并且通过虚拟桌面客户端与流媒体直接建立连接传输流媒 体, 减少了流媒体的延迟, 极大地提高了用户的体验。 实施例 8 The virtual desktop client provided by the embodiment of the present invention determines that the playback control point is located on the virtual desktop client according to the play notification message sent by the virtual desktop server, and directly sends the streaming media receiving address of the virtual desktop client to the media source, and obtains the media. The streaming media sending address returned by the source, so that a connection can be established with the media source and the streaming media is received at the streaming media receiving address, and the streaming media is played, since the streaming of the virtual desktop server is not required. It avoids the secondary forwarding of streaming media, greatly reduces the CPU resource usage and bandwidth usage of the virtual desktop server, reduces the burden on the virtual desktop server, and directly establishes a connection and transmission streaming media through the virtual desktop client and the streaming media. Reduce the delay of streaming media and greatly improve the user experience. Example 8
参见图 19, 本发明实施例还提供了一种流媒体播放系统, 包括: 如实施例 5所述的虚 拟桌面服务器 41, 和如实施例 6所述的虚拟桌面客户端 42。  Referring to FIG. 19, an embodiment of the present invention further provides a streaming media playing system, including: a virtual desktop server 41 as described in Embodiment 5, and a virtual desktop client 42 as described in Embodiment 6.
其中, 虚拟桌面服务器 41 的功能, 以及虚拟桌面客户端 42的功能详见上述实施例中 的描述, 此处不赘述。 所述流媒体播放系统可以执行上述任一实施例中的方法, 具体过程 详见方法实施例的描述, 此处不赘述。  For details, the functions of the virtual desktop server 41 and the functions of the virtual desktop client 42 are described in the foregoing embodiments, and are not described here. The streaming media playing system may perform the method in any of the foregoing embodiments. For details, refer to the description of the method embodiment, and details are not described herein.
本发明实施例提供的上述流媒体播放系统, 通过虚拟桌面服务器获取虚拟桌面客户端 的流媒体接收地址并发送给媒体源, 以及将媒体源返回的流媒体发送地址发送给虚拟桌面 客户端, 或者通过虚拟桌面客户端直接将流媒体接收地址发送给媒体源并从媒体源获取流 媒体发送地址, 使得虚拟桌面客户端可以与媒体源建立连接并在流媒体接收地址上接收流 媒体, 进行流媒体的播放, 由于不需要在虚拟桌面服务器进行流媒体的播放, 避免了流媒 体的二次转发, 极大地降低了虚拟桌面服务器的 CPU资源占用和带宽占用, 减轻了虚拟桌 面服务器的负担, 并且通过虚拟桌面客户端与流媒体直接建立连接传输流媒体, 减少了流 媒体的延迟, 极大地提高了用户的体验。 需要说明的是: 上述实施例提供的流媒体播放系统在进行流媒体播放时, 仅以上述各 功能模块的划分进行举例说明, 实际应用中, 可以根据需要而将上述功能分配由不同的功 能模块完成, 即将装置的内部结构划分成不同的功能模块, 以完成以上描述的全部或者部 分功能。 另外, 上述实施例提供的流媒体播放系统与流媒体播放方法实施例属于同一构思, 其具体实现过程详见方法实施例, 这里不再赘述。 本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完 成, 也可以通过程序来指令相关的硬件完成, 所述的程序可以存储于一种计算机可读存储 介质中, 上述提到的存储介质可以是只读存储器, 磁盘或光盘等。  The streaming media playing system provided by the embodiment of the present invention obtains a streaming media receiving address of the virtual desktop client by using the virtual desktop server, and sends the streaming media receiving address to the media source, and sends the streaming media sending address returned by the media source to the virtual desktop client, or The virtual desktop client directly sends the streaming media receiving address to the media source and obtains the streaming media sending address from the media source, so that the virtual desktop client can establish a connection with the media source and receive the streaming media at the streaming media receiving address, and perform streaming media. Playback, because the virtual desktop server does not need to play the streaming media, avoiding the secondary forwarding of the streaming media, greatly reducing the CPU resource consumption and bandwidth occupation of the virtual desktop server, reducing the burden of the virtual desktop server, and The desktop client directly connects to the streaming media to transmit streaming media, which reduces the delay of streaming media and greatly improves the user experience. It should be noted that, in the streaming media playing system provided by the foregoing embodiment, only the division of each functional module is used for example. In an actual application, the foregoing function may be allocated by different functional modules according to requirements. Upon completion, the internal structure of the device is divided into different functional modules to perform all or part of the functions described above. In addition, the streaming media playing system and the streaming media playing method are provided in the same embodiment. For details, refer to the method embodiment, and details are not described herein. A person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium. The storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.
以上所述仅为本发明的较佳实施例, 并不用以限制本发明, 凡在本发明的精神和原则 之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。  The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., which are within the spirit and scope of the present invention, should be included in the protection of the present invention. Within the scope.

Claims

权 利 要 求 书 Claim
1、 一种流媒体播放方法, 其特征在于, 所述方法包括:  A streaming media playing method, the method comprising:
虚拟桌面服务器接收虚拟桌面客户端发送的播放流媒体的请求, 获取所述虚拟桌面客户 端的流媒体接收地址;  The virtual desktop server receives the request for playing the streaming media sent by the virtual desktop client, and obtains the streaming media receiving address of the virtual desktop client;
所述虚拟桌面服务器向媒体源发送媒体源建立连接请求, 所述媒体源建立连接请求中包 括所述流媒体接收地址;  The virtual desktop server sends a media source connection request to the media source, where the media source connection request includes the streaming media receiving address;
所述虚拟桌面服务器接收所述媒体源返回的流媒体发送地址;  Receiving, by the virtual desktop server, a streaming media sending address returned by the media source;
所述虚拟桌面服务器将所述流媒体发送地址转发给所述虚拟桌面客户端, 使得所述虚拟 桌面客户端根据所述流媒体发送地址与所述媒体源建立连接并在所述流媒体接收地址上接收 流媒体, 进行流媒体的播放。  Forwarding, by the virtual desktop server, the streaming media sending address to the virtual desktop client, so that the virtual desktop client establishes a connection with the media source according to the streaming media sending address, and receives an address in the streaming media. Receive streaming media and play streaming media.
2、根据权利要求 1所述的方法, 其特征在于, 获取所述虚拟桌面客户端的流媒体接收地 址, 包括: The method according to claim 1, wherein the obtaining a streaming media receiving address of the virtual desktop client comprises:
所述虚拟桌面服务器向所述虚拟桌面客户端发送流媒体接收地址的请求消息; 所述虚拟桌面服务器接收所述虚拟桌面客户端返回的应答消息, 从所述应答消息中获取 所述虚拟桌面客户端的流媒体接收地址。  Sending, by the virtual desktop server, a request message of a streaming media receiving address to the virtual desktop client; the virtual desktop server receiving a response message returned by the virtual desktop client, and acquiring the virtual desktop client from the response message The streaming media receives the address.
3、根据权利要求 1所述的方法, 其特征在于, 获取所述虚拟桌面客户端的流媒体接收地 址, 包括: The method according to claim 1, wherein the obtaining a streaming media receiving address of the virtual desktop client comprises:
所述虚拟桌面服务器向所述虚拟桌面客户端发送播放通知消息, 所述播放通知消息包含 播放控制点的位置信息;  The virtual desktop server sends a play notification message to the virtual desktop client, where the play notification message includes location information of a play control point;
当所述虚拟桌面客户端根据所述播放通知消息中的所述播放控制点的位置信息确定所述 播放控制点位于所述虚拟桌面服务器时, 所述虚拟桌面服务器接收所述虚拟桌面客户端发送 的流媒体接收地址。  When the virtual desktop client determines that the play control point is located in the virtual desktop server according to the location information of the play control point in the play notification message, the virtual desktop server receives the virtual desktop client to send Streaming media receiving address.
4、根据权利要求 1至 3中任一项所述的方法, 其特征在于, 所述虚拟桌面客户端进行流 媒体的播放之后, 还包括: The method according to any one of claims 1 to 3, further comprising: after the playing of the streaming media by the virtual desktop client, the method further comprises:
所述虚拟桌面服务器接收所述虚拟桌面客户端发送的播放器调整指令, 根据所述播放器 调整指令对所述虚拟桌面服务器的播放器执行调整操作, 并将所述调整操作发送给所述虚拟 桌面客户端, 使得所述虚拟桌面客户端对本地的播放器执行相同的调整操作。 Receiving, by the virtual desktop server, a player adjustment instruction sent by the virtual desktop client, performing an adjustment operation on the player of the virtual desktop server according to the player adjustment instruction, and sending the adjustment operation to the virtual The desktop client causes the virtual desktop client to perform the same adjustment operation on the local player.
5、 一种流媒体播放方法, 其特征在于, 所述方法包括: A streaming media playing method, the method comprising:
虚拟桌面客户端向虚拟桌面服务器发送播放流媒体的请求;  The virtual desktop client sends a request to play the streaming media to the virtual desktop server;
所述虚拟桌面客户端将所述虚拟桌面客户端的流媒体接收地址发送给所述虚拟桌面服务 器;  Sending, by the virtual desktop client, a streaming media receiving address of the virtual desktop client to the virtual desktop server;
当所述虚拟桌面服务器向媒体源发送包含所述流媒体接收地址的媒体源建立连接请求且 收到所述媒体源返回的流媒体发送地址后, 所述虚拟桌面客户端接收所述虚拟桌面服务器转 发的所述流媒体发送地址;  After the virtual desktop server sends a media source connection request including the streaming media receiving address to the media source and receives a streaming media sending address returned by the media source, the virtual desktop client receives the virtual desktop server. Forwarding the streaming media sending address;
所述虚拟桌面客户端根据所述流媒体发送地址与所述媒体源建立连接, 并在所述流媒体 接收地址上接收流媒体, 进行流媒体的播放。  The virtual desktop client establishes a connection with the media source according to the streaming media sending address, and receives streaming media at the streaming media receiving address to perform streaming media playback.
6、根据权利要求 5所述的方法, 其特征在于, 所述虚拟桌面客户端将所述虚拟桌面客户 端的流媒体接收地址发送给所述虚拟桌面服务器, 包括: The method of claim 5, wherein the virtual desktop client sends the streaming media receiving address of the virtual desktop client to the virtual desktop server, including:
所述虚拟桌面客户端接收所述虚拟桌面服务器发送的流媒体接收地址的请求消息; 所述虚拟桌面客户端返回应答消息给所述虚拟桌面服务器, 所述应答消息中包括所述虚 拟桌面客户端的流媒体接收地址。  Receiving, by the virtual desktop client, a request message of a streaming media receiving address sent by the virtual desktop server; the virtual desktop client returns a response message to the virtual desktop server, where the response message includes the virtual desktop client Streaming media receiving address.
7、根据权利要求 5所述的方法, 其特征在于, 所述虚拟桌面客户端将所述虚拟桌面客户 端的流媒体接收地址发送给所述虚拟桌面服务器, 包括: The method according to claim 5, wherein the virtual desktop client sends the streaming media receiving address of the virtual desktop client to the virtual desktop server, including:
所述虚拟桌面客户端接收所述虚拟桌面服务器发送的播放通知消息, 所述播放通知消息 包含播放控制点的位置信息;  Receiving, by the virtual desktop client, a play notification message sent by the virtual desktop server, where the play notification message includes location information of a play control point;
当所述虚拟桌面客户端根据所述播放通知消息中的所述播放控制点的位置信息确定所述 播放控制点位于所述虚拟桌面服务器时, 所述虚拟桌面客户端发送所述虚拟桌面客户端的流 媒体接收地址给所述虚拟桌面服务器。  When the virtual desktop client determines that the play control point is located in the virtual desktop server according to the location information of the play control point in the play notification message, the virtual desktop client sends the virtual desktop client The streaming media receives the address to the virtual desktop server.
8、根据权利要求 5至 7中任一项所述的方法, 其特征在于, 所述虚拟桌面客户端进行流 媒体的播放之后, 还包括: The method according to any one of claims 5 to 7, wherein after the playing of the streaming media by the virtual desktop client, the method further comprises:
所述虚拟桌面客户端向所述虚拟桌面服务器发送播放器调整指令;  The virtual desktop client sends a player adjustment instruction to the virtual desktop server;
当所述虚拟桌面服务器根据所述播放器调整指令对所述虚拟桌面服务器的播放器执行调 整操作后, 所述虚拟桌面客户端接收所述虚拟桌面服务器发送的所述调整操作; 所述虚拟桌面客户端根据收到的所述调整操作对本地的播放器执行相同的调整操作。 When the virtual desktop server performs a tune on the player of the virtual desktop server according to the player adjustment instruction After the operation, the virtual desktop client receives the adjustment operation sent by the virtual desktop server; and the virtual desktop client performs the same adjustment operation on the local player according to the received adjustment operation.
9、 一种流媒体播放方法, 其特征在于, 所述方法包括: A streaming media playing method, the method comprising:
虚拟桌面客户端向虚拟桌面服务器发送播放流媒体的请求;  The virtual desktop client sends a request to play the streaming media to the virtual desktop server;
所述虚拟桌面客户端接收所述虚拟桌面服务器发送的播放通知消息, 所述播放通知消息 包含播放控制点的位置信息;  Receiving, by the virtual desktop client, a play notification message sent by the virtual desktop server, where the play notification message includes location information of a play control point;
当所述虚拟桌面客户端根据所述播放通知消息中的所述播放控制点的位置信息确定所述 播放控制点位于所述虚拟桌面客户端时, 所述虚拟桌面客户端向媒体源发送媒体源建立连接 请求, 所述媒体源建立连接请求中包括所述虚拟桌面客户端的流媒体接收地址;  When the virtual desktop client determines that the play control point is located in the virtual desktop client according to the location information of the play control point in the play notification message, the virtual desktop client sends a media source to the media source. Establishing a connection request, where the media source connection establishment request includes a streaming media receiving address of the virtual desktop client;
所述虚拟桌面客户端接收所述媒体源返回的流媒体发送地址;  Receiving, by the virtual desktop client, a streaming media sending address returned by the media source;
所述虚拟桌面客户端根据所述流媒体发送地址与所述媒体源建立连接, 并在所述流媒体 接收地址上接收流媒体, 进行流媒体的播放。  The virtual desktop client establishes a connection with the media source according to the streaming media sending address, and receives streaming media at the streaming media receiving address to perform streaming media playback.
10、 根据权利要求 9所述的方法, 其特征在于, 所述虚拟桌面客户端进行流媒体的播放 之后, 还包括: The method according to claim 9, wherein after the playing of the streaming media by the virtual desktop client, the method further includes:
所述虚拟桌面客户端向所述虚拟桌面服务器发送播放器调整指令;  The virtual desktop client sends a player adjustment instruction to the virtual desktop server;
当所述虚拟桌面服务器根据所述播放器调整指令对所述虚拟桌面服务器的播放器执行调 整操作后, 所述虚拟桌面客户端接收所述虚拟桌面服务器发送的所述调整操作;  After the virtual desktop server performs an adjustment operation on the player of the virtual desktop server according to the player adjustment instruction, the virtual desktop client receives the adjustment operation sent by the virtual desktop server;
所述虚拟桌面客户端根据收到的所述调整操作对本地的播放器执行相同的调整操作。  The virtual desktop client performs the same adjustment operation on the local player according to the received adjustment operation.
11、 一种虚拟桌面服务器, 其特征在于, 所述服务器包括: A virtual desktop server, wherein the server comprises:
第一获取模块, 用于接收虚拟桌面客户端发送的播放流媒体的请求, 获取所述虚拟桌面 客户端的流媒体接收地址;  a first acquiring module, configured to receive a request for playing a streaming media sent by the virtual desktop client, and obtain a streaming media receiving address of the virtual desktop client;
第二获取模块, 用于向媒体源发送媒体源建立连接请求, 所述媒体源建立连接请求中包 括所述流媒体接收地址, 接收所述媒体源返回的流媒体发送地址;  a second obtaining module, configured to send a media source connection request to the media source, where the media source establishing connection request includes the streaming media receiving address, and receiving a streaming media sending address returned by the media source;
转发模块, 用于将所述流媒体发送地址转发给所述虚拟桌面客户端, 使得所述虚拟桌面 客户端根据所述流媒体发送地址与所述媒体源建立连接并在所述流媒体接收地址上接收流媒 体, 进行流媒体的播放。 a forwarding module, configured to forward the streaming media sending address to the virtual desktop client, so that the virtual desktop client establishes a connection with the media source according to the streaming media sending address, and receives an address in the streaming media. Receive streaming media and play streaming media.
12、 根据权利要求 11所述的服务器, 其特征在于, 所述第一获取模块包括: 请求单元, 用于向所述虚拟桌面客户端发送流媒体接收地址的请求消息; The server according to claim 11, wherein the first obtaining module comprises: a requesting unit, configured to send a request message of a streaming media receiving address to the virtual desktop client;
获取单元, 用于接收所述虚拟桌面客户端返回的应答消息, 从所述应答消息中获取所述 虚拟桌面客户端的流媒体接收地址。  And an obtaining unit, configured to receive a response message returned by the virtual desktop client, and obtain a streaming media receiving address of the virtual desktop client from the response message.
13、 根据权利要求 11所述的服务器, 其特征在于, 所述第一获取模块包括: 通知单元, 用于向所述虚拟桌面客户端发送播放通知消息, 所述播放通知消息包含播放 控制点的位置信息; The server according to claim 11, wherein the first obtaining module comprises: a notification unit, configured to send a play notification message to the virtual desktop client, where the play notification message includes a play control point location information;
接收单元, 用于当所述虚拟桌面客户端根据所述播放通知消息中的所述播放控制点的位 置信息确定所述播放控制点位于所述虚拟桌面服务器时, 接收所述虚拟桌面客户端发送的流 媒体接收地址。  a receiving unit, configured to: when the virtual desktop client determines, according to the location information of the play control point in the play notification message, that the play control point is located in the virtual desktop server, receive the virtual desktop client to send Streaming media receiving address.
14、 根据权利要求 11至 13中任一项所述的服务器, 其特征在于, 所述服务器还包括: 调整模块, 用于在所述虚拟桌面客户端进行流媒体的播放之后, 接收所述虚拟桌面客户 端发送的播放器调整指令, 根据所述播放器调整指令对所述虚拟桌面服务器的播放器执行调 整操作, 并将所述调整操作发送给所述虚拟桌面客户端, 使得所述虚拟桌面客户端对本地的 播放器执行相同的调整操作。 The server according to any one of claims 11 to 13, wherein the server further comprises: an adjustment module, configured to receive the virtual after the streaming of the virtual desktop client a player adjustment instruction sent by the desktop client, performing an adjustment operation on the player of the virtual desktop server according to the player adjustment instruction, and sending the adjustment operation to the virtual desktop client, so that the virtual desktop is The client performs the same adjustments to the local player.
15、 一种虚拟桌面客户端, 其特征在于, 所述客户端包括: A virtual desktop client, wherein the client includes:
请求模块, 用于向虚拟桌面服务器发送播放流媒体的请求;  a requesting module, configured to send a request for playing a streaming media to the virtual desktop server;
发送模块, 用于将所述虚拟桌面客户端的流媒体接收地址发送给所述虚拟桌面服务器; 接收模块, 用于当所述虚拟桌面服务器向媒体源发送包含所述流媒体接收地址的媒体源 建立连接请求且收到所述媒体源返回的流媒体发送地址后, 接收所述虚拟桌面服务器转发的 所述流媒体发送地址;  a sending module, configured to send a streaming media receiving address of the virtual desktop client to the virtual desktop server, and a receiving module, configured to: when the virtual desktop server sends a media source that includes the streaming media receiving address to a media source, After receiving the request and receiving the streaming media sending address returned by the media source, receiving the streaming media sending address forwarded by the virtual desktop server;
播放模块, 用于根据所述流媒体发送地址与所述媒体源建立连接, 并在所述流媒体接收 地址上接收流媒体, 进行流媒体的播放。  The playing module is configured to establish a connection with the media source according to the streaming media sending address, and receive the streaming media on the streaming media receiving address to perform streaming media playback.
16、 根据权利要求 15所述的客户端, 其特征在于, 所述发送模块包括: The client according to claim 15, wherein the sending module comprises:
请求接收单元, 用于接收所述虚拟桌面服务器发送的流媒体接收地址的请求消息; 应答单元, 用于在所述请求接收单元收到所述请求消息后, 返回应答消息给所述虚拟桌 面服务器, 所述应答消息中包括所述虚拟桌面客户端的流媒体接收地址。 a request receiving unit, configured to receive a request message of a streaming media receiving address sent by the virtual desktop server, and a response unit, configured to: after the request receiving unit receives the request message, return a response message to the virtual table The response server includes a streaming media receiving address of the virtual desktop client.
17、 根据权利要求 15所述的客户端, 其特征在于, 所述发送模块包括: The client according to claim 15, wherein the sending module comprises:
通知接收单元, 用于接收所述虚拟桌面服务器发送的播放通知消息, 所述播放通知消息 包含播放控制点的位置信息;  a notification receiving unit, configured to receive a play notification message sent by the virtual desktop server, where the play notification message includes location information of a play control point;
确定单元, 用于根据所述播放通知消息中的所述播放控制点的位置信息, 确定所述播放 控制点是否位于所述虚拟桌面服务器;  a determining unit, configured to determine, according to the location information of the play control point in the play notification message, whether the play control point is located in the virtual desktop server;
发送单元, 用于当所述确定单元确定所述播放控制点位于所述虚拟桌面服务器时, 发送 所述虚拟桌面客户端的流媒体接收地址给所述虚拟桌面服务器。  And a sending unit, configured to send, when the determining unit determines that the play control point is located in the virtual desktop server, a streaming media receiving address of the virtual desktop client to the virtual desktop server.
18、 根据权利要求 15至 17中任一项所述的客户端, 其特征在于, 所述客户端还包括: 调整模块, 用于在所述播放模块进行流媒体的播放之后, 向所述虚拟桌面服务器发送播 放器调整指令, 当所述虚拟桌面服务器根据所述播放器调整指令对所述虚拟桌面服务器的播 放器执行调整操作后, 接收所述虚拟桌面服务器发送的所述调整操作, 根据收到的所述调整 操作对本地的播放器执行相同的调整操作。 The client according to any one of claims 15 to 17, wherein the client further comprises: an adjustment module, configured to: after the playing module performs playback of the streaming media, to the virtual The desktop server sends a player adjustment instruction, and after the virtual desktop server performs an adjustment operation on the player of the virtual desktop server according to the player adjustment instruction, receiving the adjustment operation sent by the virtual desktop server, according to the receiving The adjustment operation to the same performs the same adjustment operation on the local player.
19、 一种虚拟桌面客户端, 其特征在于, 所述客户端包括: A virtual desktop client, wherein the client includes:
请求模块, 用于端向虚拟桌面服务器发送播放流媒体的请求;  a requesting module, configured to send a request for playing a streaming media to the virtual desktop server;
第一接收模块, 用于接收所述虚拟桌面服务器发送的播放通知消息, 所述播放通知消息 包含播放控制点的位置信息;  a first receiving module, configured to receive a play notification message sent by the virtual desktop server, where the play notification message includes location information of a play control point;
发送模块, 用于当所述虚拟桌面客户端根据所述播放通知消息中的所述播放控制点的位 置信息确定所述播放控制点位于所述虚拟桌面客户端时,向媒体源发送媒体源建立连接请求, 所述媒体源建立连接请求中包括所述虚拟桌面客户端的流媒体接收地址;  a sending module, configured to send a media source to the media source when the virtual desktop client determines that the play control point is located in the virtual desktop client according to the location information of the play control point in the play notification message a connection request, where the media source connection request includes a streaming media receiving address of the virtual desktop client;
第二接收模块, 用于接收所述媒体源返回的流媒体发送地址;  a second receiving module, configured to receive a streaming media sending address returned by the media source;
播放模块, 用于根据所述流媒体发送地址与所述媒体源建立连接, 并在所述流媒体接收 地址上接收流媒体, 进行流媒体的播放。  The playing module is configured to establish a connection with the media source according to the streaming media sending address, and receive the streaming media on the streaming media receiving address to perform streaming media playback.
20、 根据权利要求 19所述的客户端, 其特征在于, 所述客户端还包括: The client according to claim 19, wherein the client further comprises:
调整模块, 用于在所述播放模块进行流媒体的播放之后, 向所述虚拟桌面服务器发送播 放器调整指令, 当所述虚拟桌面服务器根据所述播放器调整指令对所述虚拟桌面服务器的播 放器执行调整操作后, 接收所述虚拟桌面服务器发送的所述调整操作, 根据收到的所述调整 操作对本地的播放器执行相同的调整操作。 And an adjustment module, configured to send a player adjustment instruction to the virtual desktop server after the playing module performs streaming media, when the virtual desktop server broadcasts the virtual desktop server according to the player adjustment instruction After performing the adjustment operation, the receiver receives the adjustment operation sent by the virtual desktop server, and performs the same adjustment operation on the local player according to the received adjustment operation.
21、 一种流媒体播放系统, 其特征在于, 所述系统包括: 如权利要求 11至 14中任一项 权利要求所述的虚拟桌面服务器, 和如权利要求 15至 20中任一项权利要求所述的虚拟桌面 客户端。 A streaming media playback system, characterized in that the system comprises: a virtual desktop server according to any one of claims 11 to 14, and a claim according to any one of claims 15 to 20. The virtual desktop client.
PCT/CN2012/070894 2012-02-06 2012-02-06 Stream media playing method, device and system WO2013116975A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201280000264.6A CN103348657B (en) 2012-02-06 2012-02-06 Flow media playing method, equipment and system
PCT/CN2012/070894 WO2013116975A1 (en) 2012-02-06 2012-02-06 Stream media playing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/070894 WO2013116975A1 (en) 2012-02-06 2012-02-06 Stream media playing method, device and system

Publications (1)

Publication Number Publication Date
WO2013116975A1 true WO2013116975A1 (en) 2013-08-15

Family

ID=48946877

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/070894 WO2013116975A1 (en) 2012-02-06 2012-02-06 Stream media playing method, device and system

Country Status (2)

Country Link
CN (1) CN103348657B (en)
WO (1) WO2013116975A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104270648A (en) * 2014-09-16 2015-01-07 深圳市深信服电子科技有限公司 Method and system for playing local multimedia resources based on virtualized environment
WO2015196571A1 (en) * 2014-06-26 2015-12-30 中兴通讯股份有限公司 Method, system, server and storing medium for playing multimedia
CN106227491A (en) * 2016-08-04 2016-12-14 浪潮电子信息产业股份有限公司 A kind of remote desktop video broadcasting method, server, client and system
CN110113661A (en) * 2019-04-10 2019-08-09 新华三云计算技术有限公司 A kind of video broadcasting method and device
CN113870470A (en) * 2021-09-08 2021-12-31 深圳柏成科技有限公司 Access control system based on FFMPEG and processing method

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208406A (en) * 2014-06-11 2015-12-30 中兴通讯股份有限公司 Video data providing method and apparatus, video playing method and apparatuses, and video playing system
CN110225415B (en) * 2018-03-01 2022-06-21 中兴通讯股份有限公司 Media file playing method
CN115134420A (en) * 2021-03-24 2022-09-30 华为技术有限公司 Media playing method and device and electronic equipment
CN114942812B (en) * 2022-05-31 2024-04-30 上海嘉车信息科技有限公司 Multimedia information sharing method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202896A (en) * 2007-10-17 2008-06-18 杭州华三通信技术有限公司 Video order programming method, video data sending method, server and program source equipment
CN102137151A (en) * 2010-01-22 2011-07-27 微软公司 Remote protocol with multi connection channels
CN102307153A (en) * 2011-10-14 2012-01-04 王宁 Virtual desktop transmission device and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202896A (en) * 2007-10-17 2008-06-18 杭州华三通信技术有限公司 Video order programming method, video data sending method, server and program source equipment
CN102137151A (en) * 2010-01-22 2011-07-27 微软公司 Remote protocol with multi connection channels
CN102307153A (en) * 2011-10-14 2012-01-04 王宁 Virtual desktop transmission device and method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015196571A1 (en) * 2014-06-26 2015-12-30 中兴通讯股份有限公司 Method, system, server and storing medium for playing multimedia
CN104270648A (en) * 2014-09-16 2015-01-07 深圳市深信服电子科技有限公司 Method and system for playing local multimedia resources based on virtualized environment
CN106227491A (en) * 2016-08-04 2016-12-14 浪潮电子信息产业股份有限公司 A kind of remote desktop video broadcasting method, server, client and system
CN106227491B (en) * 2016-08-04 2019-05-14 浪潮电子信息产业股份有限公司 A kind of remote desktop video broadcasting method, server, client and system
CN110113661A (en) * 2019-04-10 2019-08-09 新华三云计算技术有限公司 A kind of video broadcasting method and device
CN113870470A (en) * 2021-09-08 2021-12-31 深圳柏成科技有限公司 Access control system based on FFMPEG and processing method

Also Published As

Publication number Publication date
CN103348657A (en) 2013-10-09
CN103348657B (en) 2015-09-30

Similar Documents

Publication Publication Date Title
US11108570B2 (en) Method and apparatus for multimedia communication, and storage medium
WO2013116975A1 (en) Stream media playing method, device and system
JP6279512B2 (en) System and method for adaptive video communication
KR102387161B1 (en) Video screen projection method and apparatus, computer equipment, and storage medium
EP2740265B1 (en) System and method for adapting video communications
CN105763832B (en) A kind of video interactive, control method and device
Kaspar et al. Using HTTP pipelining to improve progressive download over multiple heterogeneous interfaces
EP2989800B1 (en) Data communication system and method
US20160285945A1 (en) Method and Systems for Optimizing Bandwidth Utilization in a Multi-Participant Full Mesh Peer-to-Peer Video Session
WO2015117513A1 (en) Video conference control method and system
JP2007507190A (en) Conference system
WO2021179557A1 (en) Video stream playback method, system and terminal, and storage medium
WO2013097457A1 (en) Method, device, and system for realizing voip call in cloud computing environment
WO2012151957A1 (en) Server, client, and method and system for playing video file remotely therewith
WO2009015611A1 (en) Method, system and apparatus for quick switching media source
CN108476332B (en) Client, server, receiving method and sending method
WO2014054325A1 (en) Encoding control device and encoding control method
WO2015142752A1 (en) Transport accelerator implementing a multiple interface architecture
US20130290517A1 (en) Nat traversal under tcp for real time streaming protocol
CN108924603B (en) Multi-terminal streaming media playing system and method based on WiFi (Wireless Fidelity) defined by software
JP2005537742A (en) Streaming multimedia data
WO2015131454A1 (en) Projection method, terminal and system
WO2013170812A1 (en) Transmission method for media data stream and thin client
WO2013071517A1 (en) Media stream sending method and server
CN115865884A (en) Network camera data access device and method, network camera and medium

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: 12868250

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: 12868250

Country of ref document: EP

Kind code of ref document: A1