Hamit Posted May 18, 2021 Share Posted May 18, 2021 We have received lots of requests from our users about a plugin mechanism. So, we came up with one! Now, Ant Media Server users can integrate their extensions with AMS. Click to learn more! https://antmedia.io/plugins-will-make-ant-media-server-more-powerful/ Link to comment Share on other sites More sharing options...
Connessione Posted May 19, 2021 Share Posted May 19, 2021 Awesome Link to comment Share on other sites More sharing options...
Connessione Posted May 19, 2021 Share Posted May 19, 2021 Are plugins only for intercepting packets or that we can do anything ? What are the types of plugin that can be made ? Link to comment Share on other sites More sharing options...
Hamit Posted May 26, 2021 Author Share Posted May 26, 2021 I am really sorry I missed your message. Not only intercepting packets but also decoded frames can be got from the server. There are some limitations for example we do not support security-related plugins for now. We will organize a virtual event where we will talk about the plugin topic. We will make an announcement as soon as possible. There you can ask any question you want and find out what you are curious about. Link to comment Share on other sites More sharing options...
Pavel Tsukanov Posted June 10, 2021 Share Posted June 10, 2021 Do you have ETA when 2.4.0 version will be out? I am planning to write a plugin and I would like to know when I can use the plugin functionality in our application Link to comment Share on other sites More sharing options...
Selim Emre Posted June 12, 2021 Share Posted June 12, 2021 Hi Pavel, Have a good day. We are planning to release a new version(v2.4.0) in 2 months. But we can share SNAPSHOT version(including plugin mechanism) to you. Best Regards, Selim Link to comment Share on other sites More sharing options...
Pavel Tsukanov Posted June 15, 2021 Share Posted June 15, 2021 > But we can share SNAPSHOT version(including plugin mechanism) to you I would be great. How can I get the screenshot? Link to comment Share on other sites More sharing options...
Pavel Tsukanov Posted June 15, 2021 Share Posted June 15, 2021 Sorry SNAPSHOT Link to comment Share on other sites More sharing options...
Selim Emre Posted June 15, 2021 Share Posted June 15, 2021 Hi Pavel, Have a good day. I just shared MCU SNAPSHOT details with you. Please let me know if there is anything I can help you with. Best Regards, Selim Link to comment Share on other sites More sharing options...
Pavel Tsukanov Posted June 16, 2021 Share Posted June 16, 2021 Thank you I got It. But I would like to understand how I can compile the plugin right now. There is a project https://github.com/ant-media/SamplePlugin. But I could not compile. I got [iNFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-source-plugin @ line 70, column 12 [FATAL] Non-resolvable parent POM for io.antmedia.plugin:SamplePlugin:2.4.0-SNAPSHOT: Could not find artifact io.antmedia:parent:pom:2.4.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 3, column 10 Is there a way to compile the plugin right now? Thank you Pavel Link to comment Share on other sites More sharing options...
Selim Emre Posted June 17, 2021 Share Posted June 17, 2021 Hi Pavel, Thank you for reporting us! It seems this issue is related to version incompatibility. Could you please pull the latest commits parent project(https://github.com/ant-media/ant-media-server-parent) and Sample Plugin project(https://github.com/ant-media/SamplePlugin)? Also please use "pluginBase" branch. I hope, I could help you. Best Regards, Selim Link to comment Share on other sites More sharing options...
Pavel Tsukanov Posted June 17, 2021 Share Posted June 17, 2021 Hi I resolved the previous error I had to enable snapshots like described here https://stackoverflow.com/questions/7715321/how-to-download-snapshot-version-from-maven-snapshot-repository But I could not compile again I got another error [iNFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [iNFO] ------------------------------------------------------------- [ERROR] D:\Projects\Monster\AntMediaServer\SamplePlugin\src\main\java\io\antmedia\plugin\SamplePlugin.java:[17,29] error: package io.antmedia.plugin.api does not exist [ERROR] D:\Projects\Monster\AntMediaServer\SamplePlugin\src\main\java\io\antmedia\app\SampleFrameListener.java:[5,29] error: package io.antmedia.plugin.api does not exist [ERROR] D:\Projects\Monster\AntMediaServer\SamplePlugin\src\main\java\io\antmedia\app\SampleFrameListener.java:[6,29] error: package io.antmedia.plugin.api does not exist [ERROR] D:\Projects\Monster\AntMediaServer\SamplePlugin\src\main\java\io\antmedia\app\SampleFrameListener.java:[8,44] error: cannot find symbol symbol: class IFrameListener I attached my compile full log It looks like maven repository has not io.antmedia.plugin.api package Could you help? Thank you Pavel compile_log.txt Link to comment Share on other sites More sharing options...
Pavel Tsukanov Posted June 17, 2021 Share Posted June 17, 2021 I was able to compile. I used this link https://github.com/ant-media/Ant-Media-Server/wiki/Build-From-Source to build parts of ant media server (I switched to pluginBase before) After that I was able to compile the SamplePluging. Link to comment Share on other sites More sharing options...
Selim Emre Posted June 17, 2021 Share Posted June 17, 2021 Hi Pavel, I'm glad to solve your issue. Let me know if there is anything I can help you with. Best Regards, Selim Link to comment Share on other sites More sharing options...
Pavel Tsukanov Posted June 21, 2021 Share Posted June 21, 2021 Hi I have few questions about plugin 1. IFrameListener is called for EE version. Is it correct behavior? 2. IFrameListener.onVideoFrame is called when adaptive bitrate is enabled. Is it correct behavior? 3. I configured Adaptive bitrate with single 480p. But I noticed that AVFrame in onVideoFrame method contain different dimensions 640x360, 960x540. Is it correct? Thank you Pavel Link to comment Share on other sites More sharing options...
Pavel Tsukanov Posted June 21, 2021 Share Posted June 21, 2021 I have 1 more question - How can i add FrameListener to AntMediaApplicationAdapter automatically? It's very important thing for me. Your SamplePlugin does not contain this way, it's possible after call REST endpoint only. We use a cluster environment and it's not good idea to send the same REST request to all origin server. Link to comment Share on other sites More sharing options...
Pavel Tsukanov Posted June 24, 2021 Share Posted June 24, 2021 Any update? Link to comment Share on other sites More sharing options...
Selim Emre Posted June 24, 2021 Share Posted June 24, 2021 Hi Pavel, Have a good day. Sorry for the detail. Here are the details. 1. IFrameListener is called for EE version. Is it correct behavior? Yes, this feature is only for Enterprise Edition now. Because transcoding only exists in Enterprise Edition. But we might consider adding it to Community Edition in the future. 2. IFrameListener.onVideoFrame is called when adaptive bitrate is enabled. Is it correct behavior? Ant Media Server is doing transcode only if adaptive option enabled. That's why you need to add at least one adaptive option. 3. I configured Adaptive bitrate with single 480p. But I noticed that AVFrame in onVideoFrame method contain different dimensions 640x360, 960x540. Is it correct? 480p or other adaptive resolutions are not important. We are transcoding incoming stream resolution. WebRTC choosing the resolution automatically according to client capability. - How can i add FrameListener to AntMediaApplicationAdapter automatically? It's very important thing for me. Your SamplePlugin does not contain this way, it's possible after call REST endpoint only. We use a cluster environment and it's not good idea to send the same REST request to all origin server. Yes, you're right. We will add a new interface to inform the plugins if stream is started/stopped. I hope, it's clear for you. Best Regards, Selim Link to comment Share on other sites More sharing options...
Pavel Tsukanov Posted June 24, 2021 Share Posted June 24, 2021 Thank your. Link to comment Share on other sites More sharing options...
Recommended Posts