Reputation: 11
I am trying to add metadata like artist, album, etc to audio file I'm creating using cordova-plugin-media. I could not find answer for this.
There are only functions in cordova-plugin-file for getMetadata(). Nothing is mentioned regarding setMetadata() funcction.
Can someone please help me out?
Upvotes: 0
Views: 558
Reputation: 938
You can set and get metadata of an audio by using following plugin.
https://www.npmjs.com/package/cordova-plugin-audiometadata
This plugin has following methods to manipulate the metadata
1.audioMetaDataGetMetaData(path, callBack)
2.audioMetaDataSetTagData(input)
3.audioMetaDataRemoveTag(path)
hope it helps you.
Upvotes: 1