You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 23, 2024. It is now read-only.
Enable data flow from QUIC agent to audio agent. (#1102)
* Enable data flow from QUIC agent to audio agent.
* Determine a track's kind by its ID.
* Set track kind for data tracks.
* Timestamps for audio frames are set in QUIC agent.
if (m_receivedFrameOffset == m_currentFrameSize) {
405
412
owt_base::Frame frame;
406
-
frame.format = owt_base::FRAME_FORMAT_I420;
413
+
if (m_trackKind == "audio") {
414
+
frame.format = owt_base::FRAME_FORMAT_OPUS;
415
+
frame.timeStamp = m_audioTimeStamp;
416
+
// TODO: Fill a correct timestamp and check overflow.
417
+
m_audioTimeStamp += 10 * 1000;
418
+
// TODO: Get format from signaling message.
419
+
frame.additionalInfo.audio.isRtpPacket = false;
420
+
frame.additionalInfo.audio.sampleRate = 48000;
421
+
frame.additionalInfo.audio.channels = 2;
422
+
} elseif (m_trackKind == "video") {
423
+
frame.format = owt_base::FRAME_FORMAT_H264;
424
+
// Transport layer doesn't know a frame's type. Video agent is able to parse the type of a frame from bistream. However, video agent doesn't feed the frame to decoder when a key frame is requested.
// Transport layer doesn't know a frame's type. Video agent is able to parse the type of a frame from bistream. However, video agent doesn't feed the frame to decoder when a key frame is requested.
0 commit comments