|
|
@ -158,66 +158,56 @@ static int rtmp_get_file_handle(URLContext *s) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
URLProtocol ff_rtmp_protocol = { |
|
|
|
URLProtocol ff_rtmp_protocol = { |
|
|
|
"rtmp", |
|
|
|
.name = "rtmp", |
|
|
|
rtmp_open, |
|
|
|
.url_open = rtmp_open, |
|
|
|
rtmp_read, |
|
|
|
.url_read = rtmp_read, |
|
|
|
rtmp_write, |
|
|
|
.url_write = rtmp_write, |
|
|
|
NULL, /* seek */ |
|
|
|
.url_close = rtmp_close, |
|
|
|
rtmp_close, |
|
|
|
.url_read_pause = rtmp_read_pause, |
|
|
|
NULL, /* next */ |
|
|
|
.url_read_seek = rtmp_read_seek, |
|
|
|
rtmp_read_pause, |
|
|
|
.url_get_file_handle = rtmp_get_file_handle |
|
|
|
rtmp_read_seek, |
|
|
|
|
|
|
|
rtmp_get_file_handle |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
URLProtocol ff_rtmpt_protocol = { |
|
|
|
URLProtocol ff_rtmpt_protocol = { |
|
|
|
"rtmpt", |
|
|
|
.name = "rtmpt", |
|
|
|
rtmp_open, |
|
|
|
.url_open = rtmp_open, |
|
|
|
rtmp_read, |
|
|
|
.url_read = rtmp_read, |
|
|
|
rtmp_write, |
|
|
|
.url_write = rtmp_write, |
|
|
|
NULL, /* seek */ |
|
|
|
.url_close = rtmp_close, |
|
|
|
rtmp_close, |
|
|
|
.url_read_pause = rtmp_read_pause, |
|
|
|
NULL, /* next */ |
|
|
|
.url_read_seek = rtmp_read_seek, |
|
|
|
rtmp_read_pause, |
|
|
|
.url_get_file_handle = rtmp_get_file_handle |
|
|
|
rtmp_read_seek, |
|
|
|
|
|
|
|
rtmp_get_file_handle |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
URLProtocol ff_rtmpe_protocol = { |
|
|
|
URLProtocol ff_rtmpe_protocol = { |
|
|
|
"rtmpe", |
|
|
|
.name = "rtmpe", |
|
|
|
rtmp_open, |
|
|
|
.url_open = rtmp_open, |
|
|
|
rtmp_read, |
|
|
|
.url_read = rtmp_read, |
|
|
|
rtmp_write, |
|
|
|
.url_write = rtmp_write, |
|
|
|
NULL, /* seek */ |
|
|
|
.url_close = rtmp_close, |
|
|
|
rtmp_close, |
|
|
|
.url_read_pause = rtmp_read_pause, |
|
|
|
NULL, /* next */ |
|
|
|
.url_read_seek = rtmp_read_seek, |
|
|
|
rtmp_read_pause, |
|
|
|
.url_get_file_handle = rtmp_get_file_handle |
|
|
|
rtmp_read_seek, |
|
|
|
|
|
|
|
rtmp_get_file_handle |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
URLProtocol ff_rtmpte_protocol = { |
|
|
|
URLProtocol ff_rtmpte_protocol = { |
|
|
|
"rtmpte", |
|
|
|
.name = "rtmpte", |
|
|
|
rtmp_open, |
|
|
|
.url_open = rtmp_open, |
|
|
|
rtmp_read, |
|
|
|
.url_read = rtmp_read, |
|
|
|
rtmp_write, |
|
|
|
.url_write = rtmp_write, |
|
|
|
NULL, /* seek */ |
|
|
|
.url_close = rtmp_close, |
|
|
|
rtmp_close, |
|
|
|
.url_read_pause = rtmp_read_pause, |
|
|
|
NULL, /* next */ |
|
|
|
.url_read_seek = rtmp_read_seek, |
|
|
|
rtmp_read_pause, |
|
|
|
.url_get_file_handle = rtmp_get_file_handle |
|
|
|
rtmp_read_seek, |
|
|
|
|
|
|
|
rtmp_get_file_handle |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
URLProtocol ff_rtmps_protocol = { |
|
|
|
URLProtocol ff_rtmps_protocol = { |
|
|
|
"rtmps", |
|
|
|
.name = "rtmps", |
|
|
|
rtmp_open, |
|
|
|
.url_open = rtmp_open, |
|
|
|
rtmp_read, |
|
|
|
.url_read = rtmp_read, |
|
|
|
rtmp_write, |
|
|
|
.url_write = rtmp_write, |
|
|
|
NULL, /* seek */ |
|
|
|
.url_close = rtmp_close, |
|
|
|
rtmp_close, |
|
|
|
.url_read_pause = rtmp_read_pause, |
|
|
|
NULL, /* next */ |
|
|
|
.url_read_seek = rtmp_read_seek, |
|
|
|
rtmp_read_pause, |
|
|
|
.url_get_file_handle = rtmp_get_file_handle |
|
|
|
rtmp_read_seek, |
|
|
|
|
|
|
|
rtmp_get_file_handle |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|