By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,492 Members | 1,242 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,492 IT Pros & Developers. It's quick & easy.

Playing FLV file?

P: n/a
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.
Sep 7 '07 #1
Share this Question
Share on Google+
6 Replies


P: n/a
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.WebBrowser 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
Sep 7 '07 #2

P: n/a
Hi Johnny,

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

http://www.thescripts.com/forum/thread586583.html

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.
Sep 7 '07 #3

P: n/a
Ah, but sorry - it's not an ASP application, it's a Winforms application...

Cheers,
Johnny


"Ollie" <ol**********@hotmail.comwrote in message
news:F3**********************************@microsof t.com...
Hi Johnny,

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

http://www.thescripts.com/forum/thread586583.html

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.

Sep 7 '07 #4

P: n/a
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).

http://msdn2.microsoft.com/en-us/lib...ebbrowser.aspx

Cor

"Peter Duniho" <Np*********@NnOwSlPiAnMk.comschreef in bericht
news:13*************@corp.supernews.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.WebBrowser 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

Sep 7 '07 #5

P: n/a
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]" <no************@planet.nlwrote in message
news:uz**************@TK2MSFTNGP02.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).

http://msdn2.microsoft.com/en-us/lib...ebbrowser.aspx

Cor

"Peter Duniho" <Np*********@NnOwSlPiAnMk.comschreef in bericht
news:13*************@corp.supernews.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.WebBrowser 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


Sep 7 '07 #6

P: n/a
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
Sep 7 '07 #7

This discussion thread is closed

Replies have been disabled for this discussion.