euler314 commited on
Commit
ffdc632
·
verified ·
1 Parent(s): d554391

Upload test_player.html

Browse files
Files changed (1) hide show
  1. test_player.html +36 -0
test_player.html ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Video Player Test</title>
5
+ </head>
6
+ <body>
7
+ <h1>Testing Video Player Standalone</h1>
8
+ <p>Open this in browser with query params:</p>
9
+ <code>
10
+ test_player.html?data={"urls":{"mp4":"https://euler314-manim-mcp.hf.space/media/xxx/output.mp4"},"scene_name":"TestScene","quality":"720p","request_id":"test-123","expires_at":"2025-12-20T12:00:00Z"}
11
+ </code>
12
+
13
+ <iframe src="video_player.html" width="100%" height="600" frameborder="0"></iframe>
14
+
15
+ <script>
16
+ // Send test data to iframe
17
+ setTimeout(() => {
18
+ const iframe = document.querySelector('iframe');
19
+ const testData = {
20
+ urls: {
21
+ mp4: "https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
22
+ },
23
+ scene_name: "TestScene",
24
+ quality: "720p",
25
+ request_id: "test-123",
26
+ expires_at: "2025-12-20T12:00:00Z"
27
+ };
28
+
29
+ iframe.contentWindow.postMessage({
30
+ type: 'openai:set_globals',
31
+ data: testData
32
+ }, '*');
33
+ }, 1000);
34
+ </script>
35
+ </body>
36
+ </html>