com.blackledge.david.tivo.hmoclient
Class VideoItem

java.lang.Object
  extended by com.blackledge.david.tivo.hmoclient.Item
      extended by com.blackledge.david.tivo.hmoclient.VideoItem

public class VideoItem
extends Item

Undocumented Video Item type for HMO, based on "ContentType=video/x-tivo-raw-tts". video: {ContentType=video/x-tivo-raw-tts, SourceFormat=video/x-tivo-raw-tts, Title=Dr. Phil, SourceSize=754974720, Duration=3601000, CaptureDate=0x48AF28CE, EpisodeTitle=Five women get beach-body makeovers, Description=Women reveal their weight-loss results; five women get beach-body makeovers; a woman models a slimming swimsuit; a woman who despises her body gets a surprise. Copyright Tribune Media Services, Inc., SourceChannel=13, SourceStation=KRQE, HighDefinition=No, ProgramId=EP5178511075, SeriesId=SH517851, EpisodeNumber=6126, ByteOffset=0} in progress video: {ContentType=video/x-tivo-raw-tts, SourceFormat=video/x-tivo-raw-tts, Title=Iron Chef America, SourceSize=119537664, Duration=0, CaptureDate=0x48D5E423, EpisodeTitle=Batali vs. Clark, Description=Mario Batali is challenged by Charles Clark. Copyright Tribune Media Services, Inc., SourceChannel=69, SourceStation=FOOD, InProgress=Yes, HighDefinition=No, ProgramId=EP6471530072, SeriesId=SH647153, EpisodeNumber=0, ByteOffset=0} a little later: {ContentType=video/x-tivo-raw-tts, SourceFormat=video/x-tivo-raw-tts, Title=Iron Chef America, SourceSize=119537664, Duration=178000, CaptureDate=0x48D5E423, EpisodeTitle=Batali vs. Clark, Description=Mario Batali is challenged by Charles Clark. Copyright Tribune Media Services, Inc., SourceChannel=69, SourceStation=FOOD, InProgress=Yes, HighDefinition=No, ProgramId=EP6471530072, SeriesId=SH647153, EpisodeNumber=0, ByteOffset=0}

Version:
$Revision: 1.4 $

Field Summary
 
Fields inherited from class com.blackledge.david.tivo.hmoclient.Item
contentLink, request
 
Constructor Summary
VideoItem(ContainerRequest request)
           
VideoItem(ContainerRequest request, Element node)
           
 
Method Summary
 long getByteOffset()
          Presumably the "resume" position for a partially watched video.
 Date getCaptured()
           
 String getCaptureDate()
           
 String getDescription()
           
 long getDuration()
           
 int getEpisodeNumber()
           
 String getEpisodeTitle()
           
 int getPausePointTime()
           
 String getProgramId()
           
 int getRecordingQuality()
          Observed Example: 40
 String getSeriesId()
           
 int getSourceChannel()
           
 String getSourceStation()
           
 int getTvRating()
          Observed Example: 3
protected  void initDetails(Element description)
          Basic Item details: <Title>{text}</Title> <ContentType>{mime-type}</ContentType> <SourceFormat>{mime-type}</SourceFormat> Optional details: <CreationDate>{date}</CreationDate> <LastChangeDate>{date}</LastChangeDate> <LastAccessDate>{date}</LastAccessDate> <SourceLocation>{text}</SourceLocation> <SourceSize>{bytes}</SourceSize> <Copyright>{text}</Copyright>
 boolean isHighDefinition()
           
 boolean isInProgress()
           
 
Methods inherited from class com.blackledge.david.tivo.hmoclient.Item
getAllDetails, getChildElementsByTagName, getChildTagMap, getContentType, getContentURL, getCopyright, getCreated, getCreationDate, getCustomIcon, getDate, getLastAccessDate, getLastAccessed, getLastChanged, getLastChangeDate, getLinks, getLong, getNodeValue, getSingleChildElementByTagName, getSourceFormat, getSourceLocation, getSourceSize, getTitle, isContainer, newContainerRequest, newContainerRequest, singleNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VideoItem

public VideoItem(ContainerRequest request,
                 Element node)

VideoItem

public VideoItem(ContainerRequest request)
Method Detail

initDetails

protected void initDetails(Element description)
Description copied from class: Item
Basic Item details: <Title>{text}</Title> <ContentType>{mime-type}</ContentType> <SourceFormat>{mime-type}</SourceFormat> Optional details: <CreationDate>{date}</CreationDate> <LastChangeDate>{date}</LastChangeDate> <LastAccessDate>{date}</LastAccessDate> <SourceLocation>{text}</SourceLocation> <SourceSize>{bytes}</SourceSize> <Copyright>{text}</Copyright>

Overrides:
initDetails in class Item

isInProgress

public boolean isInProgress()

isHighDefinition

public boolean isHighDefinition()

getByteOffset

public long getByteOffset()
Presumably the "resume" position for a partially watched video.


getCaptureDate

public String getCaptureDate()

getCaptured

public Date getCaptured()

getEpisodeTitle

public String getEpisodeTitle()

getProgramId

public String getProgramId()

getSeriesId

public String getSeriesId()

getSourceChannel

public int getSourceChannel()

getSourceStation

public String getSourceStation()

getDescription

public String getDescription()

getDuration

public long getDuration()

getEpisodeNumber

public int getEpisodeNumber()

getPausePointTime

public int getPausePointTime()
Returns:
either zero if no paused point is stored, or a value greater than zero, but less than getDuration().
Since:
TiVo rev 9.4, I believe

getRecordingQuality

public int getRecordingQuality()
Observed Example: 40

Since:
TiVo rev 9.4, I believe

getTvRating

public int getTvRating()
Observed Example: 3

Since:
TiVo rev 9.4, I believe