About Application:

This is about live streaming application which provides Instant live and Scheduled live.One can go on instant live on this application.Scheduled live is designed to schedule time when ever you want to go live.Apart from this this application also provides to watch live.Click on View button and paste the link,so that one can watch the live in the same app without going to browser.

                                For making instant live and schedule live one should get their slots and get link from server.This link can share to anyone through different applications.To send data and get data from server is difficult process and to make this process easy we use third party library integration which helps to send data and get data from server in easy way. Username and time are the main credentials that have to given in scheduled live to generate link.Whereas in instant live username is only thing to provide.

                                      Loading of webview directly into the application is not possible.Hence we took help of backend team.They generated a URL which is used to load webview in the application.It becomes easy to load webview just by calling the URL using few lines of code.

webSetting.setJavaScriptCanOpenWindowsAutomatically(true);
webSetting.setDomStorageEnabled(true);
webSetting.setJavaScriptCanOpenWindowsAutomatically(true);
webSetting.setAllowFileAccess(true);
htmlWebView.getSettings().setPluginState(WebSettings.PluginState.ON);
htmlWebView.requestFocus();
htmlWebView.loadUrl(Constants.CAMERA);
htmlWebView.setWebChromeClient(new WebChromeClient()

                              SSLCertificates(Secure Sockets Layer) is used to create a foundation of trust by establishing a secure connection between server and client.These certificates convert http connections to secure https connections.

SSLContext sc = SSLContext.getInstance("SSL");
  sc.init(null, trustAllCerts, new SecureRandom());
  HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
  HttpsURLConnection.setDefaultHostnameVerifier(new HostnameVerifier());

Permissions used:

To develop any Android Application Permissions have to give,in order to access some features
in app.To access video and audio we use video,audio permissions along with internet permissions.

<uses-permission android:name="android.permission.CAMERA" />
  <uses-permission android:name="android.permission.INTERNET" />
  <uses-permission android:name="android.permission.RECORD_AUDIO" />
  <uses-permission android:name="android.permission.MICROPHONE" />
  <uses-permission android:name="android.permission.RECORD_AUDIO"></uses-permission>
  <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"></uses-permission>
  <uses-feature android:name="android.hardware.camera" />
  <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"></uses-permission>

Final Thought: It is a Simple Application to create instant live and scheduled live as per your time wish.This application is compatable in all android versions including Marshmallow.

 

                     

 

 

sailaja rachakonda

Author: sailaja rachakonda