Ant Media Server comes with promising new features such as Social Media Broadcast Publishing, Cluster in the latest version(1.1.1). These new features make life easier, fast and social. So let’s start to look at these features with a little detail.
How to Integrate Amazon S3 ?
If you record live streams, sooner or later you will need a storage solution for some reasons. Firstly, hard drive (SSD/HDD) is expensive. Secondly, you always need to allocate more space than required size for new streams. Thirdly, disk mounting and resizing are error prone operations. These are the reasons why you love Amazon S3. It is cost-effective, easy to use and you pay only for the space you use.
In order to use Amazon S3, just define a bean with id “app.storageClient” in your application’s spring file.
From now on, Ant Media Server upload the new recorded mp4 files to Amazon S3 and delete local files.
If you also want to forward mp4 requests to S3, you need to add a filter to your app.
Built-in MongoDB Support and Rest Service
Another feature is built-in MongoDB and Rest Service Support. You can call rest services to create, read, update or delete broadcasts. Broadcast service functions are available in community edition.
To use MongoDB and Rest Service support, please make sure that below lines exist in your spring file.
Keep in mind that your web.handler should inherit from AntMediaApplicationAdapter class.
How to Send Live Broadcast to Social Media?
Let’s look at how social media broadcast publishing is useful with an use-case. Assume that a person have lots of followers on Facebook, Youtube and Periscope. This person wants to broadcast an event live. Generally there are two scenarios. First, one embed live broadcast to web site, a few followers can come to web site to watch the stream so s/he misses other followers. Second, one publish live broadcast to youtube and s/he misses followers in other social networks.
Ant Media Server solves this problem. You can publish a live stream to your web site, youtube, facebook and periscope at the same time. As a result, you catch all your followers from all social networks.
In order to use this feature, just add Social Endpoints to your web.handler bean in spring file.
Use GPU for Performance and Server Cost (aka Hardware Encoding)
You want to reduce the server costs and increase performance for your video service. It is time to use GPU acceleration. Enterprise Edition supports GPU acceleration for Nvidia GPUs. There is no special configuration at this time. Ant Media Server checks whether GPU is available. If it is, it uses GPU. If not, it uses software encoding.
Run In Cluster
This feature is for professionals. Enterprise Edition supports clustering. You can watch the live streams on any node in the cluster. It means that a video service, powered by Ant Media Server, can serve millions of people at the same time.
You can download the latest release on main page of antmedia.io. For enterprise edition or any question, please keep in touch on email@example.com.