chenkailing
4 years ago
11 changed files with 55 additions and 18 deletions
@ -0,0 +1,27 @@
|
||||
package cn.keking.service.impl; |
||||
|
||||
import cn.keking.model.FileAttribute; |
||||
import cn.keking.service.FilePreview; |
||||
import org.springframework.stereotype.Service; |
||||
import org.springframework.ui.Model; |
||||
|
||||
/** |
||||
* @author : kl |
||||
* create : 2020-12-27 2:50 下午 |
||||
* flv文件预览处理实现 |
||||
**/ |
||||
@Service |
||||
public class FlvFilePreviewImpl implements FilePreview { |
||||
|
||||
private final MediaFilePreviewImpl mediaFilePreview; |
||||
|
||||
public FlvFilePreviewImpl(MediaFilePreviewImpl mediaFilePreview) { |
||||
this.mediaFilePreview = mediaFilePreview; |
||||
} |
||||
|
||||
@Override |
||||
public String filePreviewHandle(String url, Model model, FileAttribute fileAttribute) { |
||||
mediaFilePreview.filePreviewHandle(url,model,fileAttribute); |
||||
return FLV_FILE_PREVIEW_PAGE; |
||||
} |
||||
} |
Loading…
Reference in new issue