# Replay Metadata Only Node

ReplayMetadataOnly host node is used for replaying [recorded
metadata](https://docs.luxonis.com/software-v3/depthai/depthai-components/host_nodes/record_metadata_only.md) to
[Buffer](https://docs.luxonis.com/software-v3/depthai/depthai-components/messages/buffer.md) messages.

## How to place it

#### Python

```python
with dai.Pipeline() as pipeline:
    replay = pipeline.create(dai.node.ReplayMetadataOnly)
```

#### C++

```cpp
dai::Pipeline pipeline;
auto replay = pipeline.create<dai::node::ReplayMetadataOnly>();
```

## Inputs and Outputs

## Usage

#### Python

```python
with dai.Pipeline() as pipeline:
    replay = pipeline.create(dai.node.ReplayMetadataOnly)
    replay.setReplayFile("metadata.mcap")
    replay.setFps(30)
    replay.setLoop(False)
```

#### C++

```cpp
dai::Pipeline pipeline;
auto replay = pipeline.create<dai::node::ReplayMetadataOnly>();
replay->setReplayFile("metadata.mcap");
replay->setFps(30);
replay->setLoop(False);
```

## Reference

### dai::node::ReplayMetadataOnly

Kind: class

Replay node, used to replay a file to a source node.

#### Output out

Kind: variable

Output for any type of messages to be transferred over XLink stream Default queue is blocking with size 8

#### void run()

Kind: function

#### std::filesystem::path getReplayFile()

Kind: function

#### float getFps()

Kind: function

#### bool getLoop()

Kind: function

#### ReplayMetadataOnly & setReplayFile(const std::filesystem::path & replayFile)

Kind: function

#### ReplayMetadataOnly & setFps(float fps)

Kind: function

#### ReplayMetadataOnly & setLoop(bool loop)

Kind: function

### Need assistance?

Head over to [Discussion Forum](https://discuss.luxonis.com/) for technical support or any other questions you might have.
