Webwhatsapp-wrapper: How to send Video file ?

Created on 28 Aug 2018  路  11Comments  路  Source: mukulhase/WebWhatsapp-Wrapper

Can Anyone Help How to send Video File Like MP4 Using This API ??

Most helpful comment

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

All 11 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ItachiL18 picture ItachiL18  路  6Comments

EdisonHundLucas picture EdisonHundLucas  路  6Comments

juancrescente picture juancrescente  路  4Comments

wallysonn picture wallysonn  路  3Comments

alfred82santa picture alfred82santa  路  5Comments