forked from dturing/node-gstreamer-superficial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPipeline.h
65 lines (51 loc) · 1.51 KB
/
Pipeline.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#ifndef __Pipeline_h__
#define __Pipeline_h__
#include <nan.h>
#include <gst/gst.h>
#include "GLibHelpers.h"
class Pipeline : public Nan::ObjectWrap {
public:
static void Init( Local<Object> exports );
void play();
void pause();
void stop();
void flush();
gboolean seek(gint64 time_nanoseconds, GstSeekFlags flags);
gint64 queryPosition();
gint64 queryDuration();
void sendEOS();
void forceKeyUnit(GObject* sink, int cnt);
GObject *findChild( const char *name );
Local<Value> pollBus();
void setPad( GObject* elem, const char *attribute, const char *padName );
GObject *getPad( GObject* elem, const char *padName );
private:
Pipeline(const char *launch);
Pipeline(GstPipeline *pipeline);
~Pipeline();
static Nan::Persistent<Function> constructor;
GstPipeline *pipeline;
static NAN_METHOD(New);
static NAN_METHOD(Play);
static NAN_METHOD(Pause);
static NAN_METHOD(Stop);
static NAN_METHOD(Seek);
static NAN_METHOD(QueryPosition);
static NAN_METHOD(QueryDuration);
static NAN_METHOD(SendEOS);
static NAN_METHOD(ForceKeyUnit);
static NAN_METHOD(FindChild);
static NAN_METHOD(SetPad);
static NAN_METHOD(GetPad);
static NAN_METHOD(Flush);
static void _doPollBus( uv_work_t *req );
static void _polledBus( uv_work_t *req, int );
static NAN_METHOD(PollBus);
static NAN_GETTER(GetAutoFlushBus);
static NAN_SETTER(SetAutoFlushBus);
static NAN_GETTER(GetDelay);
static NAN_SETTER(SetDelay);
static NAN_GETTER(GetLatency);
static NAN_SETTER(SetLatency);
};
#endif