Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
Thread Tools Display Modes
Share |
  #1  
Old 06-17-2014, 01:59 PM
kontrol's Avatar
kontrol kontrol is offline
Contributing Member
 
Join Date: 02-10-10
Posts: 225
iTrader: 0 / 0%
play embeded video via jquery

I have the jquery below to display a box
Code:
$("#disp").live('click', function(){ var vm = $(this).attr('class'); $("#overlay").show(); $.ajax({ type: "POST", url: "zoom.php", data: "id="+vm, success: function(data){ $("#zoomer").html(data); $("#zoomer").slideDown(); } }); }); this is the flash object in zoom.php <object id=0 type="application/x-shockwave-flash" data=player_flv_maxi.swf width=480 height=320> <param name="movie" value=player_flv_maxi.swf /> <param name="wmode" value="opaque" /> <param name="allowFullScreen" value="true" /> <param name="allowScriptAccess" value="sameDomain" /> <param name="quality" value="high" /> <param name="menu" value="true" /> <param name="autoplay" value="false" /> <param name="autoload" value="false" /> <param name="FlashVars" value="flv=Barbee-Love u Anyway.flv&width=480&height=320&autoplay=0&autoload=0&buffer=5&buffermessage=&playercolor=464646&loadingcolor=999898&buttoncolor=ffffff&buttonovercolor=dddcdc&slidercolor=ffffff&sliderovercolor=dddcdc&showvolume=1&showfullscreen=1&playeralpha=100&title=Barbee-Love u Anyway.flv&margin=0&buffershowbg=0" /> </object>
the end result should be such that when the #disp is clicked, the box should display with the video in it and start playing. the box displays but the it does not play. pls help
 
Reply With Quote

Advertisement

Advertisement

  #2  
Old 06-17-2014, 05:23 PM
mantapjaya's Avatar
mantapjaya mantapjaya is offline
Contributing Member
 
Join Date: 06-15-14
Location: Surabaya
Posts: 55
iTrader: 0 / 0%
Wooo,,, thank you for scripnya, cool and unique
 
Reply With Quote
  #3  
Old 06-17-2014, 05:25 PM
snakeair snakeair is offline
Super Moderator - Rest in Peace 2018
 
Join Date: 12-31-07
Location: Medford, NJ
Posts: 54,771
iTrader: 3 / 100%
Quote:
Originally Posted by mantapjaya View Post
Wooo,,, thank you for scripnya, cool and unique
Any coding advice for the thread creators issue?
 
Reply With Quote
  #4  
Old 06-17-2014, 06:20 PM
Katt's Avatar
Katt Katt is offline
Moderator
 
Join Date: 12-14-13
Location: Texas
Posts: 1,563
iTrader: 0 / 0%
I think you're going to have to completely replace the object code when the box is clicked, in effect switching the object code (with autoplay disabled) for a new object code (with autoplay enabled). See this for a similar situation - you should be able to use their code with minor modifications : http://stackoverflow.com/questions/1...ded-video-file
 
Reply With Quote
  #5  
Old 06-18-2014, 01:26 AM
kontrol's Avatar
kontrol kontrol is offline
Contributing Member
 
Join Date: 02-10-10
Posts: 225
iTrader: 0 / 0%
in my case the object does not display at all
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
youtube video embeded on my website grasshoppersean Multimedia Video 25 07-04-2014 07:26 PM
embeded youtube video - validation error eb626 Coding Forum 3 06-13-2010 06:42 PM
cant get video to play at all please help gbraatz Coding Forum 4 11-06-2008 03:13 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 12:55 AM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC