Play Base64 Content as audio using expo-av

Please provide the following:

  1. SDK Version:^38.0.0

  2. Platforms(Android):
    const sound = new Audio.Sound();

    try {

    await sound.loadAsync(

     {
    
       uri: "data:audio/mpeg;base64," + audioBase.toString(),
    
     },
    
     console.log("success")
    

    );

    await sound.playAsync();

    } catch (error) {

    console.log(error, “err”);

    }

I get an error as [Error: java.io.EOFException].Can anyone help me on to resolve this issue.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.