Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

dannisi1985's avatar

how to display video previews

For a video website, how to display the preview of a video to users? Should this be done outside coding by using a video editor app or using javascript to control the display period?

0 likes
4 replies
Paschal's avatar

This is a job for the client-side. You have to get hand-on Javascript.

dannisi1985's avatar

but some people can bypass the js and thus watch the whole video for free, as long as it's client-side code.

shez1983's avatar

create preview versions automatically for each video and show them.. if the user is logged in - show full versions

Paschal's avatar

Well it depends. Two ways...

  1. You cut it outside and upload as a mini version (Advantage: You have control as to what to show. Disadvantage: Extra storage space required)

  2. You use a video plugin package (search for one I'm sure it exists) to cut the video at run time (Advantage: Reduced storage. Disadvantage: Extra processing time at the expense of memory)

Please or to participate in this conversation.