FWDEVPUtils.onReady(function(){
FWDEVPlayer.useYoutube = "yes";
FWDEVPlayer.videoStartBehaviour = "stop";
new FWDEVPlayer({
//main settings
instanceName:"player1",
parentId:"myDiv",
mainFolderPath:"content",
skinPath:"metal_skin",
displayType:"responsive",
autoScale:"yes",
facebookAppId:"2136xxxxx987",
videoSourcePath:"",
posterPath:"",
rightClickContextMenu:"developer",
addKeyboardSupport:"yes",
autoPlay:"no",
loop:"no",
maxWidth:790,
maxHeight:444,
volume:.8,
backgroundColor:"#000000",
posterBackgroundColor:"#0099FF",
//logo settings
showLogo:"yes",
hideLogoWithController:"no",
logoPosition:"topRight",
logoLink:"http://site.com",
logoMargins:5,
//controller settings
showControllerWhenVideoIsStopped:"yes",
showVolumeScrubber:"yes",
showVolumeButton:"yes",
showTime:"yes",
showYoutubeQualityButton:"yes",
showFacebookButton:"no",
showEmbedButton:"yes",
showFullScreenButton:"yes",
repeatBackground:"yes",
controllerHeight:43,
controllerHideDelay:3,
startSpaceBetweenButtons:11,
spaceBetweenButtons:11,
mainScrubberOffestTop:15,
scrubbersOffsetWidth:4,
timeOffsetLeftWidth:2,
timeOffsetRightWidth:3,
volumeScrubberWidth:90,
volumeScrubberOffsetRightWidth:2,
timeColor:"#999999",
youtubeQualityButtonNormalColor:"#999999",
youtubeQualityButtonSelectedColor:"#FFFFFF",
//embed pencere
embedWindowCloseButtonMargins:0,
borderColor:"#333333",
mainLabelsColor:"#FFFFFF",
secondaryLabelsColor:"#a1a1a1",
shareAndEmbedTextColor:"#5a5a5a",
inputBackgroundColor:"#000000",
inputColor:"#FFFFFF",
//reklam
openNewPageAtTheEndOfTheAds:"yes",
adsVideoSourcePath:"videos/mobile.mp4",
adsButtonsPosition:"right",
adsPageToOpenURL:"http://site.com",
adsPageToOpenTarget:"_blank",
adsThumbnailPath:"content/posters/thumbnail.jpg",
skipToVideoText:"İzlemeye başlamak için son: ",
skipToVideoButtonText:"Reklamı Geç",
timeToHoldAds:4,
adsTextNormalColor:"#999999",
adsTextSelectedColor:"#FFFFFF",
adsBorderNormalColor:"#666666",
adsBorderSelectedColor:"#FFFFFF"
});
});
player.js kodları bu.. gördüğünüz gibi 14 ve 15nci satırlarda filmurl özel alanındaki mp4 url linki ve post thumbnail url adreslerini çekmem gerekiyot
videoSourcePath:"",
posterPath:"",
kodları bu haliyle direk single.php ye ekleyince çalışıyor.. Ancak .js uzantısıyla ekleyince haliyle içindeki php kodlar sebebiyle çalışmıyor.