473,378 Members | 1,544 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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
5 4834
kenobewan
4,871 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
9,735 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

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

Similar topics

6
by: Andrew Poulos | last post by:
As a follow on to the 'fun' I had with IE I'm now trying to play sounds using an Object tag (no Embed) in MZ. Sadly whenever 'playButton' gets clicked MZ says that "audObj.Play is not a function":...
16
by: Dobedani | last post by:
Dear All, I found the code added below at: http://simplythebest.net/sounds/sound_guide.html Unfortunately, the code doesn't seem to work in Firefox. These are the error messages I can see in...
13
by: anil.rita | last post by:
When the user chooses an AV file to play, based upon the type of file, I want to use the default installed media player to play it. I am wondering if this is a good way - any alternatives,...
3
by: Jim Ford | last post by:
This is more strictly an HTML problem, but as I'm also using PHP and the HTML groups seem to be infested with spam, I'm posting it here! At the school where I work I've got an online searchable...
3
by: Ryan Liu | last post by:
Hi, I want to play Audio/Video in my C# application(standlalone, not web applicatoin). The source of multimedia may in different formats and decided by the end user, which I have no control. ...
8
by: Oscar Arreyano | last post by:
I did a website for a friend's company where they wanted a 'downloads' section similar to standard file sharing you see all over the place. Everything works great except for video. I know there are...
0
by: keith2045 | last post by:
I'm trying to create a plugin that will play flash videos (via a http network stream). I found some code that will play swf files (not sure about network swf files, cant get it working to test it....
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.