• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java DeviceCapabilities类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.fourthline.cling.support.model.DeviceCapabilities的典型用法代码示例。如果您正苦于以下问题:Java DeviceCapabilities类的具体用法?Java DeviceCapabilities怎么用?Java DeviceCapabilities使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

DeviceCapabilities类属于org.fourthline.cling.support.model包,在下文中一共展示了DeviceCapabilities类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: appendCurrentState

点赞 2

import org.fourthline.cling.support.model.DeviceCapabilities; //导入依赖的package包/类
@Override
public void appendCurrentState(LastChange lc, UnsignedIntegerFourBytes instanceId) throws Exception {

    MediaInfo mediaInfo = getMediaInfo(instanceId);
    TransportInfo transportInfo = getTransportInfo(instanceId);
    TransportSettings transportSettings = getTransportSettings(instanceId);
    PositionInfo positionInfo = getPositionInfo(instanceId);
    DeviceCapabilities deviceCaps = getDeviceCapabilities(instanceId);

    lc.setEventedValue(
            instanceId,
            new AVTransportVariable.AVTransportURI(URI.create(mediaInfo.getCurrentURI())),
            new AVTransportVariable.AVTransportURIMetaData(mediaInfo.getCurrentURIMetaData()),
            new AVTransportVariable.CurrentMediaDuration(mediaInfo.getMediaDuration()),
            new AVTransportVariable.CurrentPlayMode(transportSettings.getPlayMode()),
            new AVTransportVariable.CurrentRecordQualityMode(transportSettings.getRecQualityMode()),
            new AVTransportVariable.CurrentTrack(positionInfo.getTrack()),
            new AVTransportVariable.CurrentTrackDuration(positionInfo.getTrackDuration()),
            new AVTransportVariable.CurrentTrackMetaData(positionInfo.getTrackMetaData()),
            new AVTransportVariable.CurrentTrackURI(URI.create(positionInfo.getTrackURI())),
            new AvTransportVariable.CurrentTransportActions(getPossibleTransportActions(instanceId)),
            new AVTransportVariable.NextAVTransportURI(URI.create(mediaInfo.getNextURI())),
            new AVTransportVariable.NextAVTransportURIMetaData(mediaInfo.getNextURIMetaData()),
            new AVTransportVariable.NumberOfTracks(mediaInfo.getNumberOfTracks()),
            new AVTransportVariable.PossiblePlaybackStorageMedia(deviceCaps.getPlayMedia()),
            new AVTransportVariable.PossibleRecordQualityModes(deviceCaps.getRecQualityModes()),
            new AVTransportVariable.PossibleRecordStorageMedia(deviceCaps.getRecMedia()),
            new AVTransportVariable.RecordMediumWriteStatus(mediaInfo.getWriteStatus()),
            new AVTransportVariable.RecordStorageMedium(mediaInfo.getRecordMedium()),
            new AVTransportVariable.TransportPlaySpeed(transportInfo.getCurrentSpeed()),
            new AVTransportVariable.TransportState(transportInfo.getCurrentTransportState()),
            new AVTransportVariable.TransportStatus(transportInfo.getCurrentTransportStatus())
    );
}
 

开发者ID:theopenbit,
项目名称:yaacc-code,
代码行数:35,
代码来源:YaaccAVTransportService.java

示例2: getDeviceCapabilities

点赞 2

import org.fourthline.cling.support.model.DeviceCapabilities; //导入依赖的package包/类
@UpnpAction(out = {
        @UpnpOutputArgument(name = "PlayMedia", stateVariable = "PossiblePlaybackStorageMedia", getterName = "getPlayMediaString"),
        @UpnpOutputArgument(name = "RecMedia", stateVariable = "PossibleRecordStorageMedia", getterName = "getRecMediaString"),
        @UpnpOutputArgument(name = "RecQualityModes", stateVariable = "PossibleRecordQualityModes", getterName = "getRecQualityModesString")
})
public DeviceCapabilities getDeviceCapabilities(@UpnpInputArgument(name = "InstanceID") UnsignedIntegerFourBytes instanceId)
        throws AVTransportException {
    return findStateMachine(instanceId).getCurrentState().getTransport().getDeviceCapabilities();
}
 

开发者ID:theopenbit,
项目名称:yaacc-code,
代码行数:10,
代码来源:YaaccAVTransportService.java

示例3: getDeviceCapabilities

点赞 2

import org.fourthline.cling.support.model.DeviceCapabilities; //导入依赖的package包/类
@Override
@UpnpAction(out = {
		@UpnpOutputArgument(name = "PlayMedia", stateVariable = "PossiblePlaybackStorageMedia", getterName = "getPlayMediaString"),
		@UpnpOutputArgument(name = "RecMedia", stateVariable = "PossibleRecordStorageMedia", getterName = "getRecMediaString"),
		@UpnpOutputArgument(name = "RecQualityModes", stateVariable = "PossibleRecordQualityModes", getterName = "getRecQualityModesString") })
public DeviceCapabilities getDeviceCapabilities(
		@UpnpInputArgument(name = "InstanceID") UnsignedIntegerFourBytes arg0)
		throws AVTransportException {
	// TODO Auto-generated method stub
	return mDeviceCapabilities;
}
 

开发者ID:sky24987,
项目名称:UPlayer,
代码行数:12,
代码来源:AvtransportService.java

示例4: appendCurrentState

点赞 2

import org.fourthline.cling.support.model.DeviceCapabilities; //导入依赖的package包/类
@Override
public void appendCurrentState(LastChange lc, UnsignedIntegerFourBytes instanceId) throws Exception {

    MediaInfo mediaInfo = getMediaInfo(instanceId);
    TransportInfo transportInfo = getTransportInfo(instanceId);
    TransportSettings transportSettings = getTransportSettings(instanceId);
    PositionInfo positionInfo = getPositionInfo(instanceId);
    DeviceCapabilities deviceCaps = getDeviceCapabilities(instanceId);

    lc.setEventedValue(
            instanceId,
            new AVTransportVariable.AVTransportURI(URI.create(mediaInfo.getCurrentURI())),
            new AVTransportVariable.AVTransportURIMetaData(mediaInfo.getCurrentURIMetaData()),
            new AVTransportVariable.CurrentMediaDuration(mediaInfo.getMediaDuration()),
            new AVTransportVariable.CurrentPlayMode(transportSettings.getPlayMode()),
            new AVTransportVariable.CurrentRecordQualityMode(transportSettings.getRecQualityMode()),
            new AVTransportVariable.CurrentTrack(positionInfo.getTrack()),
            new AVTransportVariable.CurrentTrackDuration(positionInfo.getTrackDuration()),
            new AVTransportVariable.CurrentTrackMetaData(positionInfo.getTrackMetaData()),
            new AVTransportVariable.CurrentTrackURI(URI.create(positionInfo.getTrackURI())),
            new AVTransportVariable.CurrentTransportActions(getCurrentTransportActions(instanceId)),
            new AVTransportVariable.NextAVTransportURI(URI.create(mediaInfo.getNextURI())),
            new AVTransportVariable.NextAVTransportURIMetaData(mediaInfo.getNextURIMetaData()),
            new AVTransportVariable.NumberOfTracks(mediaInfo.getNumberOfTracks()),
            new AVTransportVariable.PossiblePlaybackStorageMedia(deviceCaps.getPlayMedia()),
            new AVTransportVariable.PossibleRecordQualityModes(deviceCaps.getRecQualityModes()),
            new AVTransportVariable.PossibleRecordStorageMedia(deviceCaps.getRecMedia()),
            new AVTransportVariable.RecordMediumWriteStatus(mediaInfo.getWriteStatus()),
            new AVTransportVariable.RecordStorageMedium(mediaInfo.getRecordMedium()),
            new AVTransportVariable.TransportPlaySpeed(transportInfo.getCurrentSpeed()),
            new AVTransportVariable.TransportState(transportInfo.getCurrentTransportState()),
            new AVTransportVariable.TransportStatus(transportInfo.getCurrentTransportStatus())
    );
}
 

开发者ID:offbye,
项目名称:DroidDLNA,
代码行数:35,
代码来源:AbstractAVTransportService.java

示例5: getDeviceCapabilities

点赞 2

import org.fourthline.cling.support.model.DeviceCapabilities; //导入依赖的package包/类
@UpnpAction(out = {
        @UpnpOutputArgument(name = "PlayMedia", stateVariable = "PossiblePlaybackStorageMedia", getterName = "getPlayMediaString"),
        @UpnpOutputArgument(name = "RecMedia", stateVariable = "PossibleRecordStorageMedia", getterName = "getRecMediaString"),
        @UpnpOutputArgument(name = "RecQualityModes", stateVariable = "PossibleRecordQualityModes", getterName = "getRecQualityModesString")
})
public abstract DeviceCapabilities getDeviceCapabilities(@UpnpInputArgument(name = "InstanceID") UnsignedIntegerFourBytes instanceId)
        throws AVTransportException;
 

开发者ID:offbye,
项目名称:DroidDLNA,
代码行数:8,
代码来源:AbstractAVTransportService.java

示例6: getDeviceCapabilities

点赞 2

import org.fourthline.cling.support.model.DeviceCapabilities; //导入依赖的package包/类
@Override
public DeviceCapabilities getDeviceCapabilities(@UpnpInputArgument(name = "InstanceID") UnsignedIntegerFourBytes unsignedIntegerFourBytes) throws AVTransportException {
    return null;
}
 

开发者ID:hezhubo,
项目名称:HPlayer,
代码行数:5,
代码来源:AVTransportService.java

示例7: success

点赞 2

import org.fourthline.cling.support.model.DeviceCapabilities; //导入依赖的package包/类
public void success(ActionInvocation invocation) {
    DeviceCapabilities caps = new DeviceCapabilities(invocation.getOutputMap());
    received(invocation, caps);
}
 

开发者ID:offbye,
项目名称:DroidDLNA,
代码行数:5,
代码来源:GetDeviceCapabilities.java

示例8: getDeviceCapabilities

点赞 2

import org.fourthline.cling.support.model.DeviceCapabilities; //导入依赖的package包/类
public DeviceCapabilities getDeviceCapabilities(UnsignedIntegerFourBytes instanceId) throws AVTransportException {
    return findStateMachine(instanceId).getCurrentState().getTransport().getDeviceCapabilities();
}
 

开发者ID:offbye,
项目名称:DroidDLNA,
代码行数:4,
代码来源:AVTransportService.java

示例9: received

点赞 2

import org.fourthline.cling.support.model.DeviceCapabilities; //导入依赖的package包/类
public void received(ActionInvocation paramActionInvocation,
        DeviceCapabilities paramDeviceCapabilities) {
    Log.e("cap receive", "cap receive" + paramDeviceCapabilities.getPlayMediaString());
}
 

开发者ID:offbye,
项目名称:DroidDLNA,
代码行数:5,
代码来源:GetDeviceCapabilitiesCallback.java

示例10: getDeviceCapabilities

点赞 2

import org.fourthline.cling.support.model.DeviceCapabilities; //导入依赖的package包/类
@Override
public DeviceCapabilities getDeviceCapabilities(UnsignedIntegerFourBytes instanceId) throws AVTransportException {
    getInstance(instanceId);
    return new DeviceCapabilities(new StorageMedium[]{StorageMedium.NETWORK});
}
 

开发者ID:offbye,
项目名称:DroidDLNA,
代码行数:6,
代码来源:AVTransportService.java

示例11: received

点赞 1

import org.fourthline.cling.support.model.DeviceCapabilities; //导入依赖的package包/类
public abstract void received(ActionInvocation actionInvocation, DeviceCapabilities caps); 

开发者ID:offbye,
项目名称:DroidDLNA,
代码行数:2,
代码来源:GetDeviceCapabilities.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)