aboutsummaryrefslogtreecommitdiff
path: root/rtmpserver.h
blob: cae56a5695de8379b6733bc795630bbb6f7ef776 (plain)
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
#ifndef RTMPSERVER_H_
#define RTMPSERVER_H_

#include <stdint.h>
#include <stdlib.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef struct {
    void (*on_start)(void *ctx);
    void (*on_stop)(void *ctx);
    void (*on_video)(void* ctx, int64_t timestamp, char *buf, size_t size);
    void (*on_audio)(void* ctx, int64_t timestamp, char *buf, size_t size);
} RtmpCallbacks;

void start_rtmpserver(RtmpCallbacks cbs, void *ctx);

#ifdef __cplusplus
}
#endif


#endif