divers fix
This commit is contained in:
@@ -47,6 +47,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
private static String versionName;
|
||||
private static final String NUMERO_TEL_RADIO = "+33375411456";
|
||||
private static final String URL_PLATEFORM = "https://podcast.radiomercure.fr"; //"https://www.radiomercure.fr/?playerbar-pageinicial";
|
||||
private static final String URL_STREAM = "https://live.radiomercure.fr/on-air/live";
|
||||
private MediaPlayerService player;
|
||||
boolean serviceBound = false;
|
||||
|
||||
@@ -77,7 +78,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
case R.id.live:
|
||||
Toast.makeText(MainActivity.this, "Vous écoutez Radio Mercure en direct", Toast.LENGTH_SHORT).show();
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
lectureAudio("https://live.radiomercure.fr/on-air/live");
|
||||
lectureAudio(URL_STREAM);
|
||||
} else {
|
||||
Toast.makeText(MainActivity.this, "Votre version d'Android n'est pas compatible", Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
@@ -95,7 +96,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
break;
|
||||
|
||||
case R.id.home:
|
||||
web.loadUrl("https://podcast.radiomercure.fr/");
|
||||
web.loadUrl(URL_PLATEFORM);
|
||||
break;
|
||||
|
||||
case R.id.exit:
|
||||
@@ -103,7 +104,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
break;
|
||||
|
||||
case R.id.podmap:
|
||||
web.loadUrl("https://podcast.radiomercure.fr/map");
|
||||
web.loadUrl(URL_PLATEFORM + "/map");
|
||||
break;
|
||||
|
||||
case R.id.about:
|
||||
|
||||
Reference in New Issue
Block a user