}
/**
- * Opens RTMP connection and verifies that the stream can be played.
+ * Open RTMP connection and verify that the stream can be played.
*
* URL syntax: rtmp://server[:port][/app][/playpath][ keyword=value]...
* where 'app' is first one or two directories in the path
}
if (flags & URL_WRONLY)
- r->Link.protocol |= RTMP_FEATURE_WRITE;
+ RTMP_EnableWrite(r);
if (!RTMP_Connect(r, NULL) || !RTMP_ConnectStream(r, 0)) {
rc = -1;
{
RTMP *r = s->priv_data;
- if (pause)
- r->m_pauseStamp =
- r->m_channelTimestamp[r->m_mediaChannel];
- if (!RTMP_SendPause(r, pause, r->m_pauseStamp))
+ if (!RTMP_Pause(r, pause))
return -1;
return 0;
}
{
RTMP *r = s->priv_data;
- return r->m_sb.sb_socket;
+ return RTMP_Socket(r);
}
URLProtocol rtmp_protocol = {