Hi
I am using the class "AxShockwaveFlash" to display flash object (swf) files in my project.
Is thier any way to set "Show All" (it's in the menu when you right click on the flash file) by code
Thanks
Itzik |
| Itzik Kramer Sunday, September 28, 2008 7:12 AM |
Hi
AxShockwaveFlash.ScaleMode = 0; set's it to full screen
thanks
Itzik
|
| Itzik Kramer Sunday, September 28, 2008 10:18 AM |
Hi
AxShockwaveFlash.ScaleMode = 0; set's it to full screen
thanks
Itzik
|
| Itzik Kramer Sunday, September 28, 2008 10:18 AM |
Hi
I tried and fullscreen mode works perfect.
How I can hide tollbar too? I mean progress bar, play/pause button?
Thank you.
|
| Ocherk Saturday, October 11, 2008 3:12 PM |
If you mean the context menu please check the following link http://www.developerfusion.co.uk/blogs/archive/2008/03/03
Good luck
Itzik |
| Itzik Kramer Sunday, October 12, 2008 6:57 AM |
Hi,
no, sorry.
I mean to hide Pause button, progress bar, i.e. in fullscreen mode I'd like to have only video. It will be played on the device without keyboard, mouse and user cannot interact with flash.
Thanks.
|
| Ocherk Sunday, October 12, 2008 7:03 AM |
Hi
R u using a flash player to display the movie?
|
| Itzik Kramer Sunday, October 12, 2008 7:08 AM |
Yes, right.
I have c# application which uses AxShockwaveFlash Activex and plays FLV files.
I am using flvplayer.swf,I found it in some examples.
Regards,
Oleg.
|
| Ocherk Sunday, October 12, 2008 7:12 AM |
Hi
The following is a sample for loading a movie with out the player, this should solve your problem
AxShockwaveFlash axShockwaveFlash = new AxShockwaveFlash();
axShockwaveFlash.Location = new System.Drawing.Point(0, 0);
this.Controls.Add(axShockwaveFlash);
axShockwaveFlash.LoadMovie(0, Environment.CurrentDirectory + @"\movie.swf");
axShockwaveFlash.SetVariable("quality", "Low");
axShockwaveFlash.ScaleMode = 0;
axShockwaveFlash.Width = 1000;
axShockwaveFlash.Height = 700;
axShockwaveFlash.Name = "myFirst";
axShockwaveFlash.Play();
|
| Itzik Kramer Sunday, October 12, 2008 7:18 AM |
Alas, the same result.
I see the Play button, progress bar etc.
I researched my file flvplayer.swf, it contains these controls and I think if I remove them for swf file then problem will be solved.
I thoght probably it can be solved from application because I cannot find tool to remove these controls from swf.
:-)
Thanks.
Oleg.
|
| Ocherk Sunday, October 12, 2008 7:26 AM |
I use this way to play FLV (see in code)
| Itzik Kramer wrote: |
|
Hi
The following is a sample for loading a movie with out the player, this should solve your problem
AxShockwaveFlash axShockwaveFlash = new AxShockwaveFlash();
axShockwaveFlash.Location = new System.Drawing.Point(0, 0);
this.Controls.Add(axShockwaveFlash);
axShockwaveFlash.LoadMovie(0, Environment.CurrentDirectory + @"\movie.swf");
axShockwaveFlash.SetVariable("quality", "Low");
axShockwaveFlash.ScaleMode = 0;
axShockwaveFlash.Width = 1000;
axShockwaveFlash.Height = 700;
axShockwaveFlash.Name = "myFirst";
string flvFileName = "http://pyg.keonox.com/tests/flash_flv_player/acteurs_lal.flv";
axShockwaveFlash1.SetVariable("file", flvFileName);
//axShockwaveFlash.Play();
| | |
| Ocherk Sunday, October 12, 2008 7:32 AM |
Hi
You don't need to use the player to play flash movies, just use the dll.
|
| Itzik Kramer Sunday, October 12, 2008 7:36 AM |
Ok, how can I use dll to play FLV ? Do you have some sample code ?
Thanks.
Regards,
Oleg.
|
| Ocherk Sunday, October 12, 2008 7:38 AM |
It's the sample that I posted in the previous post
|
| Itzik Kramer Sunday, October 12, 2008 7:40 AM |
Sorry, but I dont see where you set FLV file name to play in your sample. How do you paly FLV file?
Thanks. |
| Ocherk Sunday, October 12, 2008 7:43 AM |
axShockwaveFlash.LoadMovie(0, Environment.CurrentDirectory + @"\movie.swf");
|
| Itzik Kramer Sunday, October 12, 2008 7:46 AM |
Ok, probably I dont understand clearly what you mean.
This is a SWF file, but i need toplay FLV.
Even more: I have a playlist contains flv files and I need to play them one by another.
I found in examples that need to have SWF file in any case and additionally set path to the flv file to play it
Regards,
Oleg.
|
| Ocherk Sunday, October 12, 2008 7:50 AM |
Ahhhh, my sample is for swf files
|
| Itzik Kramer Sunday, October 12, 2008 7:54 AM |
Probably I dont understand clearly, butI need to play list of FLV files. As I understand from samples I have to have onbe swf file in any case.
Butin your example I dont see hot to play FLV file or change flv file name because of you are using only swf file.
Please correct me if I am wrong.
Regards,
Oleg.
|
| Ocherk Sunday, October 12, 2008 7:58 AM |
U r 100% right, My sample is for swf files, but maybe it will also work for flv files.
Did you try? |
| Itzik Kramer Sunday, October 12, 2008 8:03 AM |
ok, I tried this way, it workswhen I corrected your sample code.
But anyway I need to solve problem with controls ;-)
Regards,
Oleg.
|
| Ocherk Sunday, October 12, 2008 8:10 AM |
Hello everybody i need some help, inside my windows form application i use an axShockwaveFlash1 in order to play video from youtube. I have 5 button, each button represent a video. inside the button code i have put: axShockwaveFlash1.Movie = "http://www.youtube.com/v/....";. When i click on one button it plays the video inside the tool, but thereupon ,when i click another button it doesn't play the other video. |
| 2000sam Monday, January 12, 2009 12:55 PM |
Hi, I need a help, from the requirement only i came to know that Flash run with c#. i need to call a C# method when a flash file was clicked in windows application. Can any one help how to do this. S. Ramkumar Smiley |
| Ramkumar_TPS Friday, September 11, 2009 9:04 AM |