The invention provides a method for carrying out audio / video redirection in a VDI (
Virtual Device Interface) environment, which comprises the following steps that: a user logs in a
virtual desktop by a
client and carries out video playing operation; after a
data source and a separator are established, a
server side preferentially matches and uploads a redirector; when starting to play a video, the redirector carries out selective
processing on video data; if a coded format is an original video coded format, the data is fed into a data compressor and the data is compressed into a media format which can be decoded by the
client; if the coded format is a decodable format supported by the
client, the data is transmitted to a client communication module by a
server side communication module; if the coded format is not one of the two coded formats, the data is rejected to receive, a
server side decoder is uploaded and the data is subjected to decompression
processing; and a client play
assembly displays and plays a played image on the
virtual desktop. According to the method provided by the invention, an audio / video redirection technology is more universal for supporting the
multimedia coded format and the play fluency of the standard /
high definition video with the definition of at least 720P is promoted.