Replies: 3 comments 3 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
-
I don’t know what you mean by the CI server? I’m just running `percy
storybook ./storybook-build`.
On Tue, 22 Nov 2022 at 6:49 pm, Jigar wala ***@***.***> wrote:
- [cli/packages/core/src/network.js] (
https://github.com/percy/cli/blob/4303b74df91f60e36065141289d2ef2277d1d6fc/packages/core/src/network.js#L7)
helps in asset discovery which hits the CI server which is currently
serving partial response. you can have a look at how the SDK works by the
diagram on top of the page https://docs.percy.io/docs/debugging-sdks
- you can set preload attribute to none and the browser will consider
the height and width of the poster ( which should equals the video's
dimensions)
—
Reply to this email directly, view it on GitHub
<#1138 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAACUTFMK6LUTILFUIW6AC3WJR3J3ANCNFSM6AAAAAASFZGGJA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
James Gregory
Tel: 0411619513
Website: http://jagregory.com
Twitter: @jagregory <http://twitter.com/jagregory>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Ok, thanks. What setup does work for videos?
On Tue, 22 Nov 2022 at 7:41 pm, Jigar wala ***@***.***> wrote:
@jagregory <https://github.com/jagregory> in this case its storybook
server which is serving the assets.
CI server could be any CDN/web server serving the assets which percy SDK
discovers assets from.
—
Reply to this email directly, view it on GitHub
<#1138 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAACUTFRPYKVNQG5ODDNNKTWJSBKXANCNFSM6AAAAAASFZGGJA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
James Gregory
Tel: 0411619513
Website: http://jagregory.com
Twitter: @jagregory <http://twitter.com/jagregory>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The problem
When snapshotting a Storybook story which includes a
video
element, if the static file server responds with a206
(for a partial content response with a range request) then the asset is not downloaded and the snapshot fails.Initially, I thought it was just the 206 issue, and I manually edited this line:
cli/packages/core/src/network.js
Line 7 in 4303b74
But when I changed that line to include
206
, the request appears to complete but the snapshot is still blank:(Note: the sha does match the sha of the full file on disk)
I've tried a few things that didn't have any effect:
npx http-server
, and python's http.server)Environment
@percy/cli
version: 1.14.0I'm using
@storybook/builder-vite
(0.2.2) andvite
(3.0.4) for the local dev server.Details
Other assets are fine, but any video fails with the same issue regardless of size. My original video is 93mb, but I've tested with the smallest video I can (4kb) and it behaves the same.
Unfortunately, I'm on a poor quality internet connection at the moment so I can't test against remotely hosted assets.
Debug logs
Version from npm:
Modified to allow
206
responses codes:Beta Was this translation helpful? Give feedback.
All reactions