android - Video can not play in facebook share by flowplayer -
i share video on facebook android phonegap applicatoion. can share video picture in facebook. can not play video. integrate flowplayer. upload flowplayer.commercial-3.2.15.swf,flowplayer.controls-3.2.14.swf, flowplayer.pseudostreaming-3.2.11.swf , fp.js in server , code given below:
function facebookwallpost(e) { var id = e; $.post('http://influxhostserver.com/phonegap/previewvideo.php', {'id':id}, function(result) { //alert(result); var res = eval('('+result+')'); var id = res['id']; var video_no = res['video_no']; var username = res['full_name']; var video_title = res['video_title']; var video_desc = res['video_desc']; var pic = 'http://influxhostserver.com/phonegap/thumbnail/320*214/'+video_no+'.jpg'; var vid = 'http://influxhostserver.com/phonegap/video/'+video_no+'.mp4'; var swfurl ='http://influxhostserver.com/phonegap/video/flowplayer.commercial-3.2.15.swf?file='+vid; fb.init({ //appid : "168284719986345", appid : "318021858301087", nativeinterface : cdv.fb, usecacheddialogs : false }); console.log('debug 1'); var params = { method: 'feed', name: video_title, picture: pic, link:'gratitube.com', caption: 'reference documentation', description: video_desc, width: 400, height: 300, source:swfurl, type: 'video/mp4', }; console.log(params); fb.ui(params, function(obj) { console.log(obj);}); } );
}
Comments
Post a Comment