From 349a6a405be7afb4086bb05bfd9b37fe7f8e7c5a Mon Sep 17 00:00:00 2001 From: Charles Zhao Date: Thu, 26 Sep 2024 10:55:04 +0800 Subject: [PATCH] chore: split and add dedicated changeset for tunnel (#6632) --- .changeset/tasty-kings-fetch.md | 5 ++--- .changeset/violet-ligers-carry.md | 7 +++++++ 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 .changeset/violet-ligers-carry.md diff --git a/.changeset/tasty-kings-fetch.md b/.changeset/tasty-kings-fetch.md index 68a5196e4..3a52895c1 100644 --- a/.changeset/tasty-kings-fetch.md +++ b/.changeset/tasty-kings-fetch.md @@ -1,9 +1,8 @@ --- "@logto/phrases": patch -"@logto/tunnel": patch "@logto/core": patch --- -fix an issue that prevent mp4 video from playing on Safari +fix an issue that prevent mp4 video from playing in custom sign-in pages on Safari browser -Safari browser uses range request to fetch video data, but it was not supported by the `@logto/tunnel` CLI tool and `koa-serve-custom-ui-assets` middleware in core. This prevents our users who want to build custom sign-in pages with video background. In order to fix this, we need to partially read the video file stream based on the `range` request header, and set proper response headers and status code (206). +Safari browser uses range request to fetch video data, but it was not supported by the `koa-serve-custom-ui-assets` middleware in core. This prevents our users who want to build custom sign-in pages with video background. In order to fix this, we need to partially read the video file stream based on the `range` request header, and set proper response headers and status code (206). diff --git a/.changeset/violet-ligers-carry.md b/.changeset/violet-ligers-carry.md new file mode 100644 index 000000000..6498fe9ee --- /dev/null +++ b/.changeset/violet-ligers-carry.md @@ -0,0 +1,7 @@ +--- +"@logto/tunnel": patch +--- + +support range request for mp4 video source hosting + +Safari browser uses range request to fetch video data, but it was not supported by the `@logto/tunnel` CLI tool. This prevents our users who want to build custom sign-in pages with video background. In order to fix this, we need to partially read the video file stream based on the `range` request header, and set proper response headers and status code (206).