Twitch SDK (Internal)
imuxer.h
Go to the documentation of this file.
1 /********************************************************************************************
2 * Twitch Broadcasting SDK
3 *
4 * This software is supplied under the terms of a license agreement with Twitch Interactive, Inc. and
5 * may not be copied or used except in accordance with the terms of that agreement
6 * Copyright (c) 2012-2016 Twitch Interactive, Inc.
7 *********************************************************************************************/
8 
9 #pragma once
10 
13 
14 
15 namespace ttv
16 {
17  namespace broadcast
18  {
19  class IMuxer;
20  }
21 }
22 
23 
28 {
29 public:
30  virtual ~IMuxer() = default;
31 
40  virtual TTV_ErrorCode Start(const MuxerParameters& parameters) = 0;
48  virtual TTV_ErrorCode WriteVideoPacket(const Packet& packet) = 0;
56  virtual TTV_ErrorCode WriteAudioPacket(const Packet& packet) = 0;
65  virtual TTV_ErrorCode WriteVideoSpsPps(const std::vector<uint8_t>& sps, const std::vector<uint8_t>& pps) = 0;
70  virtual TTV_ErrorCode Stop() = 0;
71 };
Definition: packet.h:26
virtual TTV_ErrorCode WriteVideoPacket(const Packet &packet)=0
virtual TTV_ErrorCode WriteAudioPacket(const Packet &packet)=0
virtual TTV_ErrorCode Start(const MuxerParameters &parameters)=0
virtual ~IMuxer()=default
JSON (JavaScript Object Notation).
Definition: adsapi.h:16
uint32_t TTV_ErrorCode
Definition: errortypes.h:30
Definition: imuxer.h:27
virtual TTV_ErrorCode Stop()=0
Definition: broadcasttypes.h:253
virtual TTV_ErrorCode WriteVideoSpsPps(const std::vector< uint8_t > &sps, const std::vector< uint8_t > &pps)=0