private String getCenText(String resData, String pattern1, String pattern2) {
String playUrl;
playUrl = resData.substring(resData.indexOf(pattern1));
playUrl = playUrl.replace(pattern1, "");
playUrl = playUrl.substring(0,playUrl.indexOf(pattern2));
return playUrl;
}
String playUrl = "";
String pattern1 = "playAddr: \"";
String pattern2 = "\"";
playUrl = getCenText(resData, pattern1, pattern2);
Log.e(TAG, "onResponse:playUrl " + playUrl);