1. 首页
  2. 编程语言
  3. Java
  4. swing 播放 rtsp 视频

swing 播放 rtsp 视频

上传者: 2018-12-18 22:55:40上传 RAR文件 1.33MB 热度 83次
电脑上需要安装 vlc 播放器,然后用再运行此程序 就可以直接打开了 利用 vlcj 插件。 mediaPlayerComponent = new EmbeddedMediaPlayerComponent(); // mediaPlayerComponent.getMediaPlayer().addMediaOptions(":network-caching=500"); mediaPlayerComponent.setSize(1280, 960); frame.getContentPane().setLayout(null); frame.add(mediaPlayerComponent); frame.setLocation(100, 100); frame.setSize(1440, 1024); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setVisible(true); MediaPlayer player = mediaPlayerComponent.getMediaPlayer(); String[] options = {"video-filter=motionblur", "network-caching=200", "no-plugins-cache"}; player.playMedia("rtsp://admin:1qaz2wsx@192.168.0.102:554/h264/ch1/main/av_stream",options);
用户评论
码姐姐匿名网友 2018-12-18 22:55:40

Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'libvlc': Native library (win32-x86-64/libvlc.dll) not found in resource path ([file:/C:/workspace1/rtsp/bin/ 报这种错是怎么回事?