skrach Posted May 3, 2011 Report Share Posted May 3, 2011 Sveiki! Izmantoju smarty , ir tāda problēma ka nerāda video player. Kad uzlieku flashvars.autoPlay = "true"; , tad dziesma skan, bet neko nerāda. Varbūt kāds var palīdzēt. <div id="videoPlayer"> </div> {literal} <script type="text/javascript"> var flashvars = {}; flashvars.mediaURL = "http://www.youtube.com/watch?v={/literal}{$youtube_id}{literal}"; flashvars.teaserURL = "http://img.youtube.com/vi/{/literal}{$youtube_id}{literal}/0.jpg"; flashvars.allowSmoothing = "true"; flashvars.autoPlay = "false"; flashvars.buffer = "6"; flashvars.showTimecode = "true"; flashvars.loop = "false"; flashvars.controlColor = "0x0191d0"; flashvars.controlBackColor = "0x000000"; flashvars.scaleIfFullScreen = "true"; flashvars.showScalingButton = "true"; flashvars.defaultVolume = "100"; flashvars.crop = "false"; flashvars.onClick = "togglePlay"; var params = {}; params.menu = "false"; params.allowFullScreen = "true"; params.allowScriptAccess = "always" var attributes = {}; attributes.id = "videoplayer"; attributes.bgcolor = "#000000" function embedSWF(){ swfobject.embedSWF("swf/videoplayer.swf", "videoPlayer", "650", "380", "9", "swf/expressinstall.swf", flashvars, params, attributes); } embedSWF(); </script> {/literal} Quote Link to comment Share on other sites More sharing options...
daGrevis Posted May 4, 2011 Report Share Posted May 4, 2011 Kāpēc tiek izmantots Smarty? Quote Link to comment Share on other sites More sharing options...
skrach Posted May 5, 2011 Author Report Share Posted May 5, 2011 Kāpēc tiek izmantots Smarty? Jo izmantoju scriptu kurā vēlos ielikt normālu video player.. :) Quote Link to comment Share on other sites More sharing options...
daGrevis Posted May 5, 2011 Report Share Posted May 5, 2011 Jebko, ko var izdarīt ar Smarty, var izdarīt arī bez Smarty. Tikai ar Smarty būs ilgāk no tehniskā viedokļa un, protams, jāmācās jauna sintakse. Vēl lieki daži simti kilobaiti... Nu tā. Vai arī kļūdos? Quote Link to comment Share on other sites More sharing options...
skrach Posted May 9, 2011 Author Report Share Posted May 9, 2011 Nē nu tā ir, bet ja scripts veidots ar smarty, tad es arī turpinu viņu tālāk veidot ar smarty. :) Jebko, ko var izdarīt ar Smarty, var izdarīt arī bez Smarty. Tikai ar Smarty būs ilgāk no tehniskā viedokļa un, protams, jāmācās jauna sintakse. Vēl lieki daži simti kilobaiti... Nu tā. Vai arī kļūdos? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.