mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Revamp API again and start implementing C and Java wrapper shells.
This commit is contained in:
11
java/src/edu/wpi/cameraserver/HTTPCamera.java
Normal file
11
java/src/edu/wpi/cameraserver/HTTPCamera.java
Normal file
@@ -0,0 +1,11 @@
|
||||
package edu.wpi.cameraserver;
|
||||
|
||||
/// A source that represents a MJPEG-over-HTTP (IP) camera.
|
||||
public class HTTPCamera extends VideoSource {
|
||||
/// 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")
|
||||
public HTTPCamera(String name, String url) {
|
||||
super(CameraServerJNI.createHTTPSource(name, url));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user