Skip to content

Commit

Permalink
πŸ’„ overflow video duration and size
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidZhang73 committed Nov 15, 2023
1 parent 566c424 commit bd7abe8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/components/DrawerVideoControl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
>
<div class="col">Duration</div>
<div class="col">
<span v-if="video.duration && video.fps">{{ utils.toFixed2(video.duration) }}s @ {{ video.fps }}fps</span>
<span v-if="video.duration && video.fps">{{ utils.toFixed2(video.duration) }}s @ {{
utils.toFixed2(video.fps)
}}fps</span>
<span v-else>-</span>
</div>
</div>
Expand All @@ -17,9 +19,9 @@
>
<div class="col">Size</div>
<div class="col">
<span v-if="video.width && video.height && video.frames">{{ video.width }} &times; {{ video.height }}px &times; {{
video.frames
}}
<span v-if="video.width && video.height && video.frames">{{ parseInt(video.width) }} &times; {{
parseInt(video.height)
}}px &times; {{ parseInt(video.frames) }}
</span>
<span v-else>-</span>
</div>
Expand Down

0 comments on commit bd7abe8

Please sign in to comment.