Go to the documentation of this file.
21 #ifndef GNASH_RUN_INFO_H
22 #define GNASH_RUN_INFO_H
32 class TagLoadersTable;
77 assert (_streamProvider.get());
78 return *_streamProvider;
97 return _soundHandler.get();
105 return _mediaHandler.get();
113 return _renderer.get();
122 _tagLoaders = loaders;
127 assert(_tagLoaders.get());
147 std::shared_ptr<StreamProvider> _streamProvider;
149 std::shared_ptr<sound::sound_handler> _soundHandler;
151 std::shared_ptr<media::MediaHandler> _mediaHandler;
153 std::shared_ptr<Renderer> _renderer;
155 std::shared_ptr<const SWF::TagLoadersTable> _tagLoaders;
160 std::string _hwaccel_backend;
165 std::string _renderer_backend;
@ G
Definition: GnashKey.h:119
static LogFile & getDefaultInstance()
Definition: log.cpp:77
void sendDeleteStream(rtmp::RTMP &r, FakeNC &nc, double id)
Definition: rtmpget.cpp:343
Exception for handling malformed buffers.
Definition: AMF.h:71
@ L
Definition: GnashKey.h:124
@ l
Definition: GnashKey.h:158
Definition: arg_parser.h:59
std::string argument(const int i) const
Definition: arg_parser.h:119
void setTagLoaders(std::shared_ptr< const SWF::TagLoadersTable > loaders)
Set the loader functions for SWF parsing.
Definition: RunResources.h:121
@ d
Definition: GnashKey.h:150
const SWF::TagLoadersTable & tagLoaders() const
Get the loader function table for parsing a SWF.
Definition: RunResources.h:126
Renderer * renderer() const
Definition: RunResources.h:112
@ T
Definition: GnashKey.h:132
size_t arraySize(T(&)[N])
Get the size of an array without passing a pointer by mistake.
Definition: GnashAlgorithm.h:58
std::string & getHWAccelBackend()
Definition: RunResources.h:141
void setStreamProvider(std::shared_ptr< StreamProvider > sp)
Set the StreamProvider.
Definition: RunResources.h:66
void log_debug(StringType msg, Args... args)
Definition: log.h:301
std::int32_t y
Definition: BitmapData_as.cpp:435
void sendPausePacket(rtmp::RTMP &r, FakeNC &nc, bool flag, double time)
Definition: rtmpget.cpp:264
@ i
Definition: GnashKey.h:155
int arguments() const
Definition: arg_parser.h:109
void sendCreateStream(rtmp::RTMP &r, FakeNC &nc)
Definition: rtmpget.cpp:331
std::string & getRenderBackend()
Definition: RunResources.h:136
Definition: arg_parser.h:66
void setSoundHandler(std::shared_ptr< sound::sound_handler > s)
Set the sound::sound_handler.
Definition: RunResources.h:88
#define _(String)
Definition: log.h:44
void appendByte(const std::uint8_t b)
Append a byte to the buffer.
Definition: SimpleBuffer.h:140
@ J
Definition: GnashKey.h:122
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
@ g
Definition: GnashKey.h:153
@ Z
Definition: GnashKey.h:138
PNG IHDR ʐ sBIT O pHYs IDATxw S
Definition: rtmp.png.txt:4
Base class for render handlers.
Definition: Renderer.h:189
@ m
Definition: GnashKey.h:159
@ s
Definition: GnashKey.h:165
@ NULL_AMF0
Definition: AMF.h:52
@ n
Definition: GnashKey.h:160
@ start
Definition: klash_part.cpp:330
#define __FUNCTION__
Definition: log.h:437
void setRenderBackend(const std::string &x)
Definition: RunResources.h:135
void sendFCSubscribe(rtmp::RTMP &r, FakeNC &nc, const std::string &subscribepath)
Definition: rtmpget.cpp:359
void log_error(StringType msg, Args... args)
Definition: log.h:283
@ _5
Definition: GnashKey.h:99
const std::string & error() const
Definition: arg_parser.h:106
void setRenderer(std::shared_ptr< Renderer > r)
Definition: RunResources.h:108
@ k
Definition: GnashKey.h:157
@ no
Definition: arg_parser.h:56
bool handleInvoke(rtmp::RTMP &r, FakeNC &nc, const std::uint8_t *payload, const std::uint8_t *end)
Definition: rtmpget.cpp:541
@ H
Definition: GnashKey.h:120
Definition: arg_parser.h:54
const std::string & path() const
Return the 'path' member of this URL, as a string.
Definition: URL.h:76
void sendPlayPacket(rtmp::RTMP &r, FakeNC &nc)
Definition: rtmpget.cpp:289
@ O
Definition: GnashKey.h:127
@ r
Definition: GnashKey.h:164
@ OBJECT_END_AMF0
Definition: AMF.h:56
void write(SimpleBuffer &buf, const std::string &str)
Write a string to an AMF buffer.
Definition: AMF.cpp:161
A StreamProvider makes IOChannels available to the core on request.
Definition: StreamProvider.h:50
void sendConnectPacket(rtmp::RTMP &r, FakeNC &nc, const std::string &app, const std::string &ver, const std::string &swfurl, const std::string &tcurl, const std::string &pageurl)
Definition: rtmpget.cpp:194
void setHWAccelBackend(const std::string &x)
Definition: RunResources.h:142
@ a
Definition: GnashKey.h:147
int main(int argc, char **argv)
Some URLs to try are:
Definition: rtmpget.cpp:384
@ F
Definition: GnashKey.h:118
RunResources()
Constructs a RunResources instance with an immutable base URL.
Definition: RunResources.h:61
void writeFLVHeader(std::ostream &o)
Definition: rtmpget.cpp:172
std::string readString(const std::uint8_t *&pos, const std::uint8_t *end)
Read a string value from the buffer.
Definition: AMF.cpp:87
code
Definition: GnashKey.h:44
@ B
Definition: GnashKey.h:114
@ length
Definition: klash_part.cpp:329
@ X
Definition: GnashKey.h:136
@ OBJECT_AMF0
Definition: AMF.h:50
@ z
Definition: GnashKey.h:172
@ p
Definition: GnashKey.h:162
@ C
Definition: GnashKey.h:115
@ NUMBER_AMF0
Definition: AMF.h:47
Class to group together per-run and external resources for Gnash.
Definition: RunResources.h:54
media::MediaHandler * mediaHandler() const
Definition: RunResources.h:104
void writeProperty(SimpleBuffer &buf, const std::string &name, const T &t)
Encode a string-value pair.
Definition: AMF.h:191
void sendCheckBW(rtmp::RTMP &r, FakeNC &nc)
Definition: rtmpget.cpp:235
@ j
Definition: GnashKey.h:156
This class is for handling the RTMP protocol.
Definition: RTMP.h:327
void replyBWCheck(rtmp::RTMP &r, FakeNC &, double txn)
Definition: rtmpget.cpp:250
void gnashSleep(time_t useconds)
Sleep compatibly for the specified number of microseconds.
Definition: GnashSleep.h:35
Sound mixer.
Definition: sound_handler.h:88
std::string url
Definition: gnash.cpp:59
@ V
Definition: GnashKey.h:134
int code(const int i) const
Definition: arg_parser.h:113
@ f
Definition: GnashKey.h:152
pixel_iterator< T > end(GnashImage &im)
Definition: ImageIterators.h:198
@ c
Definition: GnashKey.h:149
@ STRING_AMF0
Definition: AMF.h:49
sound::sound_handler * soundHandler() const
Get a pointer to a sound::sound_handler set by a hosting application.
Definition: RunResources.h:96
Table of SWF tags loaders.
Definition: TagLoadersTable.h:39
double readNumber(const std::uint8_t *&pos, const std::uint8_t *end)
Read a number from an AMF buffer.
Definition: AMF.cpp:65
@ yes
Definition: arg_parser.h:56
Uniform Resource Locator.
Definition: URL.h:35
@ o
Definition: GnashKey.h:161
@ P
Definition: GnashKey.h:128
@ SWF
Definition: GnashKey.h:331
@ N
Definition: GnashKey.h:126
std::string hexify(const unsigned char *p, size_t length, bool ascii)
Convert a sequence of bytes to hex or ascii format.
Definition: log.cpp:48
void setMediaHandler(std::shared_ptr< media::MediaHandler > s)
Definition: RunResources.h:100
std::int32_t x
Definition: BitmapData_as.cpp:434
std::string str() const
Return the full absolute URL as a string.
Definition: URL.cpp:272
@ b
Definition: GnashKey.h:148
@ e
Definition: GnashKey.h:151
@ I
Definition: GnashKey.h:121
A simple buffer of bytes.
Definition: SimpleBuffer.h:38
const StreamProvider & streamProvider() const
Get a StreamProvider instance.
Definition: RunResources.h:76
@ A
Definition: GnashKey.h:113
@ Y
Definition: GnashKey.h:137