wistia 비디오가 재생 모드로 설정된 후에 비디오 태그를 찾을 수 있습니다. 자신의 문서에 이것에 대한 또 다른 해결책이 없습니다.
// get wistia video object through their api
var wistiaVideo = Wistia.api('your video id');
$('#your-custom-play-button').on('click', function() {
wistiaVideo.play();
// now just look for video tag inside wistia video container
var video = $('.your-video-container').find('video')[0];
// check whether your browser has ability to run it in fullscreen mode
if (video.requestFullscreen) {
video.requestFullscreen();
} else if (video.mozRequestFullScreen) {
video.mozRequestFullScreen();
} else if (video.webkitRequestFullscreen) {
video.webkitRequestFullscreen();
} else if (video.webkitEnterFullscreen) {
video.webkitEnterFullscreen();
}
});
: 보세요