fix: Исправить баг с масштабированием через VIDEOTOOLBOX ускоритель.

feat: добавлена возможность генерировать видео без звука -m --muted
This commit is contained in:
2026-01-22 09:50:51 +03:00
parent 0813bea1d4
commit b8f9f0e046
8 changed files with 113 additions and 70 deletions

View File

@@ -5,8 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="https://cdn.dashjs.org/latest/dash.all.min.js"></script>
<!-- <script src="https://cdnjs.cloudflare.com/polyfill/v2/polyfill.min.js?features=es6,Array.prototype.includes,CustomEvent,Object.entries,Object.values,URL"></script> -->
<script src="dash.all.min.js"></script>
<script src="https://cdnjs.cloudflare.com/polyfill/v2/polyfill.min.js?features=es6,Array.prototype.includes,CustomEvent,Object.entries,Object.values,URL"></script>
<script src="https://unpkg.com/plyr@3"></script>
<link rel="stylesheet" href="https://cdn.plyr.io/3.7.8/plyr.css" />
@@ -14,7 +14,10 @@
.container {
margin: 50px auto;
max-width: 1500px;
}
}
video {
max-height: 800px;
}
</style>
</head>
<body>
@@ -24,7 +27,8 @@
<script>
document.addEventListener('DOMContentLoaded', () => {
const source = 'https://bitmovin-a.akamaihd.net/content/sintel/sintel.mpd';
const source = 'http://localhost:3000/test-videotoolbox/manifest.mpd';
// const source = 'http://localhost:3000/test-nvenc/manifest.mpd';
const dash = dashjs.MediaPlayer().create();
const video = document.querySelector('video');
dash.initialize(video, source, true);
@@ -35,4 +39,4 @@
});
</script>
</body>
</html>
</html>