public abstract class BaseStreamWriter extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
protected File |
file |
protected long |
initialDelta |
protected boolean |
isScreenData |
protected org.apache.openmeetings.db.dao.record.RecordingMetaDataDao |
metaDataDao |
protected Long |
metaDataId |
protected org.red5.server.api.scope.IScope |
scope |
protected Date |
startedSessionTimeDate |
protected int |
startTimeStamp |
protected String |
streamName |
static int |
TIME_TO_WAIT_FOR_FRAME |
protected org.red5.io.ITagWriter |
writer |
Constructor and Description |
---|
BaseStreamWriter(String streamName,
org.red5.server.api.scope.IScope scope,
Long metaDataId,
boolean isScreenData,
org.apache.openmeetings.db.dao.record.RecordingMetaDataDao metaDataDao) |
Modifier and Type | Method and Description |
---|---|
void |
append(CachedEvent streampacket) |
void |
closeStream()
called when the stream is finished written on the disk
|
protected abstract void |
internalCloseStream() |
abstract void |
packetReceived(CachedEvent streampacket)
Write the actual packet data to the disk and do calculate any needed additional information
|
void |
run() |
void |
stop() |
public static final int TIME_TO_WAIT_FOR_FRAME
protected int startTimeStamp
protected long initialDelta
protected org.red5.io.ITagWriter writer
protected Long metaDataId
protected Date startedSessionTimeDate
protected File file
protected org.red5.server.api.scope.IScope scope
protected boolean isScreenData
protected String streamName
protected final org.apache.openmeetings.db.dao.record.RecordingMetaDataDao metaDataDao
public void stop()
public abstract void packetReceived(CachedEvent streampacket)
streampacket
- protected abstract void internalCloseStream()
public void closeStream()
public void append(CachedEvent streampacket)
Copyright © 2012–2017 Apache Software Foundation. All rights reserved.