streamer45 / mattermost-plugin-voice

Mattermost plugin for voice messaging. :microphone: :sound:
MIT License
81 stars 20 forks source link

Play uploaded audio #63

Open mendoncart opened 1 year ago

mendoncart commented 1 year ago

Hi!

I'm uploading some files to Mattermost and integrating it with other messaging apps, such as Whatsapp. The thing is, someone can send a voice message in Whatsapp, and I'd like to upload it to Mattermost.

I'm using the api/v4/files endpoint to upload the file, and api/v4/posts to attach it in a post.

My question is: Is it possible to upload a audio file, and have it play with the plugin player inside Mattermost? If so, what format should the file be, and do I have to post it in a different way?

Thanks

streamer45 commented 1 year ago

I don't think the framework allows to override how attachments are rendered. What this plugin does is essentially storing the file_id as a property of the post and then provide a custom post type which we can then render however we want, such as showing the player.

mendoncart commented 1 year ago

@streamer45 do you speak Portuguese?