#video
15 messages · Page 1 of 1 (latest)
@pulsar sun no
const client = new Client({
puppeteer:{
headless: true,
args: [
'--no-default-browser-check',
'--disable-session-crashed-bubble',
'--disable-dev-shm-usage',
'--no-sandbox',
'--disable-setuid-sandbox',
'--disable-accelerated-2d-canvas',
'--no-first-run'],
takeoverOnConflict: true,
},
authStrategy: new LocalAuth({
clientId: socket.request.session.user.mobile + "-" + id,
}),
webVersionCache:
{
remotePath: https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/${wwebVersion}.html,
type: 'remote'
},
});
when i am send image file it work . but for video mp4 file did not work
@pulsar sun i try with executablePath to my chrome path but same image sent video did not
const client = new Client({
puppeteer:{
headless: true,
args: [
'--no-default-browser-check',
'--disable-session-crashed-bubble',
'--disable-dev-shm-usage',
'--no-sandbox',
'--disable-setuid-sandbox',
'--disable-accelerated-2d-canvas',
'--no-first-run'],
takeoverOnConflict: true,
executablePath: 'C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe',
},
authStrategy: new LocalAuth({
clientId: socket.request.session.user.mobile + "-" + id,
}),
webVersionCache:
{
remotePath: https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/${wwebVersion}.html,
type: 'remote'
},
});
i try with executablePath to my chrome path but same image sent video did not
It could be a video codec, try this one
missing await
await client.sendMessage(....);
nothing in catch block .
@pulsar sun 'await' expressions are only allowed within async functions and at the top levels of modules
sendMessage is async method
https://docs.wwebjs.dev/Client.html#sendMessage