Playing FLV file?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Johnny J.

    Playing FLV file?

    Can anybody get me started on how to play an FLV file? Like you play e.g.
    mpeg files using the wmplayer control, I want a box on my form where the FLV
    is played and the playback is controlled byt the user.

    Cheers,
    Johnny J.


  • Peter Duniho

    #2
    Re: Playing FLV file?

    Johnny J. wrote:
    Can anybody get me started on how to play an FLV file? Like you play e.g.
    mpeg files using the wmplayer control, I want a box on my form where the FLV
    is played and the playback is controlled byt the user.
    I don't actually know for sure, but my first thought would be to use the
    System.Forms.We bBrowser class to display some HTML generated from a
    template that includes the usual "embed" with the Flash object
    configured to play the desired FLV file.

    In other words, figure out how to play the FLV in a regular HTML page,
    and then host that HTML inside your form using the WebBrowser control class.

    Pete

    Comment

    • =?Utf-8?B?T2xsaWU=?=

      #3
      RE: Playing FLV file?

      Hi Johnny,

      This is how I achieved it some time ago, check the last post out.



      HTH

      Ollie Riches

      "Johnny J." wrote:
      Can anybody get me started on how to play an FLV file? Like you play e.g.
      mpeg files using the wmplayer control, I want a box on my form where the FLV
      is played and the playback is controlled byt the user.
      >
      Cheers,
      Johnny J.
      >
      >
      >

      Comment

      • Johnny J.

        #4
        Re: Playing FLV file?

        Ah, but sorry - it's not an ASP application, it's a Winforms application...

        Cheers,
        Johnny




        "Ollie" <ollie_riches@h otmail.comwrote in message
        news:F3D54726-37F2-44BF-ADC2-E98934A8FB70@mi crosoft.com...
        Hi Johnny,
        >
        This is how I achieved it some time ago, check the last post out.
        >

        >
        HTH
        >
        Ollie Riches
        >
        "Johnny J." wrote:
        >
        >Can anybody get me started on how to play an FLV file? Like you play e.g.
        >mpeg files using the wmplayer control, I want a box on my form where the
        >FLV
        >is played and the playback is controlled byt the user.
        >>
        >Cheers,
        >Johnny J.
        >>
        >>
        >>

        Comment

        • Cor Ligthert [MVP]

          #5
          Re: Playing FLV file?

          Johnny,

          To make the nice answers from Ollie and Peter complete. Have a look at the
          webbrowser class, than your problem is probably almost solved (if there
          comes no better solution).



          Cor

          "Peter Duniho" <NpOeStPeAdM@Nn OwSlPiAnMk.coms chreef in bericht
          news:13e2510b2b 374dd@corp.supe rnews.com...
          Johnny J. wrote:
          >Can anybody get me started on how to play an FLV file? Like you play e.g.
          >mpeg files using the wmplayer control, I want a box on my form where the
          >FLV is played and the playback is controlled byt the user.
          >
          I don't actually know for sure, but my first thought would be to use the
          System.Forms.We bBrowser class to display some HTML generated from a
          template that includes the usual "embed" with the Flash object configured
          to play the desired FLV file.
          >
          In other words, figure out how to play the FLV in a regular HTML page, and
          then host that HTML inside your form using the WebBrowser control class.
          >
          Pete

          Comment

          • Johnny J.

            #6
            Re: Playing FLV file?

            True, but the problem with this approach is that the user has to make sure
            himself that he has got Flash Player installed. I would like a solution
            that's independent of that (if possible).

            Cheers,
            Johnny J.




            "Cor Ligthert [MVP]" <notmyfirstname @planet.nlwrote in message
            news:uzRDr0T8HH A.1168@TK2MSFTN GP02.phx.gbl...
            Johnny,
            >
            To make the nice answers from Ollie and Peter complete. Have a look at the
            webbrowser class, than your problem is probably almost solved (if there
            comes no better solution).
            >

            >
            Cor
            >
            "Peter Duniho" <NpOeStPeAdM@Nn OwSlPiAnMk.coms chreef in bericht
            news:13e2510b2b 374dd@corp.supe rnews.com...
            >Johnny J. wrote:
            >>Can anybody get me started on how to play an FLV file? Like you play
            >>e.g. mpeg files using the wmplayer control, I want a box on my form
            >>where the FLV is played and the playback is controlled byt the user.
            >>
            >I don't actually know for sure, but my first thought would be to use the
            >System.Forms.W ebBrowser class to display some HTML generated from a
            >template that includes the usual "embed" with the Flash object configured
            >to play the desired FLV file.
            >>
            >In other words, figure out how to play the FLV in a regular HTML page,
            >and then host that HTML inside your form using the WebBrowser control
            >class.
            >>
            >Pete
            >
            >

            Comment

            • Peter Duniho

              #7
              Re: Playing FLV file?

              Johnny J. wrote:
              Well, it's simply a video like any wmv or mpg video file. I want to show it
              in the form like I do with mpg's
              It's not, actually. It's a specific video format designed for the
              Macromedia Flash Player, not supported by the built-in media player for
              Windows, which is what would be used for WMV or MP4, etc.

              As Andrew said, you could of course write your own decoder to process
              the file. At that point, you could either use the decoded data to
              convert the file to something Windows Media Player does handle, or you
              could simply write your own video-display code, essentially reinventing
              an FLV media player.

              Finally, you could of course find a different third-party media player
              that handles FLV format files and which can be used as a window control
              and use that instead of the Flash player. That would at least avoid
              having the WebBrowser layer in your window, assuming you can find such a
              third-party control.

              I don't know the specifics, but it's entirely possible that you could
              simply use the Flash player directly as an ActiveX control in your
              window, rather than putting it as an object in some HTML. I just
              figured the latter would be easier to implement. So using the Flash
              player doesn't necessarily mean you have to also use the WebBrowser
              component.

              But on the topic of third-party controls...
              It is an alternative to convert it. But for that I would probably need a
              third party control. Does anybody know of any? Or maybe just a control that
              can actually show the FLV file without Flash installed?
              I really don't understand why you are okay with using a third-party
              control, but not the Flash player (which is, after all, basically just a
              third-party control). What's so wrong about requiring the Flash player
              to be installed, given your requirement to play the FLV format that is
              specific to the Flash player?

              In any case, there is no built-in .NET component that will automatically
              handle FLV format files. So, it doesn't seem to me that your question
              really has anything to do with .NET or C#, and as such is probably
              better answered in some other newsgroup.

              Pete

              Comment

              Working...