Modifier and Type | Field and Description |
---|---|
private PlayManager |
iPlayer |
private org.apache.log4j.Logger |
log |
private int |
next_id |
private int |
playlist_max |
private PlayListWriter |
plw |
private CommandTracker |
tracker |
private CopyOnWriteArrayList<CustomTrack> |
tracks |
Constructor and Description |
---|
PrvPlayList(org.openhome.net.device.DvDevice iDevice) |
Modifier and Type | Method and Description |
---|---|
protected void |
deleteAll(org.openhome.net.device.IDvInvocation paramIDvInvocation) |
protected void |
deleteId(org.openhome.net.device.IDvInvocation paramIDvInvocation,
long iD) |
void |
dispose() |
private String |
getList(String ids) |
int |
getNext_id()
Returns the track Id
|
protected long |
id(org.openhome.net.device.IDvInvocation paramIDvInvocation) |
protected org.openhome.net.device.providers.DvProviderAvOpenhomeOrgPlaylist1.IdArray |
idArray(org.openhome.net.device.IDvInvocation paramIDvInvocation) |
protected boolean |
idArrayChanged(org.openhome.net.device.IDvInvocation paramIDvInvocation,
long paramLong) |
protected long |
insert(org.openhome.net.device.IDvInvocation paramIDvInvocation,
long aAfterId,
String aUri,
String aMetaData) |
private void |
loadPlayList() |
protected void |
next(org.openhome.net.device.IDvInvocation paramIDvInvocation) |
private String |
padLeft(String str,
int length,
char padChar) |
protected void |
pause(org.openhome.net.device.IDvInvocation paramIDvInvocation) |
protected void |
play(org.openhome.net.device.IDvInvocation paramIDvInvocation) |
private void |
playingTrack(int iD) |
protected void |
previous(org.openhome.net.device.IDvInvocation paramIDvInvocation) |
protected String |
protocolInfo(org.openhome.net.device.IDvInvocation paramIDvInvocation) |
protected org.openhome.net.device.providers.DvProviderAvOpenhomeOrgPlaylist1.Read |
read(org.openhome.net.device.IDvInvocation paramIDvInvocation,
long paramLong) |
protected String |
readList(org.openhome.net.device.IDvInvocation paramIDvInvocation,
String ids) |
protected boolean |
repeat(org.openhome.net.device.IDvInvocation paramIDvInvocation) |
protected void |
seekId(org.openhome.net.device.IDvInvocation paramIDvInvocation,
long id) |
protected void |
seekIndex(org.openhome.net.device.IDvInvocation paramIDvInvocation,
long id) |
protected void |
seekSecondAbsolute(org.openhome.net.device.IDvInvocation paramIDvInvocation,
long seconds) |
protected void |
seekSecondRelative(org.openhome.net.device.IDvInvocation paramIDvInvocation,
int paramInt) |
void |
setNextId(int max_id)
If reading the playList from the xml file, make sure that the nextId is
set to the max_id of the .xml entry..
|
protected void |
setRepeat(org.openhome.net.device.IDvInvocation paramIDvInvocation,
boolean repeat) |
protected void |
setShuffle(org.openhome.net.device.IDvInvocation paramIDvInvocation,
boolean paramBoolean) |
void |
setStatus(String status) |
void |
setTracks(CopyOnWriteArrayList<CustomTrack> tracks) |
protected boolean |
shuffle(org.openhome.net.device.IDvInvocation paramIDvInvocation) |
protected void |
stop(org.openhome.net.device.IDvInvocation paramIDvInvocation) |
protected long |
tracksMax(org.openhome.net.device.IDvInvocation paramIDvInvocation) |
protected String |
transportState(org.openhome.net.device.IDvInvocation paramIDvInvocation) |
void |
update(Observable o,
Object arg) |
private void |
UpdateIdArray()
Itarate all tracks, and create a 32 bit binary number from the track Id.
|
private void |
UpdateIdArray(boolean bUpdateFile) |
void |
updateShuffle(boolean shuffle) |
enableActionDeleteAll, enableActionDeleteId, enableActionId, enableActionIdArray, enableActionIdArrayChanged, enableActionInsert, enableActionNext, enableActionPause, enableActionPlay, enableActionPrevious, enableActionProtocolInfo, enableActionRead, enableActionReadList, enableActionRepeat, enableActionSeekId, enableActionSeekIndex, enableActionSeekSecondAbsolute, enableActionSeekSecondRelative, enableActionSetRepeat, enableActionSetShuffle, enableActionShuffle, enableActionStop, enableActionTracksMax, enableActionTransportState, enablePropertyId, enablePropertyIdArray, enablePropertyProtocolInfo, enablePropertyRepeat, enablePropertyShuffle, enablePropertyTracksMax, enablePropertyTransportState, getPropertyId, getPropertyIdArray, getPropertyProtocolInfo, getPropertyRepeat, getPropertyShuffle, getPropertyTracksMax, getPropertyTransportState, setPropertyId, setPropertyIdArray, setPropertyProtocolInfo, setPropertyRepeat, setPropertyShuffle, setPropertyTracksMax, setPropertyTransportState
private org.apache.log4j.Logger log
private int next_id
private PlayListWriter plw
private int playlist_max
private CommandTracker tracker
private CopyOnWriteArrayList<CustomTrack> tracks
private PlayManager iPlayer
private void loadPlayList()
protected void pause(org.openhome.net.device.IDvInvocation paramIDvInvocation)
pause
in class org.openhome.net.device.providers.DvProviderAvOpenhomeOrgPlaylist1
protected void play(org.openhome.net.device.IDvInvocation paramIDvInvocation)
play
in class org.openhome.net.device.providers.DvProviderAvOpenhomeOrgPlaylist1
protected void stop(org.openhome.net.device.IDvInvocation paramIDvInvocation)
stop
in class org.openhome.net.device.providers.DvProviderAvOpenhomeOrgPlaylist1
public int getNext_id()
public void setNextId(int max_id)
max_id
- protected long insert(org.openhome.net.device.IDvInvocation paramIDvInvocation, long aAfterId, String aUri, String aMetaData)
insert
in class org.openhome.net.device.providers.DvProviderAvOpenhomeOrgPlaylist1
protected void deleteAll(org.openhome.net.device.IDvInvocation paramIDvInvocation)
deleteAll
in class org.openhome.net.device.providers.DvProviderAvOpenhomeOrgPlaylist1
protected void deleteId(org.openhome.net.device.IDvInvocation paramIDvInvocation, long iD)
deleteId
in class org.openhome.net.device.providers.DvProviderAvOpenhomeOrgPlaylist1
protected long id(org.openhome.net.device.IDvInvocation paramIDvInvocation)
id
in class org.openhome.net.device.providers.DvProviderAvOpenhomeOrgPlaylist1
protected String protocolInfo(org.openhome.net.device.IDvInvocation paramIDvInvocation)
protocolInfo
in class org.openhome.net.device.providers.DvProviderAvOpenhomeOrgPlaylist1
protected org.openhome.net.device.providers.DvProviderAvOpenhomeOrgPlaylist1.IdArray idArray(org.openhome.net.device.IDvInvocation paramIDvInvocation)
idArray
in class org.openhome.net.device.providers.DvProviderAvOpenhomeOrgPlaylist1
protected boolean idArrayChanged(org.openhome.net.device.IDvInvocation paramIDvInvocation, long paramLong)
idArrayChanged
in class org.openhome.net.device.providers.DvProviderAvOpenhomeOrgPlaylist1
protected void next(org.openhome.net.device.IDvInvocation paramIDvInvocation)
next
in class org.openhome.net.device.providers.DvProviderAvOpenhomeOrgPlaylist1
protected void previous(org.openhome.net.device.IDvInvocation paramIDvInvocation)
previous
in class org.openhome.net.device.providers.DvProviderAvOpenhomeOrgPlaylist1
protected org.openhome.net.device.providers.DvProviderAvOpenhomeOrgPlaylist1.Read read(org.openhome.net.device.IDvInvocation paramIDvInvocation, long paramLong)
read
in class org.openhome.net.device.providers.DvProviderAvOpenhomeOrgPlaylist1
protected String readList(org.openhome.net.device.IDvInvocation paramIDvInvocation, String ids)
readList
in class org.openhome.net.device.providers.DvProviderAvOpenhomeOrgPlaylist1
protected boolean repeat(org.openhome.net.device.IDvInvocation paramIDvInvocation)
repeat
in class org.openhome.net.device.providers.DvProviderAvOpenhomeOrgPlaylist1
protected void seekId(org.openhome.net.device.IDvInvocation paramIDvInvocation, long id)
seekId
in class org.openhome.net.device.providers.DvProviderAvOpenhomeOrgPlaylist1
protected void seekIndex(org.openhome.net.device.IDvInvocation paramIDvInvocation, long id)
seekIndex
in class org.openhome.net.device.providers.DvProviderAvOpenhomeOrgPlaylist1
protected void seekSecondAbsolute(org.openhome.net.device.IDvInvocation paramIDvInvocation, long seconds)
seekSecondAbsolute
in class org.openhome.net.device.providers.DvProviderAvOpenhomeOrgPlaylist1
protected void seekSecondRelative(org.openhome.net.device.IDvInvocation paramIDvInvocation, int paramInt)
seekSecondRelative
in class org.openhome.net.device.providers.DvProviderAvOpenhomeOrgPlaylist1
protected void setRepeat(org.openhome.net.device.IDvInvocation paramIDvInvocation, boolean repeat)
setRepeat
in class org.openhome.net.device.providers.DvProviderAvOpenhomeOrgPlaylist1
protected void setShuffle(org.openhome.net.device.IDvInvocation paramIDvInvocation, boolean paramBoolean)
setShuffle
in class org.openhome.net.device.providers.DvProviderAvOpenhomeOrgPlaylist1
protected boolean shuffle(org.openhome.net.device.IDvInvocation paramIDvInvocation)
shuffle
in class org.openhome.net.device.providers.DvProviderAvOpenhomeOrgPlaylist1
protected long tracksMax(org.openhome.net.device.IDvInvocation paramIDvInvocation)
tracksMax
in class org.openhome.net.device.providers.DvProviderAvOpenhomeOrgPlaylist1
protected String transportState(org.openhome.net.device.IDvInvocation paramIDvInvocation)
transportState
in class org.openhome.net.device.providers.DvProviderAvOpenhomeOrgPlaylist1
private void UpdateIdArray(boolean bUpdateFile)
private void UpdateIdArray()
private void playingTrack(int iD)
public void setTracks(CopyOnWriteArrayList<CustomTrack> tracks)
public void setStatus(String status)
public void dispose()
dispose
in class org.openhome.net.device.providers.DvProviderAvOpenhomeOrgPlaylist1
public void updateShuffle(boolean shuffle)
public void update(Observable o, Object arg)
Copyright © 2013–2014. All rights reserved.