// page to top
$(document).ready(function() {
$('.backtotop').click(function(){
$('html, body').animate({scrollTop:0}, 'fast');
;});
;});
// open live
function openlive() {
var browser = navigator.userAgent.toLowerCase();
if (browser.indexOf('iphone')>= 0) {
top.location.href = "http://도메인.com:1935/central/_definst_/central01.sdp/playlist.m3u8";
} else if (browser.indexOf('ipad')>= 0) {
top.location.href = "http://도메인.com:1935/central/_definst_/central01.sdp/playlist.m3u8";
} else if (browser.indexOf('ipod')>= 0) {
top.location.href = "http://도메인.com:1935/central/_definst_/central01.sdp/playlist.m3u8";
} else if (browser.indexOf('windows phone')>= 0) {
top.location.href = "rtsp://도메인.com/central/_definst_/central01.sdp";
} else if (browser.indexOf('android')>= 0) {
top.location.href = "rtsp://도메인.com/central/_definst_/central01.sdp";
} else {
alert ('지원되지않는 모바일기기 입니다.');
}
}
// open vod
function openvod(vod_file) {
var browser = navigator.userAgent.toLowerCase();
if (browser.indexOf('iphone')>= 0) {
top.location.href = "http://도메인.com:1935/경로/"+vod_file+"/playlist.m3u8";
} else if (browser.indexOf('ipad')>= 0) {
top.location.href = "http://도메인.com:1935/경로/"+vod_file+"/playlist.m3u8";
} else if (browser.indexOf('ipod')>= 0) {
top.location.href = "http://도메인.com:1935/경로/"+vod_file+"/playlist.m3u8";
} else if (browser.indexOf('windows phone')>= 0) {
top.location.href = "rtsp://도메인.com/경로/"+vod_file;
} else if (browser.indexOf('android')>= 0) {
top.location.href = "rtsp://도메인.com/경로/"+vod_file;
} else {
alert ('지원되지않는 모바일기기 입니다.');
}
}
*^_^* 감사합니다.