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).