-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStreamRtpClient.h
44 lines (35 loc) · 1011 Bytes
/
StreamRtpClient.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
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: StreamRtpClient.h
* Author: serhiy
*
* Created on November 26, 2016, 3:13 PM
*/
#ifndef STREAMRTPCLIENT_H
#define STREAMRTPCLIENT_H
#include <gst/gst.h>
#include <gst/app/gstappsink.h>
#include <stdlib.h>
#include <QString>
#include <QDebug>
class StreamRtpClient {
public:
StreamRtpClient();
StreamRtpClient(const StreamRtpClient& orig);
virtual ~StreamRtpClient();
private:
QString init_line_;
GstElement *pipeline;
GError *error;
GstElement *sink;
GstBus *bus;
static GstFlowReturn new_preroll(GstAppSink *appsink, gpointer data);
static GstFlowReturn new_sample(GstAppSink *appsink, gpointer data);
static gboolean my_bus_callback (GstBus *bus, GstMessage *message, gpointer data);
bool initializeGst();
};
#endif /* STREAMRTPCLIENT_H */