Merge "Make audio tag cope with live streams"

This commit is contained in:
Ben Murdoch
2010-12-09 11:54:24 -08:00
committed by Android (Google) Code Review

View File

@@ -179,7 +179,7 @@ class HTML5Audio extends Handler
}
private void play() {
if ((mState == ERROR || mState == IDLE) && mUrl != null) {
if ((mState >= ERROR && mState < PREPARED) && mUrl != null) {
resetMediaPlayer();
setDataSource(mUrl);
mAskToPlay = true;