# ReplayMetadataOnly 节点

ReplayMetadataOnly 主机节点用于将录制元数据回放到 [Buffer](https://docs.luxonis.com/software-v3/depthai/depthai-components/messages/buffer.md)
消息中。

## 如何放置

#### 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>();
```

## 输入和输出

## 使用方式

#### 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);
```

## 参考

### 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

### 需要帮助？

请前往 [OAKChina 官网](https://www.oakchina.cn/) 获取技术支持或解答您的任何疑问。
