Preload #4465
seeinsidegithub
started this conversation in
General
Preload
#4465
Replies: 1 comment 2 replies
-
|
You can do something like this if you want to trigger media playback manually: player = dashjs.MediaPlayer().create();
video = document.querySelector("video");
player.initialize(); /* initialize the MediaPlayer instance */
player.setAutoPlay(false); /* remove this line if you want the player to start automatically on load */
player.attachView(video); /* tell the player which videoElement it should use */
player.attachSource(url); /* provide the manifest source */ |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Is Dash accepted preload="none"?
<title>Dash.js Rocks</title> <style> video { width: 640px; height: 360px; } </style>I defined preload="none", but always load 16 segments when page is loaded.
`<!doctype html>
Beta Was this translation helpful? Give feedback.
All reactions