2017-10-11 17 views

답변

0

매우 쉽습니다.

플레이어 클래스가 비디오를로드하는 데 사용하는 MediaItem 클래스에는 [시작 시간, 지속 시간] 값의 배열을 허용하는 삽입 사이 작업이 있습니다.

var singleVideo = new MediaItem(mediaType, videourl); 
var videoInterstitials = []; 

videoInterstitials.push({ 
          starttime: 50, 
          duration: 30 
         }); 
singleVideo.interstitials = videoInterstitials; 
var videoList = new Playlist(); 
videoList.push(singleVideo); 
var player = new Player(); 
player.playlist = videoList; 
player.play();