Reputation: 237
In my code i am using VideoView and MediaController for playing my audio/video files. The problem is that I need to place my audio/video files in assets folder but i am not able to play the audio/video files when placed in assets folder and give path as "file:///android_asset/audio.mp3". I get this error "Command PLAYER_SET_DATA_SOURCE completed with an error or info PVMFErrNotSupported". But the same code runs when i place my audio/video files in sdcard and give its path(/sdcard/audio.mp3). Does this mean that i cannot play audio/video files when placed in assets folder? Thanks in advance.
Upvotes: 1
Views: 438
Reputation: 1836
Your path is wrong. For playing audiofiles from the assets directory, you have to follow the advice in the similar question here.
Upvotes: 1