467,132 Members | 1,178 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,132 developers. It's quick & easy.

I can play a SWF video but not a Flash Video - why?

With the help of this forum members and google search i've done the following part

Expand|Select|Wrap|Line Numbers
  1. Imports AxShockwaveFlashObjects
  2. Public Class Form1
  3.  
  4.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  5.         Dim axShockwaveFlash As New AxShockwaveFlash
  6.         axShockwaveFlash.Location = New System.Drawing.Point(10, 10)
  7.  
  8.         Me.Controls.Add(axShockwaveFlash)
  9.         'me.Show(); Avoids InvalidActiveXStateException.
  10.  
  11.         axShockwaveFlash.Movie = "D:\\movie.swf"
  12.         'it is important to set Size after specifying Movie property
  13.         'if Size is specified before, it is ignored
  14.         axShockwaveFlash.Size = New System.Drawing.Size(270, 250)
  15.         axShockwaveFlash.Play()
  16.     End Sub
  17.  
  18. End Class
  19.  
  20.  
using this I can play a .swf video "D:\\movie.swf" - located in my hard drive...

but the issue is to play a .flv file i.e. a flash video file...

when i'm replacing the path with - "D\\flashvideo.flv" - the out put is getting blank - with a white backgruond.....

Can any one help me out??

Atanu

Thanks and Regards
Jan 23 '08 #1
  • viewed: 4416
Share:
5 Replies
kenobewan
Expert 4TB
Swf is the published file, while flv is the editable files - like the difference betwwen jpg & psd. HTH.
Jan 23 '08 #2
Swf is the published file, while flv is the editable files - like the difference betwwen jpg & psd. HTH.
@kenobewan: nope that's wrong. flv != fla :)

@mratanudey83: If you want to play a flv - file using the AxShockwaveFlash- Object you have to load the flv into your SWF and include the SWF just the way you did it.

See here: a flv - player written in C#:
http://www.codeproject.com/KB/audio-...ternalapi.aspx
Mar 11 '08 #3
Frinavale
Expert Mod 8TB
With the help of this forum members and google search i've done the following part

[HTML]Imports AxShockwaveFlashObjects
Public Class Form1

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim axShockwaveFlash As New AxShockwaveFlash
axShockwaveFlash.Location = New System.Drawing.Point(10, 10)

Me.Controls.Add(axShockwaveFlash)
'me.Show(); Avoids InvalidActiveXStateException.

axShockwaveFlash.Movie = "D:\\movie.swf"
'it is important to set Size after specifying Movie property
'if Size is specified before, it is ignored
axShockwaveFlash.Size = New System.Drawing.Size(270, 250)
axShockwaveFlash.Play()
End Sub

End Class

[/HTML]

using this I can play a .swf video "D:\\movie.swf" - located in my hard drive...

but the issue is to play a .flv file i.e. a flash video file...

when i'm replacing the path with - "D\\flashvideo.flv" - the out put is getting blank - with a white backgruond.....

Can any one help me out??

Atanu

Thanks and Regards
I'm not strong with Flash problems in .NET but, are you sure that you can retrieve a movie from D:\ and use it in a website?
Try moving it to the web server (into wwwroot...) and see what happens?
(Then try using Server.MapPath to retrieve the video file)

-Frinny
Mar 11 '08 #4
Expand|Select|Wrap|Line Numbers
  1. <div>
  2.    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="200" height="288">
  3.       <param name="movie" value="Library/images/P3.swf">
  4.       <param name="quality" value="low">
  5.       <embed src="Library/images/P3.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="250" height="288"></embed>
  6.    </object>
  7. </div>
Mar 11 '08 #5
his goal is not to display it on a webpage but to play and interact with a flash application from within his own application.
Mar 11 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by Andrew Poulos | last post: by
3 posts views Thread by Jim Ford | last post: by
3 posts views Thread by Ryan Liu | last post: by
8 posts views Thread by Oscar Arreyano | last post: by
reply views Thread by keith2045 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.