2
// Copyright (C) 2008 Free Software Foundation, Inc.
4
// This program is free software; you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation; either version 3 of the License, or
7
// (at your option) any later version.
9
// This program is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
// GNU General Public License for more details.
14
// You should have received a copy of the GNU General Public License
15
// along with this program; if not, write to the Free Software
16
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
#ifndef _RTMP_CLIENT_H_
19
#define _RTMP_CLIENT_H_ 1
21
#include <boost/cstdint.hpp>
36
class DSOEXPORT RTMPClient : public RTMP
43
// bool handShakeResponse();
45
bool handShakeRequest();
47
// These are used for creating the primary objects
48
// Create the initial object sent to the server, which is NetConnection::connect()
49
amf::Buffer *encodeConnect(const char *app, const char *swfUrl, const char *tcUrl,
50
double audioCodecs, double videoCodecs, double videoFunction,
52
// Create the second object sent to the server, which is NetStream():;NetStream()
53
amf::Buffer *encodeStream(double id);
54
amf::Buffer *encodeStreamOp(double id, rtmp_op_e op, bool flag);
55
amf::Buffer *encodeStreamOp(double id, rtmp_op_e op, bool flag, double pos);
56
amf::Buffer *encodeStreamOp(double id, rtmp_op_e op, bool flag, const std::string &name);
57
amf::Buffer *encodeStreamOp(double id, rtmp_op_e op, bool flag, const std::string &name, double pos);
64
// This is the thread for all incoming RTMP connections
65
void rtmp_handler(Handler::thread_params_t *args);
67
} // end of gnash namespace
68
// end of _RTMP_CLIENT_H_
73
// indent-tabs-mode: t