WordPress.org

Ready to get started?Download WordPress

Forums

I'll try my luck here with the FLV Embed MYSTERY... (27 posts)

  1. akibahoward
    Member
    Posted 1 year ago #

    Problem - WP blog plays video on 'index' page, but will not play EXACT same video on any other pages of blog.

    MYSTERY!

    Blog URL - http://conversionassistant.com
    2ND page with SAME FLV code - http://wp.me/P2FGk1-m

    Checking View Source, you will see that both possess the SAME embed code pointing at the SAME movie.

    Home page plays movie, Talent page does not.

    Can ANYONE explain this mystery?

  2. akibahoward
    Member
    Posted 1 year ago #

    PS, I have tried EVERYTHING. Moved files around root, moved into separate folders, changed paths, even deactivated ALL plugins as well as scaled back to BASIC 2011 theme.

    The problem seems to be somewhere in some hidden corner of the WP core code that is STOPPING a second iteration of an FLV to play anywhere on the site once there is a reference to the FLVPlayer_Progressive.swf in the root.

    Ok, that's just conjecture. I have NO IDEA. Seriously, though, there MUST be an answer...someone has to have had this problem before, or be able to see the WP code, like the Matrix, and knows just where the code is stopping my movies from playing...

    hopefully and pensively crossing my fingers and whimpering....

  3. The problem is with the path to the .swf file.

    <param name="movie" value="FLVPlayer_Progressive.swf">

    This works on the home page because the file is in your website root directory. When you are on an internal page the browser is looking for this file relative to what page you are on and returning a 404 not found error.

    To fix this make the path to FLVPlayer_Progressive.swf absolute. http://example.org/FLVPlayer_Progressive.swf

  4. akibahoward
    Member
    Posted 1 year ago #

    Ok, that makes sense except on both of those pages, it is simply pointing to the exact same movie.

    So, in the interest to trying it again, I did. Here was the resulting code (which you can see live on the domain)

    <div id="apDiv1">
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="325" height="483" id="FLVPlayer">
        <param name="movie" value="http://conversionassistant.com/FLVPlayer_Progressive.swf" />
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <param name="scale" value="noscale" />
        <param name="salign" value="lt" />
        <param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=/intro/intro&autoPlay=true&autoRewind=false" />
        <param name="swfversion" value="8,0,0,0" />
        <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
        <param name="expressinstall" value="../Scripts/expressInstall.swf" />
        <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
        <!--[if !IE]>-->
        <object type="application/x-shockwave-flash" data="http://conversionassistant.com/FLVPlayer_Progressive.swf" width="325" height="483">
          <!--<![endif]-->
          <param name="quality" value="high" />
          <param name="wmode" value="transparent" />
          <param name="scale" value="noscale" />
          <param name="salign" value="lt" />
          <param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=/intro/intro&autoPlay=true&autoRewind=false" />
          <param name="swfversion" value="8,0,0,0" />
          <param name="expressinstall" value="../Scripts/expressInstall.swf" />
          <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
          <div>
            <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
            <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
          </div>
          <!--[if !IE]>-->
        </object>
        <!--<![endif]-->
      </object>
    </div>

    It clearly is now pointing to that resource. (whimpering....)

    This is the confusing part. This is what has me hng up. I tried the 'change paths' thing previously. But, thought because you mention it, I might try again.

    And, as you can see at the site now, both pages have same code, and only ONE is playing.

    (tearing up....)

    What d ya think sir....?

  5. akibahoward
    Member
    Posted 1 year ago #

    And let me clarify, when I say same code, I mean I made the adjustment in the 'secondary' file page so that it would point to the same files, with your suggestion about changing the path to the swf for page two and beyond....

    Did I miss your direction?

  6. Not sure why it is not working. Your best bet is to contact the vendor for support,
    http://flvplayer.com.

  7. akibahoward
    Member
    Posted 1 year ago #

    The only vendor that seems to be an issue would be Worpress. I can get them to play on static pages. In different folders on different pages. Its ONLY a Worpress issue.

    But thanks again.

    And sorry about the other post. Didn't realize it was same forum. I wanted to spread this around to as many areas as possible.....it's a crazy problem

  8. WP doesn't include an FLV player (it's not GPL) so ... no. Not so much us ;)

    You see how you have lines like this?

    <param name="expressinstall" value="../Scripts/expressInstall.swf" />

    Those are all relative URLs and can be problematic. What plugin are you using for FLV?

  9. akibahoward
    Member
    Posted 1 year ago #

    Mika - thanks for chiming in.

    First off, I have done this with and without plugins. Just to test, I deactivated ALL plugins and just did a basic copy and paste into the HTML editor. And, the result was that on the first page, the video streamed, on page two, nothing.

    As for the plugin that I have decided to use (ONLY) to manage the structure of the embed code, Embedit. And, as usual, when I embed it into the first page, works as you see. On any other pages, nothing.

    And just FYI, in the last 24 hours, I have tested other ideas. I have changed all paths back and forth from relative to absolute. I have tried it all.

    When it's a static HTML page, no problems. When it is a video of this type on the 'index' page, all is good. When I add this EXACT code that is on page one, to page two, nothing.

    This is the strangest thing. It almost feels like I have found a bug. I posted to the hackers list to see if someone there may have seen this before. I am coming to the slow conclusion that this may be a bug unknown to date....(wouldn't that be cool to find a bug....)

    I am stuck though. I can't seem to find ANYTHING that changes what the results are.

    What does it seem like to you?

    (i'm so confused.....softly crying...)

  10. Jackson
    Member
    Posted 1 year ago #

    Currently (you may have changed the code) - the problem is as stated previously - your relative links are causing the player not to load.

    On the sign up page, your embed code is looking for:

    http://conversionassistant.com/talent-sign-up-here-to-be-a-conversion-assistant/FLVPlayer_Progressive.swf

    Which of course doesn't exist, and returns a 404.

    In addition, even if you correct that it's then going to look for your player skin file:

    http://conversionassistant.com/talent-sign-up-here-to-be-a-conversion-assistant/Clear_Skin_1.swf

    Which will further prevent the player from loading.

    So if you were changing from relative to absolute and overlooked the skin URL, that could explain why you didn't get the results you seek.

  11. akibahoward
    Member
    Posted 1 year ago #

    Ok, now that makes some sense, but let me ask you this. Are you inferring that everything after the 'talent-sign-up-here-to....' is a directory?

    Please don't laugh. Let me explain..lol.

    That is a page. I 'add new''d a page, and named it 'talent sign up here to become a conversion assistant'. As you know, what we are looking at is the slug for that page.

    So, my question is this. How does WP look behind the page, for files? In other words, in terms of 'directory structure', I get how on the first page it is seeking the FLVPlayer_Pregressive.swf in the root. That is the path there.

    But on the second page, the path points to the same player - <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="325" height="483" id="FLVPlayer">
    <param name="movie" value="FLVPlayer_Progressive.swf" />
    <param name="quality" value="high" />

    only the path to the file has changed. And again, I apologize for extending this further than I imagine I needed to...

    But how is it again, that WP is looking to the root of the 'talent-sign-up...' when that isn't a directory? Shouldn't it just look to the root for the same player each time?

    Thanks.....I REALLY appreciate your help...

  12. Jackson
    Member
    Posted 1 year ago #

    WP isn't looking for anything - your browser is.

    <param name="movie" value="FLVPlayer_Progressive.swf" />

    That is a relative URL: http://www.webreference.com/html/tutorial2/3.html

    It's meaning is relative to the context in which it appears. In this case on a page whose URL is : http://conversionassistant.com/talent-sign-up-here-to-be-a-conversion-assistant/

    So your relative URL = http://conversionassistant.com/talent-sign-up-here-to-be-a-conversion-assistant/FLVPlayer_Progressive.swf when the browser tries to load the player.

  13. akibahoward
    Member
    Posted 1 year ago #

    Ok. Now I know I sound like I don't get what you're saying...I do.

    It's just that I am learning something new here and I want to make sure I get it.

    So, let me just take a sec...

    Here is an example of what I was referring to in terms of 'directory' versus 'page' (which I am sure you clearly understand, I think it's me..)

    On this page - http://ineedaloanmod.com/test

    All elements are seeking the FLVPlayer_Progressive.swf that is in the /test/ directory. I get that.

    On this page - view-source:http://conversionassistant.com/intro/Untitled-2.html same thing. The FLVPlayer_Progressive is IN the root folder of where THIS document resides, and as you explain, that is where the browser is looking for the player.

    This makes sense to me so far.

    Where I get lost is how this works on WP when it's a dynamic page. In the above examples, the forward slash indicates (usually) a directory switch - from the root of the domain, to either a 'page (html, php or otherwise) where it terminates, OR, into a new directory (like /test/).

    In this case, the /talent-sign-up-.../ is only pointing to a page, not a directory, as in test.

    Now according to your example, in my working examples above, the /test/ example for instance, you are saying that the browser is looking for the player at
    http://ineedaloanmod.com/test/index.html/FLVPlayer.Progressive.swf when we know that it is 'finding' it at
    http://ineedaloanmod.com/test/FLVPlayer_Progressive.swf (working version)

    So in this case, it would logically follow (by the examples that are working) for the non working page 'talent' the path to the player SHOULD be, based on what works elsewhere,
    http://conversionassistant.com/FLVPlayer_Progressive.swf since there is no directory to PUT the player file into at
    http://conversionassistant.com/talent-sign-up-to.../ (its just not a directory like /test/ so I don't understand how IT is the place where the browser is looking to, for the file....)

    Geez I hope that made sense....and please know I am NOT trying to be difficult. I like your logic, except there just isn't a 'directory' to put the FLVPlayer file into at the /talent-sign.../ location....

    a

  14. akibahoward
    Member
    Posted 1 year ago #

    Ok....now while just thinking through this, here's a question....and I ask it because of this;

    The page we are in discussion abut is dynamically created. This is my issue with the path. It has the markings of a directory, but it is a dynamic piece of content only generated when a link in WP is clicked.

    Question - is there a way to add code to my WP core, that would tell WP to always use the FLVPlayer that is located in ONE specific place?

    This way, I could have the player file in ONE place and just worry about the paths to each of the files individually.

    See, I think the issue is much of what you are saying. There is a hiccup in the path process here. But it's not anything I could fix on my end because as I have said, there is no where to PUT the FLVPlayer_Progressive file at the path you describe. that is obviously because of it's dynamic nature.

    So, it seems the only way would be to hardcode the location of the player file for universal use all around the WP site.....

    Does that make any sense?

  15. akibahoward
    Member
    Posted 1 year ago #

    Just for reference, I changed the paths on the 'talent-...' page to point to the directory WHERE the FLV file is (the one playing successfully on the index page) and still nothing.

    Ya know...I just wanted to mention, the page that is playing the video now, is set as the 'static page' in the blog (it's one of four pages created on the blog). Is it possible there is something to the idea of the 'static' page element? I'll test it while I'm away, but I was just wondering...because the page that is playing a video was created the same was the page that isn't was. That's what is so confusing.

    Same method. Same page concept. Same embed (exactly and with path changes) and only one page will play.
    ok enough rambling....sorry.

  16. akibahoward
    Member
    Posted 1 year ago #

    NEW NEWS!!!!! Haven't solve it yet, but here is what I tried (based on my last post)

    I turned off 'static front page' and set it to 'last posts' (The reading setting...of course)

    And this stopped even page ONE from loading. So now, with the blog as a non static page blog, NO videos play....?

    The code was COMPLETELY stripped out. Nothing there. Now maybe I am into another problem here, but what the heck is going on with THIS?

    I turned off 'static front page' and all of the suddent ALL of the embed code is stripped out?

  17. Jackson
    Member
    Posted 1 year ago #

    Your browser sees http://conversionassistant.com/talent-sign-up-here-to-be-a-conversion-assistant/ as a directory

    On the server side that equals http://conversionassistant.com/index.php?p=22

    Use the network inspector in Chrome or Firebug, and you'll see where the files are not loading.

    Good luck, sorry I couldn't be more help.

  18. akibahoward
    Member
    Posted 1 year ago #

    Rather than trying to see files that are not loading, I'm assuming you're saying you don't know how to get them TO load seeing as it really isn't a directory.

    Cuz, your logic makes all the sense in the world. If it sees it as a directory, then of course it would be looking IN it to find the file.

    So was in an added intrigue when you read about how when I turned off 'static' it shut down ALL videos?

    Ok, thanks again...I'll keep trolling.....
    (sounded weird...sorry)

  19. Jackson
    Member
    Posted 1 year ago #

    Rather than trying to see files that are not loading

    If you want to figure this out, you're going to have to get your hands dirty. And identifying what's not loading, well that's part of your problem.

    I'm assuming you're saying you don't know how to get them TO load seeing as it really isn't a directory.

    You assume wrong.

    Simple - use an absolute path so the files can be found, eg:

    http://conversionassistant.com/FLVPlayer_Progressive.swf

    -or-

    /FLVPlayer_Progressive.swf

    Note the leading slash.

    So was in an added intrigue when you read about how when I turned off 'static' it shut down ALL videos?

    No not at all - it makes perfect sense. When page 1 is no longer the front page of the site, you have the same URL structure as page 2 - looking like a directory path.

  20. Out of sheer curiosity... where did you get this code?

    http://conversionassistant.com/FLVPlayer_Progressive.swf isn't a file that comes with WP, you see, so I'm wondering what directions you used to install all this?

  21. akibahoward
    Member
    Posted 1 year ago #

    It is generated in 'dreamweaver cs4' as mentioned above.

    AS for your solution, I tried that. In fact, while I don't expect you to read all of my ramblings above, you may note I have tried all of those solutions.

    I have adjusted the paths back and forth, with leading slashes, dots, absolute and I have tried multiple embed styles. RAW, embedit (which worked just fine on page one), and a few others.

    AS you closed out the comment you mentioned 'one there is no static page everything has the 'directory' structure.

    So that leads me back to my original question - what am I supposed to do when WP builds dynamic pages as directory looking files. Where then do I embed a video so it plays?

    OR how?

    A

  22. Jackson
    Member
    Posted 1 year ago #

    It is generated in 'dreamweaver cs4' as mentioned above.

    Um... Where? Missed that part.

    AS for your solution, I tried that. In fact, while I don't expect you to read all of my ramblings above, you may note I have tried all of those solutions.

    Yeah, you've got multiple forum threads going, posts on wp-hackers - heck I can hardly keep it straight. I don't think the verbose nature of this thread is helping your cause.

    I have adjusted the paths back and forth, with leading slashes, dots, absolute and I have tried multiple embed styles. RAW, embedit (which worked just fine on page one), and a few others.

    See if you used a tool like Firebug or the network inspector in Chrome, you'd see the problem being that your SWF now loads, but it cannot locate the specified skin file.

    The normal way to do this might be to create a folder in /wp-content/ called /video/ and place your player, skins, playlist etc in there.

    Then wherever you embed, you use absolute paths to reference the player, so it's irrelevant where the embed happens front page or interior page.

    Why the player is looking for the skin in a location relative to the page being viewed - I don't know - that's a question for the player. I'm sure there's a config option for you to specify the path to the skin files.

    If you're still fighting this, you may save yourself some frustration by finding a developer to fix.

    Best of luck

  23. A quick search of the page and the first mention of dreamweaver is when you said 'like I said above'

    Honestly, we are trying but the short answer is you don't have a WordPress question, you have a dreamweaver one.

    Why are you trying to use dreamweaver? If you have the FLV of the movie you want to show on your site, I would just upload it (yes, like an image) and then install http://wordpress.org/extend/plugins/vipers-video-quicktags/

    It has an add-on for FLV that will let you easily embed your videos, no dreamweaver required.

  24. akibahoward
    Member
    Posted 1 year ago #

    First off, thank for your engagement on this topic.

    To your point about dreamweaver - I am using it because it is my design tool. But I am ONLY using it to generate code. Period. that's it. And we may be getting a little aside here.

    This is not a dreamweaver topic - this is about wordpress. Now admittedly it could be about my paths, or some other weird element, but I have been working with wordpress for years now, and this is a NEW and unique situation that has never happened before.

    I have done this video thing with these specialty videos before. And further, as mentioned in other posts ( as you say you read through them all) it was working on one, but not the other page.

    I have tried viper. It doesn't solve this issue, because as I can see, and as you and others have mentioned, it is more about paths than anything else.

    Dreamweaver has very little to do with this, and my evidence is that embed code used from numerous different sources only adjust code slightly. They still have numerous lines of 'object' code that gets embedded. And, as noted above (I believe here) when removing the 'static page' setup, all embed code gets stripped out.

    So um.......

    A

    But for the sake of confirming what we are all saying here, I am about to test the viper again.....

  25. I get what you're saying, but you're using a non-optimal tool to generate code. (Dreamweaver writes code intended for how it manages an install, and WP is not generally the best thing to combine with it.)

    Let's forget dreamweaver for a minute.

    You're trying to embed ... what? A SWF or an FLV?

  26. akibahoward
    Member
    Posted 1 year ago #

    Well, I embed an FLV. If you take a look at the pages now, I have reset everything to it's original brokeness.

    http://conversionassistant.com plays the original video.

    THEN, I reset the permlink structure as it was creating this trailing slash that (only in MY mind) constitutes the directory reference. So now, it's all open links (bad for SEO but just testing)

    Then, I reset the code. As you will see on page one, video plays. It's an FLV with transparency...blah blah blah.

    So then, your commentary got me thinking, maybe this resides in the pathing issue.

    You were right, but it wasn't what either of us have mentioned to this point.

    I have gotten videos to run now on two pages. The problem was the trailing slash. When I adjusted the permalink structure to default, eliminating the trailing slash, it appears all is fine now, as the browser is now looking to the root (or whereever I hae the files) to find the player and initiate the FLV.

    So, it seems for now, problem solved and ONLY because you engaged me here. I'm tellin you, if you have a project or plugin you need a donation for, GIVE ME A WEEK, and I will be launching this product and will GLADLY donate to anything you have working.

    Your mind is a great thing and it helped me solve this issue. YOU ARE THE MAN!

  27. The trailing slash on permalinks? That's ... odd. But hey, man, if it works without you having to throttle things, I'm for it :)

    Sometimes you have to start thinking in a totally random direction to find the right answer, because your brain gets bogged down on 'But it must be this!' That's why I always go out for a walk ;)

    (I always take donations for my plugins and ebooks, but we don't solicit here, cause it's gauche (and against the rules). If you wanna, you will. My site's linked off my name ;) )

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags