(Support Request) unable to view posted video's.

Discussion in 'Announcements & Community Discussions' started by Slyhunter, Dec 8, 2012.

  1. Slyhunter

    Slyhunter New Member Past Donor

    Joined:
    Jul 20, 2010
    Messages:
    9,345
    Likes Received:
    104
    Trophy Points:
    0
    I can see both in the original message.
     
  2. Shangrila

    Shangrila staff Past Donor

    Joined:
    Aug 21, 2010
    Messages:
    29,114
    Likes Received:
    674
    Trophy Points:
    113
    Gender:
    Female
    I can't on FF, but can on GC

    - - - Updated - - -

    I can't on FF, but can on GC
     
  3. Slyhunter

    Slyhunter New Member Past Donor

    Joined:
    Jul 20, 2010
    Messages:
    9,345
    Likes Received:
    104
    Trophy Points:
    0
    I could see the videos in the quoted reply earlier but now that I've returned to the thread to read another reply they are just black screens. I use FF. The originals are black screened now too.
     
  4. Shangrila

    Shangrila staff Past Donor

    Joined:
    Aug 21, 2010
    Messages:
    29,114
    Likes Received:
    674
    Trophy Points:
    113
    Gender:
    Female
    Try in Chrome. Its amazing.
     
  5. Ctrl

    Ctrl Well-Known Member Past Donor

    Joined:
    Oct 11, 2008
    Messages:
    25,745
    Likes Received:
    1,944
    Trophy Points:
    113

    Ok... to test a theory please go here http://www.practiceboard.com/

    it is just a little html scratchpad. Paste each of these and tell me if you can see them. This is new:
    This is current:
    Just a few characters different. What I would hope is you see the first or second and not the third.

    these links are missing http: at the front I see as well... the first is how I would expect the link to be given... the second is closer to how it is done now.
     
  6. Dark Star

    Dark Star Senior Admin Staff Member Donor

    Joined:
    Dec 2, 2012
    Messages:
    3,617
    Likes Received:
    133
    Trophy Points:
    63
    First of all, Cntrl, thank you for what you're doing. We really appreciate it.

    However... I'm seeing the second, but not the first. Using IE10, Windows 8.
     
  7. Ctrl

    Ctrl Well-Known Member Past Donor

    Joined:
    Oct 11, 2008
    Messages:
    25,745
    Likes Received:
    1,944
    Trophy Points:
    113
    If you get a sec try this please.

    http://www.politicalforum.com/annou...able-view-posted-videos-8.html#post1062425729

    It looks like a malformed url.

    src="//www.youtube.com/embed/b-7U2vNvycY?wmode=opaque" frameborder="0"

    is what we are getting. I would expect to see

    src="http://www.youtube.com/embed/b-7U2vNvycY&wmode=opaque" frameborder="0"
     
    Dark Star and (deleted member) like this.
  8. Ctrl

    Ctrl Well-Known Member Past Donor

    Joined:
    Oct 11, 2008
    Messages:
    25,745
    Likes Received:
    1,944
    Trophy Points:
    113
    I take it back... the ? is correct, not the &.

    It just should probably have http: in front...
     
  9. Dark Star

    Dark Star Senior Admin Staff Member Donor

    Joined:
    Dec 2, 2012
    Messages:
    3,617
    Likes Received:
    133
    Trophy Points:
    63
    Well, that third one, with the "?" and without the "http", works for me. Was that the one you edited in? The third one?

    - - - Updated - - -

    As does the second one, with both the "?" and the "http."
     
  10. Ctrl

    Ctrl Well-Known Member Past Donor

    Joined:
    Oct 11, 2008
    Messages:
    25,745
    Likes Received:
    1,944
    Trophy Points:
    113
    Ok... was just about to have a wth moment...

    The second one
    <iframe class="restrain" title="YouTube video player" width="640" height="390" src="http://www.youtube.com/embed/b-7U2vNvycY?wmode=opaque" frameborder="0"></iframe>
    Is correct.

    The third is what we are generating now, and depending on how the browser handles iframes, it is either working, or it isn't. EVERYTHING works for me... on ff... but am in linux...

    I think the code maintainer just needs to edit a template somewhere including the http: prefix.

    That is assuming that those who are having a problem can see number 2.
     
  11. Dark Star

    Dark Star Senior Admin Staff Member Donor

    Joined:
    Dec 2, 2012
    Messages:
    3,617
    Likes Received:
    133
    Trophy Points:
    63
    I can't tell you how useful this is. I'm not the one who does the code (little over my head), but can you explain in dummy terms what we did here?
     
  12. Shangrila

    Shangrila staff Past Donor

    Joined:
    Aug 21, 2010
    Messages:
    29,114
    Likes Received:
    674
    Trophy Points:
    113
    Gender:
    Female
    [​IMG]

    Thanks for your patience.
     
  13. Ctrl

    Ctrl Well-Known Member Past Donor

    Joined:
    Oct 11, 2008
    Messages:
    25,745
    Likes Received:
    1,944
    Trophy Points:
    113
    Well... it would be hard to say exactly where it went wrong without knowing more about the system.

    I am working on the assumptions:
    The data all exists in a database
    when the {video} (replace {} with [] in your head, if I type it it will create the tag) tag is hit, the PHP generates html in a specific format. eg:
    {video=youtube;b-7U2vNvycY}http://www.youtube.com/watch?v=b-7U2vNvycY{/video}
    generates
    <iframe class="restrain" title="YouTube video player" width="640" height="390" src="//www.youtube.com/embed/b-7U2vNvycY?wmode=opaque" frameborder="0"></iframe>

    Whatever addon or template is being used to convert this, is malforming it. I am not familiar with the BBS you are using, and am just guessing based on the nature of the beast that this is where to look. Some template, or addon, is spitting out this code... and not forming it correctly.

    Again IF someone with a problem has none with 2. It is a pretty good bet this is the problem.
     
  14. Dark Star

    Dark Star Senior Admin Staff Member Donor

    Joined:
    Dec 2, 2012
    Messages:
    3,617
    Likes Received:
    133
    Trophy Points:
    63
    I get it. That's very helpful, as well. I'll be talking about this with the site owner, and see if that's correctible in our code.
     
  15. Ctrl

    Ctrl Well-Known Member Past Donor

    Joined:
    Oct 11, 2008
    Messages:
    25,745
    Likes Received:
    1,944
    Trophy Points:
    113
    I am confident this is the problem now. I installed xp in a vm and downloaded firefox and flash. There is eratic display behavior with the current code... esp when there is more than one video on a page.

    [​IMG]

    I rewrote it using the html: prefix and the results are consistent.

    [​IMG]
     
  16. Ctrl

    Ctrl Well-Known Member Past Donor

    Joined:
    Oct 11, 2008
    Messages:
    25,745
    Likes Received:
    1,944
    Trophy Points:
    113
    Final thought... it is not as though when parsed, it is ADDING http:

    It is ripping the address from between the tags, and attempting to dynamically generate html. So... I would look at whatever is parsing it... this is probably the parser not wanting to deal with the colon out of laziness so they use everything after it instead, which works MOST of the time for MOST things.

    If you are grepping or doing a mass search of some sort through the source code, I would look for:

    iframe class=

    Which will probably return something like this (param is made up, could say anything):
    But could be more ambiguous than that even and look like this:
    But lets pretend it is the first one. Should be able to change it to
    That would be a way to go about it... quick and greasy. I don't think you are using iframes for anything else, and this one is special. Maybe search for wmode if there are other instances.
     
  17. Durandal

    Durandal Well-Known Member Donor

    Joined:
    May 25, 2012
    Messages:
    55,702
    Likes Received:
    27,237
    Trophy Points:
    113
    Gender:
    Male
    I can't use Flash on my current platform, but for those YouTube videos that won't play without it I have a Firefox/Iceweasel add-on called Video DownloadHelper..
     
  18. Ctrl

    Ctrl Well-Known Member Past Donor

    Joined:
    Oct 11, 2008
    Messages:
    25,745
    Likes Received:
    1,944
    Trophy Points:
    113
    As things go, once that parser is found... I can also give you code to prevent banned/unregistered users from seeing images/videos.

    My earlier use of curly brackets to demonstrate code might be confusing with my last post. In these scripting languages, this example is probably more likely what you will find
    {param} and {link} are what is known as bracket expansions. A variable is created with the link information in the video tag. Special characters such as : require special handling, both reading and writing, and doing so with dynamic content is annoying, so it is my guess whoever wrote this took the hacky route of just ignoring it, and taking everything after it.

    So... bracket expansion...

    When the parser reads our embedded video link (ignore single quotes):
    it creates a variable out of that (though probably 2 variables based on its formatting of the video tag) the variables would be akin to:
    Again, param and link are just names, and can be anything... don't be looking for them, I am just giving examples.

    So it is either changing "video=youtube" to "//www.youtube.com" or it is sucking the link from between the the ]*[ and ignoring everything before and up to special characters, and everything after the last /

    When the braces are hit, they expand to the variable name, so from:
    we end up with:
    I cannot know exactly how this is formed... but it WILL look very similar to one of the examples I gave... and you should be able to just drop "http:" in there before the expansion.
     
  19. Ctrl

    Ctrl Well-Known Member Past Donor

    Joined:
    Oct 11, 2008
    Messages:
    25,745
    Likes Received:
    1,944
    Trophy Points:
    113
    I see the changes have been implemented... but I hear it has not fixed it.

    :steamed:

    I will continue to look. I am guessing it goes back to that API change... dunno. iframes are bad joojoo. Will get back to you if I can identify the root cause. I assume this board has a test environment, and backups. If the powers that be wanted to give me limited access to that to muff around in it would be a whole lot easier/faster... my feelings won't be hurt if not :)

    I just have a compulsion to fix things... it is like a tick. I want to identify the problem and solve it.
     
  20. Ctrl

    Ctrl Well-Known Member Past Donor

    Joined:
    Oct 11, 2008
    Messages:
    25,745
    Likes Received:
    1,944
    Trophy Points:
    113
    Ok... this appears to be where the problem is, and I think my first assessment was right, with the changes to the iframe API, it is building wrong for this case scenario
    http://pastie.org/7101873

    the relevant errors are chucked between *************************************************************************

    There is a nasty little .css which looks to be generated by some template somewhere... that is the source of these errors named (for me at the moment) www-embed-vfldKrJ4Q.css
    This may be generated all the time with a floating name... at least when I see random characters that is what I assume. It's contents are also ugly (another reason to assume it is dynamically generated)... but here you go.
    http://pastebin.com/fT77MK0N


    So... without understanding more about how this stuff is generated, that is probably as much help as I can be atm.
     
  21. Ctrl

    Ctrl Well-Known Member Past Donor

    Joined:
    Oct 11, 2008
    Messages:
    25,745
    Likes Received:
    1,944
    Trophy Points:
    113
    Oh... duh... that css is generated youtube side... youtube and google. So... something simpler our side.

    My guess is now the wmode declaration. Please try separating it from the URL... like so (continuing with the example from before) from:

    <iframe class="restrain" title="YouTube video player" width="640" height="390" src="{param}/embed/{link}?wmode=opaque" frameborder="0"></iframe>

    to

    <iframe class="restrain" title="YouTube video player" width="640" height="390" src="{param}/embed/{link}" wmode="opaque" frameborder="0"></iframe>

    If you have a bunch of predefined params inside of an object tag, you will want to enter it there as well. For example...
    <PARAM NAME="loop" VALUE="false">
    <PARAM NAME="menu" VALUE="false">
    <PARAM NAME="quality" VALUE="high">
    <PARAM NAME="bgcolor" VALUE="#FFFFFF">
    <PARAM NAME="wmode" VALUE="opaque">

    wmode is not an iframe element, and I believe it is being treated as such inside of the iframe tag. See
    http://www.kirupa.com/forum/showthread.php?239542-iframe-and-wmode-quot-transparent-quot
    and
    http://productforums.google.com/forum/#!topic/youtube/uZd_OU-ozHo

    If you DO have params defined within the object, then you might try dropping the wmode altogether from the iframe embed.
     
  22. Bluesguy

    Bluesguy Well-Known Member Donor

    Joined:
    Jun 13, 2010
    Messages:
    154,236
    Likes Received:
    39,255
    Trophy Points:
    113
    Gender:
    Male
    So this just downloads for local viewing? Missing the inbrowser viewing on my android devices.
     
  23. Durandal

    Durandal Well-Known Member Donor

    Joined:
    May 25, 2012
    Messages:
    55,702
    Likes Received:
    27,237
    Trophy Points:
    113
    Gender:
    Male
    Yep, you can generally get a .mp4 or .flv from YouTube, and at least a .flv from other sites, using that. I don't know what formats an Android can play back..
     
  24. Ctrl

    Ctrl Well-Known Member Past Donor

    Joined:
    Oct 11, 2008
    Messages:
    25,745
    Likes Received:
    1,944
    Trophy Points:
    113
    It would be really nice if you could pull posts in the search utility rather than the thread which contains the specific post you are looking for (eg a quote from a specific user)... I hate having to go through 50 pages of a thread to try and find one post.

    Also should be noted that if a search returns more than nine pages, it cannot display them (ten and beyond that is).
     
  25. Ctrl

    Ctrl Well-Known Member Past Donor

    Joined:
    Oct 11, 2008
    Messages:
    25,745
    Likes Received:
    1,944
    Trophy Points:
    113
    Scratch that last bit... it simply produces fewer pages than it thinks exists. In the example I noticed it on... 9 was the last page, not 15 (as displayed 1-15)... so trying to jup to pages 10+ broke.
     

Share This Page