0

When you hover the mouse on the search bar in the player, an image of the current frame is displayed. No XHR requests are sent at this moment. How does the player get this image?

1

1 Answer 1

0

Once you post the cursor over the progress bar, you'll get a image from the current displaying frame.

This is due is made a request

This is an example of the video called "My bad experience in India and my advices for travelers" once I passed the cursor over the progress bar at apporximately "19:10":

M4 image - sample

You see that there are a few frames that covers the duration once you hover the cursor over the mentioned time.

The url of the given imageis this:

https://i9.ytimg.com/sb/Wkw-Bfg1Fio/storyboard3_L2/M4.jpg?sqp=ovOX_wMGCIbK-9UF&sigh=rs%24AOn4CLAKP9a1L-qPaTpNLVtiq8XeTpKHlw

I'd read at this answer in Stack Overflow that (if I understand correctly) basically the parameters in the string of the URL image is used for set the size of the frame and set the frame in the specific time.

You can check the linked answer for get more information.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.