ijkMediaPlayer.setOption(IjkMediaPlayer.OPT_CATEGORY_PLAYER, "rtsp_transport", "tcp");
将rtsp流强制改成tcp,这样设置对么
enum RTSPLowerTransport {
RTSP_LOWER_TRANSPORT_UDP = 0, /< UDP/unicast /
RTSP_LOWER_TRANSPORT_TCP = 1, /< TCP; interleaved in RTSP */
RTSP_LOWER_TRANSPORT_UDP_MULTICAST = 2, /< UDP/multicast */
RTSP_LOWER_TRANSPORT_NB,
RTSP_LOWER_TRANSPORT_HTTP = 8, /< HTTP tunneled - not a
proper
transport mode as such,
only for use via AVOptions
*/
RTSP_LOWER_TRANSPORT_CUSTOM = 16, /*< Custom IO - not a public
option for
lower_transport_mask,
but set in the SDP demuxer
based
on a flag. */
};
ijkMediaPlayer.setOption(IjkMediaPlayer.OPT_CATEGORY_PLAYER,
"rtsp_transport", "select from RTSPLowerTransport");
2017-02-12 13:53 GMT+08:00 MrDavy notifications@github.com:
ijkMediaPlayer.setOption(IjkMediaPlayer.OPT_CATEGORY_PLAYER,
"rtsp_transport", "tcp");
将rtsp流强制改成tcp,这样设置对么—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Bilibili/ijkplayer/issues/2668, or mute the thread
https://github.com/notifications/unsubscribe-auth/AEOmllXO9DWNgb4FXLhwdxCE6-9kAR6Zks5rbp5tgaJpZM4L-Zu-
.
ijkMediaPlayer.setOption(IjkMediaPlayer.OPT_CATEGORY_FORMAT,
"rtsp_transport", "select from RTSPLowerTransport");
多谢大神指点:-D,这样改了没起作用,rtsp强制改成tcp,是否需要在编译时enable Protocol tcp?
ijk default enable tcp
2017-02-13 13:10 GMT+08:00 MrDavy notifications@github.com:
多谢大神指点:-D,这样改了没起作用,rtsp强制改成tcp,是否需要在编译时enable Protocol tcp?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Bilibili/ijkplayer/issues/2668#issuecomment-279295830,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEOmlrjvDzqsP7gDMJOnLhO0EPXrzaxoks5rb-W9gaJpZM4L-Zu-
.
这个参数试过支持的,版本升级后改了?抓包看看?
I will try try
ijkMediaPlayer.setOption(IjkMediaPlayer.OPT_CATEGORY_FORMAT, "rtsp_transport", "tcp");
Most helpful comment
enum RTSPLowerTransport {
RTSP_LOWER_TRANSPORT_UDP = 0, /< UDP/unicast /
RTSP_LOWER_TRANSPORT_TCP = 1, /< TCP; interleaved in RTSP */
RTSP_LOWER_TRANSPORT_UDP_MULTICAST = 2, /< UDP/multicast */
RTSP_LOWER_TRANSPORT_NB,
RTSP_LOWER_TRANSPORT_HTTP = 8, /< HTTP tunneled - not a
proper
transport mode as such,
only for use via AVOptions
*/
RTSP_LOWER_TRANSPORT_CUSTOM = 16, /*< Custom IO - not a public
option for
lower_transport_mask,
but set in the SDP demuxer
based
on a flag. */
};
ijkMediaPlayer.setOption(IjkMediaPlayer.OPT_CATEGORY_PLAYER,
"rtsp_transport", "select from RTSPLowerTransport");
2017-02-12 13:53 GMT+08:00 MrDavy notifications@github.com: