medooze / media-server-node

WebRTC Media Server for Node.js
MIT License
802 stars 119 forks source link

Playback/Player is not working #147

Closed pradeep538 closed 4 years ago

pradeep538 commented 4 years ago

Hi @murillo128 , I have tried to play the mp4 video from your demo example I have also fixed client-side bug for chrome // video.src = URL.createObjectURL(stream); video.srcObject = stream; I have tried with recorded video by rec example and external video as well. https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/1080/Big_Buck_Bunny_1080_10s_30MB.mp4

Ther is no error in client-side but sometimes i will get error in backend saying

[0x7fd11db99700][1588691141.880][LOG]-DTLSICETransport::SetRemoteCryptoSDES() | [suite:AES_CM_128_HMAC_SHA1_80] [0x7fd125e49740][1588691146.808][LOG]>MP4Streamer:Play() [0x7fd125e49740][1588691146.808][LOG]<MP4Streamer:Play() [0x7fd0fd7fa700][1588691146.808][LOG]>MP4Streamer::PlayLoop() operator[]: illegal array index: 2147483647 of 3: errno: 34 (../external/mp4v2/lib/src/mp4array.h,128) [0x7fd0fd7fa700][1588691146.809][ERR]Error reading sample [track:3,sampleId:1] GetSampleTimes: sample id out of range (../external/mp4v2/lib/src/mp4track.cpp,1100) [0x7fd0fdffb700][1588691150.167][LOG]-MP4Streamer::PlayLoop() [0x7fd0fdffb700][1588691150.174][LOG]<MP4Streamer::PlayLoop() /home/pradi/media-server-demo-node/node_modules/medooze-media-server/lib/Player.js:86 this.player.Reset(); ^

TypeError: Cannot read property 'Reset' of null at Player.onended (/home/pradi/media-server-demo-node/node_modules/medooze-media-server/lib/Player.js:86:17)

and some times no error but video is not playing [0x7fd1161aa740][1588691441.492][LOG]-DTLSICETransport::AddOutgoingSourceGroup() [group:0x2ae4bc0,ssrc:362380999,fec:1942408987,rtx:961710332] [0x7fd1161aa740][1588691441.522][LOG]>MP4Streamer:Play() [0x7fd1161aa740][1588691441.522][LOG]<MP4Streamer:Play() [0x7fd0edffb700][1588691441.523][LOG]>MP4Streamer::PlayLoop() [0x7fd10db99700][1588691441.523][LOG]-RTPBundleTransport::Read() | Got new remote ICE candidate [remote:49.37.202.64:64430] [0x7fd0edffb700][1588691441.523][LOG]-MP4Streamer::PlayLoop() [0x7fd0edffb700][1588691441.529][LOG]<MP4Streamer::PlayLoop() [0x7fd1161aa740][1588691441.529][LOG]>MP4Streamer:Seek() [time:0] [0x7fd1161aa740][1588691441.529][LOG]<MP4Streamer:Seek() | seeked [0,0] [0x7fd10db99700][1588691441.548][LOG]-DTLSConnection::onDTLSPendingData() | dtls send [len:928] [0x7fd10db99700][1588691441.571][LOG]-DTLSConnection::onDTLSPendingData() | dtls send [len:554] [0x7fd10db99700][1588691441.572][LOG]-DTLSConnection::onSSLInfo() | DTLS handshake done [0x7fd10db99700][1588691441.572][LOG]-DTLSICETransport::onDTLSSetup() [suite:1] [0x7fd10db99700][1588691441.572][LOG]-DTLSICETransport::SetLocalCryptoSDES() | [suite:AES_CM_128_HMAC_SHA1_80] [0x7fd10db99700][1588691441.572][LOG]-SRTPSession::AddStream() | [ssrc:279434614,OK] [0x7fd10db99700][1588691441.572][LOG]-SRTPSession::AddStream() | [ssrc:362380999,OK] [0x7fd10db99700][1588691441.573][LOG]-SRTPSession::AddStream() | [ssrc:1942408987,OK] [0x7fd10db99700][1588691441.573][LOG]-SRTPSession::AddStream() | [ssrc:961710332,OK] [0x7fd10db99700][1588691441.573][LOG]-DTLSICETransport::SetRemoteCryptoSDES() | [suite:AES_CM_128_HMAC_SHA1_80]

Thank You.

pradeep538 commented 4 years ago

Hi @murillo128 , Sorry for disturbing you again and again. playback still not working the moment i play it is going to unlimited loop -Got request for: playback [0x7f88fcae2740][1588739384.948][LOG]-RemoteRateEstimator adding stream [ssrc:875285308] [0x7f88fcae2740][1588739384.948][LOG]-RemoteRateEstimator adding stream [ssrc:814271974] [0x7f88fcae2740][1588739384.949][LOG]>MP4Streamer::Open() [recordings/1588739371567.mp4] FindTrackId: Track index doesn't exist - track 0 type hint (../external/mp4v2/lib/src/mp4file.cpp,3002) [0x7f88fcae2740][1588739384.950][LOG]-MP4Streamer::Open() | Found hint track [hintId:0] FindTrackIndex: Track id 0 doesn't exist (../external/mp4v2/lib/src/mp4file.cpp,3016) FindTrackId: Track index doesn't exist - track 0 type text (../external/mp4v2/lib/src/mp4file.cpp,3002) [0x7f88fcae2740][1588739384.952][LOG]-RTPBundleTransport::AddICETransport() | [8218d95e3c792027:ttK2] [0x7f88fcae2740][1588739384.952][LOG]-DTLSConnection::SetSRTPProtectionProfiles() [profiles:''] [0x7f88fcae2740][1588739384.953][LOG]-DTLSICETransport::SetLocalSTUNCredentials() | [frag:8218d95e3c792027,pwd:1b7996df1c07275fdb2df1ecc77f98918f6d6b9c86438689] [0x7f88fcae2740][1588739384.953][LOG]-DTLSICETransport::SetRemoteSTUNCredentials() | [frag:ttK2,pwd:m0DwufjRnOeH7eq7t1wYmQg/] [0x7f88fcae2740][1588739384.953][LOG]-DTLSICETransport::SetRemoteCryptoDTLS | [setup:actpass,hash:sha-256,fingerprint:97:0E:71:EA:64:F1:7D:20:D0:2F:83:12:18:7C:4D:73:50:13:6B:77:7C:0C:BE:BF:C3:F0:4B:0C:67:52:5E:7F] [0x7f88fcae2740][1588739384.953][LOG]-DTLSConnection::SetRemoteSetup() | [remote:2] [0x7f88fcae2740][1588739384.953][LOG]>DTLSConnection::Init() [0x7f88fcae2740][1588739384.953][LOG]<DTLSConnection::Init() [0x7f88fcae2740][1588739384.954][LOG]-DTLSICETransport::Dump() | [pcap:recordings/play-1588739384954.pcap,inbound:0,outboud:1,rtcp:1,rtpHeadersOnly:0] [0x7f88f8901700][1588739384.954][LOG]-PCAPFile::open() ["recordings/play-1588739384954.pcap"] [0x7f88fcae2740][1588739384.955][LOG]-DTLSICETransport::AddOutgoingSourceGroup() [group:0x38daa20,ssrc:23318782,fec:0,rtx:0] [0x7f88fcae2740][1588739384.956][LOG]-DTLSICETransport::AddOutgoingSourceGroup() [group:0x38dad80,ssrc:175986446,fec:354981026,rtx:1503129467] [0x7f88f8901700][1588739384.986][LOG]-RTPBundleTransport::Read() | Got new remote ICE candidate [remote:49.37.202.64:59565] [0x7f88f8901700][1588739385.006][LOG]-DTLSConnection::onDTLSPendingData() | dtls send [len:928] [0x7f88f8901700][1588739385.030][LOG]-DTLSConnection::onDTLSPendingData() | dtls send [len:554] [0x7f88f8901700][1588739385.031][LOG]-DTLSConnection::onSSLInfo() | DTLS handshake done [0x7f88f8901700][1588739385.031][LOG]-DTLSICETransport::onDTLSSetup() [suite:1] [0x7f88f8901700][1588739385.031][LOG]-DTLSICETransport::SetLocalCryptoSDES() | [suite:AES_CM_128_HMAC_SHA1_80] [0x7f88f8901700][1588739385.031][LOG]-SRTPSession::AddStream() | [ssrc:23318782,OK] [0x7f88f8901700][1588739385.031][LOG]-SRTPSession::AddStream() | [ssrc:175986446,OK] [0x7f88f8901700][1588739385.032][LOG]-SRTPSession::AddStream() | [ssrc:354981026,OK] [0x7f88f8901700][1588739385.032][LOG]-SRTPSession::AddStream() | [ssrc:1503129467,OK] [0x7f88f8901700][1588739385.032][LOG]-DTLSICETransport::SetRemoteCryptoSDES() | [suite:AES_CM_128_HMAC_SHA1_80] [0x7f88fcae2740][1588739385.053][LOG]>MP4Streamer:Play() [0x7f88fcae2740][1588739385.054][LOG]<MP4Streamer:Play() [0x7f88d7fff700][1588739385.054][LOG]>MP4Streamer::PlayLoop() [0x7f88d7fff700][1588739385.054][LOG]-MP4Streamer::PlayLoop() [0x7f88d7fff700][1588739385.057][LOG]<MP4Streamer::PlayLoop() [0x7f88fcae2740][1588739385.058][LOG]>MP4Streamer:Seek() [time:0] [0x7f88fcae2740][1588739385.058][LOG]<MP4Streamer:Seek() | seeked [0,0] [0x7f88d7fff700][1588739385.058][LOG]>MP4Streamer::PlayLoop() [0x7f88d7fff700][1588739385.059][LOG]-MP4Streamer::PlayLoop() [0x7f88d7fff700][1588739385.065][LOG]<MP4Streamer::PlayLoop() [0x7f88fcae2740][1588739385.065][LOG]>MP4Streamer:Seek() [time:0] [0x7f88fcae2740][1588739385.065][LOG]<MP4Streamer:Seek() | seeked [0,0] [0x7f88d7fff700][1588739385.066][LOG]>MP4Streamer::PlayLoop() [0x7f88d7fff700][1588739385.066][LOG]-MP4Streamer::PlayLoop() [0x7f88d7fff700][1588739385.073][LOG]<MP4Streamer::PlayLoop()

Could you please help.

Thanks,