code
stringlengths
1
1.05M
repo_name
stringlengths
7
65
path
stringlengths
2
255
language
stringclasses
236 values
license
stringclasses
24 values
size
int64
1
1.05M
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
src/Rtsp/RtspMediaSourceImp.h
C++
bsd
4,181
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
src/Rtsp/RtspMediaSourceMuxer.h
C++
bsd
2,967
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
src/Rtsp/RtspMuxer.cpp
C++
bsd
6,023
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
src/Rtsp/RtspMuxer.h
C++
bsd
2,971
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
src/Rtsp/RtspPlayer.cpp
C++
bsd
34,350
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
src/Rtsp/RtspPlayer.h
C++
bsd
7,479
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
src/Rtsp/RtspPlayerImp.h
C++
bsd
3,164
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
src/Rtsp/RtspPusher.cpp
C++
bsd
22,567
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
src/Rtsp/RtspPusher.h
C++
bsd
4,232
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
src/Rtsp/RtspSession.cpp
C++
bsd
51,091
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
src/Rtsp/RtspSession.h
C++
bsd
14,264
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
src/Rtsp/RtspSplitter.cpp
C++
bsd
3,703
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
src/Rtsp/RtspSplitter.h
C++
bsd
2,155
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
src/Rtsp/UDPServer.cpp
C++
bsd
2,948
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
src/Rtsp/UDPServer.h
C++
bsd
1,604
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
src/Shell/ShellCMD.h
C++
bsd
2,927
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
src/Shell/ShellSession.cpp
C++
bsd
5,022
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
src/Shell/ShellSession.h
C++
bsd
1,238
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
src/TS/TSMediaSource.h
C++
bsd
4,573
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
src/TS/TSMediaSourceMuxer.h
C++
bsd
2,915
#include "Ack.hpp" #include "Common.hpp" namespace SRT { bool ACKPacket::loadFromData(uint8_t *buf, size_t len) { if (len < ACK_CIF_SIZE + ControlPacket::HEADER_SIZE) { return false; } _data = BufferRaw::create(); _data->assign((char *)(buf), len); ControlPacket::loadHeader(); ack_nu...
vincent-in-black-sesame/ZLMediaKit
srt/Ack.cpp
C++
bsd
2,024
#ifndef ZLMEDIAKIT_SRT_ACK_H #define ZLMEDIAKIT_SRT_ACK_H #include "Packet.hpp" namespace SRT { /* 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+- SRT Header +-+-+-+-+-+-+-+-+-+-+-+-+-+ |1| Control Type ...
vincent-in-black-sesame/ZLMediaKit
srt/Ack.hpp
C++
bsd
3,394
# MIT License # # Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limi...
vincent-in-black-sesame/ZLMediaKit
srt/CMakeLists.txt
CMake
bsd
1,789
#ifndef ZLMEDIAKIT_SRT_COMMON_H #define ZLMEDIAKIT_SRT_COMMON_H #if defined(_WIN32) #include <winsock2.h> #include <ws2tcpip.h> #include <Iphlpapi.h> #pragma comment(lib, "Ws2_32.lib") #pragma comment(lib, "Iphlpapi.lib") #else #include <netdb.h> #include <sys/socket.h> #endif // defined(_WIN32) #include <chrono> #d...
vincent-in-black-sesame/ZLMediaKit
srt/Common.hpp
C++
bsd
3,139
#include <atomic> #include "Util/MD5.h" #include "Util/logger.h" #include "Crypto.hpp" #if defined(ENABLE_OPENSSL) #include "openssl/evp.h" #endif using namespace toolkit; using namespace std; using namespace SRT; namespace SRT { #if defined(ENABLE_OPENSSL) inline const EVP_CIPHER* aes_key_len_mapping_wrap_cipher...
vincent-in-black-sesame/ZLMediaKit
srt/Crypto.cpp
C++
bsd
14,913
#ifndef ZLMEDIAKIT_SRT_CRYPTO_H #define ZLMEDIAKIT_SRT_CRYPTO_H #include <stdint.h> #include <vector> #include "Network/Buffer.h" #include "Network/sockutil.h" #include "Util/logger.h" #include "Common.hpp" #include "HSExt.hpp" #include "Packet.hpp" namespace SRT { class CryptoContext : public std::enable_shared_f...
vincent-in-black-sesame/ZLMediaKit
srt/Crypto.hpp
C++
bsd
3,111
#include "HSExt.hpp" namespace SRT { bool HSExtMessage::loadFromData(uint8_t *buf, size_t len) { if (buf == NULL || len != HSEXT_MSG_SIZE) { return false; } _data = BufferRaw::create(); _data->assign((char *)buf, len); extension_length = 3; HSExt::loadHeader(); assert(extension_...
vincent-in-black-sesame/ZLMediaKit
srt/HSExt.cpp
C++
bsd
6,739
#ifndef ZLMEDIAKIT_SRT_HS_EXT_H #define ZLMEDIAKIT_SRT_HS_EXT_H #include "Network/Buffer.h" #include "Common.hpp" namespace SRT { using namespace toolkit; class HSExt : public Buffer { public: HSExt() = default; virtual ~HSExt() = default; enum { SRT_CMD_REJECT = 0, SRT_CMD_HSREQ = 1, ...
vincent-in-black-sesame/ZLMediaKit
srt/HSExt.hpp
C++
bsd
8,156
#include "NackContext.hpp" namespace SRT { void NackContext::update(TimePoint now, std::list<PacketQueue::LostPair> &lostlist) { for (auto item : lostlist) { mergeItem(now, item); } } void NackContext::getLostList( TimePoint now, uint32_t rtt, uint32_t rtt_variance, std::list<PacketQueue::LostPair...
vincent-in-black-sesame/ZLMediaKit
srt/NackContext.cpp
C++
bsd
3,199
#ifndef ZLMEDIAKIT_SRT_NACK_CONTEXT_H #define ZLMEDIAKIT_SRT_NACK_CONTEXT_H #include "Common.hpp" #include "PacketQueue.hpp" #include <list> namespace SRT { class NackContext { public: NackContext() = default; ~NackContext() = default; void update(TimePoint now, std::list<PacketQueue::LostPair> &lostlist)...
vincent-in-black-sesame/ZLMediaKit
srt/NackContext.hpp
C++
bsd
773
#include <atomic> #include "Util/MD5.h" #include "Util/logger.h" #include "Packet.hpp" namespace SRT { const size_t DataPacket::HEADER_SIZE; const size_t ControlPacket::HEADER_SIZE; const size_t HandshakePacket::HS_CONTENT_MIN_SIZE; bool DataPacket::isDataPacket(uint8_t *buf, size_t len) { if (len < HEADER_SIZ...
vincent-in-black-sesame/ZLMediaKit
srt/Packet.cpp
C++
bsd
17,987
#ifndef ZLMEDIAKIT_SRT_PACKET_H #define ZLMEDIAKIT_SRT_PACKET_H #include <stdint.h> #include <vector> #include "Network/Buffer.h" #include "Network/sockutil.h" #include "Util/logger.h" #include "Common.hpp" #include "HSExt.hpp" namespace SRT { using namespace toolkit; static const size_t HDR_SIZE = 16; // packet...
vincent-in-black-sesame/ZLMediaKit
srt/Packet.hpp
C++
bsd
19,382
#include "PacketQueue.hpp" namespace SRT { static inline bool isSeqEdge(uint32_t seq, uint32_t cap) { if (seq > (MAX_SEQ - cap)) { return true; } return false; } static inline bool isSeqCycle(uint32_t first, uint32_t second) { uint32_t diff; if (first > second) { diff = first - s...
vincent-in-black-sesame/ZLMediaKit
srt/PacketQueue.cpp
C++
bsd
15,143
#ifndef ZLMEDIAKIT_SRT_PACKET_QUEUE_H #define ZLMEDIAKIT_SRT_PACKET_QUEUE_H #include "Packet.hpp" #include <algorithm> #include <list> #include <map> #include <memory> #include <tuple> #include <utility> #include <vector> namespace SRT { class PacketQueueInterface { public: using Ptr = std::shared_ptr<PacketQueu...
vincent-in-black-sesame/ZLMediaKit
srt/PacketQueue.hpp
C++
bsd
2,849
#include "PacketSendQueue.hpp" namespace SRT { PacketSendQueue::PacketSendQueue(uint32_t max_size, uint32_t latency,uint32_t flag) : _srt_flag(flag) , _pkt_cap(max_size) , _pkt_latency(latency) {} bool PacketSendQueue::drop(uint32_t num) { decltype(_pkt_cache.begin()) it; for (it = _pkt_cache.be...
vincent-in-black-sesame/ZLMediaKit
srt/PacketSendQueue.cpp
C++
bsd
2,070
#ifndef ZLMEDIAKIT_SRT_PACKET_SEND_QUEUE_H #define ZLMEDIAKIT_SRT_PACKET_SEND_QUEUE_H #include "Packet.hpp" #include <algorithm> #include <list> #include <memory> #include <set> #include <tuple> #include <utility> namespace SRT { class PacketSendQueue { public: using Ptr = std::shared_ptr<PacketSendQueue>; ...
vincent-in-black-sesame/ZLMediaKit
srt/PacketSendQueue.hpp
C++
bsd
889
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
srt/SrtCaller.cpp
C++
bsd
34,648
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contrib...
vincent-in-black-sesame/ZLMediaKit
srt/SrtCaller.h
C++
bsd
6,471
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contrib...
vincent-in-black-sesame/ZLMediaKit
srt/SrtPlayer.cpp
C++
bsd
5,191
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contrib...
vincent-in-black-sesame/ZLMediaKit
srt/SrtPlayer.h
C++
bsd
1,920
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contrib...
vincent-in-black-sesame/ZLMediaKit
srt/SrtPlayerImp.h
C++
bsd
1,564
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contrib...
vincent-in-black-sesame/ZLMediaKit
srt/SrtPusher.cpp
C++
bsd
3,768
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contrib...
vincent-in-black-sesame/ZLMediaKit
srt/SrtPusher.h
C++
bsd
1,816
#include "SrtSession.hpp" #include "Packet.hpp" #include "SrtTransportImp.hpp" #include "Common/config.h" namespace SRT { using namespace mediakit; SrtSession::SrtSession(const Socket::Ptr &sock) : Session(sock) { socklen_t addr_len = sizeof(_peer_addr); memset(&_peer_addr, 0, addr_len); // TraceL<<...
vincent-in-black-sesame/ZLMediaKit
srt/SrtSession.cpp
C++
bsd
3,146
#ifndef ZLMEDIAKIT_SRT_SESSION_H #define ZLMEDIAKIT_SRT_SESSION_H #include "Network/Session.h" #include "SrtTransport.hpp" namespace SRT { using namespace toolkit; class SrtSession : public Session { public: SrtSession(const Socket::Ptr &sock); void onRecv(const Buffer::Ptr &) override; ...
vincent-in-black-sesame/ZLMediaKit
srt/SrtSession.hpp
C++
bsd
743
#include "Util/onceToken.h" #include "Util/mini.h" #include <iterator> #include <stdlib.h> #include "Ack.hpp" #include "Packet.hpp" #include "SrtTransport.hpp" namespace SRT { #define SRT_FIELD "srt." // srt 超时时间 [AUTO-TRANSLATED:7828ddb5] // SRT timeout time const std::string kTimeOutSec = SRT_FIELD "timeoutSec";...
vincent-in-black-sesame/ZLMediaKit
srt/SrtTransport.cpp
C++
bsd
36,508
#ifndef ZLMEDIAKIT_SRT_TRANSPORT_H #define ZLMEDIAKIT_SRT_TRANSPORT_H #include <atomic> #include <chrono> #include <memory> #include <mutex> #include "Network/Session.h" #include "Poller/EventPoller.h" #include "Poller/Timer.h" #include "Common/Stamp.h" #include "Common.hpp" #include "NackContext.hpp" #include "Pack...
vincent-in-black-sesame/ZLMediaKit
srt/SrtTransport.hpp
C++
bsd
6,640
#include "Util/util.h" #include <memory> #include "Common/Parser.h" #include "Common/config.h" #include "SrtTransportImp.hpp" namespace SRT { SrtTransportImp::SrtTransportImp(const EventPoller::Ptr &poller) : SrtTransport(poller) { } SrtTransportImp::~SrtTransportImp() { uint64_t duration = _alive_ticker.cre...
vincent-in-black-sesame/ZLMediaKit
srt/SrtTransportImp.cpp
C++
bsd
12,252
#ifndef ZLMEDIAKIT_SRT_TRANSPORT_IMP_H #define ZLMEDIAKIT_SRT_TRANSPORT_IMP_H #include "Common/MultiMediaSourceMuxer.h" #include "Rtp/Decoder.h" #include "SrtTransport.hpp" #include "TS/TSMediaSource.h" #include <mutex> namespace SRT { using namespace std; using namespace toolkit; using namespace mediakit; class Sr...
vincent-in-black-sesame/ZLMediaKit
srt/SrtTransportImp.hpp
C++
bsd
3,039
#include <algorithm> #include <math.h> #include "Statistic.hpp" namespace SRT { PacketRecvRateContext::PacketRecvRateContext(TimePoint start) : _last_arrive_time(start) { for (size_t i = 0; i < SIZE; i++) { _ts_arr[i] = 1000000; _size_arr[i] = SRT_MAX_PAYLOAD_SIZE; } _cur_idx = 0; }; ...
vincent-in-black-sesame/ZLMediaKit
srt/Statistic.cpp
C++
bsd
6,897
#ifndef ZLMEDIAKIT_SRT_STATISTIC_H #define ZLMEDIAKIT_SRT_STATISTIC_H #include <map> #include "Common.hpp" #include "Packet.hpp" namespace SRT { class PacketRecvRateContext { public: PacketRecvRateContext(TimePoint start); ~PacketRecvRateContext() = default; void inputPacket(TimePoint &ts,size_t len = 0)...
vincent-in-black-sesame/ZLMediaKit
srt/Statistic.hpp
C++
bsd
1,666
# MIT License # # Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without lim...
vincent-in-black-sesame/ZLMediaKit
tests/CMakeLists.txt
CMake
bsd
2,430
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
tests/DeviceHK/DeviceHK.cpp
C++
bsd
9,820
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
tests/DeviceHK/DeviceHK.h
C++
bsd
3,238
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
tests/bom.cpp
C++
bsd
5,628
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
tests/tab.cpp
C++
bsd
5,253
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributi...
vincent-in-black-sesame/ZLMediaKit
tests/test_bench_forward.cpp
C++
bsd
13,150
#include <map> #include <signal.h> #include <iostream> #include "Util/CMD.h" #include "Util/logger.h" #include "Common/config.h" #include "Player/PlayerProxy.h" #include "Thread/WorkThreadPool.h" using namespace std; using namespace toolkit; using namespace mediakit; class CMD_main : public CMD { public: CMD_mai...
vincent-in-black-sesame/ZLMediaKit
tests/test_bench_proxy.cpp
C++
bsd
8,595
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
tests/test_bench_pull.cpp
C++
bsd
9,624
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
tests/test_bench_push.cpp
C++
bsd
12,579
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
tests/test_flv.cpp
C++
bsd
3,203
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
tests/test_httpApi.cpp
C++
bsd
6,042
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
tests/test_httpClient.cpp
C++
bsd
11,623
#include "Http/HttpRequester.h" int main() { auto requester = std::make_shared<mediakit::HttpRequester>(); requester->setMethod("HEAD"); requester->startRequester( "http://baidu.com", [](const toolkit::SockException &ex, const mediakit::Parser &parser) { if (ex) { ...
vincent-in-black-sesame/ZLMediaKit
tests/test_http_head.cpp
C++
bsd
808
#include "Common/config.h" #include "Http/HttpSession.h" #include "Network/TcpServer.h" #include "Rtmp/RtmpSession.h" #include "Rtp/Decoder.h" #include "Rtp/RtpProcess.h" #include "Rtsp/RtspSession.h" #include "Util/File.h" #include "Util/MD5.h" #include "Util/SSLBox.h" #include "Util/logger.h" #include "Util/util.h" ...
vincent-in-black-sesame/ZLMediaKit
tests/test_ps.cpp
C++
bsd
3,313
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
tests/test_pusher.cpp
C++
bsd
6,757
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
tests/test_pusherMp4.cpp
C++
bsd
6,691
/* * Copyright (c) 2016-present The ZLToolKit project authors. All Rights Reserved. * * This file is part of ZLToolKit(https://github.com/xia-chu/ZLToolKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing projec...
vincent-in-black-sesame/ZLMediaKit
tests/test_rtcp_nack.cpp
C++
bsd
1,801
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
tests/test_rtp.cpp
C++
bsd
4,221
#include "Common/config.h" #include "Http/HttpSession.h" #include "Network/TcpServer.h" #include "Rtmp/RtmpSession.h" #include "Rtp/RtpProcess.h" #include "Rtsp/RtspSession.h" #include "Util/logger.h" #include "Util/util.h" #include <iostream> #include <map> #include <pcap.h> using namespace std; using namespace tool...
vincent-in-black-sesame/ZLMediaKit
tests/test_rtp_pcap.cpp
C++
bsd
8,770
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
tests/test_server.cpp
C++
bsd
20,625
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
tests/test_sortor.cpp
C++
bsd
15,713
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
tests/test_wsClient.cpp
C++
bsd
2,347
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
tests/test_wsServer.cpp
C++
bsd
5,035
# -*- coding:utf-8 -*- import copy import os import re import subprocess import sys import json def check_installed(command: str) -> bool: """ check command is installed :param command: :return: """ if os.system(f"command -v {command} > /dev/null") == 0: return True else: r...
vincent-in-black-sesame/ZLMediaKit
tools/openapi/generates.py
Python
bsd
5,379
# MIT License # # Copyright (c) 2016-2022 The ZLMediaKit project authors. All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitat...
vincent-in-black-sesame/ZLMediaKit
webrtc/CMakeLists.txt
CMake
bsd
2,877
/** ISC License Copyright © 2015, Iñaki Baz Castillo <ibc@aliax.net> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS...
vincent-in-black-sesame/ZLMediaKit
webrtc/DtlsTransport.cpp
C++
bsd
45,794
/** ISC License Copyright © 2015, Iñaki Baz Castillo <ibc@aliax.net> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS...
vincent-in-black-sesame/ZLMediaKit
webrtc/DtlsTransport.hpp
C++
bsd
8,916
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contrib...
vincent-in-black-sesame/ZLMediaKit
webrtc/IceSession.cpp
C++
bsd
4,171
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contrib...
vincent-in-black-sesame/ZLMediaKit
webrtc/IceSession.hpp
C++
bsd
2,503
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
webrtc/IceTransport.cpp
C++
bsd
79,164
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contrib...
vincent-in-black-sesame/ZLMediaKit
webrtc/IceTransport.hpp
C++
bsd
31,429
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
webrtc/Nack.cpp
C++
bsd
14,102
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contrib...
vincent-in-black-sesame/ZLMediaKit
webrtc/Nack.h
C++
bsd
2,658
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contrib...
vincent-in-black-sesame/ZLMediaKit
webrtc/RtpExt.cpp
C++
bsd
25,030
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
webrtc/RtpExt.h
C++
bsd
5,613
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contrib...
vincent-in-black-sesame/ZLMediaKit
webrtc/RtpMap.h
C++
bsd
6,807
#ifdef ENABLE_SCTP #define MS_CLASS "RTC::SctpAssociation" // #define MS_LOG_DEV_LEVEL 3 #include "SctpAssociation.hpp" #include "logger.h" #include <stdarg.h> #include <cstdlib> // std::malloc(), std::free() #include <cstring> // std::memset(), std::memcpy() #include <string> #include <memory> #include <Util/util.h...
vincent-in-black-sesame/ZLMediaKit
webrtc/SctpAssociation.cpp
C++
bsd
34,761
#ifndef MS_RTC_SCTP_ASSOCIATION_HPP #define MS_RTC_SCTP_ASSOCIATION_HPP #ifdef ENABLE_SCTP #include <usrsctp.h> #include "Util/Byte.hpp" #include "Poller/EventPoller.h" namespace RTC { class SctpEnv; class SctpStreamParameters { public: uint16_t streamId{ 0u }; bool ordered{ true }; ...
vincent-in-black-sesame/ZLMediaKit
webrtc/SctpAssociation.hpp
C++
bsd
4,907
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contrib...
vincent-in-black-sesame/ZLMediaKit
webrtc/Sdp.cpp
C++
bsd
77,126
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contrib...
vincent-in-black-sesame/ZLMediaKit
webrtc/Sdp.h
C++
bsd
29,489
/** ISC License Copyright © 2015, Iñaki Baz Castillo <ibc@aliax.net> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND ...
vincent-in-black-sesame/ZLMediaKit
webrtc/SrtpSession.cpp
C++
bsd
9,090
/** ISC License Copyright © 2015, Iñaki Baz Castillo <ibc@aliax.net> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS...
vincent-in-black-sesame/ZLMediaKit
webrtc/SrtpSession.hpp
C++
bsd
1,814
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
webrtc/StunPacket.cpp
C++
bsd
35,781
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
webrtc/StunPacket.hpp
C++
bsd
25,871
/* * Copyright (c) 2021 The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing project ...
vincent-in-black-sesame/ZLMediaKit
webrtc/TwccContext.cpp
C++
bsd
4,801
/* * Copyright (c) 2021 The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing project ...
vincent-in-black-sesame/ZLMediaKit
webrtc/TwccContext.h
C++
bsd
1,641
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contrib...
vincent-in-black-sesame/ZLMediaKit
webrtc/WebRtcClient.cpp
C++
bsd
10,673
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contrib...
vincent-in-black-sesame/ZLMediaKit
webrtc/WebRtcClient.h
C++
bsd
2,829
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
webrtc/WebRtcEchoTest.cpp
C++
bsd
2,165