Can Anyone Help How to send Video File Like MP4 Using This API ??
I tried this but Script become Hang while sending Video,
Image work perfects
Make sure that your video file is less than 16MB and that it is in format MP4 (H264 + aac)
I tried @cesarandreslopez but Not Work, Can you please share full code for video Sending ?
I Tried This Code
https://github.com/mukulhase/WebWhatsapp-Wrapper/blob/master/sample/send_media.py
But script hang at driver.send_media(image_path, phone_whatsapp, caption)
@sagar-bhogayata same here
Have you find any solution? @rahacker2006
@sagar-bhogayata not yet
Make sure that your video file is less than 16MB and that it is in format MP4 (H264 + aac)
Why do you have this limitation? I tried to use the media upload for files bigger than 50mb but it does not work. and whatsapp allows you to send files up to 100mb. would you have any way to send files in the maximum size of 100mb?
This is actually due to poor support of mp4 in Firefox.
create Dockerfile with the following
FROM selenium/standalone-firefox-debug:3.14.0-curium
RUN sudo apt-get update; sudo apt-get install -y software-properties-common
RUN sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ xenial universe multiverse" && sudo apt-get update
RUN sudo apt-get install -y ubuntu-restricted-extras
Run it
sudo docker network create selenium
sudo docker build -f Dockerfile -t wewhatsapp/selinium-ff:latest .
sudo docker run -d -p 4444:4444 -p 5900:5900 --network selenium --name firefox -v /dev/shm:/dev/shm webwhatsapp/selinium-ff:latest
To add to the previous post I solved the problem in centos installing these:
yum install -y http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
yum install -y gstreamer{,1}-plugins-ugly gstreamer-plugins-bad-nonfree gstreamer1-plugins-bad-freeworld ffmpeg
this worked for me:
Dockerfile for firefox Image:
FROM selenium/standalone-firefox-debug:3.14.0-curium
RUN sudo apt-get update; sudo apt-get install -y software-properties-common
RUN sudo apt-get install apt-transport-https ca-certificates
RUN sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ xenial universe multiverse" && sudo apt-get update
RUN sudo apt-get install -y ubuntu-restricted-extras
Most helpful comment
This is actually due to poor support of mp4 in Firefox.
create
Dockerfilewith the followingRun it