invidious-mod-JP/src/invidious/views/embed.ecr

42 lines
1.1 KiB
Plaintext
Raw Normal View History

2018-07-14 13:36:31 +00:00
<!DOCTYPE html>
2019-04-28 14:17:35 +00:00
<html lang="<%= env.get("preferences").as(Preferences).locale %>">
2018-07-14 13:36:31 +00:00
<head>
2019-05-05 12:46:01 +00:00
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="thumbnail" content="<%= thumbnail %>">
<%= rendered "components/player_sources" %>
<link rel="stylesheet" href="/css/default.css?v=<%= ASSET_COMMIT %>">
<title><%= HTML.escape(video.title) %> - Invidious</title>
<style>
#player {
position: fixed;
right: 0;
bottom: 0;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
z-index: -100;
}
</style>
2018-07-14 13:36:31 +00:00
</head>
<body>
<script>
2019-05-06 16:23:14 +00:00
var video_data = {
2019-05-06 15:37:10 +00:00
id: '<%= video.id %>',
plid: '<%= plid %>',
2019-05-06 16:23:14 +00:00
length_seconds: '<%= video.info["length_seconds"].to_f %>',
2019-05-06 15:37:10 +00:00
video_series: <%= video_series.to_json %>,
params: <%= params.to_json %>,
2019-06-08 15:18:45 +00:00
preferences: <%= preferences.to_json %>,
premiere_timestamp: <%= video.premiere_timestamp.try &.to_unix || "null" %>
}
</script>
2019-05-06 16:23:14 +00:00
<%= rendered "components/player" %>
<script src="/js/embed.js?v=<%= ASSET_COMMIT %>"></script>
2018-07-14 13:36:31 +00:00
</body>
2018-08-17 16:04:38 +00:00
</html>