import { h, Component } from 'preact'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import {
ParamGroup, Param, Player, Group,
Slider, SelectGroup, Select, TextInput, Button, Loading
} from '../../../common/'
import { startRecording, stopRecording, saveFrame, toggleFPS } from '../../../live/player'
import * as liveActions from '../../../live/live.actions'
import * as queueActions from '../../../queue/queue.actions'
import * as bigganTasks from '../biggan.tasks'
import * as bigganActions from '../biggan.actions'
import BigGANCategoryList from './biggan.categoryList.js'
import BigGANEncodingList from './biggan.encodingList.js'
import { frameTimestamp } from '../../../util'
class BigGANLive extends Component {
constructor(props) {
super()
props.actions.live.get_params()
}
start(){
// console.log(this.props.opt)
console.log('starting up!')
this.props.actions.tasks.live_task({
// folder_id: this.props.biggan.data.resultsFolder.id,
})
}
interrupt(){
this.props.actions.queue.stop_task('gpu')
}
render() {
const { biggan, actions, last_message } = this.props
// console.log(actions)
// if (biggan.loading) {
// return