Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Play uploaded audio #63

Open
mendoncart opened this issue Jun 7, 2023 · 2 comments
Open

Play uploaded audio #63

mendoncart opened this issue Jun 7, 2023 · 2 comments

Comments

@mendoncart
Copy link

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
Copy link
Owner

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
Copy link
Author

@streamer45 do you speak Portuguese?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants