Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: Problem embedding Video Player

  1. #1
    Join Date
    Apr 2010
    Posts
    58
    Thanks
    5
    Thanked 1 Time in 1 Post

    Default Problem embedding Video Player

    So this may sound really dumb, but I am having problems with my embedding. The problem seems to be when I attempt to embed using

    <object> <param><embed> etc...

    The .swf shows up but I don't see a player nor anything from the xml playlist (thumbs).

    However, the really odd thing is that when I embed it using <iframe src=""> there are no problems.

    I also Published through Flash and it seems to work fine in it's own .html doc, but I can't get it to work in my page without an iframe.

    Regular embedding (does not work)

    Code:
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="900" height="440" id="motiongraphicsVideoPlayer" align="middle">
                        <param name="allowScriptAccess" value="sameDomain" />
                        <param name="allowFullScreen" value="false" />
                        <param name="movie" value="flash/motiongraphicsVideoPlayer.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#cbcfd8" />	<embed src="flash/motiongraphicsVideoPlayer.swf" quality="high" bgcolor="#cbcfd8" width="900" height="440" name="motiongraphicsVideoPlayer" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
                        </object>
    iframe (does work)

    Code:
    <iframe src="flash/motiongraphicsVideoPlayer.swf" width="900" height="440" frameborder="0" scrolling="no"></iframe>
    I really don't want to use iframes, but I can't get it to work any other way.

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,486
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    I am going to go over really quickly how to properly embed. It fairly simple, but keep along.

    The reason for this is mainly because the embed and object tags aren't made for all browsers. So here is what you are going to do:

    1. Download the attached zip file and extract it to your desktop. Inside find the folder named "swo" and upload the entire thing as-is to your server. anywhere is fine, just inside the root is perfect, so it can be accessed at : http://www.yoursite.com/swo/

    2. Open your html page and copy and paste the following code where you want your Flash movie to appear on the page:

    Code:
    	<div id="flashcontent">
    
    		<strong>You need to upgrade your Flash Player</strong>
    		This is replaced by the Flash content. 
    		Place your alternate content here and users without the Flash plugin or with 
    		Javascript turned off will see this. Content here allows you to leave out <code>noscript</code> 
    		tags. Include a link to <a href="swfobject.html?detectflash=false">bypass the detection</a> if you wish.
    	</div>
    
    	<script type="text/javascript">
    		var so = new SWFObject("yourMovie.swf", "yourMovie", "550", "400", "8.0.0", "#323935");
    		so.addParam("quality", "best");
    		so.addParam("wmode", "transparent");
    		so.write("flashcontent");
    		</script>
    3. add the following line to your <head> section:

    Code:
    <script type="text/javascript" src="/swo/swfobject.js"></script>
    4. alter the code to suit your needs. You will need to change the following:
    a. From step 2 above, your flash movie name, size, location etc needs to be put in it's place. Replace the info above with the info of your movie.
    b. ensure the location of the swfobject.js is correct.

    5. Once all files are uploaded and referenced in the code correctly, your movie should appear just fine. If not, double check the locations of all the files.

    This is SWFObject 1.5 there is a 2.0 version but it has a lot more power and variables. This is the bare minimum of what you need. Once you have it working, and you want to play around with it, check out this page for all of the SWFO1.5 variables and how to use them.

    Once you have that check out the 2.0 version found here and you will be on your way.
    {CWoT - Riddle } {OSTU - Psycho} {Invasion - Team}
    Follow Me on Twitter: @Negative_Chaos
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  3. #3
    Join Date
    Apr 2010
    Posts
    58
    Thanks
    5
    Thanked 1 Time in 1 Post

    Default

    Hey thanks again for the reply.

    I tried what you suggested and I am still having the same problem

    See both here!

    The top example was done with the code you wrote and the bottom is the iframe.

  4. #4
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,486
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Hey.. in the code I gave you...

    change the "8.0.0" to 9.0.0

    I will have a deeper look while you do that.


    <EDIT>
    The "problem" is with the Flash file itself. I am not sure, yet, as to why. I am investigating.
    Last edited by BLiZZaRD; 04-21-2010 at 09:22 PM.
    {CWoT - Riddle } {OSTU - Psycho} {Invasion - Team}
    Follow Me on Twitter: @Negative_Chaos
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  5. #5
    Join Date
    Apr 2010
    Posts
    58
    Thanks
    5
    Thanked 1 Time in 1 Post

    Default

    Alright, I really appreciate your help.

  6. #6
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,486
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Do you have the FLA file for this Flash?

    If so, can you attach it here or upload it somewhere so I can download it and have a look?
    {CWoT - Riddle } {OSTU - Psycho} {Invasion - Team}
    Follow Me on Twitter: @Negative_Chaos
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  7. #7
    Join Date
    Apr 2010
    Posts
    58
    Thanks
    5
    Thanked 1 Time in 1 Post

    Default

    File is uploaded here

  8. #8
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,486
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Okay, I got it. I am headed out for my lunch break in a minute. When I return I will have a look and see if I can figure this out. I have narrowed it down to some call or lack of a call in the player, I still don't know why, but I tested the code I posted with 6 other flash videos and all of them worked except for yours.

    It is very odd. I will figure it out eventually though.
    {CWoT - Riddle } {OSTU - Psycho} {Invasion - Team}
    Follow Me on Twitter: @Negative_Chaos
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  9. The Following User Says Thank You to BLiZZaRD For This Useful Post:

    europe451 (04-21-2010)

  10. #9
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,486
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    A little more complicated than it first appeared, and will take me a little bit of time to diagnose.

    The good news is I have everything I need on my home computer.

    The bad news is I am currently working 12+ hour days, and I am still at work right now. Also, I won't be on my home computer tonight, and probably not until I get home tomorrow night.

    If you have the time (and patience) I will get to it ASAP. It has become more of a quest for me now. I just need the time to work on it. And to get some sleep.

    Look for an update in about 15 hours or so. Sorry.
    {CWoT - Riddle } {OSTU - Psycho} {Invasion - Team}
    Follow Me on Twitter: @Negative_Chaos
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  11. #10
    Join Date
    Apr 2010
    Posts
    58
    Thanks
    5
    Thanked 1 Time in 1 Post

    Default

    That's alright if it takes that long, the iFrame will work for now.

    Again I appreciate you taking the time to work on this.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •