###如果需要开发一个跨平台视频播放器,可以在不同操作系统平台(Windows、Linux、Unix等)上播放多种格式的视频文件,常见的视频格式包括MPEG、RMVB、AVI、WMV等。先试用桥接模式设计该播放器。
public class Test {
public static void main(String[] args) {
VideoFile vf ;
OperatingSystemVersion osType1 = new WindowsVersion();
vf = new AVIFile();
osType1.setViod(vf);
osType1.play("使用AVI格式播放百鸟朝凤");
OperatingSystemVersion osType2 = new LinuxVersion();
vf = new RMVBFile();
osType2.setViod(vf);
osType2.play("使用RMVB格式播放王牌对王牌");
OperatingSystemVers