|
|
|
@ -67,7 +67,7 @@ function InfoVideo(props) {
|
|
|
|
|
const { showNotification, history } = props;
|
|
|
|
|
const username = props.match.params.username;
|
|
|
|
|
const { user } = props;
|
|
|
|
|
console.log(user);
|
|
|
|
|
|
|
|
|
|
function toUpload() {
|
|
|
|
|
if (props.current_user.admin || (props.current_user.is_teacher && props.checkIfProfessionalCertification())) {
|
|
|
|
|
history.push(`/users/${username}/videos/upload`)
|
|
|
|
@ -144,7 +144,8 @@ function InfoVideo(props) {
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
if (videoModalObj.visible == false) {
|
|
|
|
|
// 关闭视频
|
|
|
|
|
videoEl.current && videoEl.current.pause()
|
|
|
|
|
videoEl.current && videoEl.current.pause();
|
|
|
|
|
videoId = {};
|
|
|
|
|
if (_clipboard) {
|
|
|
|
|
_clipboard.destroy();
|
|
|
|
|
_clipboard = null;
|
|
|
|
@ -266,7 +267,7 @@ function InfoVideo(props) {
|
|
|
|
|
className="showVideoModal"
|
|
|
|
|
width={800 - 1}
|
|
|
|
|
>
|
|
|
|
|
<VideoPlay src={videoId.file_url} />
|
|
|
|
|
{videoModalObj.visible && <VideoPlay src={videoId.file_url} />}
|
|
|
|
|
<div className="df copyLine">
|
|
|
|
|
<Input value={_inputValue}
|
|
|
|
|
className="dark"
|
|
|
|
|