From 8d666425fcdfdec0c71c4ef03157047d5b5e7b82 Mon Sep 17 00:00:00 2001 From: Rob Lourens Date: Tue, 23 Aug 2022 12:30:03 -0700 Subject: [PATCH] Add mp4 --- webview-sample/src/extension.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webview-sample/src/extension.ts b/webview-sample/src/extension.ts index d2b6e26b..77d051e9 100644 --- a/webview-sample/src/extension.ts +++ b/webview-sample/src/extension.ts @@ -176,10 +176,12 @@ class CatCodingPanel { // Local path to css styles const styleResetPath = vscode.Uri.joinPath(this._extensionUri, 'media', 'reset.css'); const stylesPathMainPath = vscode.Uri.joinPath(this._extensionUri, 'media', 'vscode.css'); + const videoPath = vscode.Uri.joinPath(this._extensionUri, 'media', 'test.mp4'); // Uri to load styles into webview const stylesResetUri = webview.asWebviewUri(styleResetPath); const stylesMainUri = webview.asWebviewUri(stylesPathMainPath); + const videoUri = webview.asWebviewUri(videoPath); // Use a nonce to only allow specific scripts to be run const nonce = getNonce(); @@ -193,7 +195,7 @@ class CatCodingPanel { Use a content security policy to only allow loading images from https or from our extension directory, and only allow scripts that have a specific nonce. --> - + @@ -206,6 +208,7 @@ class CatCodingPanel {

0

+ `;