Mercurial > mplayer.hg
comparison libmpdemux/stream_livedotcom.c @ 16572:56a5f69e9b35
"LIVE.COM Streaming Media" is now called "LIVE555 Streaming Media".
author | rsf |
---|---|
date | Fri, 23 Sep 2005 22:35:04 +0000 |
parents | 85c8390cd30a |
children | 1e8962ee910f |
comparison
equal
deleted
inserted
replaced
16571:865ef897f786 | 16572:56a5f69e9b35 |
---|---|
10 #include "stream.h" | 10 #include "stream.h" |
11 #include "network.h" | 11 #include "network.h" |
12 #include "demuxer.h" | 12 #include "demuxer.h" |
13 #include "help_mp.h" | 13 #include "help_mp.h" |
14 | 14 |
15 #ifdef STREAMING_LIVE_DOT_COM | 15 #ifdef STREAMING_LIVE555 |
16 | 16 |
17 extern int network_bandwidth; | 17 extern int network_bandwidth; |
18 | 18 |
19 static int _rtsp_streaming_seek(int fd, off_t pos, streaming_ctrl_t* streaming_ctrl) { | 19 static int _rtsp_streaming_seek(int fd, off_t pos, streaming_ctrl_t* streaming_ctrl) { |
20 return -1; // For now, we don't handle RTSP stream seeking | 20 return -1; // For now, we don't handle RTSP stream seeking |
36 stream->streaming_ctrl->bandwidth = network_bandwidth; | 36 stream->streaming_ctrl->bandwidth = network_bandwidth; |
37 url = url_new(stream->url); | 37 url = url_new(stream->url); |
38 stream->streaming_ctrl->url = check4proxies(url); | 38 stream->streaming_ctrl->url = check4proxies(url); |
39 //url_free(url); | 39 //url_free(url); |
40 | 40 |
41 mp_msg(MSGT_OPEN, MSGL_INFO, "STREAM_LIVEDOTCOM, URL: %s\n", stream->url); | 41 mp_msg(MSGT_OPEN, MSGL_INFO, "STREAM_LIVE555, URL: %s\n", stream->url); |
42 | 42 |
43 if(rtsp_streaming_start(stream) < 0) { | 43 if(rtsp_streaming_start(stream) < 0) { |
44 mp_msg(MSGT_NETWORK,MSGL_ERR,"rtsp_streaming_start failed\n"); | 44 mp_msg(MSGT_NETWORK,MSGL_ERR,"rtsp_streaming_start failed\n"); |
45 goto fail; | 45 goto fail; |
46 } | 46 } |
98 | 98 |
99 stream_info_t stream_info_rtsp_sip = { | 99 stream_info_t stream_info_rtsp_sip = { |
100 "standard RTSP and SIP", | 100 "standard RTSP and SIP", |
101 "RTSP and SIP", | 101 "RTSP and SIP", |
102 "Ross Finlayson", | 102 "Ross Finlayson", |
103 "Uses LIVE.COM streaming library.", | 103 "Uses LIVE555 Streaming Media library.", |
104 open_live_rtsp_sip, | 104 open_live_rtsp_sip, |
105 {"rtsp", "sip", NULL }, | 105 {"rtsp", "sip", NULL }, |
106 NULL, | 106 NULL, |
107 0 // Urls are an option string | 107 0 // Urls are an option string |
108 }; | 108 }; |
109 | 109 |
110 stream_info_t stream_info_sdp = { | 110 stream_info_t stream_info_sdp = { |
111 "SDP stream descriptor", | 111 "SDP stream descriptor", |
112 "SDP", | 112 "SDP", |
113 "Ross Finlayson", | 113 "Ross Finlayson", |
114 "Uses live.com streaming library.", | 114 "Uses LIVE555 Streaming Media library.", |
115 open_live_sdp, | 115 open_live_sdp, |
116 {"sdp", NULL }, | 116 {"sdp", NULL }, |
117 NULL, | 117 NULL, |
118 0 // Urls are an option string | 118 0 // Urls are an option string |
119 }; | 119 }; |