|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
import React,{ Component } from "react";
|
|
|
|
|
import { WordsBtn,ActionBtn,getmyUrl } from 'educoder';
|
|
|
|
|
import { WordsBtn,ActionBtn,getmyUrl,getUrl } from 'educoder';
|
|
|
|
|
import {Tooltip,message,Input, Button} from 'antd';
|
|
|
|
|
import {Link} from 'react-router-dom';
|
|
|
|
|
import axios from 'axios'
|
|
|
|
@ -60,7 +60,8 @@ class Fileslistitem extends Component{
|
|
|
|
|
if(list.content_type==="video/mp4"){
|
|
|
|
|
this.setState({
|
|
|
|
|
videoModalObj:true,
|
|
|
|
|
file_url:getmyUrl(list.url+'?file_name='+list.title),
|
|
|
|
|
file_url:"https://"+document.domain+list.url+'?file_name='+list.title+"&disposition=MP4",
|
|
|
|
|
// file_url:getUrl()+list.url+'?file_name='+list.title+'&disposition=MP4',
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}else{
|
|
|
|
@ -92,7 +93,9 @@ class Fileslistitem extends Component{
|
|
|
|
|
if(list.content_type==="video/mp4"){
|
|
|
|
|
this.setState({
|
|
|
|
|
videoModalObj:true,
|
|
|
|
|
file_url:getmyUrl(list.url+'?file_name='+list.title),
|
|
|
|
|
file_url:"https://"+document.domain+list.url+'?file_name='+list.title+'&disposition=MP4',
|
|
|
|
|
// file_url:getUrl()+list.url+'?file_name='+list.title+'&disposition=MP4',
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}else{
|
|
|
|
@ -127,9 +130,10 @@ class Fileslistitem extends Component{
|
|
|
|
|
|
|
|
|
|
Clicktobroadcastthevideo=(bool,url)=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
videoModalObj:bool,
|
|
|
|
|
file_url:getmyUrl(url),
|
|
|
|
|
})
|
|
|
|
|
videoModalObj:bool,
|
|
|
|
|
file_url:"https://"+document.domain+url+'&disposition=MP4',
|
|
|
|
|
// file_url:getUrl()+url+'&disposition=MP4',
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -215,8 +219,11 @@ class Fileslistitem extends Component{
|
|
|
|
|
const { checkBox,
|
|
|
|
|
discussMessage,index
|
|
|
|
|
} = this.props;
|
|
|
|
|
console.log("Fileslistitem");
|
|
|
|
|
console.log(file_url);
|
|
|
|
|
// console.log("Fileslistitem");
|
|
|
|
|
// console.log( document.domain);
|
|
|
|
|
// console.log(this.props.imhost);
|
|
|
|
|
// console.log( window.location.href);
|
|
|
|
|
|
|
|
|
|
return(
|
|
|
|
|
<div className="graduateTopicList boardsList">
|
|
|
|
|
{
|
|
|
|
@ -228,16 +235,16 @@ class Fileslistitem extends Component{
|
|
|
|
|
width={800 - 1}
|
|
|
|
|
>
|
|
|
|
|
<video
|
|
|
|
|
autoplay="true"
|
|
|
|
|
src={file_url} controls="true" controlslist="nodownload">
|
|
|
|
|
preload="auto"
|
|
|
|
|
src={file_url} controls="true" >
|
|
|
|
|
您的浏览器不支持 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>
|
|
|
|
|
|
|
|
|
|
:""
|
|
|
|
@ -256,7 +263,7 @@ class Fileslistitem extends Component{
|
|
|
|
|
{...this.props}
|
|
|
|
|
visible={this.state.Showoldfiles}
|
|
|
|
|
allfiles={this.state.allfiles}
|
|
|
|
|
Clicktobroadcastthevideo={(bool,urls)=>this.Clicktobroadcastthevideo(bool,urls)}
|
|
|
|
|
Clicktobroadcastthevideo={(bool,urls,index)=>this.Clicktobroadcastthevideo(bool,urls,index)}
|
|
|
|
|
closaoldfilesprops={this.closaoldfilesprops}
|
|
|
|
|
/>
|
|
|
|
|
<style>{`
|
|
|
|
|