... | @@ -62,8 +62,11 @@ public class RadioService extends MediaBrowserServiceCompat { |
... | @@ -62,8 +62,11 @@ public class RadioService extends MediaBrowserServiceCompat { |
|
public void onCreate() {
|
|
public void onCreate() {
|
|
super.onCreate();
|
|
super.onCreate();
|
|
|
|
|
|
// Set ca certificates for https connections
|
|
// Init TLS (https support)
|
|
StartrekNetwork.setCaCertificates(StartrekAndroid.getSSLCertificates());
|
|
StartrekAndroid.initTLS(getApplicationContext());
|
|
|
|
|
|
|
|
// Disable player log messages
|
|
|
|
StartrekPlayer.disableLogging();
|
|
|
|
|
|
// Set audio session id
|
|
// Set audio session id
|
|
AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
|
|
AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
|
... | | ... | |