Skip to content

what should i do to play the recorded audio in every 2 sec here ? #2

Description

@feru007

thanks for this nice sample. it is so helpful. but i am facing a problem.
in sample-codes / html5 / media_recording.html
in this page u used

mediaRecorder.ondataavailable = function ondataavailable(e) {
count++;
// TODO concat blob
if (count > 1)
return;
log(e.data + " " + count);
document.getElementById('playback').src =
window.URL.createObjectURL(e.data);
};

as u used if (count > 1) return; so it executes once. i am trying to play in every 2 sec. i removed this condition checking. but in that case code also played first time only. what should i do to play the recorded audio in every 2 sec here ? Is there any issue ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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