package jp.dip.arimodoki.cntl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import jp.dip.arimodoki.blogic.BlVideoSlice;
import jp.dip.arimodoki.common.CConst;
import jp.dip.arimodoki.model.FormVideoSlice;
@Scope("prototype")
@Controller
public class VideoSlice implements CConst {
@Autowired
private FormVideoSlice formVideoSlice;
@Autowired
private BlVideoSlice blSlice;
@ModelAttribute("FormVideoSlice")
public FormVideoSlice setupBind() {
this.blSlice.setForm(this.formVideoSlice);
return this.formVideoSlice;
}
@RequestMapping(value = "/videofileuploadview")
public String videofileuploadview() {
return "videosliceview";
}
@RequestMapping(value = "/videoupload")
public String videoupload(
@ModelAttribute("FormVideoSlice") FormVideoSlice uploadfile
) throws Exception {
blSlice.getFrame();
return "sliceresult";
}
}
|