Alejandro Acuña
2024-10-07 e68f1da78bc96da5410d19e0486446917d263fc6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
 * 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();
        }
 
 
    }
 
}