Files
ArtPlayer/docs/test/index.html
T
Harvey Zhao 1c75731ca9 feat: introduce ArtplayerToolIframe for iframe control
- Removed the old ArtplayerPluginIframe implementation.
- Added ArtplayerToolIframe class with methods for iframe communication.
- Implemented postMessage and onMessage methods for message handling.
- Created a new TypeScript definition file for ArtplayerToolIframe.
- Updated documentation links to point to the new iframe tool.
- Added npm ignore file and README for the new package.
- Included compiled and uncompiled versions of the new iframe tool.
- Updated package.json with relevant metadata and exports.
2026-03-07 20:58:02 +08:00

51 lines
1.7 KiB
HTML

<html>
<head>
<meta charset="utf-8" />
<title>Mocha Tests</title>
<link href="../assets/css/normalize.css" rel="stylesheet" />
<link href="./mocha.css" rel="stylesheet" />
<style>
.container {
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
background-color: #000;
}
.artplayer-app {
width: 600px;
height: 400px;
border: 1px solid #cccccc50;
}
</style>
</head>
<body>
<div class="container">
<div class="artplayer-app"></div>
</div>
<div id="mocha"></div>
<script src="./chai.js"></script>
<script src="./mocha.js"></script>
<script>
window.mocha.setup('bdd');
window.expect = window.chai.expect;
</script>
<script src="../compiled/artplayer.js"></script>
<script src="../compiled/artplayer-plugin-ads.js"></script>
<script src="../compiled/artplayer-plugin-danmuku.js"></script>
<script src="../compiled/artplayer-plugin-dash-control.js"></script>
<script src="../compiled/artplayer-plugin-hls-control.js"></script>
<script src="../compiled/artplayer-tool-iframe.js"></script>
<script src="../compiled/artplayer-plugin-vtt-thumbnail.js"></script>
<script src="../compiled/artplayer-plugin-chapter.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/hls.js/1.5.17/hls.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dashjs/4.5.2/dash.all.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/flv.js/1.6.2/flv.min.js"></script>
<script src="./test.js"></script>
<script>mocha.run();</script>
</body>
</html>