forked from dturing/node-gstreamer-superficial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGObjectWrap.h
40 lines (30 loc) · 821 Bytes
/
GObjectWrap.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
#ifndef __GObjectWrap_h__
#define __GObjectWrap_h__
#include <nan.h>
#include <gst/gst.h>
#include "GLibHelpers.h"
class GObjectWrap : public Nan::ObjectWrap {
public:
static void Init();
static Local<Value> NewInstance( const Nan::FunctionCallbackInfo<Value>& info, GObject *obj );
void set( const char *name, const Local<Value> value );
void play();
void pause();
void stop();
void flush();
private:
GObjectWrap() {}
~GObjectWrap() {}
GObject *obj;
static Nan::Persistent<Function> constructor;
static NAN_METHOD(New);
static NAN_SETTER(SetProperty);
static NAN_GETTER(GetProperty);
/*
static void _doPullBuffer( uv_work_t *req );
static void _pulledBuffer( uv_work_t *req, int );
*/
static NAN_METHOD(GstAppSinkPull);
static NAN_METHOD(GstAppSrcPush);
};
#endif