//script
var playerInstance = OvenPlayer.create("OnAir", {
title : "",
image : '2024.png',
autoStart : 'True',
controls : true,
sources: [
{
type: 'hls',
file: 'http://www.xxxx.com',
},
]
});
//script
echo file ; // file 값만 얻기
안녕하세요
위에 script 에서 어떻게 file 값만 얻을수 있을까요? 도움 필요합니다.
|
답변 1개
채택된 답변
+20 포인트
1년 전
소스 객체에서 파일만 추출하면됩니다.
Copy
var fileValue = playerInstance.options.sources[0].file;
console.log(fileValue);
답변을 작성하려면 로그인이 필요합니다.