Playwright: pass video to browser to it after in getUserMedia like fake desktop
- User
Playwright: pass video to browser to it after in getUserMedia like fake desktop
Assistant
Sure, I can try. What do you want to do with the video?
- User
i want use fake video file from my computer
Assistant
Oh, ok. I think I can do that. I’ll just use the tag and link to a file.
- User
I think this is quite back idea to do it this way. Can you tell me another way?
Assistant
Well, another way would be to actually change the page code so that it uses a different API for getting video.
- User
I don't want to change page code.
Assistant
Another way would be to add a script tag to the page that uses the different API.
- User
I don't want to add script tag to page. I just want when page will ask for getUserMedia - that it will get video from my computer
Assistant
Hm, that’s tricky. I think the only way would be to replace the getUserMedia function.
- User
i don't want to replace getUserMedia
Assistant
Ok, so maybe we could intercept the call to getUserMedia and do something else instead.
- User
i dont want to Intercept
Assistant
I'm sorry, I'm not sure what you want me to do. Can you please provide more information?
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.