Jump to content
php.lv forumi

Problēmas ar swfobject.embedSWF.


skrach

Recommended Posts

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}

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...