mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
整理优化代码
This commit is contained in:
parent
ea131d9740
commit
0b08831f5d
@ -41,7 +41,7 @@
|
|||||||
#include "Rtsp/RtspSession.h"
|
#include "Rtsp/RtspSession.h"
|
||||||
#include "Rtmp/RtmpSession.h"
|
#include "Rtmp/RtmpSession.h"
|
||||||
#include "Shell/ShellSession.h"
|
#include "Shell/ShellSession.h"
|
||||||
#include "RtmpMuxer/FlvMuxer.h"
|
#include "Rtmp/FlvMuxer.h"
|
||||||
#include "Player/PlayerProxy.h"
|
#include "Player/PlayerProxy.h"
|
||||||
#include "Http/WebSocketSession.h"
|
#include "Http/WebSocketSession.h"
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
#include "Rtsp/RtspSession.h"
|
#include "Rtsp/RtspSession.h"
|
||||||
#include "Rtmp/RtmpSession.h"
|
#include "Rtmp/RtmpSession.h"
|
||||||
#include "Shell/ShellSession.h"
|
#include "Shell/ShellSession.h"
|
||||||
#include "RtmpMuxer/FlvMuxer.h"
|
#include "Rtmp/FlvMuxer.h"
|
||||||
#include "Player/PlayerProxy.h"
|
#include "Player/PlayerProxy.h"
|
||||||
#include "Http/WebSocketSession.h"
|
#include "Http/WebSocketSession.h"
|
||||||
#include "WebApi.h"
|
#include "WebApi.h"
|
||||||
|
@ -27,8 +27,8 @@
|
|||||||
#ifndef ZLMEDIAKIT_MULTIMEDIASOURCEMUXER_H
|
#ifndef ZLMEDIAKIT_MULTIMEDIASOURCEMUXER_H
|
||||||
#define ZLMEDIAKIT_MULTIMEDIASOURCEMUXER_H
|
#define ZLMEDIAKIT_MULTIMEDIASOURCEMUXER_H
|
||||||
|
|
||||||
#include "RtspMuxer/RtspMediaSourceMuxer.h"
|
#include "Rtsp/RtspMediaSourceMuxer.h"
|
||||||
#include "RtmpMuxer/RtmpMediaSourceMuxer.h"
|
#include "Rtmp/RtmpMediaSourceMuxer.h"
|
||||||
#include "MediaFile/MediaRecorder.h"
|
#include "MediaFile/MediaRecorder.h"
|
||||||
|
|
||||||
class MultiMediaSourceMuxer : public FrameWriterInterface{
|
class MultiMediaSourceMuxer : public FrameWriterInterface{
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
#ifndef ZLMEDIAKIT_AACRTMPCODEC_H
|
#ifndef ZLMEDIAKIT_AACRTMPCODEC_H
|
||||||
#define ZLMEDIAKIT_AACRTMPCODEC_H
|
#define ZLMEDIAKIT_AACRTMPCODEC_H
|
||||||
|
|
||||||
#include "RtmpCodec.h"
|
#include "Rtmp/RtmpCodec.h"
|
||||||
#include "Extension/Track.h"
|
#include "Extension/Track.h"
|
||||||
#include "Extension/AAC.h"
|
#include "Extension/AAC.h"
|
||||||
|
|
@ -27,7 +27,7 @@
|
|||||||
#ifndef ZLMEDIAKIT_AACRTPCODEC_H
|
#ifndef ZLMEDIAKIT_AACRTPCODEC_H
|
||||||
#define ZLMEDIAKIT_AACRTPCODEC_H
|
#define ZLMEDIAKIT_AACRTPCODEC_H
|
||||||
|
|
||||||
#include "RtpCodec.h"
|
#include "Rtsp/RtpCodec.h"
|
||||||
#include "Extension/AAC.h"
|
#include "Extension/AAC.h"
|
||||||
namespace mediakit{
|
namespace mediakit{
|
||||||
/**
|
/**
|
@ -25,11 +25,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "Factory.h"
|
#include "Factory.h"
|
||||||
#include "RtmpMuxer/H264RtmpCodec.h"
|
#include "H264RtmpCodec.h"
|
||||||
#include "RtmpMuxer/AACRtmpCodec.h"
|
#include "AACRtmpCodec.h"
|
||||||
#include "RtspMuxer/H264RtpCodec.h"
|
#include "H264RtpCodec.h"
|
||||||
#include "RtspMuxer/AACRtpCodec.h"
|
#include "AACRtpCodec.h"
|
||||||
#include "RtspMuxer/H265RtpCodec.h"
|
#include "H265RtpCodec.h"
|
||||||
|
|
||||||
namespace mediakit{
|
namespace mediakit{
|
||||||
|
|
||||||
|
@ -30,8 +30,8 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include "Rtmp/amf.h"
|
#include "Rtmp/amf.h"
|
||||||
#include "Extension/Track.h"
|
#include "Extension/Track.h"
|
||||||
#include "RtspMuxer/RtpCodec.h"
|
#include "Rtsp/RtpCodec.h"
|
||||||
#include "RtmpMuxer/RtmpCodec.h"
|
#include "Rtmp/RtmpCodec.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace toolkit;
|
using namespace toolkit;
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
#ifndef ZLMEDIAKIT_H264RTMPCODEC_H
|
#ifndef ZLMEDIAKIT_H264RTMPCODEC_H
|
||||||
#define ZLMEDIAKIT_H264RTMPCODEC_H
|
#define ZLMEDIAKIT_H264RTMPCODEC_H
|
||||||
|
|
||||||
#include "RtmpCodec.h"
|
#include "Rtmp/RtmpCodec.h"
|
||||||
#include "Extension/Track.h"
|
#include "Extension/Track.h"
|
||||||
#include "Util/ResourcePool.h"
|
#include "Util/ResourcePool.h"
|
||||||
#include "Extension/H264.h"
|
#include "Extension/H264.h"
|
@ -27,7 +27,7 @@
|
|||||||
#ifndef ZLMEDIAKIT_H264RTPCODEC_H
|
#ifndef ZLMEDIAKIT_H264RTPCODEC_H
|
||||||
#define ZLMEDIAKIT_H264RTPCODEC_H
|
#define ZLMEDIAKIT_H264RTPCODEC_H
|
||||||
|
|
||||||
#include "RtpCodec.h"
|
#include "Rtsp/RtpCodec.h"
|
||||||
#include "Util/ResourcePool.h"
|
#include "Util/ResourcePool.h"
|
||||||
#include "Extension/H264.h"
|
#include "Extension/H264.h"
|
||||||
using namespace toolkit;
|
using namespace toolkit;
|
@ -27,7 +27,7 @@
|
|||||||
#ifndef ZLMEDIAKIT_H265RTPCODEC_H
|
#ifndef ZLMEDIAKIT_H265RTPCODEC_H
|
||||||
#define ZLMEDIAKIT_H265RTPCODEC_H
|
#define ZLMEDIAKIT_H265RTPCODEC_H
|
||||||
|
|
||||||
#include "RtpCodec.h"
|
#include "Rtsp/RtpCodec.h"
|
||||||
#include "Util/ResourcePool.h"
|
#include "Util/ResourcePool.h"
|
||||||
#include "Extension/H265.h"
|
#include "Extension/H265.h"
|
||||||
|
|
@ -32,7 +32,7 @@
|
|||||||
#include "Network/TcpSession.h"
|
#include "Network/TcpSession.h"
|
||||||
#include "Network/TcpServer.h"
|
#include "Network/TcpServer.h"
|
||||||
#include "Rtmp/RtmpMediaSource.h"
|
#include "Rtmp/RtmpMediaSource.h"
|
||||||
#include "RtmpMuxer/FlvMuxer.h"
|
#include "Rtmp/FlvMuxer.h"
|
||||||
#include "HttpRequestSplitter.h"
|
#include "HttpRequestSplitter.h"
|
||||||
#include "WebSocketSplitter.h"
|
#include "WebSocketSplitter.h"
|
||||||
#include "HttpCookieManager.h"
|
#include "HttpCookieManager.h"
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include "amf.h"
|
#include "amf.h"
|
||||||
#include "Rtmp.h"
|
#include "Rtmp.h"
|
||||||
#include "RtmpMuxer/RtmpDemuxer.h"
|
#include "RtmpDemuxer.h"
|
||||||
#include "Common/config.h"
|
#include "Common/config.h"
|
||||||
#include "Common/MediaSource.h"
|
#include "Common/MediaSource.h"
|
||||||
#include "Util/util.h"
|
#include "Util/util.h"
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
#ifndef ZLMEDIAKIT_RTMPMEDIASOURCEMUXER_H
|
#ifndef ZLMEDIAKIT_RTMPMEDIASOURCEMUXER_H
|
||||||
#define ZLMEDIAKIT_RTMPMEDIASOURCEMUXER_H
|
#define ZLMEDIAKIT_RTMPMEDIASOURCEMUXER_H
|
||||||
|
|
||||||
#include "RtmpMuxer/RtmpMuxer.h"
|
#include "RtmpMuxer.h"
|
||||||
#include "Rtmp/RtmpMediaSource.h"
|
#include "Rtmp/RtmpMediaSource.h"
|
||||||
|
|
||||||
namespace mediakit {
|
namespace mediakit {
|
@ -32,7 +32,7 @@
|
|||||||
#include "Common/config.h"
|
#include "Common/config.h"
|
||||||
#include "RtmpPlayer.h"
|
#include "RtmpPlayer.h"
|
||||||
#include "RtmpMediaSource.h"
|
#include "RtmpMediaSource.h"
|
||||||
#include "RtmpMuxer/RtmpDemuxer.h"
|
#include "RtmpDemuxer.h"
|
||||||
#include "Poller/Timer.h"
|
#include "Poller/Timer.h"
|
||||||
#include "Util/TimeTicker.h"
|
#include "Util/TimeTicker.h"
|
||||||
using namespace toolkit;
|
using namespace toolkit;
|
||||||
|
@ -37,9 +37,9 @@
|
|||||||
#include "amf.h"
|
#include "amf.h"
|
||||||
#include "Rtmp.h"
|
#include "Rtmp.h"
|
||||||
#include "RtmpMediaSource.h"
|
#include "RtmpMediaSource.h"
|
||||||
#include "RtmpMuxer/RtmpDemuxer.h"
|
#include "RtmpDemuxer.h"
|
||||||
#include "MediaFile/MediaRecorder.h"
|
#include "MediaFile/MediaRecorder.h"
|
||||||
#include "RtspMuxer/RtspMediaSourceMuxer.h"
|
#include "Rtsp/RtspMediaSourceMuxer.h"
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace toolkit;
|
using namespace toolkit;
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
#include <map>
|
#include <map>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include "RtspMuxer/RtpCodec.h"
|
#include "RtpCodec.h"
|
||||||
#include "RtspMediaSource.h"
|
#include "RtspMediaSource.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include "Player/PlayerBase.h"
|
#include "Player/PlayerBase.h"
|
||||||
#include "Util/TimeTicker.h"
|
#include "Util/TimeTicker.h"
|
||||||
#include "RtspMuxer/RtpCodec.h"
|
#include "RtpCodec.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace toolkit;
|
using namespace toolkit;
|
@ -34,7 +34,7 @@
|
|||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include "Common/config.h"
|
#include "Common/config.h"
|
||||||
#include "Common/MediaSource.h"
|
#include "Common/MediaSource.h"
|
||||||
#include "RtspMuxer/RtpCodec.h"
|
#include "RtpCodec.h"
|
||||||
|
|
||||||
#include "Util/logger.h"
|
#include "Util/logger.h"
|
||||||
#include "Util/RingBuffer.h"
|
#include "Util/RingBuffer.h"
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
#ifndef ZLMEDIAKIT_RTSPMEDIASOURCEMUXER_H
|
#ifndef ZLMEDIAKIT_RTSPMEDIASOURCEMUXER_H
|
||||||
#define ZLMEDIAKIT_RTSPMEDIASOURCEMUXER_H
|
#define ZLMEDIAKIT_RTSPMEDIASOURCEMUXER_H
|
||||||
|
|
||||||
#include "RtspMuxer/RtspMuxer.h"
|
#include "RtspMuxer.h"
|
||||||
#include "Rtsp/RtspMediaSource.h"
|
#include "Rtsp/RtspMediaSource.h"
|
||||||
|
|
||||||
namespace mediakit {
|
namespace mediakit {
|
@ -32,7 +32,7 @@
|
|||||||
#include <functional>
|
#include <functional>
|
||||||
#include "Common/config.h"
|
#include "Common/config.h"
|
||||||
#include "RtspPlayer.h"
|
#include "RtspPlayer.h"
|
||||||
#include "RtspMuxer/RtspDemuxer.h"
|
#include "RtspDemuxer.h"
|
||||||
#include "Poller/Timer.h"
|
#include "Poller/Timer.h"
|
||||||
#include "Util/TimeTicker.h"
|
#include "Util/TimeTicker.h"
|
||||||
|
|
||||||
|
@ -31,8 +31,8 @@
|
|||||||
#include "RtspMediaSource.h"
|
#include "RtspMediaSource.h"
|
||||||
#include "MediaFile/MediaRecorder.h"
|
#include "MediaFile/MediaRecorder.h"
|
||||||
#include "Rtmp/RtmpMediaSource.h"
|
#include "Rtmp/RtmpMediaSource.h"
|
||||||
#include "RtspMuxer/RtspDemuxer.h"
|
#include "RtspDemuxer.h"
|
||||||
#include "RtmpMuxer/RtmpMediaSourceMuxer.h"
|
#include "Rtmp/RtmpMediaSourceMuxer.h"
|
||||||
|
|
||||||
using namespace toolkit;
|
using namespace toolkit;
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
#include "Rtsp/RtspSession.h"
|
#include "Rtsp/RtspSession.h"
|
||||||
#include "Rtmp/RtmpSession.h"
|
#include "Rtmp/RtmpSession.h"
|
||||||
#include "Shell/ShellSession.h"
|
#include "Shell/ShellSession.h"
|
||||||
#include "RtmpMuxer/FlvMuxer.h"
|
#include "Rtmp/FlvMuxer.h"
|
||||||
#include "Player/PlayerProxy.h"
|
#include "Player/PlayerProxy.h"
|
||||||
#include "Http/WebSocketSession.h"
|
#include "Http/WebSocketSession.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user