@Path(value="media")
public class MediaService
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
MediaService.ClientStream |
class |
MediaService.ImageSnapshotCapture |
class |
MediaService.SourceImageReader |
class |
MediaService.StreamCopier |
Modifier and Type | Field and Description |
---|---|
static MediaService |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
java.io.File |
getRecordedFile() |
javax.ws.rs.core.Response |
startLiveStream(java.lang.String printerName,
java.lang.String clientId,
int x,
int y) |
MachineResponse |
startVideo(java.lang.String printerName,
int x,
java.lang.String y) |
MachineResponse |
stopLiveStream(java.lang.String clientId) |
MachineResponse |
stopVideo(java.lang.String printerName) |
javax.ws.rs.core.StreamingOutput |
takePicture(java.lang.String printerName,
int x,
int y) |
public static MediaService INSTANCE
public java.io.File getRecordedFile()
@GET @Path(value="startrecordvideo/{printerName}/x/{x}/y/{y}") @Produces(value="application/json") public MachineResponse startVideo(@PathParam(value="printerName") java.lang.String printerName, @PathParam(value="x") int x, @PathParam(value="y") java.lang.String y)
@GET @Path(value="stoprecordvideo/{printerName}") @Produces(value="application/json") public MachineResponse stopVideo(@PathParam(value="printerName") java.lang.String printerName)
@GET @Path(value="startlivemjpegstream/{printerName}/clientid/{clientId}/x/{x}/y/{y}") @Produces(value="multipart/x-mixed-replace; boundary=--EndOfJPEG") public javax.ws.rs.core.Response startLiveStream(@PathParam(value="printerName") java.lang.String printerName, @PathParam(value="clientId") java.lang.String clientId, @PathParam(value="x") int x, @PathParam(value="y") int y)
@GET @Path(value="stoplivemjpegstream/{printerName}/clientid/{clientId}") @Produces(value="application/json") public MachineResponse stopLiveStream(@PathParam(value="clientId") java.lang.String clientId)
@GET @Path(value="takesnapshot/{printerName}/x/{x}/y/{y}") @Produces(value="image/jpg") public javax.ws.rs.core.StreamingOutput takePicture(@PathParam(value="printerName") java.lang.String printerName, @PathParam(value="x") int x, @PathParam(value="y") int y)