Skip to content

Commit 8c4800e

Browse files
Update video player template
1 parent 7c89ebf commit 8c4800e

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

cloudinary_cli/templates/html/video_player

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
<!DOCTYPE html>
22

33
<head>
4-
<link href="https://unpkg.com/cloudinary-video-player/dist/cld-video-player.min.css" rel="stylesheet">
4+
<link rel="stylesheet"
5+
href="https://cdn.jsdelivr.net/npm/cloudinary-video-player@latest/dist/cld-video-player.min.css">
56
</head>
67

78
<body>
8-
<link href="https://unpkg.com/cloudinary-video-player/dist/cld-video-player.min.css" rel="stylesheet">
9-
<script src="https://unpkg.com/cloudinary-core/cloudinary-core-shrinkwrap.min.js" type="text/javascript"></script>
10-
<script src="https://unpkg.com/cloudinary-video-player/dist/cld-video-player.min.js" type="text/javascript"></script>
11-
<script src="https://cdnjs.cloudflare.com/ajax/libs/dashjs/2.6.3/dash.all.min.js" type="text/javascript"></script>
12-
<script src="https://cdnjs.cloudflare.com/ajax/libs/videojs-contrib-dash/2.9.2/videojs-dash.min.js" type="text/javascript"></script>
9+
10+
<script
11+
src="https://cdn.jsdelivr.net/npm/cloudinary-video-player@latest/dist/cld-video-player.light.min.js"></script>
1312

1413
<video
1514
style="min-width:100vw;min-height:100vh;max-width:100vw;max-height:100vh"

test/test_modules/test_cli_make.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ def test_cli_make_upload_widget(self):
4141
self.assertIn('upload_widget', result.output)
4242
self.assertIn(f"cloudName: '{cloudinary.Config().cloud_name}'", result.output)
4343

44+
def test_cli_make_video_player(self):
45+
result = self.runner.invoke(cli, ["make", "video_player"])
46+
47+
self.assertEqual(0, result.exit_code)
48+
self.assertIn('demo-player', result.output)
49+
4450
def test_cli_make_base_python(self):
4551
result = self.runner.invoke(cli, ["make", "base", "python"])
4652

0 commit comments

Comments
 (0)