Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use MsgCtrl #27

Closed
wangpeng1 opened this issue Oct 22, 2022 · 1 comment
Closed

how to use MsgCtrl #27

wangpeng1 opened this issue Oct 22, 2022 · 1 comment

Comments

@wangpeng1
Copy link

Hi, i used the project and streampack,it used the MsgCtrl when thranslate live streaming。
but i donot want use send method,i want to use srtSocket.getInputStream(null) and srtSocket.getOutputStream(null), I have a lot of confusion and need your help:

  1. I used the live mode by rtmp over srt, whether the MsgCtrl parameter of getInputStream or getOutputStream can be passed empty?
  2. I used the live mode by mpegts over srt, whether each package must accurately transmit the MsgCtrl package information ?
@ThibaultBee
Copy link
Owner

Hi,

Both getInputStream and getOutputStream support a null MsgCtrl. If MsgCtrl shoud be set or not depends on what you want to achieve.

If you have questions about MsgCtrl, you should have a look on the SRT structure: https://github.com/Haivision/srt/blob/master/docs/API/API-functions.md#SRT_MSGCTRL

In a general way, if you have specific question for the usage of SRT, you should refer to SRT documentation. This project is only a wrapper around SRT and does not bring anything else. Moreover, in srtdroid API guide, there is often a link to the SRT function/structure behind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants