dev_hjm
hjm 6 years ago
parent a97c737dfb
commit 23f58a0c33

@ -32,8 +32,9 @@ function HeadlessModal (props) {
} }
.headless .closeBtn { .headless .closeBtn {
position: absolute; position: absolute;
top: -15px; top: -18px;
right: -9px; right: -12px;
font-size: 24px !important;
color: ${theme.foreground_select} color: ${theme.foreground_select}
} }
`}</style> `}</style>

@ -1,7 +1,7 @@
import React, { useState, useEffect, useContext, useRef, memo } from 'react'; import React, { useState, useEffect, useContext, useRef, memo } from 'react';
import {Link} from 'react-router-dom'; import {Link} from 'react-router-dom';
import { Pagination } from 'antd' import { Pagination, Input } from 'antd'
import { getUrl2, isDev, ThemeContext } from 'educoder' import { getUrl2, isDev, ThemeContext, ActionBtn } from 'educoder'
import axios from 'axios' import axios from 'axios'
import VideoInReviewItem from './VideoInReviewItem' import VideoInReviewItem from './VideoInReviewItem'
import EditVideoModal from './EditVideoModal' import EditVideoModal from './EditVideoModal'
@ -132,6 +132,7 @@ function InfoVideo (props) {
} }
videoModalObj.setVisible(true) videoModalObj.setVisible(true)
} }
const _inputValue = `<video src="${videoId.file_url}" controls="true" controlslist="nodownload" width="400">您的浏览器不支持 video 标签。</video>`
return ( return (
<div className="educontent infoVideo"> <div className="educontent infoVideo">
<EditVideoModal {...props} {...editModalObj} <EditVideoModal {...props} {...editModalObj}
@ -145,16 +146,41 @@ function InfoVideo (props) {
width={800 - 1} width={800 - 1}
> >
<video <video
ref="videoEl" ref={videoEl}
src={videoId.file_url} controls="true" controlslist="nodownload"> src={videoId.file_url} controls="true" controlslist="nodownload">
您的浏览器不支持 video 标签 您的浏览器不支持 video 标签
</video> </video>
<div className="df copyLine">
<Input value={_inputValue}
className="dark"
></Input>
<ActionBtn>复制视频地址</ActionBtn>
</div>
</HeadlessModal> </HeadlessModal>
<style>{` <style>{`
.showVideoModal .ant-modal-body {
display: flex;
flex-direction: column;
}
.showVideoModal video{ .showVideoModal video{
width: 800px; width: 800px;
height: 450px; height: 450px;
} }
.showVideoModal .copyLine {
justify-content: space-between;
padding: 9px;
background: #000000;
width: 800px;
}
.showVideoModal .copyLine input {
color: #707070;
background-color: #000 !important;
border-color: #707070;
margin-right: 12px;
}
.showVideoModal .copyLine a {
flex: 0 0 106px;
}
/* item */ /* item */
.videoPublishSuccess .section { .videoPublishSuccess .section {
@ -244,3 +270,10 @@ function InfoVideo (props) {
} }
export default InfoVideo export default InfoVideo
/**
<video src="http://outin-396971199eed11e991a100163e1c7426.oss-cn-shanghai.aliyuncs.com/sv/52943d8b-16c8dc2a8ca/52943d8b-16c8dc2a8ca.mp4" controls="true" controlslist="nodownload" width="400">
您的浏览器不支持 video 标签
</video>
*/
Loading…
Cancel
Save