Skip to content

Commit

Permalink
video bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
terrerox committed Dec 27, 2022
1 parent fea2732 commit d6e2fa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/BlogPost.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ watchEffect(
<p>{{postStore.post.date}}</p>
</header>
<section class="media-section" v-show="postStore.post.media_url">
<img :src="postStore.post.media_url" v-if="postStore.post.media_type === 'IMAGE'"/>
<video controls v-else>
<video controls v-if="postStore.post.media_type === 'VIDEO'">
<source :src="postStore.post.media_url" type="video/mp4">
Your browser does not support HTML video.
</video>
<img :src="postStore.post.media_url" v-else/>
</section>
<section
itemProp="articleBody"
Expand Down

1 comment on commit d6e2fa5

@vercel
Copy link

@vercel vercel bot commented on d6e2fa5 Dec 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.