javax.media.NoPlayerException:找不到播放器:vfw:// 0

时间:2017-07-31 09:57:19

标签: java netbeans

我在以下代码中收到错误:

private void initCamera() throws IOException, NoPlayerException, CannotRealizeException
{
    MediaLocator ml = new MediaLocator("vfw://0");
    player = Manager.createRealizedPlayer(ml);
    this.tbCamera.add(player.getVisualComponent());
    player.start();
}

以下是追踪:

Jul 31, 2017 3:17:05 PM attendancemanagement.Student <init>
SEVERE: null
javax.media.NoPlayerException: Cannot find a Player for :vfw://0
at javax.media.Manager.createPlayerForContent(Manager.java:1412)
at javax.media.Manager.createPlayer(Manager.java:417)
at javax.media.Manager.createRealizedPlayer(Manager.java:553)
at attendancemanagement.Student.initCamera(Student.java:67)
at attendancemanagement.Student.<init>(Student.java:52)
at attendancemanagement.Student.main(Student.java:294)

this没有帮助我。

0 个答案:

没有答案