FLV Player for external FLV source problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DoDeH1
    Senior Member
    • Jan 2008
    • 224
    • 4.2.X

    FLV Player for external FLV source problem

    Hello...

    I just made an new bb code with this options:
    Title: Embed FLV Files
    BB Code Tag Name:FLV
    Replacement

    Code:
    <script type="text/javascript" src="embed/swfobject.js"></script>
    <div id="player">"Please refresh page for player"</div> 
    <script type="text/javascript">
    var s1 = new SWFObject('embed/player.swf','mpl','352','201','9');
    s1.addParam('allowscriptaccess','always');
    s1.addParam('allowfullscreen','true');
    s1.addParam('flashvars','&file={param}&frontcolor=#ffffff&screencolor=#000000&controlbar=over&backcolor=#003F86&logo=http://www.dfgrom.com/forums/logo2.png');
    s1.write('player');
    </script>
    Use {option}: No
    Remove Tag If Empty; Yes
    Disable BB Code Within This BB Code: No
    Disable Smilies Within This BB Code: No
    Disable Word Wrapping Within This BB Code: No

    Everything works just fine when I add a new post... The video shows correctly.
    When I try to add a post replay with a video something strange happens. The post replay has no video.
    Can anyone tell me how to fix this problem?

    Thank you
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    There should be no difference in BB codes between new threads and new replies. Double check the BB code used in each post to make sure it is the same.

    Comment

    • DoDeH1
      Senior Member
      • Jan 2008
      • 224
      • 4.2.X

      #3
      Hi,
      I pm U an account so U can see how it looks.
      cheers!

      Comment

      • MrNase
        Senior Member
        • Jun 2003
        • 3575
        • 3.8.x

        #4
        Try this:

        Replace

        <script type="text/javascript" src="embed/swfobject.js"></script>

        with

        <script type="text/javascript" src="FULLURLTOTHEFILE/swfobject.js"></script>




        .
        That's the end of that!

        Comment

        • DoDeH1
          Senior Member
          • Jan 2008
          • 224
          • 4.2.X

          #5
          Originally posted by MrNase
          Try this:

          Replace

          <script type="text/javascript" src="embed/swfobject.js"></script>

          with

          <script type="text/javascript" src="FULLURLTOTHEFILE/swfobject.js"></script>




          .
          Did it and still the same.
          here is the exact code I use
          Code:
          <script type="text/javascript" src="http://www.dfgrom.com/embed/swfobject.js"></script>
          <div id="player">"Please refresh page for player"</div> 
          <script type="text/javascript">
          var s1 = new SWFObject('http://www.dfgrom.com/embed/player.swf','mpl','352','201','9');
          s1.addParam('allowscriptaccess','always');
          s1.addParam('allowfullscreen','true');
          s1.addParam('flashvars','&file={param}&frontcolor=#ffffff&screencolor=#000000&controlbar=over&backcolor=#003F86&logo=http://www.dfgrom.com/forums/logo2.png');
          s1.write('player');
          </script>

          Comment

          • Jake Bunce
            Senior Member
            • Dec 2000
            • 46598
            • 3.6.x

            #6
            Check the source code of both posts when viewing the showthread.php page. Make sure the appropriate HTML code is being inserted for both BB codes in both posts. If the code is in place and correct then perhaps there is a problem with the code itself that makes it not work twice on the page.

            Comment

            • DoDeH1
              Senior Member
              • Jan 2008
              • 224
              • 4.2.X

              #7
              Originally posted by Jake Bunce
              Check the source code of both posts when viewing the showthread.php page. Make sure the appropriate HTML code is being inserted for both BB codes in both posts. If the code is in place and correct then perhaps there is a problem with the code itself that makes it not work twice on the page.
              Yes, you're right. I figured it that it's the problem of the code itself from the javascript. I'll have to ask those who wrote it.
              Thank you for the anserws.

              Comment

              • DoDeH1
                Senior Member
                • Jan 2008
                • 224
                • 4.2.X

                #8
                Yeah, I did it.
                I replaced the id with {param} and everything is working now.
                I found that every player needs a different id so I replaced the id with {param} to put the instead of it the full path of the video.
                Hope to help others with this solve.

                Comment

                • tijmen_4real
                  Member
                  • Oct 2007
                  • 56
                  • 3.6.x

                  #9
                  I got a problem similar to this, but i can't get the player to work at all:

                  tag name: flv
                  replacement: <script type="text/javascript" src="http://www.deorvanheemskerk.nl/journaal/embed/swfobject.js"></script>
                  <div id="player">"Please refresh page for player"</div>
                  <script type="text/javascript">
                  var s1 = new SWFObject('http://www.deorvanheemskerk.nl/journaal/embed/player.swf','mpl','640','480','9');
                  s1.addParam('allowscriptaccess','always');
                  s1.addParam('allowfullscreen','true');
                  s1.addParam('flashvars','&file={param}&frontcolor=#ffffff&screencolor=#000000&controlbar=o ver&backcolor=#003F86&logo=http://www.deorvanheemskerk.nl/journaal/logo2.png');
                  s1.write('player');
                  </script>
                  example: [FLV]http://content.bitsontherun.com/videos/3ta6fhJQ.flv[/FLV]
                  Please, can someone help me out on this ?

                  Comment

                  • Aachi
                    Member
                    • Aug 2007
                    • 73
                    • 3.8.x

                    #10
                    Hello guys.. I have upgraded FLV player BB Code here for multiple Videos/ threads

                    Do here...



                    Mobile Phone Applications Download Fun and Entertainment

                    Comment

                    Related Topics

                    Collapse

                    Working...