startMulticastStreaming method
This command starts multicast streaming using a specified media profile of a device. Streaming continues until StopMulticastStreaming is called for the same Profile. The streaming shall continue after a reboot of the device until a StopMulticastStreaming request is received. The multicast address, port and TTL are configured in the VideoEncoderConfiguration, AudioEncoderConfiguration and MetadataConfiguration respectively.
profileToken
- contains the token of the Profile that is used to define
the multicast stream.
Implementation
Future<bool> startMulticastStreaming(String profileToken) async =>
_mediaSupportLevel == MediaSupportLevel.one
? media1.startMulticastStreaming(profileToken)
: media2.startMulticastStreaming(profileToken);