简体   繁体   中英

MediaController Play button is not working?

i use the code from the link, http://androidcookbook.com/Recipe.seam?recipeId=1399

where the media player is use to play the audio, media controller is appear as anchor view of layout, the problem is while clicking the layout media controller is appear but the play button is not working, i can`t able to start the audio;

If anyone know s the problem means help me out.

Thanks.

Sorry, i made a mistake it is working know; in on prepare listener of Media controller i set the property setEnable(false) and the second thing is i return as false in the following function

@Override
    public boolean canPause() {
        // TODO Auto-generated method stub
        return false;
    }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM