# General WebView Considerations

When embedding the LiSA Player in a WebView, ensure the following settings are configured:

* **Allow JavaScript**\
  WebViews should enable JavaScript to ensure the LiSA Player runs as expected.
* **Allow Media to Play Inline**\
  Configure the WebView to allow media (e.g., videos) to play inline rather than forcing fullscreen playback.
* **Media Playback Should Not Require User Interaction**\
  Ensure autoplay (especially for muted videos) works without requiring explicit user interaction.
* **Avoid Bounce (Scroll Overdraft)**\
  Prevent the "bounce" effect when scrolling beyond the content's boundaries, ensuring a smoother user experience.
* **Enable Local Storage & Session Storage**\
  WebViews should allow `localStorage` and `sessionStorage` to persist user preferences and session data.
* **Enable Caching for Improved Performance**\
  WebView caching should be enabled to reduce redundant network requests and improve performance.
* **Enable Communication**\
  Use `postMessage` or message handlers for bi-directional communication between the LiSA Player and the host app.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hello-lisa.com/developers/guides/integration-guide/app-integration/general-webview-considerations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
