pedroslopez / whatsapp-web.js

A WhatsApp client library for NodeJS that connects through the WhatsApp Web browser app
https://wwebjs.dev
Apache License 2.0
14.37k stars 3.43k forks source link

Error send video,mp4 WhatsappWebjs #1925

Closed bro99 closed 1 day ago

bro99 commented 1 year ago

Is there an existing issue for this?

Describe the bug

print print2

Expected behavior

Guys, good afternoon until a few days ago it was sending normal video. Now I can't send video, only audio.

Best Regards, Samuel.

Steps to Reproduce the Bug or Issue

I tested all ways, but I don't want to send it as a file. I want to send as mp4

Relevant Code

const media = MessageMedia.fromFilePath('public/video/habilitarSaqueAniversario.mp4'); await client.sendMessage(msg.from, media);

Browser Type

Google Chrome

WhatsApp Account Type

WhatsApp Business

Does your WhatsApp account have multidevice enabled?

No, I am not using Multi Device

Environment

Windows 64 bits Wwbjs latest version Node 16.17.0

Additional context

No response

mbnaj commented 1 year ago

how to solve this problem? All send functions doesn't work

bro99 commented 1 year ago

image

hillelarrouas commented 1 year ago

Has anyone found a solution to this? This is very important to me, I'm in the middle of a project and everything is stuck

Yuri-Sousa commented 1 year ago

Just use the following code at client startup:

puppeteer: { executablePath: 'C:\Program Files\Google\Chrome\Application\chrome.exe', },

image

makmortifera commented 1 year ago

My code trying to send media

Screenshot_3

Screenshot_4

get error

Screenshot_2

munirarabi commented 1 year ago

If you add the path of chrome in the puppeteer, as @Yuri-Sousa said, and it still gives an error. Maybe it's because the video you're uploading is too long, try doing a test with a 4 second video, for example.

makmortifera commented 1 year ago

If you add the path of chrome in the puppeteer, as @Yuri-Sousa said, and it still gives an error. Maybe it's because the video you're uploading is too long, try doing a test with a 4 second video, for example.

Im having the same problem with a image.

devlikepro commented 4 days ago

Faicing issues in sending video in 2.3xx that worked fine in 2.24xx

@guigo613 https://github.com/pedroslopez/whatsapp-web.js/issues/3002#issuecomment-2099078838

Do you have the fix for 2.3xx version like this? We've used it for 2.24xx, worked perfectly, but now only 23xx is working...