Which Flash/HTML5 video player can auto resize based on video resolution?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SpyCam
    PoiSEO.com
    • Apr 2001
    • 1201

    #1

    Which Flash/HTML5 video player can auto resize based on video resolution?

    Which Flash/HTML5 video player can auto resize based on video resolution? So i won't need manual entering width and height of each video when resolutions vary a lot.
  • redwhiteandblue
    Bollocks
    • Jun 2007
    • 2785

    #2
    Wouldn't you need to be setting the size of the object that contains the player to do that, which the player won't be able to do on its own? The player would need to get the resolution from the video file and then call back a js script or something, maybe JW player can do this, I don't know.
    Interserver unmanaged AMD Ryzen servers from $73.00

    Comment

    • asianseekerz
      Confirmed User
      • Aug 2008
      • 1609

      #3
      this is cool
      LUSTY LIFES : Dad & Daughter Wild Adventures : Naughty Wild Sister
      Contact : ICQ : 372109
      Email add: [email protected]

      Comment

      • Fletch XXX
        GFY HALL OF FAME DAMMIT!!!
        • Jan 2002
        • 60840

        #4
        Originally posted by SpyCam
        Flash/HTML5
        these two words together shall no longer be.

        http://www.zdnet.com/blog/networking...ive-html5/1633

        flash is dead. and i am happy. good riddance...

        Want an Android App for your tube, membership, or free site?

        Need banners or promo material? Hit us up (ICQ Fletch: 148841377) or email me fletchxxx at gmail.com - recent work - About me

        Comment

        • SpyCam
          PoiSEO.com
          • Apr 2001
          • 1201

          #5
          Yeah, i heard JW Player can do that but i cannot find any code/customisation that could do that

          Comment

          • harvey
            Confirmed User
            • Jul 2001
            • 9266

            #6
            it's native for new versions of JW Player, you have to do absolutely nothing
            This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth

            Comment

            • DWB
              Registered User
              • Jul 2003
              • 31779

              #7
              Originally posted by Fletch XXX
              these two words together shall no longer be.

              http://www.zdnet.com/blog/networking...ive-html5/1633

              flash is dead. and i am happy. good riddance...
              Yea, bye bye flash.

              Though, anyone know why EVERY sponsor still offers their tube clips and promo videos in flv instead of mp4?

              Comment

              • 19teenporn
                Confirmed User
                • Apr 2011
                • 3034

                #8
                Originally posted by DWB
                Yea, bye bye flash.

                Though, anyone know why EVERY sponsor still offers their tube clips and promo videos in flv instead of mp4?
                That is something i still don't understand.

                Sponsors, give hosted mp4 instead of flv and your viedeos cane be watched in any device!
                No need for affiliates to setup separate mobile sites!

                Comment

                • 19teenporn
                  Confirmed User
                  • Apr 2011
                  • 3034

                  #9
                  Originally posted by 19teenporn
                  That is something i still don't understand.

                  Sponsors, give hosted mp4 instead of flv and your viedeos cane be watched in any device!
                  No need for affiliates to setup separate mobile sites!
                  What he said...

                  Comment

                  • Dirty Dane
                    Sick Fuck
                    • Feb 2004
                    • 9491

                    #10
                    The best way is to only auto-resize the height relative to your default width (to keep same aspect ratio), and with the flash always sticked to the top of the cell. That way you can keep the same width, and whatever you wrap on left/right side of the player will stay at the same place. Otherwise, it could get messy.

                    To do this you need to tell the player to read the metadata from the video file and then calculate the height relative to the width. Using jQuery and in Flowplayer with 640 pixels width, additional custom code in the javascript will look like this within the clip: {
                    Code:
                    scaling: "fit",
                      onStart: function(clip) { 
                        var wrap = jQuery(this.getParent()); 
                        wrap.css({height: (640*(clip.metaData.height/clip.metaData.width)), width: 640});
                    }
                    }


                    If you have banners, links or other content beneath the flashplayer, that will also be automatically pushed/pulled up and down together with the player as long you code it within the same cell
                    Last edited by Dirty Dane; 02-09-2012, 06:15 PM.

                    Comment

                    • Dirty Dane
                      Sick Fuck
                      • Feb 2004
                      • 9491

                      #11
                      .. and if you insist on resizing both height and width to the original size, then the calculation will simply look like this:

                      Code:
                      wrap.css({height: (clip.metaData.height), width: (clip.metaData.width)});

                      Comment

                      • fris
                        I have to go potty
                        • Aug 2002
                        • 55917

                        #12
                        http://sublimevideo.net
                        Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


                        My Newest Theme

                        Comment

                        • SpyCam
                          PoiSEO.com
                          • Apr 2001
                          • 1201

                          #13
                          Dirty Dane: thank you, however, i plan to buy JW Player. Will the codes you pasted work with it?

                          Comment

                          • Dirty Dane
                            Sick Fuck
                            • Feb 2004
                            • 9491

                            #14
                            Originally posted by SpyCam
                            Dirty Dane: thank you, however, i plan to buy JW Player. Will the codes you pasted work with it?
                            I don't about JW Player. Never worked with it.

                            Comment

                            • SpyCam
                              PoiSEO.com
                              • Apr 2001
                              • 1201

                              #15
                              thanks anyways

                              Comment

                              Working...