[Python] Python Selenium How to set the specific microphone device in different Chrome

Discussão em 'Python' iniciado por Stack, Novembro 22, 2024.

  1. Stack

    Stack Membro Participativo

    I want to set the specific microphone device in different Chrome, e.g. Chrome A using "Microphone A", Chrome B using "Microphone B". I know the Firefox can doing this using

    profile.set_preference("media.default.audio_capture", "Microphone A")



    However, I cannot find any information of this in Chrome. How to make it in Chrome using Python Selenium

    I tried to using this but not working



    prefs = {

    "profile.default_content_setting_values.media_stream_mic": 1,


    "mediaDevices.defaultAudioInput": "Microphone A"

    }

    Continue reading...

Compartilhe esta Página