ant-media / Ant-Media-Server

Ant Media Server is a live streaming engine software that provides adaptive, ultra low latency streaming by using WebRTC technology with ~0.5 seconds latency. Ant Media Server is auto-scalable and it can run on-premise or on-cloud.
https://antmedia.io
Other
4.25k stars 626 forks source link

SamplePlugin always got "audio frames:0 video frames:0" #4750

Closed MoonTTMM closed 1 year ago

MoonTTMM commented 1 year ago

Built SamplePlugin ant put it in the plugins folder, and then restart AMS. The rest api works. But when use the stats api, always return "audio frames:0 video frames:0". I've checked the stream id I have input, it is right. And there is "adding HLS Muxer for UNVwUkrc3R711673594211368" in the log, so the muxer is ok.

MoonTTMM commented 1 year ago

I have called the register api.

MoonTTMM commented 1 year ago

any update?

lastpeony commented 1 year ago

any update?

working on it

lastpeony commented 1 year ago

Please enable adaptive bitrate streaming from app settings and use enterprise edition. I tested this on my side and looks like it is working fine. 1-) go to app settings. add adaptive bitrate for example 720p 2-) start stream 3-) send post request to plugin to register stream http://localhost:5080/WebRTCAppEE/rest/sample-plugin/register/teststream 4-) send get request to get stats http://localhost:5080/WebRTCAppEE/rest/sample-plugin/stats/

image

lastpeony commented 1 year ago

Built SamplePlugin ant put it in the plugins folder, and then restart AMS. The rest api works. But when use the stats api, always return "audio frames:0 video frames:0". I've checked the stream id I have input, it is right. And there is "adding HLS Muxer for UNVwUkrc3R711673594211368" in the log, so the muxer is ok.

Did you have this result with RTMP publishing or WebRTC publishing ?

MoonTTMM commented 1 year ago

I am currently using the community edition with HLS stream, so the plugin is not supported?

lastpeony commented 1 year ago

I am currently using the community edition with HLS stream, so the plugin is not supported?

Yes. It is not supported in community edition.

mekya commented 1 year ago

So I'm closing this issue. Please re-open if you think there is still an issue.