1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00

miracle-wfdctl: run gst-launch to generate video stream with hardcoded

environment
This commit is contained in:
Derek Dai 2017-02-16 18:02:16 +08:00
parent 02e5c4beac
commit 34cc56dba8
No known key found for this signature in database
GPG key ID: E109CC97553EF009
4 changed files with 123 additions and 12 deletions

View file

@ -19,6 +19,7 @@
#ifndef MIRACLE_OUT_SESSION_H
#define MIRACLE_OUT_SESSION_H
#include <unistd.h>
#include "ctl.h"
#define wfd_out_session(s) (assert(wfd_is_out_session(s)), (struct wfd_out_session *) (s))
@ -99,11 +100,13 @@ struct wfd_session
enum wfd_stream_id id;
char *url;
uint16_t rtp_port;
pid_t gst;
} stream;
bool destructed: 1;
};
int wfd_session_init(struct wfd_session *s);
const char * rtsp_message_id_to_string(enum rtsp_message_id id);
struct wfd_sink * wfd_out_session_get_sink(struct wfd_session *s);
int wfd_session_request(struct wfd_session *s, enum rtsp_message_id id);