OcaMediaRecorderPlayer#
This document describes the device side implementation of OcaMediaRecorderPlayer. This class is documented in the AES70 standard as:
Media volume recorder/player that shall provide streaming data access into and out of OcaDataset objects whose Datasets are media files.
Overview#
- ClassID: 1.1.7.1
- Header:
aes70/device/OcaMediaRecorderPlayer.hpp
- Namespace:
aes70::device
- Inheritance: aes70::device::OcaDatasetWorker, aes70::device::OcaWorker, aes70::device::OcaRoot, aes70::device::object
Class Declaration#
The device side implementation has the following signature.
namespace aes70::device
{
template <class Implementation>
class OcaMediaRecorderPlayer : public OcaDatasetWorker<Implementation>
{
};
}
The template argument Implementation
may implement the following methods.
Note
The signatures given here are just one possibility and that most methods are optional. Implement only those methods which make sense in the context of your device. See the documentation in Implementing AES70 Classes for more details.
class MyOcaMediaRecorderPlayerImplementation
{
// Methods defined by OcaMediaRecorderPlayer
void Open(OcaONo DatasetONo, OcaMediaAccessMode AccessMode, OcaLockState LockState);
void Close();
void Record();
void Play();
void Stop();
void Reset();
OcaMediaRecorderPlayerState GetState();
OcaUint16 GetTrackCount();
void SetTrackCount(OcaUint16 TrackCount);
OcaList<OcaMediaTrackFunction> GetTrackFunctions();
void SetTrackFunctions(OcaList<OcaMediaTrackFunction> Functions);
OcaMediaPlayOption GetPlayOption();
void SetPlayOption(OcaMediaPlayOption Option);
OcaMediaVolumePosition GetPosition();
void SetPosition(OcaMediaVolumePosition Position);
std::tuple<OcaMediaVolumePosition,OcaMediaVolumePosition> GetWindowRange();
void SetWindowRange(OcaMediaVolumePosition FirstPosition, OcaMediaVolumePosition LastPosition);
// Methods defined by OcaDatasetWorker
OcaONo GetDatasetONo();
// Methods defined by OcaWorker
OcaBoolean GetEnabled();
void SetEnabled(OcaBoolean enabled);
OcaPortID AddPort(OcaString Name, OcaIODirection Mode);
void DeletePort(OcaPortID ID);
OcaList<OcaPort> GetPorts();
OcaString GetPortName(OcaPortID PortID);
void SetPortName(OcaPortID ID, OcaString Name);
OcaString GetLabel();
void SetLabel(OcaString label);
OcaONo GetOwner();
OcaTimeInterval GetLatency();
void SetLatency(OcaTimeInterval latency);
std::tuple<OcaRolePath,OcaONoPath> GetPath();
OcaMap<OcaPortID, OcaPortClockMapEntry> GetPortClockMap();
void SetPortClockMap(OcaMap<OcaPortID, OcaPortClockMapEntry> Map);
OcaPortClockMapEntry GetPortClockMapEntry(OcaPortID ID);
void SetPortClockMapEntry(OcaPortID PortID, OcaPortClockMapEntry Entry);
void DeletePortClockMapEntry(OcaPortID ID);
// Methods defined by OcaRoot
OcaBoolean GetLockable();
void SetLockNoReadWrite();
void Unlock();
OcaString GetRole();
void SetLockNoWrite();
OcaLockState GetLockState();
};