本文整理汇总了Java中org.onvif.ver10.schema.VideoSource类的典型用法代码示例。如果您正苦于以下问题:Java VideoSource类的具体用法?Java VideoSource怎么用?Java VideoSource使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
VideoSource类属于org.onvif.ver10.schema包,在下文中一共展示了VideoSource类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testVideosources
import org.onvif.ver10.schema.VideoSource; //导入依赖的package包/类
public void testVideosources() {
Object val;
try {
List<VideoSource> sources = device.getMediaService().getVideoSources();
for (VideoSource videoSource : sources) {
String token = videoSource.getToken();
System.out.println("videoSource: " + token + " -----------------");
System.out.println("framerate: " + videoSource.getFramerate());
System.out.println("size: " + videoSource.getResolution().getWidth() + "x"
+ videoSource.getResolution().getHeight());
}
} catch (Exception e) {
e.printStackTrace();
fail();
}
}
示例2: getVideoSources
import org.onvif.ver10.schema.VideoSource; //导入依赖的package包/类
public List<VideoSource> getVideoSources() throws SOAPException, ConnectException {
GetVideoSources request = new GetVideoSources();
GetVideoSourcesResponse response = new GetVideoSourcesResponse();
try {
response = (GetVideoSourcesResponse) soap.createSOAPMediaRequest(request, response, false);
}
catch (SOAPException | ConnectException e) {
throw e;
}
if (response == null) {
return null;
}
return response.getVideoSources();
}
示例3: getVideoSources
import org.onvif.ver10.schema.VideoSource; //导入依赖的package包/类
public List<VideoSource> getVideoSources() throws Exception {
GetVideoSources request = new GetVideoSources();
GetVideoSourcesResponse response = client.processRequest(request, GetVideoSourcesResponse.class, serviceUrl,
true);
if (response == null) {
return null;
}
return response.getVideoSources();
}
示例4: getVideoSources
import org.onvif.ver10.schema.VideoSource; //导入依赖的package包/类
/**
* Gets the value of the videoSources property.
*
* <p>
* This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the videoSources property.
*
* <p>
* For example, to add a new item, do as follows:
*
* <pre>
* getVideoSources().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list {@link VideoSource }
*
*
*/
public List<VideoSource> getVideoSources() {
if (videoSources == null) {
videoSources = new ArrayList<VideoSource>();
}
return this.videoSources;
}
示例5: getVideoSources
import org.onvif.ver10.schema.VideoSource; //导入依赖的package包/类
/**
* Gets the value of the videoSources property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the videoSources property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getVideoSources().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link VideoSource }
*
*
*/
public List<VideoSource> getVideoSources() {
if (videoSources == null) {
videoSources = new ArrayList<VideoSource>();
}
return this.videoSources;
}