document.write('
'); var thumbs = []; for (var i=1; i<28; i=i+1) { thumbs.push({ url: "https://smart.nct.jp/data/smart/59f6bee7ec431/thumb/"+i+".jpg", time: i }); } var player = new Clappr.Player({ source: "https://smart.nct.jp/data/smart/59f6bee7ec431/play.m3u8?u=test&mid=59f6bee7ec431&dev=_pc&0.683119001725766911", poster: "https://smart.nct.jp/data/smart/59f6bee7ec431/thum.jpg?0.683119001725766911", parentId: "#hls_video83766dd1cffa6cc1", width: "544", height: "306", autoPlay: false, loop: true, mute: false, disableVideoTagContextMenu: true, pause: true, preload: 'metadata', hideMediaControl: true, plugins: { 'core': [ClapprHeadingPlugin,LevelSelector,PlaybackRatePlugin,ClapprThumbnailsPlugin] }, playbackRateConfig: { defaultValue: '1.0', options: [ {value: '0.25', label: '0.25x'}, {value: '0.5', label: '0.5x'}, {value: '0.75', label: '0.75x'}, {value: '1.0', label: '1x'}, {value: '1.25', label: '1.25x'}, {value: '1.5', label: '1.5x'}, {value: '1.75', label: '1.75x'}, {value: '2.0', label: '2x'} ] }, headingPlugin: { // text: "interview", // hyperlink: "http://google.com", // optional, can also be a callback // openInNewWindow: true // optional }, scrubThumbnails: { backdropHeight: 64, // set to 0 or null to disable backdrop spotlightHeight: 84, // set to 0 or null to disable spotlight thumbs: thumbs }});