دنبال کننده ها

۱۳۹۶ آبان ۱۱, پنجشنبه

chromium - Puppeteer video automatically downloading instead of displaying player

[ad_1]



Basically I have this piece of code below



;(async () => 
const browser = await puppeteer.launch(
args: ['--no-sandbox'],
headless: false
)

const page = await browser.newPage()

await page.goto('https://www.w3schools.com/html/mov_bbb.mp4', waitUntil: 'load')
)()


and for some reason when I execute the script chromium just automatically starts downloading the video instead of showing the player.



Is there any way I could prevent this?




[ad_2]

لینک منبع