var userAgent = navigator.userAgent;
var videoSourceStr = “”;
if (userAgent.indexOf(‘iPhone’) != -1 || userAgent.indexOf(‘iPad’) != -1) {
videoSourceStr = ‘http://vod.tvchosun.gscdn.com/vod/_definst_/mp4:2013_news/news_pan/0129/pan_puls_20130129_97r_1b_27.mp4/playlist.m3u8’;

htmlStr = ”;
htmlStr += ”;
htmlStr += ”;
$(‘#player’).html(htmlStr);
}else{
var so = new SWFObject(‘http://tv.chosun.com/player/hsplayer.swf’,’ply’,’550′,’340′,’10’,’#000′);
//- flash defulat attribute
so.addParam(‘allowfullscreen’,’true’);
so.addParam(‘allowscriptaccess’,’always’);
so.addParam(‘wmode’,’Opaque’);
//- hsplayer attribute
so.addVariable(‘file’,’mp4:2013_news/news_pan/0129/pan_puls_20130129_97r_1b_27.mp4′);
so.addVariable(‘autostart’,’true’);
so.addVariable(‘streamer’,’rtmp://vod.chosun.gscdn.com/vod/_definst_/’);
so.addVariable(‘controlbar’,’bottom’);
so.addVariable(‘skin’,’http://tv.chosun.com/player/skin.zip’);
so.write(‘player’);
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s