This commit is contained in:
@@ -238,7 +238,12 @@ const VCCourseDetail = () => {
|
||||
position: 'relative',
|
||||
aspectRatio: '16/9'
|
||||
}}>
|
||||
{course.video_url ? (
|
||||
{course.video_embed_code ? (
|
||||
<div
|
||||
style={{ width: '100%', height: '100%' }}
|
||||
dangerouslySetInnerHTML={{ __html: course.video_embed_code }}
|
||||
/>
|
||||
) : course.video_url ? (
|
||||
<video
|
||||
src={course.video_url}
|
||||
controls
|
||||
|
||||
Reference in New Issue
Block a user