WO2012151957A1 - 服务器、客户端及利用其远程播放视频文件的方法和系统 - Google Patents

服务器、客户端及利用其远程播放视频文件的方法和系统 Download PDF

Info

Publication number
WO2012151957A1
WO2012151957A1 PCT/CN2011/082980 CN2011082980W WO2012151957A1 WO 2012151957 A1 WO2012151957 A1 WO 2012151957A1 CN 2011082980 W CN2011082980 W CN 2011082980W WO 2012151957 A1 WO2012151957 A1 WO 2012151957A1
Authority
WO
WIPO (PCT)
Prior art keywords
video file
channel
video
client
server
Prior art date
Application number
PCT/CN2011/082980
Other languages
English (en)
French (fr)
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 中兴通讯股份有限公司
Publication of WO2012151957A1 publication Critical patent/WO2012151957A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2385Channel allocation; Bandwidth allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/65Transmission of management data between client and server
    • H04N21/654Transmission by server directed to the client
    • H04N21/6547Transmission by server directed to the client comprising parameters, e.g. for client setup

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a server, a client, and a method and system for playing a video file remotely using the same. Background technique
  • Remote Desktop means pulling the desktop of a host server to the remote, displaying it on the screen of a guest, using the guest to operate the host server, and using the server locally.
  • the remote desktop implementation method generally takes a screen shot at the server, and appropriately processes the obtained image, such as cropping and compression, and then uses the network to transmit the image to the guest, and decompresses and stitches the image in the guest, so as to restore the whole. desktop. In this way, the user can directly operate the remote Server device on the Guest, just like the local operation before the Server.
  • Visual Desktop One variant of Remote Desktop is called Visual Desktop.
  • Visual Deskto is not a real desktop on the desktop displayed by Guest, but a virtual program generated by the program. Desktop, this desktop may be spliced by several parts of Server; but Guest does not know this, it is still only a real desktop to display.
  • the prior art includes a variety of remote desktop technologies, for example, RDP (Remote Desktop Protocol), SPICE (Simulation Program with Integrated Circuit Emphasis), VNC (Virtual Network Computing, Virtual network computers) and so on; these technologies are similar, and ultimately can be attributed to the above implementation methods.
  • RDP Remote Desktop Protocol
  • SPICE Simulation Program with Integrated Circuit Emphasis
  • VNC Virtual Network Computing, Virtual network computers
  • the technical problem to be solved by the present invention is to provide a server, a client, and a method and system for playing a video file remotely, which are used to solve the problem that the remote playback of the video file in the prior art is not smooth.
  • the present invention provides a method for remotely playing a video file, including the following steps: the server establishes a remote desktop protocol RDP extended channel Video Channel; the client opens the RDP extended channel Video Channel, and remotely Opening the video file of the server; the server sends the address information of the video file to the client through the RDP extension channel Video Channel; the client acquires the information according to the address information of the video file.
  • the method further includes: the server side starting a hypertext transfer protocol HTTP service.
  • the video file is an MPEG-4 file.
  • the present invention provides a server, including:
  • An extension unit configured to establish an RDP extension channel on the server side
  • a sending unit configured to send, by using the RDP extended channel Video Channel, address information of the video file to the client.
  • server further includes:
  • an activation unit configured to start an HTTP service before the client remotely plays the video file; wherein the video file is an MPEG-4 file.
  • the present invention also provides a client, including:
  • An extended channel establishing unit configured to open an RDP extended channel Video Channel established on the server side, and remotely open the video file of the server end;
  • a remote playing unit configured to pass the extended channel according to the server end
  • the video file is an MPEG-4 file.
  • the present invention provides a system for remotely playing a video file, including a server end and a client connected through a communication network.
  • a server configured to establish an RDP extension channel Video Channel, and send the address information of the video file to the client by using the RDP extension channel Video Channel;
  • a client configured to open the RDP extension channel Video Channel, and remotely open the video file of the server, and obtain an access address of the video file in the communication network according to the address information of the video file, and then according to the Access the address and play the video file remotely.
  • the server includes an extension unit and a sending unit
  • An extension unit configured to establish an RDP extension channel on the server side, a video channel, and a sending unit, configured to send address information of the video file to the client by using the RDP extension channel Video Channel.
  • the client includes an extended channel establishing unit and a remote playing unit;
  • An extended channel establishing unit configured to open an RDP extended channel Video Channel established by the server, and remotely open the video file of the server;
  • a remote playback unit configured to acquire an access address of the video file in a communication network according to address information of a video file sent by the server end through the RDP extension channel Video Channel, and then remotely play the location according to the access address Said video file.
  • server further includes:
  • a startup unit configured to start an HTTP service before the client remotely plays the video file.
  • the video file is an MPEG-4 file.
  • the present invention provides a method for remotely playing a video file, including the following steps:
  • the RDP extended channel Video Channel is established by the server, and the RDP extended channel Video Channel is used to be opened by the client;
  • the server sends the address of the video file to the client through the RDP extended channel Video Channel. information;
  • the client opens the RDP extension channel Video Channel established by the server, and opens the video file of the server side remotely; the client obtains the address information of the video file sent by the server through the RDP extension channel Video Channel.
  • the access address of the video file in the communication network, and then the video file is played remotely according to the access address.
  • the client and the server end establish a RDP extension channel, and implement a server-side remote desktop on the client side, and the client accesses the video file of the server side by accessing the communication network, thereby avoiding high bandwidth requirements due to a large number of screenshots.
  • the defect due to low bandwidth requirements, makes the remote playback of video files smooth and smooth.
  • FIG. 1 is a schematic flowchart of a method for remotely playing a video file according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a system for remotely playing a video file according to an embodiment of the present invention.
  • the present invention provides a server, a client, and a method and system for playing a video file remotely.
  • the present invention is further detailed in conjunction with the accompanying drawings and embodiments. Description. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
  • an embodiment of the present invention relates to a method for remotely playing a video file.
  • a server is a Microsoft Windows XP system
  • a client is an Android device
  • a video file is an MP4 supported by an Android device. (MPEG-4) video file as an example.
  • Android devices are terminal devices that use the Android (Android) operating system.
  • Android devices are Android Pads, which are tablets that use the Android operating system.
  • Android devices can also be used for other terminal devices, such as Android. Terminal devices such as mobile phones in the system.
  • the operating system of the client is not limited to the Android operating system, and other operating systems may also be used.
  • the format of the video file in the embodiment of the present invention is not limited to the MP4 video file, and may also be a video file in other formats, such as: MPEG-1, MPEG-2, RMVB, etc.; only video files of different formats, usually compressed Differently, this embodiment selects an Android device to play an MP4 video file because the MP4 video file is small, and the picture is clear, and the remote playback effect is better.
  • the Microsoft Windows XP system comes with the RDP Server program.
  • Microsoft's document calls it Terminal Server, and the protocol used is the remote implementation specific protocol RDP.
  • MSDN Microsoft Developer Network, an information service for Microsoft software developers.
  • RDP is not a proprietary protocol of Microsoft Corporation, and there are many practical applications on platforms such as Liunx.
  • the most common application of RDP on the Windows platform is the familiar remote desktop.
  • the embodiment of the present invention is not only implemented by RDP, but RDP is selected because it is an existing mature technology, which is convenient for rapid implementation, reduces cost, and can be implemented by other methods, for example: Based on VNC (Virtual Network Computing, virtual network computer) ) Implementation.
  • VNC Virtual Network Computing, virtual network computer
  • the premise of this solution is that the server and client devices can communicate through an IP (Internet Protocol) network.
  • IP Internet Protocol
  • the IP network can be a wireless network data channel, such as a GPRS (General Packet Radio Service) data channel. It can also be a WIFI (wireless fidelity) data channel, a WAPI (Wireless LAN Authentication and Privacy Infrastructure) data channel, and so on.
  • Step 101 The server establishes an RDP extension channel Video Channel.
  • the RDP extension channel is established on the server by using the WTS Virtual Channel Open function.
  • the name of the RDP extension channel is named "VCHNL”.
  • Step 102 The client starts an RDP client (RDP client), opens the RDP extended channel Video Channel, and remotely opens the video file of the server.
  • RDP client RDP client
  • Video Channel RDP extended channel
  • the RDP extension channel named "VCHNL" is opened on the client by using the Virtual Channel Open function.
  • RDP Client program to connect to the RDP Server (server side) on the Android device (client).
  • client On the Android device, you can see the desktop of the server-side Microsoft Windows XP system, which can be on the Android device. Operate the server side; operate the server-side desktop on the client, open an MP4 file, and select an MP4 file to be opened, such as C: ⁇ cfgz.mp4.
  • Step 103 The server sends the address information of the video file to the client by using the RDP extension channel Video Channel.
  • the server starts the IIS (Internet Information Services) HTTP (HTTP, HyperText Transfer Protocol) service that comes with Microsoft Windows XP.
  • IIS Internet Information Services
  • HTTP HyperText Transfer Protocol
  • the reason why the HTTP service is started is because the Android device is built-in.
  • the player supports HTTP; if the Android device's built-in player supports other protocols, such as RTSP (Real Time Streaming Protocol), and there are services available on the server-side Microsoft Windows XP system, it is not limited to HTTP. service.
  • RTSP Real Time Streaming Protocol
  • the HTTP service is started in this step, and the startup timing may be in other steps, and is not limited to be completed in this step, as long as the video file is started before being played.
  • the server sends the file information of the video file to the client through the RDP extension channel Video Channel, that is, the file information of the MP4 file is sent;
  • the file information of the video file usually includes Address information of a video file, for example, a URL (Uniform / Universal Resource Locator) link information.
  • the address information sent can be the full path of the video file, such as the string "C: ⁇ cfgz.mp4".
  • the file information of the video file is sent using the WTS Virtual Channel Write function.
  • Step 104 The client acquires an access address of the video file in the communication network according to the address information of the video file, and then remotely plays the video file according to the access address.
  • the client receives the file information of the video file from the RDP extension channel through the Virtual Channel Read function, and constructs an HTTP URL (the access address of the video file in the communication network); ⁇ : http: ⁇ www.zte.com. Cn/c: ⁇ cfgz.mp4;
  • the client calls the built-in player and plays the HTTP URL built in the above steps.
  • the method is very simple. In the Inte, you can use Intent, as follows:
  • Intent intent new Intent(Intent. ACTION— VIEW); intent.setDataAndType(Uri.parse(url), "video/mp4");
  • the Android device will automatically launch the player to remotely play the video files on the server.
  • the embodiment of the present invention takes an MP4 file as an example, because the Android device has hardware support for this format, and the effect is better; in fact, the method described in the present invention can also be applied to formats supported by other Android devices; Format negotiation process, it is recommended to limit the format to a fixed format, which can simplify the system; for formats that are not supported by Android devices, Real-time conversion can be performed on the HTTP server, which is not the content of the present invention and will not be elaborated here. In addition, the method can also be applied to other suitable file types, such as audio files.
  • the transmitted file information may be appropriately encrypted. This is not the content of the present invention and will not be described in detail herein.
  • the embodiment of the present invention does not play video on the server side and then screen capture, but directly plays on the client side, and does not play on the server side; since the MP4 file is very small relative to the original video, for example: an MP4 video suitable for Android devices , 90 minutes, 800x480 pixels, very clear, the file size can be reduced to 600M, calculated:
  • the method of the present invention can be used to smoothly play video on a 3G network.
  • the present invention also relates to a system for remotely playing a video file that implements the above method, including a server end 201 and a client 202 that are connected through a communication network 203, wherein
  • a server end 201 configured to establish an RDP extended channel Video Channel, and send, by using the RDP extended channel Video Channel, address information of the video file to the client;
  • a client 202 configured to open the RDP extension channel Video Channel, and remotely open the video file of the server, obtain an access address of the video file in the communication network according to the address information of the video file, and then The access address is used to remotely play the video file.
  • the server 201 includes an extension unit 2011 and a sending unit 2012.
  • the client 202 includes an extended channel establishing unit 2021 and a remote playing unit 2022.
  • the expansion unit 2011 is configured to establish an RDP extended channel Video Channel on the server end 201; an extended channel establishing unit 2021, configured to open the RDP extended channel Video Channel, and remotely open the video file of the server end;
  • the sending unit 2012 is configured to send address information of the video file to the client 202 by using the RDP extension channel Video Channel;
  • the remote playing unit 2022 is configured to obtain an access address of the video file in the communication network according to the address information of the video file, and then play the video file remotely according to the access address.
  • the server 201 further includes:
  • the startup unit 2013 is configured to start an HTTP service before the client 202 remotely plays the video file.
  • the video files involved may specifically be MPEG-4 files.
  • the communication network 203 in this embodiment is an IP network; the IP network may be a wireless network data channel, such as a GPRS data channel; or may be a WIFI data channel, a WAPI data channel, or the like.
  • the server and client to be protected by the present invention are identical to the server and client in the system of the present embodiment, and therefore, the structure of the server and the client will not be described in detail.
  • the client and the server end establish a RDP extension channel on the client side, and implement a server-side remote desktop on the client side, and the client side plays the video file of the server side by accessing the communication network, thereby avoiding a large number of
  • the shortcomings caused by the screenshots have higher bandwidth requirements. Because of the low bandwidth requirements, the remote playback of video files is smooth and smooth.

Landscapes

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

Description

服务器、 客户端及利用其远程播放视频文件的方法和系统 技术领域
本发明涉及通信技术领域, 特别是涉及一种服务器、 客户端及利用其 远程播放视频文件的方法和系统。 背景技术
远程桌面 (Remote Desktop ), 就是把一台主机 Server (服务器) 的桌 面拉到远程, 在一台 Guest (客户端) 的屏幕上显示, 利用 Guest来操作主 机 Server, 达到跟在本地使用 Server—样的效果和用户体验。 远程桌面的 实现方法, 一般都是在 Server进行截屏, 把得到的图片进行适当处理, 比 如裁剪、压缩, 然后利用网络将图片传到 Guest, 在 Guest对图片进行解压、 拼接等操作, 以便还原整个桌面。 这样, 用户在 Guest上就可以直接操作使 用远程的 Server设备, 就如同在 Server前本地操作一样。
远程桌面的一种变形叫 Visual Desktop (虚拟桌面;), Visual Deskto 跟 Remote Deskto 的最大差另 ll就是: Visual Deskto 在 Guest显示的桌面, 不 是一个真实的桌面, 而是一个由程序生成的虚拟的桌面, 这个桌面有可能 是由 Server的几个部分应用拼接成的; 但 Guest并不知道这种情况, 仍然 只当是一个真实的桌面来显示。
目前, 现有技术包括多种远程桌面技术, 例如, 我们熟知的有 RDP ( Remote Desktop Protocol,远程桌面协议 )、 SPICE ( Simulation Program with Integrated Circuit Emphasis , 电路级模拟程序)、 VNC ( Virtual Network Computing, 虚拟网络计算机)等等; 这些技术都大同小异, 最后都能够归 结到上述的实现方法上。
近些年来, 随着多媒体、 3D ( Three Dimensions, 三维, 即立体)应用 和用户体验的不断提高, 各种远程桌面实现已经不能满足一些日益增多的 需求。 Remote Deskto 的实现方式, 明显存在以下几个缺点,
1、 需要频繁的截屏。 频繁的截屏、 以及后续压缩、 计算处理, 会额外 加重 Server的 CPU ( Central Processing Unit, 中央处理器)的负担, 影响性 能, 进而影响用户使用时的体验。 另外, 对于正在播放视频或者正在进行 3D游戏来说, 则截屏的频率就需要非常高,普通的视频一般需要 30帧 /秒, 而高质量的游戏, 则有时会高达 60帧 /秒, 甚至更高。
2、 需要很高的网络带宽。频繁截屏的后果就是频繁的传输图片, 因此, 会带来很高的带宽消耗。 做个简单的计算, 假设显示分辨率为 1024 x 768 , 按 30帧 /秒, 16位颜色深度计算, 不压缩情况下每秒需要的带宽为:
1024 768 X ( 16/8 ) χ 30 = 47185920byte/s
也就是说, 每秒需要 47 X 8= 376M带宽, 这是个非常惊人的需求, 我们知道, 目前即使是局域网, 普通用户也没有达到这个速度, 因此, 这 个需求在目前来说根本无法实现;
由于上述几个缺点, 目前所有的远程桌面厂商都使用各种技术来减小 带宽占用, 最常用的有如下几个方法:
1、 不整屏传输, 截屏后通过各种方法, 去掉不变的截屏图片, 只传输 变化的区域图片;
2、 采用高效的、 无损的压缩算法先压缩图像, 然后再传输;
3、 不传输视频画面和 3D等游戏画面; 或者对这类变化比较快、 比较 大的画面, 采用有损压缩算法压缩后再传输;
现有技术即使采用上述方法进行优化处理, 但目前的远程桌面也没有 有效的解决视频和游戏的用户体验问题; 几乎所有的厂家都把远程桌面的 工作环境限定在局域网内部, 以便能尽可能占用大的带宽, 来支持视频等 应用顺利、 流畅的运行。 发明内容
有鉴于此, 本发明要解决的技术问题是提供一种服务器、 客户端及利 用其远程播放视频文件的方法和系统, 用以解决现有技术视频文件远程播 放不顺利流畅的问题。
为解决上述技术问题, 一方面, 本发明提供一种远程播放视频文件的 方法, 包括以下步驟: 服务器端建立远程桌面协议 RDP 扩展通道 Video Channel; 客户端打开所述 RDP扩展通道 Video Channel, 并远程打开所述 服务器端的视频文件;所述服务器端通过所述 RDP扩展通道 Video Channel 向所述客户端发送所述视频文件的地址信息; 所述客户端根据所述视频文 件的地址信息, 获取所述视频文件在通信网中的访问地址, 然后根据所述 访问地址, 远程播放所述视频文件。
进一步, 在所述客户端远程播放所述视频文件之前, 还包括: 所述服 务器端启动超文本传输协议 HTTP服务。
进一步, 所述视频文件为 MPEG-4文件。
另一方面, 本发明还提供一种服务器, 包括:
扩展单元, 用于在服务器端建立 RDP扩展通道 Video Channel;
发送单元, 用于通过所述 RDP扩展通道 Video Channel向客户端发送 视频文件的地址信息。
进一步, 所述服务器还包括:
启动单元, 用于在所述客户端远程播放所述视频文件之前, 启动 HTTP 服务; 其中, 所述视频文件为 MPEG-4文件。
再一方面, 本发明还提供一种客户端, 包括:
扩展通道建立单元, 用于打开服务器端建立的 RDP扩展通道 Video Channel, 并远程打开所述服务器端的视频文件;
远程播放单元, 用于根据所述服务器端通过所述扩展通道 Video Channel向所述客户端发送的所述视频文件的地址信息, 获取所述视频文件 在通信网中的访问地址, 然后根据所述访问地址, 远程播放所述视频文件。
进一步, 所述视频文件为 MPEG-4文件。
再一方面, 本发明还提供一种远程播放视频文件的系统, 包括通过通 信网连通的服务器端和客户端,
服务器端, 用于建立 RDP扩展通道 Video Channel, 通过所述 RDP扩 展通道 Video Channel向所述客户端发送所述视频文件的地址信息;
客户端, 用于打开所述 RDP扩展通道 Video Channel, 并远程打开所述 服务器端的视频文件, 根据所述视频文件的地址信息, 获取所述视频文件 在通信网中的访问地址, 然后根据所述访问地址, 远程播放所述视频文件。
所述服务器包括扩展单元和发送单元; 其中,
扩展单元, 用于在所述服务器端建立 RDP扩展通道 Video Channel; 发送单元, 用于通过所述 RDP扩展通道 Video Channel向所述客户端 发送所述视频文件的地址信息。
所述客户端包括扩展通道建立单元和远程播放单元; 其中,
扩展通道建立单元,用于打开所述服务器端建立的 RDP扩展通道 Video Channel, 并远程打开所述服务器端的视频文件;
远程播放单元, 用于根据所述服务器端通过所述 RDP扩展通道 Video Channel发送的视频文件的地址信息, 获取所述视频文件在通信网中的访问 地址, 然后根据所述访问地址, 远程播放所述视频文件。
进一步, 所述服务器还包括:
启动单元, 用于在所述客户端远程播放所述视频文件之前, 启动 HTTP 服务。
进一步, 所述视频文件为 MPEG-4文件。
再一方面, 本发明提供一种远程播放视频文件的方法, 包括以下步驟: 月良务器端建立 RDP扩展通道 Video Channel,所述 RDP扩展通道 Video Channel用于被客户端打开; 所述服务器端通过所述 RDP扩展通道 Video Channel向所述客户端发送所述视频文件的地址信息;
或者,
客户端打开服务器端建立的 RDP扩展通道 Video Channel,并远程打开 所述服务器端的视频文件; 所述客户端根据服务器端通过所述 RDP扩展通 道 Video Channel发送的所述视频文件的地址信息, 获取所述视频文件在通 信网中的访问地址, 然后根据所述访问地址, 远程播放所述视频文件。
本发明有益效果如下:
本发明客户端与服务器端通过建立 RDP扩展通道, 在客户端上实现服 务器端的远程桌面, 客户端通过访问通信网的方式来播放服务器端的视频 文件, 避免了由于大量截图造成的对带宽要求较高的缺陷, 由于对带宽要 求低, 因此, 视频文件远程播放具有顺利、 流畅的特点。 附图说明
图 1 是本发明实施例中一种远程播放视频文件的方法的流程示意图; 图 2是本发明实施例中一种远程播放视频文件的系统的结构示意图。 具体实施方式
为了解决现有技术视频文件远程播放不顺利流畅的问题, 本发明提供 了一种服务器、 客户端及利用其远程播放视频文件的方法和系统, 以下结 合附图以及实施例, 对本发明进行进一步详细说明。 应当理解, 此处所描 述的具体实施例仅仅用以解释本发明, 并不限定本发明。
如图 1 所示, 本发明实施例涉及一种远程播放视频文件的方法, 本发 明实施例, 以服务器端采用 Microsoft Windows XP系统, 客户端为 Android 设备为例,视频文件以 Android设备支持的 MP4 ( MPEG-4 )视频文件为例。 Android设备是指采用 Android (安卓)操作系统的终端设备,例如: Android 设备为 Android Pad ,即为采用 Android操作系统的平板电脑;另夕卜, Android 设备也可以为其它终端设备, 例如采用 Android操作系统的手机等终端设 备。本发明实施例中,客户端的操作系统也并非只限定于 Android操作系统, 也可以采用其它操作系统。 另外, 本发明实施例对于视频文件的格式也不 限定于 MP4视频文件, 也可以为其它格式的视频文件, 例如: MPEG-1 , MPEG-2, RMVB等; 只是不同格式的视频文件, 通常压缩比不同, 本实施 例选择 Android设备播放 MP4视频文件, 是因为 MP4视频文件较小 , 且画 面清晰, 远程播放效果更佳。
Microsoft Windows XP系统自带有 RDP Server程序, 微软公司的文档 称其为 Terminal Server, 其使用的协议是远程桌面的具体实现协议 RDP。 微软公司在 MSDN ( Microsoft Developer Network, 是微软公司面向软件开 发者的一种信息服务)上公布了 RDP的协议细则。 另外, RDP不是微软公 司的专属协议, 在 Liunx等平台上也有不少实际的应用。 RDP在 Windows 平台下最常见的应用, 就是大家熟悉的远程桌面。 本发明实施例也并非只 能通过 RDP实现, 选择 RDP, 是因为其为现有成熟技术, 便于快速实现, 降低成本, 也可以通过其它方式实现, 例如: 基于 VNC ( Virtual Network Computing, 虚拟网络计算机) 实现。
本方案的前提是服务器端和客户端的设备能够通过 IP ( Internet Protocol, 网络互连协议) 网络连通, IP网络可以是无线网络数据通道, 比 如 GPRS ( General Packet Radio Service, 通用分组无线服务)数据通道; 也 可以是 WIFI ( wireless fidelity, 无线保真)数据通道、 WAPI ( Wireless LAN Authentication and Privacy Infrastructure, 无线局域网鉴别和保密基础结构) 数据通道等。
本发明实施例涉及的远程播放视频文件的方法具体包括以下步驟: 步驟 101 , 服务器端建立 RDP扩展通道 Video Channel (视频通道); 本步驟中, 通过使用 WTS Virtual Channel Open函数在服务器端建立 RDP扩展通道, 例如, 将该 RDP扩展通道的名称命名为 "VCHNL"。
步驟 102 , 客户端启动 RDP Client ( RDP客户端), 打开所述 RDP扩展 通道 Video Channel, 并远程打开所述服务器端的视频文件;
本步驟中, 通过使用 Virtual Channel Open 函数在客户端打开名称为 "VCHNL" 的 RDP扩展通道。
这两步完成后, 就可以在 Android设备(客户端)上使用 RDP Client 程序连接 RDP Server (服务器端), 在 Android设备上就可以看到服务器端 Microsoft Windows XP系统的桌面, 可以在 Android设备上对服务器端进行 操作了; 在客户端上操作服务器端的桌面, 打开一个 MP4文件, 即选择一 个需要打开的 MP4文件, 例如 C:\cfgz.mp4。
步驟 103 ,所述服务器端通过所述 RDP扩展通道 Video Channel向所述 客户端发送所述视频文件的地址信息;
本步驟中, 服务器端启动 Microsoft Windows XP 自带的 IIS ( Internet Information Services, 互联网信息服务) HTTP ( HTTP, HyperText Transfer Protocol, 超文本传输协议)服务; 之所以启动 HTTP服务, 是因为 Android 设备内建的播放器支持 HTTP; 如果 Android设备内建的播放器支持其它协 议, 比如 RTSP ( Real Time Streaming Protocol, 实时流传输协议 ), 同时服 务器端的 Microsoft Windows XP系统上有可用的服务,则不必局限于 HTTP 服务。 需要说明的是, 本步驟中启动 HTTP服务, 启动时机也可以在其它 步驟, 并不限定必须在本步驟中完成, 只要在播放视频文件之前启动就可 以了。
服务器端通过 RDP扩展通道 Video Channel向客户端发送视频文件的 文件信息, 即: 发送 MP4文件的文件信息; 视频文件的文件信息通常包括 视频文件的地址信息, 例如, URL ( Uniform / Universal Resource Locator, 统一资源定位符)链接信息。 发送的地址信息可以是视频文件的全路径, 比如字符串 "C:\cfgz.mp4"。 采用 WTS Virtual Channel Write函数发送视频 文件的文件信息。
步驟 104, 所述客户端根据所述视频文件的地址信息, 获取所述视频文 件在通信网中的访问地址, 然后根据所述访问地址, 远程播放所述视频文 件。
本步驟中,客户端通过 Virtual Channel Read函数从 RDP扩展通道接收 到视频文件的文件信息, 构建 HTTP URL (视频文件在通信网中的访问地 址 ); ^口: http:〃 www.zte.com.cn/c:\\cfgz.mp4;
客户端调用内建的播放器, 播放上面步驟构建的 HTTP URL; 方法很 简单, 在 Android平台可以使用 Intent , 如下:
Intent intent = new Intent(Intent. ACTION— VIEW); intent.setDataAndType(Uri.parse(url), "video/mp4");
start Activity (intent);
这样, Android设备就会自动启动播放器远程播放服务器端上的视频文 件。
需要指出的是: 上述步驟中, WTS Virtual Channel Open函数、 Virtual Channel Open函数、 WTS Virtual Channel Write函数和 Virtual Channel Read 函数的具体方法, 在微软公司的网站资料中已经公开, 本领域技术人员, 根据微软公司的网站资料, 完全可以实现上述方法, 因此, 本发明不再对 其详细描述。
本发明实施例以 MP4文件为例, 是因为 Android设备对这个格式有硬 件支持, 效果比较好; 实际上本发明所述的方法也可以用于其它 Android 设备支持的格式; 但为了避免过于复杂的格式协商过程, 建议把格式限制 到固定的某个格式上,这样可以简化系统;对于 Android设备不支持的格式, 可以在 HTTP服务器进行实时转换, 这个就不是本发明的内容, 这里不做 详细阐述。 另外, 本方法也可以适用于其它适用的文件类型, 比如音频文 件等。
本发明实施例没有考虑安全性问题, 如果要考虑安全性, 可以对发送 的文件信息进行适当加密, 这个不是本发明的内容, 这里不做详细阐述。
本发明实施例不是在服务器端播放视频然后截屏, 而是直接在客户端 播放,在服务器端不进行播放; 由于 MP4文件相对于原始视频是非常小的, 例如: 一个适合于 Android设备的 MP4视频, 90分钟, 800x480像素, 非 常清晰的, 文件大小可以缩小到 600M, 计算下来:
600 X 8 ÷ 90 ÷ 60 = 0.888 Mbits/s;
这相当于只要 1M不到的带宽, 目前的移动通信网都可以达到该带宽, 因此,从理论上讲,本发明的方法,完全可以用于在 3G网络流畅播放视频。
另外, 本发明还涉及一种实现上述方法的远程播放视频文件的系统, 包括通过通信网 203连通的服务器端 201和客户端 202, 其中,
服务器端 201 , 用于建立 RDP扩展通道 Video Channel, 通过所述 RDP 扩展通道 Video Channel向所述客户端发送所述视频文件的地址信息;
客户端 202 , 用于打开所述 RDP扩展通道 Video Channel, 并远程打开 所述服务器端的视频文件, 根据所述视频文件的地址信息, 获取所述视频 文件在通信网中的访问地址, 然后根据所述访问地址, 远程播放所述视频 文件。
其中, 服务器端 201包括扩展单元 2011和发送单元 2012; 客户端 202 包括扩展通道建立单元 2021和远程播放单元 2022; 其中,
扩展单元 2011 ,用于在服务器端 201建立 RDP扩展通道 Video Channel; 扩展通道建立单元 2021 , 用于打开所述 RDP扩展通道 Video Channel, 并远程打开所述服务器端的视频文件; 发送单元 2012, 用于通过所述 RDP扩展通道 Video Channel向所述客 户端 202发送所述视频文件的地址信息;
远程播放单元 2022, 用于根据所述视频文件的地址信息, 获取所述视 频文件在通信网中的访问地址, 然后根据所述访问地址, 远程播放所述视 频文件。
其中, 服务器 201还包括:
启动单元 2013 , 用于在所述客户端 202远程播放所述视频文件之前, 启动 HTTP服务。 另外, 本系统中, 涉及的视频文件具体可以为 MPEG-4 文件。
本实施例中的通信网 203为 IP网络; IP网络可以是无线网络数据通道, 比如 GPRS数据通道; 也可以是 WIFI数据通道、 WAPI数据通道等。
本发明所要保护的服务器和客户端与本实施例系统中的服务器和客户 端完全相同, 因此, 关于服务器和客户端的结构, 不再详细描述。
由上述实施例可以看出, 本发明客户端与服务器端通过建立 RDP扩展 通道, 在客户端上实现服务器端的远程桌面, 客户端通过访问通信网的方 式来播放服务器端的视频文件, 避免了由于大量截图造成的对带宽要求较 高的缺陷, 由于对带宽要求低, 因此, 视频文件远程播放具有顺利、 流畅 的特点。
尽管为示例目的, 已经公开了本发明的优选实施例, 本领域的技术人 员将意识到各种改进、 增加和取代也是可能的, 因此, 本发明的范围应当 不限于上述实施例。

Claims

权利要求书
1、 一种远程播放视频文件的方法, 其特征在于, 包括以下步驟: 服务器端建立远程桌面协议 RDP扩展通道 Video Channel;
客户端打开所述 RDP扩展通道 Video Channel,并远程打开所述服务器 端的视频文件;
所述服务器端通过所述 RDP扩展通道 Video Channel向所述客户端发 送所述视频文件的地址信息;
所述客户端根据所述视频文件的地址信息, 获取所述视频文件在通信 网中的访问地址, 然后根据所述访问地址, 远程播放所述视频文件。
2、 如权利要求 1所述的远程播放视频文件的方法, 其特征在于, 在所 述客户端远程播放所述视频文件之前, 还包括:
所述服务器端启动超文本传输协议 HTTP服务。
3、 如权利要求 1或 2所述的远程播放视频文件的方法, 其特征在于, 所述视频文件为 MPEG-4文件。
4、 一种服务器, 其特征在于, 包括:
扩展单元, 用于在服务器端建立 RDP扩展通道 Video Channel;
发送单元, 用于通过所述 RDP扩展通道 Video Channel向客户端发送 视频文件的地址信息。
5、 如权利要求 4所述的服务器, 其特征在于, 所述服务器还包括: 启动单元, 用于在所述客户端远程播放所述视频文件之前, 启动 HTTP 服务; 其中, 所述视频文件为 MPEG-4文件。
6、 一种客户端, 其特征在于, 包括:
扩展通道建立单元, 用于打开服务器端建立的 RDP 扩展通道 Video Channel, 并远程打开所述服务器端的视频文件;
远程播放单元, 用于根据所述服务器端通过所述 RDP扩展通道 Video Channel向所述客户端发送的所述视频文件的地址信息, 获取所述视频文件 在通信网中的访问地址, 然后根据所述访问地址, 远程播放所述视频文件。
7、如权利要求 6所述的客户端,其特征在于,所述视频文件为 MPEG-4 文件。
8、 一种远程播放视频文件的系统, 包括通过通信网连通的服务器端和 客户端, 其特征在于,
服务器端, 用于建立 RDP扩展通道 Video Channel, 通过所述 RDP扩 展通道 Video Channel向所述客户端发送所述视频文件的地址信息;
客户端, 用于打开所述 RDP扩展通道 Video Channel, 并远程打开所述 服务器端的视频文件, 根据所述视频文件的地址信息, 获取所述视频文件 在通信网中的访问地址, 然后根据所述访问地址, 远程播放所述视频文件。
9、 如权利要求 8所述的远程播放视频文件的系统, 其特征在于, 所述 服务器包括扩展单元和发送单元; 其中,
扩展单元, 用于在所述服务器端建立 RDP扩展通道 Video Channel; 发送单元, 用于通过所述 RDP扩展通道 Video Channel向所述客户端 发送所述视频文件的地址信息。
10、 如权利要求 8所述的远程播放视频文件的系统, 其特征在于, 所 述客户端包括扩展通道建立单元和远程播放单元; 其中,
扩展通道建立单元,用于打开所述服务器端建立的 RDP扩展通道 Video Channel, 并远程打开所述服务器端的视频文件;
远程播放单元, 用于根据所述服务器端通过所述 RDP扩展通道 Video Channel发送的视频文件的地址信息, 获取所述视频文件在通信网中的访问 地址, 然后根据所述访问地址, 远程播放所述视频文件。
11、 如权利要求 9所述的远程播放视频文件的系统, 其特征在于, 所 述服务器还包括: 启动单元, 用于在所述客户端远程播放所述视频文件之前, 启动 HTTP 服务。
12、 如权利要求 8至 11任一所述的远程播放视频文件的系统, 其特征 在于, 所述视频文件为 MPEG-4文件。
13、 一种远程播放视频文件的方法, 其特征在于, 包括以下步驟: 月良务器端建立 RDP扩展通道 Video Channel,所述 RDP扩展通道 Video Channel用于被客户端打开; 所述服务器端通过所述 RDP扩展通道 Video Channel向所述客户端发送所述视频文件的地址信息;
或者,
客户端打开服务器端建立的 RDP扩展通道 Video Channel,并远程打开 所述服务器端的视频文件; 所述客户端根据服务器端通过所述 RDP扩展通 道 Video Channel发送的所述视频文件的地址信息, 获取所述视频文件在通 信网中的访问地址, 然后根据所述访问地址, 远程播放所述视频文件。
PCT/CN2011/082980 2011-07-28 2011-11-25 服务器、客户端及利用其远程播放视频文件的方法和系统 WO2012151957A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110213615.9 2011-07-28
CN2011102136159A CN102387187A (zh) 2011-07-28 2011-07-28 服务器、客户端及利用其远程播放视频文件的方法和系统

Publications (1)

Publication Number Publication Date
WO2012151957A1 true WO2012151957A1 (zh) 2012-11-15

Family

ID=45826152

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/082980 WO2012151957A1 (zh) 2011-07-28 2011-11-25 服务器、客户端及利用其远程播放视频文件的方法和系统

Country Status (2)

Country Link
CN (1) CN102387187A (zh)
WO (1) WO2012151957A1 (zh)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103488449B (zh) * 2012-06-08 2016-06-01 旺玖科技股份有限公司 可动态设定传输组态的传输系统及其控制方法
CN103905927B (zh) * 2012-12-26 2016-08-10 华为技术有限公司 虚拟桌面场景下视频重定向的方法、桌面服务器和系统
CN103618968B (zh) * 2013-11-08 2017-11-03 中标软件有限公司 一种面向云环境下的网络电视播放方法及系统
CN103648017B (zh) * 2013-12-23 2016-07-27 佛山市兴知源数字技术有限公司 多平台一体化设备间的数据传输互联方法及装置
US9455932B2 (en) * 2014-03-03 2016-09-27 Ericsson Ab Conflict detection and resolution in an ABR network using client interactivity
CN104349177B (zh) * 2014-09-26 2018-10-30 华为技术有限公司 一种在桌面云下转向播放多媒体文件的方法、虚拟机及系统
CN105577617B (zh) * 2014-10-15 2019-05-10 中国电信股份有限公司 一种客户端、终端设备、宿主机、文件传输系统及方法
CN106162217A (zh) * 2015-04-17 2016-11-23 中兴通讯股份有限公司 一种实现视频播放的方法和装置
CN105049938B (zh) * 2015-08-31 2018-06-01 河南大学 一种基于Spice和内存共享的视频播放方法
CN106961421B (zh) * 2017-02-17 2019-10-18 浙江大学 一种Android系统服务端、远程桌面音频重定向方法及系统
CN111107436A (zh) * 2019-12-12 2020-05-05 视联动力信息技术股份有限公司 一种视频文件的点播方法、装置、终端设备及存储介质
CN112492042B (zh) * 2020-12-08 2021-08-13 清华大学 光学微腔传感装置的应用程序跨平台系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030093568A1 (en) * 2001-11-14 2003-05-15 Sharp Laboratories Of America, Inc. Remote desktop protocol compression system
CN101188506A (zh) * 2007-12-20 2008-05-28 康佳集团股份有限公司 一种linux操作系统的媒体播放器及其实现方法
CN101582926A (zh) * 2009-06-15 2009-11-18 中国电信股份有限公司 实现远程媒体播放重定向的方法和系统
CN101902471A (zh) * 2010-07-16 2010-12-01 福建升腾资讯有限公司 Rdp环境下流媒体映射方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030093568A1 (en) * 2001-11-14 2003-05-15 Sharp Laboratories Of America, Inc. Remote desktop protocol compression system
CN101188506A (zh) * 2007-12-20 2008-05-28 康佳集团股份有限公司 一种linux操作系统的媒体播放器及其实现方法
CN101582926A (zh) * 2009-06-15 2009-11-18 中国电信股份有限公司 实现远程媒体播放重定向的方法和系统
CN101902471A (zh) * 2010-07-16 2010-12-01 福建升腾资讯有限公司 Rdp环境下流媒体映射方法

Also Published As

Publication number Publication date
CN102387187A (zh) 2012-03-21

Similar Documents

Publication Publication Date Title
WO2012151957A1 (zh) 服务器、客户端及利用其远程播放视频文件的方法和系统
CN110324671B (zh) 网页视频播放方法及装置、电子设备及存储介质
US10334003B2 (en) Mobile terminal and method for achieving cloud streaming medium file sharing based on DLNA
EP2744169B1 (en) Method and apparatus for playing streaming media files
US20180219929A1 (en) Method and system for distributed processing, rendering, and displaying of content
US8876601B2 (en) Method and apparatus for providing a multi-screen based multi-dimension game service
CN102761603A (zh) VDI环境下的网页flash视频重定向的方法
US9749373B2 (en) System and method for improved content streaming
KR101942269B1 (ko) 웹 브라우저에서 미디어를 재생하고 탐색하는 장치 및 방법
WO2013159663A1 (zh) 内容再现方法及装置、移动终端
US8432966B2 (en) Communication apparatus and control method for communication apparatus
WO2014054325A1 (ja) 符号化制御装置および符号化制御方法
WO2013116975A1 (zh) 流媒体播放方法、设备及系统
US10404606B2 (en) Method and apparatus for acquiring video bitstream
AlDuaij et al. Heterogeneous multi-mobile computing
JP6116240B2 (ja) 送信装置、送信方法、及びプログラム
US9392063B2 (en) Information processing apparatus that controls transfer of image, control method therefor, and storage medium
JP2008539614A (ja) 統合無線マルチメディア送信システム
CN113596112A (zh) 一种面向视频监控的传输方法
TW201406158A (zh) 網路視頻傳輸與播放系統及方法
CN103188210A (zh) 在大屏幕客户端上播放移动终端的媒体内容的方法及终端
WO2020073777A1 (zh) 媒体处理方法及装置
US11140442B1 (en) Content delivery to playback systems with connected display devices
JP5627413B2 (ja) 放送受信装置及び放送受信システム
WO2012151810A1 (zh) 一种交互式业务的代理方法及装置

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

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

Country of ref document: EP

Kind code of ref document: A1