本文整理汇总了Java中org.fourthline.cling.binding.annotations.UpnpOutputArgument类的典型用法代码示例。如果您正苦于以下问题:Java UpnpOutputArgument类的具体用法?Java UpnpOutputArgument怎么用?Java UpnpOutputArgument使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
UpnpOutputArgument类属于org.fourthline.cling.binding.annotations包,在下文中一共展示了UpnpOutputArgument类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getMediaInfo
import org.fourthline.cling.binding.annotations.UpnpOutputArgument; //导入依赖的package包/类
@Override
@UpnpAction(out = {
@UpnpOutputArgument(name = "NrTracks", stateVariable = "NumberOfTracks", getterName = "getNumberOfTracks"),
@UpnpOutputArgument(name = "MediaDuration", stateVariable = "CurrentMediaDuration", getterName = "getMediaDuration"),
@UpnpOutputArgument(name = "CurrentURI", stateVariable = "AVTransportURI", getterName = "getCurrentURI"),
@UpnpOutputArgument(name = "CurrentURIMetaData", stateVariable = "AVTransportURIMetaData", getterName = "getCurrentURIMetaData"),
@UpnpOutputArgument(name = "NextURI", stateVariable = "NextAVTransportURI", getterName = "getNextURI"),
@UpnpOutputArgument(name = "NextURIMetaData", stateVariable = "NextAVTransportURIMetaData", getterName = "getNextURIMetaData"),
@UpnpOutputArgument(name = "PlayMedium", stateVariable = "PlaybackStorageMedium", getterName = "getPlayMedium"),
@UpnpOutputArgument(name = "RecordMedium", stateVariable = "RecordStorageMedium", getterName = "getRecordMedium"),
@UpnpOutputArgument(name = "WriteStatus", stateVariable = "RecordMediumWriteStatus", getterName = "getWriteStatus") })
public MediaInfo getMediaInfo(
@UpnpInputArgument(name = "InstanceID") UnsignedIntegerFourBytes arg0)
throws AVTransportException {
// TODO Auto-generated method stub
return mMediaInfo;
}
开发者ID:sky24987,项目名称:UPlayer,代码行数:19,代码来源:AvtransportService.java
示例2: getTransportInfo
import org.fourthline.cling.binding.annotations.UpnpOutputArgument; //导入依赖的package包/类
@Override
@UpnpAction(out = {
@UpnpOutputArgument(name = "CurrentTransportState", stateVariable = "TransportState", getterName = "getCurrentTransportState"),
@UpnpOutputArgument(name = "CurrentTransportStatus", stateVariable = "TransportStatus", getterName = "getCurrentTransportStatus"),
@UpnpOutputArgument(name = "CurrentSpeed", stateVariable = "TransportPlaySpeed", getterName = "getCurrentSpeed") })
public TransportInfo getTransportInfo(
@UpnpInputArgument(name = "InstanceID") UnsignedIntegerFourBytes arg0)
throws AVTransportException {
// TODO Auto-generated method stub0
/**
* 使用bubbleUpnp测试时,它会一直获取该信息,而使用skifta却并不会如此,
* 难道是我回个dmc的消息有误,导致bubble无法获取想要的信息,而重复获取? 现在还不太清楚。
*/
return mTransportInfo;
}
开发者ID:sky24987,项目名称:UPlayer,代码行数:17,代码来源:AvtransportService.java
示例3: getCurrentConnectionInfo
import org.fourthline.cling.binding.annotations.UpnpOutputArgument; //导入依赖的package包/类
@UpnpAction(out = {
@UpnpOutputArgument(name = "RcsID", getterName = "getRcsID"),
@UpnpOutputArgument(name = "AVTransportID", getterName = "getAvTransportID"),
@UpnpOutputArgument(name = "ProtocolInfo", getterName = "getProtocolInfo"),
@UpnpOutputArgument(name = "PeerConnectionManager", stateVariable = "A_ARG_TYPE_ConnectionManager", getterName = "getPeerConnectionManager"),
@UpnpOutputArgument(name = "PeerConnectionID", stateVariable = "A_ARG_TYPE_ConnectionID", getterName = "getPeerConnectionID"),
@UpnpOutputArgument(name = "Direction", getterName = "getDirection"),
@UpnpOutputArgument(name = "Status", stateVariable = "A_ARG_TYPE_ConnectionStatus", getterName = "getConnectionStatus")
})
synchronized public ConnectionInfo getCurrentConnectionInfo(@UpnpInputArgument(name = "ConnectionID") int connectionId)
throws ActionException {
log.fine("Getting connection information of connection ID: " + connectionId);
ConnectionInfo info;
if ((info = activeConnections.get(connectionId)) == null) {
throw new ConnectionManagerException(
ConnectionManagerErrorCode.INVALID_CONNECTION_REFERENCE,
"Non-active connection ID: " + connectionId
);
}
return info;
}
开发者ID:offbye,项目名称:DroidDLNA,代码行数:22,代码来源:ConnectionManagerService.java
示例4: getCurrentTransportActionsString
import org.fourthline.cling.binding.annotations.UpnpOutputArgument; //导入依赖的package包/类
@UpnpAction(name = "GetCurrentTransportActions", out = @UpnpOutputArgument(name = "Actions", stateVariable = "CurrentTransportActions"))
public String getCurrentTransportActionsString(@UpnpInputArgument(name = "InstanceID") UnsignedIntegerFourBytes instanceId)
throws AVTransportException {
try {
return ModelUtil.toCommaSeparatedList(getCurrentTransportActions(instanceId));
} catch (Exception ex) {
return ""; // TODO: Empty string is not defined in spec but seems reasonable for no available action?
}
}
开发者ID:theopenbit,项目名称:yaacc-code,代码行数:10,代码来源:YaaccAVTransportService.java
示例5: getMediaInfo
import org.fourthline.cling.binding.annotations.UpnpOutputArgument; //导入依赖的package包/类
@UpnpAction(out = {
@UpnpOutputArgument(name = "NrTracks", stateVariable = "NumberOfTracks", getterName = "getNumberOfTracks"),
@UpnpOutputArgument(name = "MediaDuration", stateVariable = "CurrentMediaDuration", getterName = "getMediaDuration"),
@UpnpOutputArgument(name = "CurrentURI", stateVariable = "AVTransportURI", getterName = "getCurrentURI"),
@UpnpOutputArgument(name = "CurrentURIMetaData", stateVariable = "AVTransportURIMetaData", getterName = "getCurrentURIMetaData"),
@UpnpOutputArgument(name = "NextURI", stateVariable = "NextAVTransportURI", getterName = "getNextURI"),
@UpnpOutputArgument(name = "NextURIMetaData", stateVariable = "NextAVTransportURIMetaData", getterName = "getNextURIMetaData"),
@UpnpOutputArgument(name = "PlayMedium", stateVariable = "PlaybackStorageMedium", getterName = "getPlayMedium"),
@UpnpOutputArgument(name = "RecordMedium", stateVariable = "RecordStorageMedium", getterName = "getRecordMedium"),
@UpnpOutputArgument(name = "WriteStatus", stateVariable = "RecordMediumWriteStatus", getterName = "getWriteStatus")
})
public MediaInfo getMediaInfo(@UpnpInputArgument(name = "InstanceID") UnsignedIntegerFourBytes instanceId)
throws AVTransportException {
return findStateMachine(instanceId).getCurrentState().getTransport().getMediaInfo();
}
开发者ID:theopenbit,项目名称:yaacc-code,代码行数:16,代码来源:YaaccAVTransportService.java
示例6: getTransportInfo
import org.fourthline.cling.binding.annotations.UpnpOutputArgument; //导入依赖的package包/类
@UpnpAction(out = {
@UpnpOutputArgument(name = "CurrentTransportState", stateVariable = "TransportState", getterName = "getCurrentTransportState"),
@UpnpOutputArgument(name = "CurrentTransportStatus", stateVariable = "TransportStatus", getterName = "getCurrentTransportStatus"),
@UpnpOutputArgument(name = "CurrentSpeed", stateVariable = "TransportPlaySpeed", getterName = "getCurrentSpeed")
})
public TransportInfo getTransportInfo(@UpnpInputArgument(name = "InstanceID") UnsignedIntegerFourBytes instanceId)
throws AVTransportException {
return findStateMachine(instanceId).getCurrentState().getTransport().getTransportInfo();
}
开发者ID:theopenbit,项目名称:yaacc-code,代码行数:10,代码来源:YaaccAVTransportService.java
示例7: getPositionInfo
import org.fourthline.cling.binding.annotations.UpnpOutputArgument; //导入依赖的package包/类
@UpnpAction(out = {
@UpnpOutputArgument(name = "Track", stateVariable = "CurrentTrack", getterName = "getTrack"),
@UpnpOutputArgument(name = "TrackDuration", stateVariable = "CurrentTrackDuration", getterName = "getTrackDuration"),
@UpnpOutputArgument(name = "TrackMetaData", stateVariable = "CurrentTrackMetaData", getterName = "getTrackMetaData"),
@UpnpOutputArgument(name = "TrackURI", stateVariable = "CurrentTrackURI", getterName = "getTrackURI"),
@UpnpOutputArgument(name = "RelTime", stateVariable = "RelativeTimePosition", getterName = "getRelTime"),
@UpnpOutputArgument(name = "AbsTime", stateVariable = "AbsoluteTimePosition", getterName = "getAbsTime"),
@UpnpOutputArgument(name = "RelCount", stateVariable = "RelativeCounterPosition", getterName = "getRelCount"),
@UpnpOutputArgument(name = "AbsCount", stateVariable = "AbsoluteCounterPosition", getterName = "getAbsCount")
})
public PositionInfo getPositionInfo(@UpnpInputArgument(name = "InstanceID") UnsignedIntegerFourBytes instanceId)
throws AVTransportException {
Log.d(getClass().getName(),"Transport: " + findStateMachine(instanceId).getCurrentState().getTransport() + " PositionInfo: " + findStateMachine(instanceId).getCurrentState().getTransport().getPositionInfo());
return findStateMachine(instanceId).getCurrentState().getTransport().getPositionInfo();
}
开发者ID:theopenbit,项目名称:yaacc-code,代码行数:16,代码来源:YaaccAVTransportService.java
示例8: getDeviceCapabilities
import org.fourthline.cling.binding.annotations.UpnpOutputArgument; //导入依赖的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
示例9: getTransportSettings
import org.fourthline.cling.binding.annotations.UpnpOutputArgument; //导入依赖的package包/类
@UpnpAction(out = {
@UpnpOutputArgument(name = "PlayMode", stateVariable = "CurrentPlayMode", getterName = "getPlayMode"),
@UpnpOutputArgument(name = "RecQualityMode", stateVariable = "CurrentRecordQualityMode", getterName = "getRecQualityMode")
})
public TransportSettings getTransportSettings(@UpnpInputArgument(name = "InstanceID") UnsignedIntegerFourBytes instanceId)
throws AVTransportException {
return findStateMachine(instanceId).getCurrentState().getTransport().getTransportSettings();
}
开发者ID:theopenbit,项目名称:yaacc-code,代码行数:9,代码来源:YaaccAVTransportService.java
示例10: getSearchCapabilities
import org.fourthline.cling.binding.annotations.UpnpOutputArgument; //导入依赖的package包/类
@SuppressWarnings("serial")
@Override
@UpnpAction(out = @UpnpOutputArgument(name = "SearchCaps"))
public CSV<String> getSearchCapabilities() {
// TODO Auto-generated method stub
CSV<String> capabilities = new CSV<String>() {
};
capabilities.add("dc:title");
capabilities.add("dc:creator");
capabilities.add("upnp:class");
capabilities.add("upnp:album");
return capabilities;
}
开发者ID:sky24987,项目名称:UPlayer,代码行数:14,代码来源:ContentDirectoryService.java
示例11: getDeviceCapabilities
import org.fourthline.cling.binding.annotations.UpnpOutputArgument; //导入依赖的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
示例12: getTransportSettings
import org.fourthline.cling.binding.annotations.UpnpOutputArgument; //导入依赖的package包/类
@Override
@UpnpAction(out = {
@UpnpOutputArgument(name = "PlayMode", stateVariable = "CurrentPlayMode", getterName = "getPlayMode"),
@UpnpOutputArgument(name = "RecQualityMode", stateVariable = "CurrentRecordQualityMode", getterName = "getRecQualityMode") })
public TransportSettings getTransportSettings(
@UpnpInputArgument(name = "InstanceID") UnsignedIntegerFourBytes arg0)
throws AVTransportException {
// TODO Auto-generated method stub
return mTransportSettings;
}
开发者ID:sky24987,项目名称:UPlayer,代码行数:12,代码来源:AvtransportService.java
示例13: getMute
import org.fourthline.cling.binding.annotations.UpnpOutputArgument; //导入依赖的package包/类
@Override
@UpnpAction(out = @UpnpOutputArgument(name = "CurrentMute", stateVariable = "Mute"))
public boolean getMute(
@UpnpInputArgument(name = "InstanceID") UnsignedIntegerFourBytes arg0,
@UpnpInputArgument(name = "Channel") String arg1)
throws RenderingControlException {
// TODO Auto-generated method stub
return mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC) > 0 ? false
: true;
}
开发者ID:sky24987,项目名称:UPlayer,代码行数:11,代码来源:RenderingControlService.java
示例14: getVolume
import org.fourthline.cling.binding.annotations.UpnpOutputArgument; //导入依赖的package包/类
@Override
@UpnpAction(out = @UpnpOutputArgument(name = "CurrentVolume", stateVariable = "Volume"))
public UnsignedIntegerTwoBytes getVolume(
@UpnpInputArgument(name = "InstanceID") UnsignedIntegerFourBytes arg0,
@UpnpInputArgument(name = "Channel") String arg1)
throws RenderingControlException {
// TODO Auto-generated method stub
return new UnsignedIntegerTwoBytes(
mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC));
}
开发者ID:sky24987,项目名称:UPlayer,代码行数:11,代码来源:RenderingControlService.java
示例15: prepareForConnection
import org.fourthline.cling.binding.annotations.UpnpOutputArgument; //导入依赖的package包/类
@UpnpAction(out = {
@UpnpOutputArgument(name = "ConnectionID", stateVariable = "A_ARG_TYPE_ConnectionID", getterName = "getConnectionID"),
@UpnpOutputArgument(name = "AVTransportID", stateVariable = "A_ARG_TYPE_AVTransportID", getterName = "getAvTransportID"),
@UpnpOutputArgument(name = "RcsID", stateVariable = "A_ARG_TYPE_RcsID", getterName = "getRcsID")
})
synchronized public ConnectionInfo prepareForConnection(
@UpnpInputArgument(name = "RemoteProtocolInfo", stateVariable = "A_ARG_TYPE_ProtocolInfo") ProtocolInfo remoteProtocolInfo,
@UpnpInputArgument(name = "PeerConnectionManager", stateVariable = "A_ARG_TYPE_ConnectionManager") ServiceReference peerConnectionManager,
@UpnpInputArgument(name = "PeerConnectionID", stateVariable = "A_ARG_TYPE_ConnectionID") int peerConnectionId,
@UpnpInputArgument(name = "Direction", stateVariable = "A_ARG_TYPE_Direction") String direction)
throws ActionException {
int connectionId = getNewConnectionId();
ConnectionInfo.Direction dir;
try {
dir = ConnectionInfo.Direction.valueOf(direction);
} catch (Exception ex) {
throw new ConnectionManagerException(ErrorCode.ARGUMENT_VALUE_INVALID, "Unsupported direction: " + direction);
}
log.fine("Preparing for connection with local new ID " + connectionId + " and peer connection ID: " + peerConnectionId);
ConnectionInfo newConnectionInfo = createConnection(
connectionId,
peerConnectionId,
peerConnectionManager,
dir,
remoteProtocolInfo
);
storeConnection(newConnectionInfo);
return newConnectionInfo;
}
开发者ID:offbye,项目名称:DroidDLNA,代码行数:36,代码来源:AbstractPeeringConnectionManagerService.java
示例16: getCurrentConnectionIDs
import org.fourthline.cling.binding.annotations.UpnpOutputArgument; //导入依赖的package包/类
@UpnpAction(out = {
@UpnpOutputArgument(name = "ConnectionIDs")
})
synchronized public CSV<UnsignedIntegerFourBytes> getCurrentConnectionIDs() {
CSV<UnsignedIntegerFourBytes> csv = new CSVUnsignedIntegerFourBytes();
for (Integer connectionID : activeConnections.keySet()) {
csv.add(new UnsignedIntegerFourBytes(connectionID));
}
log.fine("Returning current connection IDs: " + csv.size());
return csv;
}
开发者ID:offbye,项目名称:DroidDLNA,代码行数:12,代码来源:ConnectionManagerService.java
示例17: getProtocolInfo
import org.fourthline.cling.binding.annotations.UpnpOutputArgument; //导入依赖的package包/类
@UpnpAction(out = {
@UpnpOutputArgument(name = "Source", stateVariable = "SourceProtocolInfo", getterName = "getSourceProtocolInfo"),
@UpnpOutputArgument(name = "Sink", stateVariable = "SinkProtocolInfo", getterName = "getSinkProtocolInfo")
})
synchronized public void getProtocolInfo() throws ActionException {
// NOOP
}
开发者ID:offbye,项目名称:DroidDLNA,代码行数:8,代码来源:ConnectionManagerService.java
示例18: isAuthorized
import org.fourthline.cling.binding.annotations.UpnpOutputArgument; //导入依赖的package包/类
@UpnpAction(out = {
@UpnpOutputArgument(name = "Result",
stateVariable = "A_ARG_TYPE_Result")
})
public int isAuthorized(@UpnpInputArgument(name = "DeviceID",
stateVariable = "A_ARG_TYPE_DeviceID")
String deviceID) {
return 1;
}
开发者ID:offbye,项目名称:DroidDLNA,代码行数:10,代码来源:AbstractMediaReceiverRegistrarService.java
示例19: isValidated
import org.fourthline.cling.binding.annotations.UpnpOutputArgument; //导入依赖的package包/类
@UpnpAction(out = {
@UpnpOutputArgument(name = "Result",
stateVariable = "A_ARG_TYPE_Result")
})
public int isValidated(@UpnpInputArgument(name = "DeviceID",
stateVariable = "A_ARG_TYPE_DeviceID")
String deviceID) {
return 1;
}
开发者ID:offbye,项目名称:DroidDLNA,代码行数:10,代码来源:AbstractMediaReceiverRegistrarService.java
示例20: registerDevice
import org.fourthline.cling.binding.annotations.UpnpOutputArgument; //导入依赖的package包/类
@UpnpAction(out = {
@UpnpOutputArgument(name = "RegistrationRespMsg",
stateVariable = "A_ARG_TYPE_RegistrationRespMsg")
})
public byte[] registerDevice(@UpnpInputArgument(name = "RegistrationReqMsg",
stateVariable = "A_ARG_TYPE_RegistrationReqMsg")
byte[] registrationReqMsg) {
return new byte[]{};
}
开发者ID:offbye,项目名称:DroidDLNA,代码行数:10,代码来源:AbstractMediaReceiverRegistrarService.java
注:本文中的org.fourthline.cling.binding.annotations.UpnpOutputArgument类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论