|
|
|
@ -1,9 +1,8 @@
|
|
|
|
|
import React,{ Component } from "react";
|
|
|
|
|
import { WordsBtn,ActionBtn,getUrl } from 'educoder';
|
|
|
|
|
import { WordsBtn,ActionBtn,getmyUrl } from 'educoder';
|
|
|
|
|
import {Tooltip,message,Input, Button} from 'antd';
|
|
|
|
|
import {Link} from 'react-router-dom';
|
|
|
|
|
import axios from 'axios'
|
|
|
|
|
import {} from 'educoder';
|
|
|
|
|
import moment from 'moment'
|
|
|
|
|
import CoursesListType from '../coursesPublic/CoursesListType';
|
|
|
|
|
import Showoldfiles from "../coursesPublic/Showoldfiles";
|
|
|
|
@ -12,13 +11,12 @@ import HeadlessModal from '../../user/usersInfo/common/HeadlessModal'
|
|
|
|
|
import ClipboardJS from 'clipboard'
|
|
|
|
|
import '../../user/usersInfo/video/InfosVideo.css'
|
|
|
|
|
let _clipboard = null;
|
|
|
|
|
let getUrls=getUrl();
|
|
|
|
|
class Fileslistitem extends Component{
|
|
|
|
|
constructor(props){
|
|
|
|
|
super(props);
|
|
|
|
|
this.state = {
|
|
|
|
|
videoModalObj:false,
|
|
|
|
|
file_url:"",
|
|
|
|
|
file_url:null,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
setVisible=(bool)=>{
|
|
|
|
@ -62,7 +60,7 @@ class Fileslistitem extends Component{
|
|
|
|
|
if(list.content_type==="video/mp4"){
|
|
|
|
|
this.setState({
|
|
|
|
|
videoModalObj:true,
|
|
|
|
|
file_url:getUrls+list.url+'?file_name='+list.title,
|
|
|
|
|
file_url:getmyUrl(list.url+'?file_name='+list.title),
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}else{
|
|
|
|
@ -94,7 +92,7 @@ class Fileslistitem extends Component{
|
|
|
|
|
if(list.content_type==="video/mp4"){
|
|
|
|
|
this.setState({
|
|
|
|
|
videoModalObj:true,
|
|
|
|
|
file_url:getUrls+list.url+'?file_name='+list.title,
|
|
|
|
|
file_url:getmyUrl(list.url+'?file_name='+list.title),
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}else{
|
|
|
|
@ -130,7 +128,7 @@ class Fileslistitem extends Component{
|
|
|
|
|
Clicktobroadcastthevideo=(bool,url)=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
videoModalObj:bool,
|
|
|
|
|
file_url:getUrls+url,
|
|
|
|
|
file_url:getmyUrl(url),
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -217,7 +215,8 @@ class Fileslistitem extends Component{
|
|
|
|
|
const { checkBox,
|
|
|
|
|
discussMessage,index
|
|
|
|
|
} = this.props;
|
|
|
|
|
|
|
|
|
|
console.log("Fileslistitem");
|
|
|
|
|
console.log(file_url);
|
|
|
|
|
return(
|
|
|
|
|
<div className="graduateTopicList boardsList">
|
|
|
|
|
{
|
|
|
|
@ -233,12 +232,12 @@ class Fileslistitem extends Component{
|
|
|
|
|
src={file_url} controls="true" controlslist="nodownload">
|
|
|
|
|
您的浏览器不支持 video 标签。
|
|
|
|
|
</video>
|
|
|
|
|
<div className="df copyLine">
|
|
|
|
|
<Input value={file_url}
|
|
|
|
|
className="dark"
|
|
|
|
|
></Input>
|
|
|
|
|
<ActionBtn className="copybtn" data-clipboard-text={file_url} onClick={() =>this.copyurls()}>复制视频地址</ActionBtn>
|
|
|
|
|
</div>
|
|
|
|
|
{/*<div className="df copyLine">*/}
|
|
|
|
|
{/* <Input value={file_url}*/}
|
|
|
|
|
{/* className="dark"*/}
|
|
|
|
|
{/* ></Input>*/}
|
|
|
|
|
{/* <ActionBtn className="copybtn" data-clipboard-text={file_url} onClick={() =>this.copyurls()}>复制视频地址</ActionBtn>*/}
|
|
|
|
|
{/*</div>*/}
|
|
|
|
|
</HeadlessModal>
|
|
|
|
|
|
|
|
|
|
:""
|
|
|
|
|