dimanche 26 mars 2017

Streaming on webpage

How can I put a stream which is from a java application onto a web page. For example, the code below can show the stream on a java application.

WebcamPanel panel = new WebcamPanel(webcam);
    panel.setFPSDisplayed(true);
    panel.setDisplayDebugInfo(true);
    panel.setImageSizeDisplayed(true);
    panel.setMirrored(true);
    JFrame window = new JFrame("Test webcam panel");
    window.add(panel);
    window.setResizable(true);
    window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    window.pack();
    window.setVisible(true);

But I want to show this stream on a web page so that everyone can get access to it.




Aucun commentaire:

Enregistrer un commentaire