Answer for may I add advertise frame at the beginning when play?

I put ad.mp4 under /var/evostreamms/media/ and /var/evostreamms/media/ad.lst

# sourceOffset, duration, localStreamName

0,-1,ad.mp4
-1,60,party
0,-1,ad.mp4
-1,-1,party
I can play rtmp://113.52.133.35/live/party but can not play rtmp://113.52.133.35/vod/ad.lst I can also play ad.mp4 on local. error is:

/thelib/src/netio/epoll/tcpcarrier.cpp:86 Unable to read data from connection: (Far: 223.73.218.58:57572; Near: 113.52.133.35:1935) CTCP(28) <-> [TCP(35)] <-> IR(36). Error was (104): Connection reset by peer
/thelib/src/netio/epoll/iohandlermanager.cpp:128 Handlers count changed: 23->22 IOHT_TCP_CARRIER
/thelib/src/application/baseclientapplication.cpp:307 Stream ONR(11) with name `ad.mp4` from protocol IR(36) unregistered from origin application `evostreamms`
/thelib/src/application/baseclientapplication.cpp:307 Stream IFR(12) with name `/var/evostreamms/media/ad.mp4` from protocol IR(36) unregistered from origin application `evostreamms`
/thelib/src/application/baseclientapplication.cpp:295 Protocol [IR(36)] unregistered from application: evostreamms
/thelib/src/netio/epoll/iohandlermanager.cpp:128 Handlers count changed: 22->21 IOHT_TIMER
/thelib/src/netio/epoll/iohandlermanager.cpp:118 Handlers count changed: 21->22 IOHT_TCP_CARRIER
/thelib/src/netio/epoll/tcpacceptor.cpp:187 Inbound connection accepted: (Far: 223.73.218.58:57819; Near: 113.52.133.35:1935) CTCP(23) <-> TCP(46) <-> [IR(47)]
/thelib/src/protocols/rtmp/basertmpappprotocolhandler.cpp:772 User agent `LNX 9,0,124,2` on connection (Far: 223.73.218.58:57819; Near: 113.52.133.35:1935) CTCP(23) <-> TCP(46) <-> [IR(47)]
/thelib/src/protocols/rtmp/basertmpappprotocolhandler.cpp:1600 Default implementation of ProcessInvokeGeneric: Request: _checkbw
/thelib/src/protocols/rtmp/basertmpappprotocolhandler.cpp:1100 NetStream.play("ad.lst",-2.000,-1.000,true) called on (Far: 223.73.218.58:57819; Near: 113.52.133.35:1935) CTCP(23) <-> TCP(46) <-> [IR(47)]
/thelib/src/application/baseclientapplication.cpp:301 Stream ONR(17) with name `ad.mp4` from protocol IR(47) registered to origin application `evostreamms`
/thelib/src/application/baseclientapplication.cpp:301 Stream IFR(18) with name `/var/evostreamms/media/ad.mp4` from protocol IR(47) registered to origin application `evostreamms`
/thelib/src/netio/epoll/iohandlermanager.cpp:118 Handlers count changed: 22->23 IOHT_TIMER
/thelib/src/netio/epoll/iohandlermanager.cpp:118 Handlers count changed: 23->24 IOHT_TIMER
/thelib/src/netio/epoll/iohandlermanager.cpp:118 Handlers count changed: 24->25 IOHT_TIMER
/thelib/src/netio/epoll/iohandlermanager.cpp:128 Handlers count changed: 25->24 IOHT_TIMER
/thelib/src/netio/epoll/iohandlermanager.cpp:128 Handlers count changed: 24->23 IOHT_TIMER
what’s problem? and how to play ad.mp4 by rtmp protocol?

admin

This information box about the author only appears if the author has biographical information. Otherwise there is not author box shown. Follow YOOtheme on Twitter or read the blog.

Offcanvas

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.