-
-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'paullouisageneau:master' into examples/signaling-server…
…-libdatachannel-ws
- Loading branch information
Showing
39 changed files
with
785 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,5 +36,7 @@ jobs: | |
set CL=/MP | ||
nmake | ||
- name: test | ||
run: build/tests.exe | ||
run: | | ||
cd build | ||
./tests | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule libjuice
updated
16 files
+22 −12 | CMakeLists.txt | |
+2 −0 | cmake/LibJuiceConfig.cmake.in | |
+2 −0 | include/juice/juice.h | |
+93 −31 | src/agent.c | |
+2 −0 | src/agent.h | |
+17 −10 | src/conn.c | |
+2 −1 | src/conn_mux.c | |
+3 −3 | src/conn_poll.c | |
+3 −3 | src/conn_thread.c | |
+12 −1 | src/ice.c | |
+2 −0 | src/ice.h | |
+11 −8 | src/juice.c | |
+2 −1 | src/server.c | |
+7 −0 | test/main.c | |
+1 −0 | test/notrickle.c | |
+74 −0 | test/ufrag.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/** | ||
* Copyright (c) 2020 Staz Modrzynski | ||
* Copyright (c) 2020-2024 Paul-Louis Ageneau | ||
* Copyright (c) 2024 Robert Edmonds | ||
* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
*/ | ||
|
||
#ifndef RTC_H265_RTP_DEPACKETIZER_H | ||
#define RTC_H265_RTP_DEPACKETIZER_H | ||
|
||
#if RTC_ENABLE_MEDIA | ||
|
||
#include "common.hpp" | ||
#include "h265nalunit.hpp" | ||
#include "mediahandler.hpp" | ||
#include "message.hpp" | ||
#include "rtp.hpp" | ||
|
||
#include <iterator> | ||
|
||
namespace rtc { | ||
|
||
/// RTP depacketization for H265 | ||
class RTC_CPP_EXPORT H265RtpDepacketizer : public MediaHandler { | ||
public: | ||
using Separator = NalUnit::Separator; | ||
|
||
H265RtpDepacketizer(Separator separator = Separator::LongStartSequence); | ||
virtual ~H265RtpDepacketizer() = default; | ||
|
||
void incoming(message_vector &messages, const message_callback &send) override; | ||
|
||
private: | ||
std::vector<message_ptr> mRtpBuffer; | ||
const NalUnit::Separator separator; | ||
|
||
void addSeparator(binary& accessUnit); | ||
message_vector buildFrames(message_vector::iterator firstPkt, message_vector::iterator lastPkt, | ||
uint8_t payloadType, uint32_t timestamp); | ||
}; | ||
|
||
} // namespace rtc | ||
|
||
#endif // RTC_ENABLE_MEDIA | ||
|
||
#endif // RTC_H265_RTP_DEPACKETIZER_H |
Oops, something went wrong.