voxeet/voxeet-uxkit-react

Could not play the sound Failed to load because no supported source was found.

Closed this issue · 4 comments

Describe the bug

Getting this error while using voxeet web sdk.
Expected Behaviour

Should have launched the live conference.

Specifications

  • Device: [e.g. Desktop]
  • OS: [e.g. windows]
  • Version:
    • for each libraries : name -> version
    • [e.g. @voxeet/voxeet-web-sdk 3.1.1 & 3.1.2]
    • [e.g. @voxeet/react-components 3.1.0]

Could you please provide some logs from the console to understand where the problem happens.
Also, I transferred your issue to the voxeet-uxkit-react because it is related to the UXKit not the client SDK.

Hey Fabien, Ujwal this side from talkie.
We already had our talk on Dolby support if you remember. You had also sent some code snippets there.

Hey Ujwal! Yes :)
In order to get the music files to play, you need to import the music files in your project -> https://github.com/voxeet/voxeet-uxkit-react/tree/master/src/static/sounds
Then, in the webpack.config.js, you can import the plugin:

const CopyPlugin = require("copy-webpack-plugin");

Then, add the rule:

{
    test: /\.mp3$/,
    loader: "file-loader",
    options: {
        name: "sounds/[name].[ext]",
    }
},

Then, use the plugin to copy the sound files from your static folder:

new CopyPlugin({
    patterns: [
        { from: "./web/static" }
    ],
}),

If you are still facing this issue, please reopen.