Open Eduardowm opened 4 years ago
Or send audio/mp3?
did you try to use send_media
?
Yes, but is crashing the whole application. Looks like its something with Firefox vs codecs... some related errors appears on the browser console.
I never tried yet but note that PTT must be encoded with OGG Vorbis codec.
Oh yes, I made it, just like WhatsApp, the same encoding. The ptt was sent, but within 'document' type.
When I use the send_media with mp3, the type become 'sound', but it doenst send at all.
ALLOWED_EXTENSIONS = ('avi', 'mp4', 'png', 'jpg', 'jpeg', 'gif', 'mp3', 'doc', 'docx', 'pdf')
please include the print with the error
Example:
Example:
Eduardowm did you test this audio player with an ogg audio file produced by whatsapp?
No, I am now showing an example of an error that occurs related to codecs. It is exactly the same.
the OGG extension is not supported
https://support.mozilla.org/en-US/kb/fix-common-audio-and-video-issues
https://stackoverflow.com/questions/40760864/how-to-play-mp4-video-in-firefox/40784948
apt -y install ffmpeg apt -y install gstreamer1-plugins-bad-freeworld apt install libdvdnav4 libdvdread4 gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly libdvd-pkg apt install ubuntu-restricted-extras
There is a way to send PTT through the API?