本文整理汇总了Java中org.fourthline.cling.support.lastchange.LastChange类的典型用法代码示例。如果您正苦于以下问题:Java LastChange类的具体用法?Java LastChange怎么用?Java LastChange使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
LastChange类属于org.fourthline.cling.support.lastchange包,在下文中一共展示了LastChange类的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: appendCurrentState
import org.fourthline.cling.support.lastchange.LastChange; //导入依赖的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: appendCurrentState
import org.fourthline.cling.support.lastchange.LastChange; //导入依赖的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
示例3: AVTransport
import org.fourthline.cling.support.lastchange.LastChange; //导入依赖的package包/类
public AVTransport(UnsignedIntegerFourBytes instanceID, LastChange lastChange, StorageMedium[] possiblePlayMedia) {
this.instanceID = instanceID;
this.lastChange = lastChange;
setDeviceCapabilities(new DeviceCapabilities(possiblePlayMedia));
setMediaInfo(new MediaInfo());
setTransportInfo(new TransportInfo());
setPositionInfo(new PositionInfo());
setTransportSettings(new TransportSettings());
}
开发者ID:offbye,项目名称:DroidDLNA,代码行数:10,代码来源:AVTransport.java
示例4: appendCurrentState
import org.fourthline.cling.support.lastchange.LastChange; //导入依赖的package包/类
@Override
public void appendCurrentState(LastChange lc, UnsignedIntegerFourBytes instanceId) throws Exception {
for (Channel channel : getCurrentChannels()) {
String channelString = channel.name();
lc.setEventedValue(
instanceId,
new RenderingControlVariable.Mute(new ChannelMute(channel, getMute(instanceId, channelString))),
new RenderingControlVariable.Loudness(new ChannelLoudness(channel, getLoudness(instanceId, channelString))),
new RenderingControlVariable.Volume(new ChannelVolume(channel, getVolume(instanceId, channelString).getValue().intValue())),
new RenderingControlVariable.VolumeDB(new ChannelVolumeDB(channel, getVolumeDB(instanceId, channelString))),
new RenderingControlVariable.PresetNameList(PresetName.FactoryDefaults.name())
);
}
}
开发者ID:offbye,项目名称:DroidDLNA,代码行数:15,代码来源:AbstractAudioRenderingControl.java
示例5: ZxtMediaPlayer
import org.fourthline.cling.support.lastchange.LastChange; //导入依赖的package包/类
public ZxtMediaPlayer(UnsignedIntegerFourBytes instanceId,Context context,
LastChange avTransportLastChange,
LastChange renderingControlLastChange) {
super();
this.instanceId = instanceId;
this.mContext = context;
this.avTransportLastChange = avTransportLastChange;
this.renderingControlLastChange = renderingControlLastChange;
try {
// Disconnect the old bus listener
/* TODO: That doesn't work for some reason...
getPipeline().getBus().disconnect(
(Bus.STATE_CHANGED) Reflections.getField(getClass(), "stateChanged").get(this)
);
*/
// Connect a fixed bus state listener
// getPipeline().getBus().connect(busStateChanged);
// Connect a bus tag listener
// getPipeline().getBus().connect(busTag);
} catch (Exception ex) {
throw new RuntimeException(ex);
}
// addMediaListener(new GstMediaListener());
// setVideoSink(videoComponent.getElement());
}
开发者ID:offbye,项目名称:DroidDLNA,代码行数:32,代码来源:ZxtMediaPlayer.java
示例6: ZxtMediaPlayers
import org.fourthline.cling.support.lastchange.LastChange; //导入依赖的package包/类
public ZxtMediaPlayers(int numberOfPlayers,
Context context,
LastChange avTransportLastChange,
LastChange renderingControlLastChange) {
super(numberOfPlayers);
this.mContext = context;
this.avTransportLastChange = avTransportLastChange;
this.renderingControlLastChange = renderingControlLastChange;
for (int i = 0; i < numberOfPlayers; i++) {
ZxtMediaPlayer player =
new ZxtMediaPlayer(
new UnsignedIntegerFourBytes(i),
mContext,
avTransportLastChange,
renderingControlLastChange
) {
@Override
protected void transportStateChanged(TransportState newState) {
super.transportStateChanged(newState);
if (newState.equals(TransportState.PLAYING)) {
onPlay(this);
} else if (newState.equals(TransportState.STOPPED)) {
onStop(this);
}
}
};
put(player.getInstanceId(), player);
}
}
开发者ID:offbye,项目名称:DroidDLNA,代码行数:32,代码来源:ZxtMediaPlayers.java
示例7: YaaccAVTransportService
import org.fourthline.cling.support.lastchange.LastChange; //导入依赖的package包/类
protected YaaccAVTransportService(LastChange lastChange) {
this.propertyChangeSupport = new PropertyChangeSupport(this);
this.lastChange = lastChange ;
}
开发者ID:theopenbit,项目名称:yaacc-code,代码行数:5,代码来源:YaaccAVTransportService.java
示例8: AvTransport
import org.fourthline.cling.support.lastchange.LastChange; //导入依赖的package包/类
public AvTransport(UnsignedIntegerFourBytes instanceID, LastChange lastChange, StorageMedium possiblePlayMedium) {
super(instanceID, lastChange, possiblePlayMedium);
}
开发者ID:theopenbit,项目名称:yaacc-code,代码行数:4,代码来源:AvTransport.java
示例9: AvtransportService
import org.fourthline.cling.support.lastchange.LastChange; //导入依赖的package包/类
public AvtransportService(Context context, LastChange lastChange) {
super(lastChange);
mContext = context;
}
开发者ID:sky24987,项目名称:UPlayer,代码行数:5,代码来源:AvtransportService.java
示例10: RenderingControlService
import org.fourthline.cling.support.lastchange.LastChange; //导入依赖的package包/类
public RenderingControlService(Context context, LastChange lastChange) {
super(lastChange);
mAudioManager = (AudioManager) context
.getSystemService(Context.AUDIO_SERVICE);
}
开发者ID:sky24987,项目名称:UPlayer,代码行数:6,代码来源:RenderingControlService.java
示例11: AbstractAVTransportService
import org.fourthline.cling.support.lastchange.LastChange; //导入依赖的package包/类
protected AbstractAVTransportService() {
this.propertyChangeSupport = new PropertyChangeSupport(this);
this.lastChange = new LastChange(new AVTransportLastChangeParser());
}
开发者ID:offbye,项目名称:DroidDLNA,代码行数:5,代码来源:AbstractAVTransportService.java
示例12: getLastChange
import org.fourthline.cling.support.lastchange.LastChange; //导入依赖的package包/类
@Override
public LastChange getLastChange() {
return lastChange;
}
开发者ID:offbye,项目名称:DroidDLNA,代码行数:5,代码来源:AbstractAVTransportService.java
示例13: createTransport
import org.fourthline.cling.support.lastchange.LastChange; //导入依赖的package包/类
protected AVTransport createTransport(UnsignedIntegerFourBytes instanceId, LastChange lastChange) {
return new AVTransport(instanceId, lastChange, StorageMedium.NETWORK);
}
开发者ID:offbye,项目名称:DroidDLNA,代码行数:4,代码来源:AVTransportService.java
示例14: getLastChange
import org.fourthline.cling.support.lastchange.LastChange; //导入依赖的package包/类
public LastChange getLastChange() {
return lastChange;
}
开发者ID:offbye,项目名称:DroidDLNA,代码行数:4,代码来源:AVTransport.java
示例15: AbstractAudioRenderingControl
import org.fourthline.cling.support.lastchange.LastChange; //导入依赖的package包/类
protected AbstractAudioRenderingControl() {
this.propertyChangeSupport = new PropertyChangeSupport(this);
this.lastChange = new LastChange(new RenderingControlLastChangeParser());
}
开发者ID:offbye,项目名称:DroidDLNA,代码行数:5,代码来源:AbstractAudioRenderingControl.java
示例16: getAvTransportLastChange
import org.fourthline.cling.support.lastchange.LastChange; //导入依赖的package包/类
public LastChange getAvTransportLastChange() {
return avTransportLastChange;
}
开发者ID:offbye,项目名称:DroidDLNA,代码行数:4,代码来源:ZxtMediaPlayer.java
示例17: getRenderingControlLastChange
import org.fourthline.cling.support.lastchange.LastChange; //导入依赖的package包/类
public LastChange getRenderingControlLastChange() {
return renderingControlLastChange;
}
开发者ID:offbye,项目名称:DroidDLNA,代码行数:4,代码来源:ZxtMediaPlayer.java
示例18: AVTransportService
import org.fourthline.cling.support.lastchange.LastChange; //导入依赖的package包/类
protected AVTransportService(LastChange lastChange, Map<UnsignedIntegerFourBytes, ZxtMediaPlayer> players) {
super(lastChange);
this.players = players;
}
开发者ID:offbye,项目名称:DroidDLNA,代码行数:5,代码来源:AVTransportService.java
示例19: AudioRenderingControl
import org.fourthline.cling.support.lastchange.LastChange; //导入依赖的package包/类
protected AudioRenderingControl(LastChange lastChange, Map<UnsignedIntegerFourBytes, ZxtMediaPlayer> players) {
super(lastChange);
this.players = players;
}
开发者ID:offbye,项目名称:DroidDLNA,代码行数:5,代码来源:AudioRenderingControl.java
注:本文中的org.fourthline.cling.support.lastchange.LastChange类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论