-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrated the new player in the asset and stream pages #1330
Conversation
Added the processing progress
…ladev/progress-asset
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Tested the dashboard around and looks great! Some notes/questions:
Everything else looks great! I like that the player volume seems to be a global on the dashboard as well. |
Oh and a crazy/stretch idea. Since we don't have very granular progress on the processing phase, WDYT of applying some smoothing function to the progress that we read from the API? Something like... we were showing 0% then we get a 25% from the API. Instead of just changing immediately, we could smooth a transition to that value, maybe as an asymptote or only smoothing it over 10 seconds, which is the minimum progress reporting interval on the backend. There might be some ready function or lib for that, or maybe we could just implement some logic like "every half a second move the displayed progress 10% closer to the progress reported by the API". Like this, we'd smooth out to ~90% of the API progress in a 10s period, ~99% over 20s, and it might feel nice on the dashboard. As I said this is kind of a crazy idea tho. Just a stretch, but it'd probably be fun to implement as well if you wanna give it a shot. |
Hey Victor, this PR is build on top of another one #1326 which is waiting to be reviewed. The other one is the one where the progress has been implemented. So I will address the progress feedback there. Regarding the player aspect ratio |
@clacladev I'm suggesting changing the
I believe the Dashboard main focus is for evaluating the platform and inspecting the correct functioning of the services we provide. If I upload a portrait video, then I go to the details page and it shows me only a small portion of it, I'm just going to assume that the processing is broken on the Livepeer side. So I believe it is important for the player to show the entire content of the video, even if it has to scale it a bit down to fit on its IMHO this is gonna be the case for the vast majority of applications, which is why I've also opened that discussion to change the default value to be |
My $0.02 is that we can't crop the video in the dashboard or risk users being confused about why their full video isn't being shown. Ideally, the player dynamically adjusts to the input video aspect ratio so that users can see their video without big black bars (that make it difficult to see the content) or cropping the video. I vote that the player adapts to the input video as the default (which is shown on the dashboard) and then users can customize the player's size however they'd like in their application. |
While I'd be OK if we did that, I agree that it's not ideal to have the layout wobble around after the video starts playing. So I think the only acceptable implementation here would be if we used the The layout would look different for different assets tho, depending on their aspect ratio. There might be an argument that we want that to be consistent as well so the UI is not a "surprise" every time you open the page. @clacladev and @0xcadams would know better about the best practices here. I believe this is lower priority than to stop cropping the source video though. We could do that on a follow up PR or keep on the backlog as a nice to have, while I don't think we can ship a dashboard that looks like we are cropping the uploaded videos. |
Sorry @victorges I had misunderstood what you were trying to tell me. And yes, I agree with you in changing the I already implemented it and committed it. Here for a cinematic sized video: I think it's an overall improvement. |
Awesome! Thanks
…On Fri, 7 Oct 2022, 06:32 clacla, ***@***.***> wrote:
Sorry @victorges <https://github.com/victorges> I had misunderstood what
you were trying to tell me. And yes, I agree with you in changing the
objectFit="cover" to objectFit="contain". I think it makes a better UX
overall. I agree that as a user I should always see the entirety of the
video.
I already implemented it and committed it.
Here before a portrait video:
[image: Screenshot 2022-10-07 at 12 26 01]
<https://user-images.githubusercontent.com/161903/194522069-532c1629-45a6-409c-a901-23a289d0d468.png>
Here after a portrait video:
[image: Screenshot 2022-10-07 at 12 26 20]
<https://user-images.githubusercontent.com/161903/194522169-156143d4-86df-4f5d-b84f-9f733e97b798.png>
Here for a cinematic sized video:
[image: Screenshot 2022-10-07 at 12 27 51]
<https://user-images.githubusercontent.com/161903/194522273-0695504a-edc8-4be7-ad80-eb95488580f4.png>
I think it's an overall improvement.
—
Reply to this email directly, view it on GitHub
<#1330 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMJ4R3G6Y7FAD3ZSLBLSQ3WB7UZZANCNFSM6AAAAAAQ6URIVU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! @clacladev let's just address those two merge conflicts then good to squash and merge.
What does this pull request do? Explain your changes. (required)
Integrated the new player in the asset and stream pages
Specific updates (required)
How did you test each of these updates (required)
Does this pull request close any open issues?
Fixes #1320
Screenshots (optional):