2016-08-26 09:01:54 -07:00
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
/* Copyright (c) FIRST 2016. All Rights Reserved. */
|
|
|
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
|
|
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
|
|
|
|
/* the project. */
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
2016-11-05 22:11:55 -07:00
|
|
|
package edu.wpi.cscore;
|
2016-08-25 23:13:48 -07:00
|
|
|
|
|
|
|
|
/// A source that represents a MJPEG-over-HTTP (IP) camera.
|
2016-12-04 00:08:47 -08:00
|
|
|
public class HttpCamera extends VideoSource {
|
2016-08-25 23:13:48 -07:00
|
|
|
/// Create a source for a MJPEG-over-HTTP (IP) camera.
|
|
|
|
|
/// @param name Source name (arbitrary unique identifier)
|
|
|
|
|
/// @param url Camera URL (e.g. "http://10.x.y.11/video/stream.mjpg")
|
2016-12-04 00:08:47 -08:00
|
|
|
public HttpCamera(String name, String url) {
|
|
|
|
|
super(CameraServerJNI.createHttpCamera(name, url));
|
2016-08-25 23:13:48 -07:00
|
|
|
}
|
|
|
|
|
}
|