document.write('
'); var thumbs = []; for (var i=1; i<35; i=i+1) { thumbs.push({ url: "https://smart.nct.jp/data/smart/61e7ae6ac66c7/thumb/"+i+".jpg", time: i }); } var player = new Clappr.Player({ source: "https://smart.nct.jp/data/smart/61e7ae6ac66c7/play.m3u8?u=test&mid=61e7ae6ac66c7&dev=_pc&0.665326001715878799", poster: "https://smart.nct.jp/data/smart/61e7ae6ac66c7/thum.jpg?0.665326001715878799", parentId: "#hls_video194066463b8fa2740", width: "480", height: "270", autoPlay: false, loop: false, 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: "サンプル/60fps,最高2500bitrate", // 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 }});