当前位置: 首页>>代码示例>>Java>>正文


Java VideoSource类代码示例

本文整理汇总了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();
	}
}
 
开发者ID:D2Edev,项目名称:onvifjava,代码行数:17,代码来源:TestHelper.java

示例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();
}
 
开发者ID:milg0,项目名称:onvif-java-lib,代码行数:18,代码来源:MediaDevices.java

示例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();
}
 
开发者ID:D2Edev,项目名称:onvifjava,代码行数:10,代码来源:MediaService.java

示例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;
}
 
开发者ID:D2Edev,项目名称:onvifjava,代码行数:27,代码来源:GetVideoSourcesResponse.java

示例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;
}
 
开发者ID:fpompermaier,项目名称:onvif,代码行数:29,代码来源:GetVideoSourcesResponse.java


注:本文中的org.onvif.ver10.schema.VideoSource类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。