473,800 Members | 2,414 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

1 New Member
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 4866
kenobewan
4,871 Recognized Expert Specialist
Swf is the published file, while flv is the editable files - like the difference betwwen jpg & psd. HTH.
Jan 23 '08 #2
Andinho
2 New Member
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 AxShockwaveFlas h- 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 Recognized Expert Moderator Expert
With the help of this forum members and google search i've done the following part

[HTML]Imports AxShockwaveFlas hObjects
Public Class Form1

Private Sub Form1_Load(ByVa l sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
Dim axShockwaveFlas h As New AxShockwaveFlas h
axShockwaveFlas h.Location = New System.Drawing. Point(10, 10)

Me.Controls.Add (axShockwaveFla sh)
'me.Show(); Avoids InvalidActiveXS tateException.

axShockwaveFlas h.Movie = "D:\\movie. swf"
'it is important to set Size after specifying Movie property
'if Size is specified before, it is ignored
axShockwaveFlas h.Size = New System.Drawing. Size(270, 250)
axShockwaveFlas h.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
prabhakarbtechit
2 New Member
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
Andinho
2 New Member
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
4058
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": window.onload = function() { var audObj = document.createElement("object"); audObj.setAttribute("id", "objmedia"); audObj.setAttribute("type","audio/x-aiff"); audObj.setAttribute("data","media/aif_sample.aif");
16
14767
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 my Javascript Console: Error: self.document.guitar.IsReady is not a function Error: self.document.guitar.stop is not a function
13
4902
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, suggestions or improvements? if( wmv file) document.write("<OBJECT id=Player classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6 height="354" width="479">
3
2388
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 database of video tapes and dvds, using MySql and PHP on a Linux machine. It works fine. I'm trancoding some of the tapes to avi files, which can be accessed as a samba share. I'd like to put clickable links into the database, so if a user sees...
3
8381
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. My question is -- which is the best approach to add multimedia capability to my c# application, to support most possible formats, and make it easiest for the end user(e.g. does not need convert before play it)?
8
2442
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 codecs involved, however, if i create a video (I've tried mpg, avi, wma so far) I can watch it on my pc from disk just fine. Since my pc is also my test environment, I try to open the same video from the test site and I get the standard 'Can't...
0
2054
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. When i try to compile my code i get this error: The name 'resources' does not exist in the current context. What namespace contains this? I have attached the code that i'm using, is there a better way to play these videos? ...
0
9690
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9551
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10505
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10253
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9085
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7576
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6811
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.