时长信息转到video主体 增加多线程获取时间方法
This commit is contained in:
@@ -17,8 +17,8 @@ import com.peanut.modules.master.service.CourseCatalogueChapterVideoService;
|
||||
import com.peanut.modules.sociology.service.CourseCatalogueChapterService;
|
||||
import com.peanut.modules.sociology.service.CourseService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.bytedeco.javacv.FFmpegFrameGrabber;
|
||||
import org.bytedeco.javacv.FrameGrabber;
|
||||
//import org.bytedeco.javacv.FFmpegFrameGrabber;
|
||||
//import org.bytedeco.javacv.FrameGrabber;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
@@ -12,6 +12,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Slf4j
|
||||
@RestController("sociologyProduct")
|
||||
@@ -33,4 +34,11 @@ public class ShopProductController {
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping("/getProductDetail")
|
||||
public R getProductDetail(@RequestBody Map<String,Integer> map){
|
||||
Map<String, Object> detail = shopProductService.getProductDetail(map.get("productId"));
|
||||
return R.ok().put("data",detail);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user