21 lines
450 B
JavaScript
21 lines
450 B
JavaScript
var player;
|
|
|
|
function openEpisode(viddata) {
|
|
$('.episodetitle').text(viddata.title);
|
|
player = DM.player(document.getElementById("DMVideo"), {
|
|
video: viddata.embed.replace("//www.dailymotion.com/embed/video/", ""),
|
|
width: "100%",
|
|
height: "100%",
|
|
params: {
|
|
autoplay: true
|
|
}
|
|
});
|
|
$('.vidplayerpopup').fadeIn('fast');
|
|
window.episodeMeta = viddata;
|
|
}
|
|
|
|
function htmlPopupClose() {
|
|
$('.vidplayerpopup').fadeOut('fast');
|
|
player.pause();
|
|
}
|