
public class Media extends RefCounted
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_TIME_STAMP_FORMAT
The default time stamp format.
|
| Modifier and Type | Method and Description |
|---|---|
Media |
copyReference()
Create a new Media object that is actually referring to the
exact same underlying native object.
|
boolean |
equals(Object obj)
Compares two values, returning true if the underlying objects in native code are the same object.
|
String |
getFormattedTimeStamp()
Get a string representation of the time stamp for this
Media. |
String |
getFormattedTimeStamp(String format)
Get a string representation of the time stamp for this
Media. |
Rational |
getTimeBase()
Get the time base that time stamps of this object are represented in.
Caller must release the returned value. |
long |
getTimeStamp()
Get the time stamp of this object in getTimeBase() units.
|
int |
hashCode()
Get a hashable value for this object.
|
boolean |
isComplete()
Returns whether or not we think this buffer has been filled
with data. |
boolean |
isKey()
Is this object a key object? i.e.
|
void |
setTimeStamp(long aTimeStamp)
Set the time stamp for this object in getTimeBase() units.
|
delete, getCurrentRefCountpublic static final String DEFAULT_TIME_STAMP_FORMAT
public Media copyReference()
copyReference in class RefCountedpublic boolean equals(Object obj)
public int hashCode()
public String getFormattedTimeStamp()
Media. The time is formatted as: HH:MM:SS.msgetFormattedTimeStamp(String),
DEFAULT_TIME_STAMP_FORMATpublic String getFormattedTimeStamp(String format)
Media. The format of the resulting string is specified by
the format parameter. See Formatter for
details on how to specify formats, however a good place to start
is with the following format: %1$tH:%1$tM:%1$tS.%1$tLformat - the format for the time stamp stringgetFormattedTimeStamp(),
DEFAULT_TIME_STAMP_FORMAT,
Formatterpublic long getTimeStamp()
public void setTimeStamp(long aTimeStamp)
aTimeStamp - The time stamppublic Rational getTimeBase()
public boolean isKey()
public boolean isComplete()
Copyright © 2018 Humble Software. All rights reserved.