/*
|
* To change this license header, choose License Headers in Project Properties.
|
* To change this template file, choose Tools | Templates
|
* and open the template in the editor.
|
*/
|
package cameravlctest;
|
|
import java.awt.BorderLayout;
|
import javax.swing.JFrame;
|
import uk.co.caprica.vlcj.factory.MediaPlayerFactory;
|
import uk.co.caprica.vlcj.factory.discovery.NativeDiscovery;
|
|
/**
|
*
|
* @author Konstantin
|
*/
|
public class CameraVLCTest
|
{
|
|
public static MediaPlayerFactory mediaPlayerFactory = new MediaPlayerFactory();
|
|
/**
|
* @param args the command line arguments
|
*/
|
public static void main(String[] args)
|
{
|
try
|
{
|
if ((new NativeDiscovery().discover()) == false)
|
{
|
System.out.println("NativeDiscovery error");
|
}
|
|
Video video = new Video();
|
JFrame frame = new JFrame();
|
frame.getContentPane().add(video, BorderLayout.CENTER);
|
frame.setLocation(1920, 0);
|
frame.setSize(600, 600);
|
frame.setVisible(true);
|
video.play("");
|
}
|
catch (Exception exception)
|
{
|
exception.printStackTrace();
|
}
|
|
|
}
|
|
}
|