bypassing browser autoplay block by using azure function http trigger

stefano campanella 21 Reputation points
2023-01-29T12:21:14.1533333+00:00

Is it possible to bypass the browser's autoplay block by using an azure function http trigger and play an audio file to the user's browser ?

Thanks,

Stef

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,321 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 68,746 Reputation points
    2023-01-30T09:35:14.94+00:00

    [@stefano campanella ] Thanks for reaching out. Browser's autoplay block is when you restrict the autoplay of videos to improve the user experience and 'autoplay block' is disabled in your browser so this is the browser feature. Azure function is the serveless solution that allows you to write less code, maintain less infrastructure, and save on costs and for more details on azure function you can refer to this document.

    Update:

    Azure function is used when you want to execute some piece of code and want to perform the operation at the server side/get the response back.

    Your requirement is to bypass the autoblock on the browser and this is the browser feature at the client end so Azure function cannot be used for your requirement.

    Further if you have your front-end application and AFAIK there is no way to disable it using your front-end application. AFAIK the only way to disable it is to call the browser API’s that can be used in the browser extension to make the necessary changes in the browser. To bypass you can try binding it onclick or onswipe events and there are many discussion in stackoverflow on this and the right forum to address your issue would be stackoverflow here

    From Azure function prospective this is not possible as it is server side. If you have any specific query on azure function, then please let me know so I can assist you.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful