Skip to content

Coordination with mediaplayer #65

@dwf2008

Description

@dwf2008

Hi there, looks like a great product. I have it running but there's a little problem with coordination with the media player. Probably just my lack of knowledge about how to set the values. Depending on the values I use the seekbar ends before the mediaplayer is done playing the song or vice versa. My code:

WFSB.setSampleFrom(holder.lblUri.getText().toString());
float Max = Float.parseFloat(duration);
WFSB.setMaxProgress(Max);
WFSB.setProgress(0f);

and

int currentPosition = myMediaPlayer.getCurrentPosition();
WFSB.setProgress((float) currentPosition);

Is this the right approach or do I need to do something different?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions