> ## Documentation Index
> Fetch the complete documentation index at: https://docs.interactivelayers.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Video.js on web and LG webOS

> Use the existing Video.js HTML5 playback technology and a shared graphics stage.

Use the adapter after the Video.js HTML5 tech is ready. The positioned `stage` is an external parent of `videojsPlayer.el()`. Use that full stage for fullscreen so the graphics remain inside the same presentation.

```js theme={null}
import { attachVideoJs } from '@interactivelayers/player-sdk';
import '@interactivelayers/player-sdk/player.css';

videojsPlayer.ready(() => {
  const sdk = attachVideoJs({
    player: videojsPlayer,
    stage,
    playlistUrl: playback.selectedMediaPlaylistUrl,
  });
  videojsPlayer.one('dispose', () => sdk.destroy());
});
```

With VHS, the adapter can use `convertToProgramTime` when exposed by the installed version. Native playback can use the element's HLS program date. If neither mapping is available, supply `programTime()` that returns the current content instant as Unix milliseconds, or `null` while unknown. A viewer-specific session feed uses `eventsUrl` and `sessionId` instead of the selected playlist URL.

Notify the adapter of actual linear boundaries using `setLinearAd`. On LG webOS, test the specific TV model with your Video.js version, HLS playback tech and fullscreen behavior. Check the L layout, restoration with subtitles visible and the clock when switching renditions. [Shared fixture](https://docs.interactivelayers.com/player-sdk.md) · [Video.js adapter source](https://github.com/InteractiveLayerscom/IL-VideoPlayers-SDK/blob/main/web/README.md#videojs)

If you link `player.css` from HTML instead of importing it, publish `fonts.css` and the `fonts/` folder with it. See Typeface of the product panels in the [Player SDK](https://docs.interactivelayers.com/player-sdk.md) guide.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.