ef-video

Attributes

srcRequired
string

URL or path to video source

sourcein
timestring

Absolute start time in source media

sourceout
timestring

Absolute end time in source media

trimstart
timestring

Duration to trim from start

trimend
timestring

Duration to trim from end

duration
timestring

Override element duration

mute
boolean

Silence the audio track

Default:false
volume
number

Audio volume (0.0 to 1.0)

Default:1

Video element with source trimming.

Basic Usage

Live

Trimming Approaches

Two ways to trim video -- choose based on your workflow:

Absolute Trimming (sourcein/sourceout)

Show specific timestamps from source. Use when you know exact timecodes.

Live

Relative Trimming (trimstart/trimend)

Remove time from start/end. Use when thinking "cut off X seconds".

Live

When to use each:

  • sourcein/sourceout — Working with timecodes, precise frame references
  • trimstart/trimend — UI builders, "how much to cut off" thinking

Muted / Volume

<ef-video src="video.mp4" mute class="size-full"></ef-video>
<ef-video src="video.mp4" volume="0.5" class="size-full"></ef-video>

Picture-in-Picture

Live
Understanding Video ElementsStep 1 of 4