feat: add right-click context menu with share/embed options on video player

- Add VideoContextMenu component with copy URL, URL with timestamp, and embed code options
- Integrate context menu into VideoJSPlayer with proper event handling
- Add visual feedback via SeekIndicator when copying URLs/embed code
- Support embed mode with showTitle URL parameter handling
- Handle cross-origin iframe scenarios for embed URL generation
- Add helper functions for media ID, origin, and embed URL resolution
This commit is contained in:
Yiannis Christodoulou
2026-01-07 11:38:04 +02:00
parent 1c15880ae3
commit 7a8defb611
4 changed files with 476 additions and 38 deletions

21
__test-iframe/index.html Normal file
View File

@@ -0,0 +1,21 @@
<html>
<body>
<h2>Embed Video with showTitle=0</h2>
<iframe
width="560"
height="315"
src="http://localhost/embed?m=6WShYNxZx&showTitle=0"
frameborder="0"
allowfullscreen
></iframe>
<h2>Embed Video with showTitle=1</h2>
<iframe
width="560"
height="315"
src="http://localhost/embed?m=SOgLTsrAH&showTitle=1"
frameborder="0"
allowfullscreen
></iframe>
</body>
</html>