multimedia/device/main.c

21 lines
592 B
C

#include "thirdparty/map/src/map.h"
#include "sock.h"
#include <stdio.h>
#include "list.h"
#include "librtsp.h"
#include "thirdparty/base64_simple/base64.h"
int main() {
unsigned char decodeData[500] = {0};
RtspClient *p = ConectRtsp("118.24.238.198", 554, "sword");
if (0 == p) {
printf("error connect server\r\n");
return -1;
}
SendOption(p, 0);
SendAnnounce(p, 0);
base64_decode("2QAKKy0A8ARPywgAAADACAAAAMD0eMGVA==",
strlen("2QAKKy0A8ARPywgAAADACAAAAMD0eMGVA=="), decodeData);
printf("decode data %s\r\n", decodeData);
}