wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/service/IResourceService.java

41 lines
1.2 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.genersoft.iot.vmp.service;
import com.genersoft.iot.vmp.common.CommonGbChannel;
import com.genersoft.iot.vmp.common.StreamInfo;
/**
* 同用资源接入接口,待接入的资源实现此接口即可自动接入,
* 包括GIS分屏播放国标级联等功能
*/
public interface IResourceService {
/**
* 通知资源类通道删除
*/
boolean deleteChannel(CommonGbChannel commonGbChannel);
/**
* 开始播放通道
*/
void startPlay(CommonGbChannel commonGbChannel, IResourcePlayCallback callback);
/**
* 停止播放通道
*/
void stopPlay(CommonGbChannel commonGbChannel, IResourcePlayCallback callback);
/**
* 云台控制
* @param commonGbChannel 通道
* @param command 控制指令,允许值: left, right, up, down, upleft, upright, downleft, downright, zoomin, zoomout, stop
* @param horizonSpeed 水平速度 0-255
* @param verticalSpeed 垂直速度 0-255
* @param zoomSpeed 缩放速度
* @return 结果
*/
boolean ptzControl(CommonGbChannel commonGbChannel, String command,
Integer horizonSpeed, Integer verticalSpeed, Integer zoomSpeed);
}