सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
ant_media_flutter पैकेज एंट मीडिया सर्वर एंटरप्राइज एडिशन के साथ एंड्रॉइड, आईओएस, वेब और डेस्कटॉप प्लेटफॉर्म पर रियल-टाइम स्ट्रीमिंग और संचार को सक्षम करता है। यह लो-लेटेंसी ट्रांसमिशन के लिए आदर्श इंटरैक्टिव एप्लिकेशन के लिए वेबआरटीसी-आधारित लाइव वीडियो और ऑडियो स्ट्रीमिंग को एक फ्लटर-अनुकूल इंटरफ़ेस के माध्यम से एकीकृत करता है। पैकेज एंट मीडिया सर्वर की मजबूत इंफ्रास्ट्रक्चर का उपयोग करता है, जो स्केलेबल, सुरक्षित और उच्च प्रदर्शन वाले स्ट्रीमिंग समाधान प्रदान करता है। डेवलपर्स आसानी से लाइव ब्रॉडकास्टिंग, वीडियो कॉन्फ्रेंसिंग और इंटरैक्टिव मीडिया एप्लिकेशन बना सकते हैं। पूरा स्रोत कोड ट्रांसपेरेंसी और कस्टमाइजेशन के लिए GitHub पर उपलब्ध है।
उपयोग
लाइव वीडियो प्रसारण
वीडियो कॉन्फ्रेंसिंग
इंटरैक्टिव वेबिनार
रियल-टाइम गेमिंग स्ट्रीम
दूरस्थ शिक्षा प्लेटफॉर्म
मुख्य विशेषताएँ
क्रॉस-प्लेटफॉर्म WebRTC समर्थन
कम लेटेंसी स्ट्रीमिंग
सुरक्षित कनेक्शन प्रोटोकॉल
स्केलेबल सर्वर इंटीग्रेशन
आसान फ्लटर एंटीग्रेशन
इनके लिए उपयुक्त
रियल-टाइम वीडियो ऐप्स बना रहे डेवलपर्स
Ant Media Server का उपयोग करने वाली टीमें
बहु-प्लेटफॉर्म स्ट्रीमिंग की आवश्यकता वाले प्रोजेक्ट
निम्न लैटेंसी संचार की आवश्यकता वाले अनुप्रयोग
शैक्षिक या उद्यम वीडियो समाधान
विचार योग्य बातें
Ant Media Server एंटरप्राइज एडिशन की आवश्यकता है
समर्थित प्लेटफॉर्म (Android, iOS, Web, डेस्कटॉप) तक सीमित
पूर्ण कार्यक्षमता के लिए सर्वर कॉन्फ़िगरेशन की आवश्यकता है
अनुकूल प्रदर्शन के लिए अतिरिक्त नेटवर्क सेटअप की आवश्यकता हो सकती है
स्थिर इंटरनेट कनेक्टिविटी पर निर्भर
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
This Flutter Package includes Ant Media Flutter SDK for WebRTC.
To be able to use it, you need to have an Ant Media Server instance first. To be able to get more information, you can check Ant Media Server's website.
If you have Ant Media Server Community Edition, you can only use WebRTC publishing feature.
WebRTC play, Conference and Data Channel features are available in Ant Media Server Enterprise Edition.
Connect is the main function that we can do pretty much everything with using its parameters. Let's look at its parts and how we can use it for different purposes like WebRTC Publishing, WebRTC Playing, etc.
Sections of the connect function
-> Host
Host is the websocket url of your Ant Media Server instance.
-> Stream ID
Stream ID is used to identify each stream for publishing and playing purposes.
-> Room ID
Room ID is used in the WebRTC Multi track Conference mode.
-> Type
Type is used to determine different modes. Possible options:
AntMediaType.Publish
AntMediaType.Play
AntMediaType.Peer
AntMediaType.Conference
AntMediaType.DataChannelOnly
-> User Screen
User Screen is used to switch between screen and camera publishing mode during initialization part.
-> On State Change
On State Change is the status of the websocket connection between Ant Media Server and the device which uses the SDK. Possible options:
HelperState.CallStateNew
HelperState.CallStateBye
HelperState.ConnectionOpen
HelperState.ConnectionClosed
HelperState.ConnectionError
-> On Local Stream
On Local Stream is triggered whenever we started sending stream to the Ant Media Server.
-> On Add Remote Stream
On Add Remote Stream is triggered whenever we receive a new remote stream from the Ant Media Server.
-> On Data Channel
On Data Channel is triggered when the data channel state changed.
-> On Data Channel Message
On Data Channel Message is triggered whenever we receive a new data channel message.
-> On Update Conference Person
On Update Conference Person is triggered whenever someone added/removed from the conference room on the fly.
-> On Remove Remote Stream
On Remove Remote Stream is triggered whenever you stopped publishing yourself or the stream that you are playing stopped publishing.
-> Ice Servers
Ice Servers is the list where you can define your own turn/stun server list.
-> Callbacks
Callbacks you can listen all the callbacks which are sent from the Ant Media Server side.
Gallery
Examples
Conference Sample App - An example of how to create a WebRTC Multi track Conference application using Ant Media Server Flutter SDK
Data Channel Sample App - An example of how to create a Data Channel text based messaging application using Ant Media Server Flutter SDK
Peer Sample App - An example of how to create a Peer to Peer application using Ant Media Server Flutter SDK
Play Sample App - An example of how to create a WebRTC Player using Ant Media Server Flutter SDK
Publish Sample App - An example of how to create a WebRTC Publish application using Ant Media Server Flutter SDK
Sample Project - It's a complete sample project which contains every sample above.
Function List
AntMediaFlutter.anthelper?.switchCamera()
You can call switchCamera() to switch between front and back camera on mobile devices.
AntMediaFlutter.anthelper?.muteMic(bool mute)
You can call muteMic(bool mute) to mute/unmute microphone.
AntMediaFlutter.anthelper?.toggleCam(bool state)
You can call toggleCam(bool state) to open/close your camera.
AntMediaFlutter.anthelper?.disconnectPeer()
You can call disconnectPeer() to stop a peer connection.
You can call registerPushNotificationToken(subscriberId, authToken, pushNotificationToken, tokenType) to register user push notification token to Ant Media Server.