Any embed video experts here? Why does this fuck up my site?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • InternetIsForPorn
    Confirmed User
    • Sep 2007
    • 848

    #1

    Any embed video experts here? Why does this fuck up my site?

    Ok, so I have a website that is fully ajax-based. The whole page is in ajax.

    I can easily embed the videos from youtube, using a code like this

    <object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/2TrJl-kU1Oc&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/2TrJl-kU1Oc&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>

    They load fine and I can navigate away from the page with that video while it's loading without any problems.

    But whenever I watch a user uploaded video, when it starts loading, you cannot navigate away from the page during the loading time.

    I have been trying to make a code similar to the one above, but for some odd reason I can't. The closest I got is this -- and it still doesn't let me navigate away from the page.

    <object width="425" height="344" type="application/x-shockwave-flash" data="/misc/flvplayer.swf" flashvars="file=/image.out?stream=<?=$vInfo[0]['filename']?>.flv">
    <param name=?movie? value="/image.out?stream=<?=$vInfo[0]['filename']?>.flv"/>
    <param name=?allowFullScreen? value=?true? />
    </object>

    Seems that I need to drop the flashvars string, but if I do so, the video doesn't load at all.

    Any ideas?
  • InternetIsForPorn
    Confirmed User
    • Sep 2007
    • 848

    #2
    Oh, and here is the embed code that is used right now (with same results - cannot navigate away from the page)

    <embed type="application/x-shockwave-flash" src="/misc/flvplayer.swf" style="" id="single" name="single" quality="high" allowfullscreen="false" flashvars="file=/image.out?stream=10371.1231083501.flv&amp;logo=/misc/watermark2.png&amp;linkfromdisplay=true&amp;displa yheight=400&amp;backcolor=0x000000&amp;frontcolor= 0xCCCCCC&amp;lightcolor=0x557722&amp;autostart=tru e&amp;width=500&amp;height=400" width="500" height="400"></p>

    Btw it's a cool player with those variables, might wanna try it

    Comment

    • sortie
      Confirmed User
      • Mar 2007
      • 7771

      #3
      Originally posted by InternetIsForPorn
      Btw it's a cool player with those variables, might wanna try it
      The player is most likely the problem.

      I've built a few flv players and they all can do things differently.

      I would guess that your user uploaded video is being converted to flv at a
      higher quality and your server may stream too slow and the player is not
      handling it.

      Put the user uploaded vid on a fast server and see if it works better.
      If it does then redo the user uploaded video at a low quality on your server.

      Try a different player.

      Comment

      • InternetIsForPorn
        Confirmed User
        • Sep 2007
        • 848

        #4
        Originally posted by sortie
        The player is most likely the problem.

        I've built a few flv players and they all can do things differently.

        I would guess that your user uploaded video is being converted to flv at a
        higher quality and your server may stream too slow and the player is not
        handling it.

        Put the user uploaded vid on a fast server and see if it works better.
        If it does then redo the user uploaded video at a low quality on your server.

        Try a different player.
        The server is not the issue, we recently moved to a MUTHAFUCKA fast machine, the problem didn't disappear.

        What flash player would you recommend though?

        Comment

        • sortie
          Confirmed User
          • Mar 2007
          • 7771

          #5
          Originally posted by InternetIsForPorn
          The server is not the issue, we recently moved to a MUTHAFUCKA fast machine, the problem didn't disappear.

          What flash player would you recommend though?
          Without actually seeing what you have, I can't tell you more than that.

          The autostart code inside the player could be the problem.

          The reason I started to build flv players is because I could not find one
          that worked like I wanted.

          People seem to like the free JW player, so maybe try that one.

          http://www.longtailvideo.com/players/

          If that doesn't work then you may need to go custom.

          Comment

          • InternetIsForPorn
            Confirmed User
            • Sep 2007
            • 848

            #6
            Originally posted by sortie
            Without actually seeing what you have, I can't tell you more than that.

            The autostart code inside the player could be the problem.

            The reason I started to build flv players is because I could not find one
            that worked like I wanted.

            People seem to like the free JW player, so maybe try that one.

            http://www.longtailvideo.com/players/

            If that doesn't work then you may need to go custom.
            that player didn't help, odd.

            the youtube embed codes have 2 identical urls which lead to the movie page itself.

            is there any way I can make a code similar to that one? without having to use the flashvars=file= ?

            Comment

            • sortie
              Confirmed User
              • Mar 2007
              • 7771

              #7
              Originally posted by InternetIsForPorn
              that player didn't help, odd.

              the youtube embed codes have 2 identical urls which lead to the movie page itself.

              is there any way I can make a code similar to that one? without having to use the flashvars=file= ?
              Forget about the youtube code because that is just data that the player uses
              to do what it is programmed to do.

              You can't make the player do what it is not programmed to do by changing the html.

              Also, there is no proof that the problem is not something else on the page
              since I haven't seen it.

              Comment

              • InternetIsForPorn
                Confirmed User
                • Sep 2007
                • 848

                #8
                Originally posted by sortie
                Forget about the youtube code because that is just data that the player uses
                to do what it is programmed to do.

                You can't make the player do what it is not programmed to do by changing the html.

                Also, there is no proof that the problem is not something else on the page
                since I haven't seen it.
                The problem is obviously the conflict with the JavaScript (ajax powering the site) and the buffer that loads up in the player.

                But for some reason this doesn't bother YouTubes player...

                Comment

                • sortie
                  Confirmed User
                  • Mar 2007
                  • 7771

                  #9
                  Originally posted by InternetIsForPorn
                  The problem is obviously the conflict with the JavaScript (ajax powering the site) and the buffer that loads up in the player.

                  But for some reason this doesn't bother YouTubes player...
                  Because youtube player is totaly different.

                  A flv player is not really a device; it's a computer program.

                  It is built with a programming language called action script.

                  The programmer can make a bad player that kills your site/browser.

                  The programmer has control over the buffering/etc in the action script.
                  How the programmer chooses to do this can have an impact on the player working.

                  The player could be badly coded and cooking your CPU and so you can't leave
                  the page.

                  Comment

                  Working...