视频拉流
This commit is contained in:
parent
be740def8d
commit
6e440900e8
@ -1,30 +1,30 @@
|
|||||||
//package com.gc.easy.flv.controller;
|
package com.gc.easy.flv.controller;
|
||||||
//
|
|
||||||
//import com.gc.easy.flv.config.FlvConfig;
|
import com.gc.easy.flv.config.FlvConfig;
|
||||||
//import me.zhengjie.annotation.rest.AnonymousGetMapping;
|
import me.zhengjie.annotation.rest.AnonymousGetMapping;
|
||||||
//import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
//import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
//import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
//
|
|
||||||
//import java.io.UnsupportedEncodingException;
|
import java.io.UnsupportedEncodingException;
|
||||||
//
|
|
||||||
///**
|
/**
|
||||||
// * FLV流转换
|
* FLV流转换
|
||||||
// *
|
*
|
||||||
// * @author gc.x
|
* @author gc.x
|
||||||
// */
|
*/
|
||||||
//@Controller
|
@Controller
|
||||||
//public class FLVPlayController {
|
public class FLVPlayController {
|
||||||
// @Autowired
|
@Autowired
|
||||||
// private FlvConfig flvConfig;
|
private FlvConfig flvConfig;
|
||||||
//
|
|
||||||
// @AnonymousGetMapping(value = "/flv/hls/stream")
|
@AnonymousGetMapping(value = "/flv/hls/stream")
|
||||||
// public String getAppHtml1(String url, Model model) throws UnsupportedEncodingException {
|
public String getAppHtml1(String url, Model model) throws UnsupportedEncodingException {
|
||||||
// String decodedUrl = java.net.URLDecoder.decode(url, "UTF-8");
|
String decodedUrl = java.net.URLDecoder.decode(url, "UTF-8");
|
||||||
// String videoPath="/api/front/flv/get/stream?url="+decodedUrl;
|
String videoPath="/api/front/flv/get/stream?url="+decodedUrl;
|
||||||
// model.addAttribute("videoPath", videoPath);
|
model.addAttribute("videoPath", videoPath);
|
||||||
// model.addAttribute("wight", flvConfig.getWight());
|
model.addAttribute("wight", flvConfig.getWight());
|
||||||
// model.addAttribute("height", flvConfig.getHeight());
|
model.addAttribute("height", flvConfig.getHeight());
|
||||||
// return "video";
|
return "video";
|
||||||
// }
|
}
|
||||||
//}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user