Open vigyanhoon opened 2 years ago
When I do
require(
../../assets/audio/sahsranama/m${index}.mp3)
it gives src\Utils\Player.ts: src\Utils\Player.ts:Invalid call at line 12: require(../../assets/audio/sahsranama/m${index}.mp3
)
Which means the require should have static string only, not with vars. Now it makes difficult for me to import dynamically, instead of creating require for all 1000 mp3 which seems architecturally wrong.
I have about 100 mp3 under various topics that I want to play.
How can I organize them in raw folder. Is there any way we can use this lib with folder structure intact for various mp3s?