Jump to content

Plugins Will Make Ant Media Server More Powerful!


Hamit
 Share

Recommended Posts

  • Replies 18
  • Created
  • Last Reply

Top Posters In This Topic

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

  • 3 weeks later...
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

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

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

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

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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


×
×
  • Create New...