getMediaEndpoint method
dynamic
getMediaEndpoint()
Implementation
getMediaEndpoint() async {
if (SessionManagement.getMediaEndPoint().checkNull().isEmpty) {
Mirrorfly.mediaEndPoint().then((value) {
mirrorFlyLog("media_endpoint", value.toString());
if (value != null) {
if (value.isNotEmpty) {
uploadEndpoint(value);
SessionManagement.setMediaEndPoint(value);
} else {
uploadEndpoint(SessionManagement.getMediaEndPoint().checkNull());
}
}
});
}
}