I can’t play live rtmp stream while playback stream is ok,FLASH: rtmpconnectfailure

Description

I have imported all plugins and only live rtmp stream can’t play with error ‘FLASH: rtmpconnectfailure’, I use Wireshark captured the tcp datagram and compare with normal datagram, and the same steam can play with FlashMediaEncoder2.2 while failing with video.js. The datagram shows that it’s my client the one do disconnecting. The only difference between woking datagram and failing datagram is that the normal one without a ‘/’.
image

Steps to reproduce

Explain in detail the exact steps necessary to reproduce the issue.
The rtmp stream is as follow:
options: {
sources: [
{
type: “rtmp/flv”,
src: ‘rtmp://10.100.14.38:1935/live/&XIAOYUANTEST333_0_2?code=4231422736’
}
],
techOrder: [ ‘html5’, ‘flash’]
}“

Error output

FLASH: rtmpconnectfailure

Additional Information

The big play button has shown and after I click the button the error info shows. I have also tried autoplay.

versions

“video.js”: “^7.3.0”,
“videojs-contrib-hls”: “^5.15.0”,
“videojs-flash”: “^2.1.2”,

browsers

Chrome

1 possible answer(s) on “I can’t play live rtmp stream while playback stream is ok,FLASH: rtmpconnectfailure

  1. The query string should be part of the connection URL rather than the stream name, i.e before the & separator. Try this:

    rtmp://10.100.14.38:1935/live?code=4231422736&XIAOYUANTEST333_0_2