LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-22-2004, 09:07 AM   #1
anand_kt
Member
 
Registered: Dec 2004
Location: Chennai, India
Distribution: Red Hat, Knoppix
Posts: 86

Rep: Reputation: 15
Question Shockwave fails to play in Apache


Sys config :
Red Hat 8.0 box with Apache that came with the red hat 8.0 box

I am trying to embed a '.SWF' file in to a HTML page.
Both the HTML and the flash exist in the same directory with 755 permissions.

When I try to access the HTML page thru any browser(IE/Moz) - the HTML page gets loaded fully BUT the movie(SWF file) fails to PLAY.

I dont understand why.

I moved the same HTML file and SWF file to another IIS server and it works instantly.

YES. I have checked if the x-application shockwave exists in the mime.types file. Its present by default.

Guys, any suggestions wud be of great help.

Thanks
Anand
 
Old 12-22-2004, 09:10 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Add this:
Code:
AddType application/x-shockwave-flash .swf
to your httpd.conf

Regards
 
Old 12-22-2004, 09:46 AM   #3
anand_kt
Member
 
Registered: Dec 2004
Location: Chennai, India
Distribution: Red Hat, Knoppix
Posts: 86

Original Poster
Rep: Reputation: 15
thanks for the response.

i tried adding that to the httpd.conf and restarted httpd

but didnt help

:-(
 
Old 12-22-2004, 05:11 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Try this code in your page:
Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" id=page-b width=100% height=100%>
  <param name=movie value="movie.swf">
  <param name=quality value=high>
  <param name=bgcolor value=#FFFFFF>
  <embed src="movie.swf" quality=high bgcolor="#FFFFFF"  width=100% height=95%
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
  </embed>
Of course change movie.swf with the right name.
It's supposed to work, the first part for IE and the 2nd for mozilla compatible browsers, but perhaps even the server must know how to parse the embedded flash movie.
If this doesn't work post either the error you get or if you're prompted to save the swf file and also take a look at apache's logs.
 
Old 12-23-2004, 12:35 AM   #5
anand_kt
Member
 
Registered: Dec 2004
Location: Chennai, India
Distribution: Red Hat, Knoppix
Posts: 86

Original Poster
Rep: Reputation: 15
all this time i was trying to open the HTML page which had the flash movie embedded wtih proper OBJECT codes. but now i just tried giving the direct SWF file in the URL.
Now it doesnt prompt me to save the file, but the progress bar in IE just keeps progressing forever. THe move never gets loaded or played. I tried rename it to "movie" from "movie.swf" and now it prompts me to SAVE the file.

Please help guys!
 
Old 12-28-2004, 04:31 AM   #6
anand_kt
Member
 
Registered: Dec 2004
Location: Chennai, India
Distribution: Red Hat, Knoppix
Posts: 86

Original Poster
Rep: Reputation: 15
just wanted to come back and close this thread!

The solution :
While transfering SWF files thru FTP, do not forget to do it in Binary mode. Else movies will load but wont PLAY.

Hope it helps someone else sometime.
 
Old 04-11-2005, 03:52 AM   #7
Buttercup
LQ Newbie
 
Registered: Apr 2005
Posts: 3

Rep: Reputation: 0
Hi Everyone
This is my first post and I am in sheer desperation.
I have searched in vain everywhere and this post comes the closest to the problem that I am having

I am redesigning a website that has a shockwave movie as one of the modules. I am not redesigning this module
as I have no flash experience. The website currently runs on IIS and I am redeveloping in Linux/PHP/Apache. My understanding was that the flash stuff was platform independent and once I had my httpd.conf correct with the shockwave AddType then it would run okay.

The first file movie.html runs the into.swf file. This works fine so it leads me to believe that shockwave works on the server. However when I click the first link on the page it does not call the next .swf file(movie01.swf). I can't figure this out. I have tried
1. Checking permissions on all files - Given all 755 access
2. Tried all combinations of putting the files in the root directory of the server
3. Ran the second file movie01.swf. They all work in a standalone mode
4. If I run the application from the file structure, it works fine

To add insult to injury, if I run Apache on Windows, the whole thing works.

I really would appreciate any help that anyone could give, even if someone told me that this has been answered a million times and that I haven't looked hard enough

M.
 
Old 04-11-2005, 04:05 AM   #8
anand_kt
Member
 
Registered: Dec 2004
Location: Chennai, India
Distribution: Red Hat, Knoppix
Posts: 86

Original Poster
Rep: Reputation: 15
You said

- the first movie, plays fine.
- the second one if played independently, plays fine.

but the failiure occurs only if u try to click a link in the first movie that points to the second movie. right?

You have not edited (or wud like to edit) any part of the flash file.

But you cud probably check if you have placed the second file in the correct (path)location....
this path wud be the exact URL that the first movie's LINK is pointing to...

try this.
 
Old 04-11-2005, 04:29 AM   #9
Buttercup
LQ Newbie
 
Registered: Apr 2005
Posts: 3

Rep: Reputation: 0
Thanks so much for responding!!!
I have got the .swf files and not the flash project and I can't seem to edit them????? Is there a way of editing a .swf file?

I set up a Windows server and installed Apache. I ran the application and it worked fine so the links in the shockwave files don't seem to be the issue. There seems to be some setting that is different in Linux than in Windows?????
 
Old 04-11-2005, 05:52 AM   #10
anand_kt
Member
 
Registered: Dec 2004
Location: Chennai, India
Distribution: Red Hat, Knoppix
Posts: 86

Original Poster
Rep: Reputation: 15
Editing SWF : Well, There is one way to do it. Download SWF Browser, use it to parse the SWF File(it will break any locks also) and then import it in to Flash or Swish 2.0 and u can edit it.

But coming back to your problem,
Can you tell me what happens exactly when you click on the link to the second swf file...

- The browser says 'cannot locate the file'
- the progress bar in browser just keeps going indefinitely while loading the movie?

My gut feeling is that its not a problem with any configuirations in Linux/Apache cos you said first movie plays.
Your apache setup seems to be fine, try tranfering the SWF's from their original locations again to your linux box, and if you use FTP to do this, do not forget to set BIN mode transfer.
 
Old 04-11-2005, 06:57 AM   #11
Buttercup
LQ Newbie
 
Registered: Apr 2005
Posts: 3

Rep: Reputation: 0
YOU ARE SUCH A STAR!!!!!!!

Downloaded the swf decompiler and saw that the link was actually Movie01.swf instead of movie01.swf. The uppercase worked in Windows but was more sensitive in Linux.

I feel like a huge weight is lifted!!!!! Thanks for your time
M.
 
Old 04-11-2005, 07:03 AM   #12
anand_kt
Member
 
Registered: Dec 2004
Location: Chennai, India
Distribution: Red Hat, Knoppix
Posts: 86

Original Poster
Rep: Reputation: 15
Linux is case sensitive.

! sometimes... basics fail to cross our mind...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache fails to restart nde Linux - Newbie 7 09-13-2005 04:26 PM
Rhythmbox fails to play anything, gives stranger error Lord Estraven Linux - Software 7 02-28-2005 09:03 PM
gnome-cd fails to play discs ingy866 Debian 0 08-05-2004 09:38 AM
Xine fails to play DVD with snd_pcm_open() joe_huddleston Linux - Software 3 03-14-2004 09:44 AM
shockwave support for apache!!!! irakleas Red Hat 2 01-15-2004 05:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration