Welcome to Dream.In.Code
Getting Help is Easy!

Join 86,372 Programmers. There are 1,465 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a Expert
Powered by LivePerson.com

Register to Make This Box Go Away!

Player not working

 
Reply to this topicStart new topic

Player not working

musya
post 26 Apr, 2008 - 01:46 PM
Post #1


D.I.C Head

Group Icon
Joined: 25 Apr, 2007
Posts: 179



Okay easiest way to describe my problem is this, its not working, can anybody help me out please ive been stuck on this for the last week.
CODE

function play_movie($movie_file)
{
$movie = 'video/'.$movie_file;
$seperate = explode(".", $movie_file);
$movie_swf = 'video/'.$seperate[0].'.swf';
echo $movie_swf;

$play='    
    <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
    WIDTH="360" HEIGHT="240" id="<? echo $seperate[0];?>"><PARAM NAME=movie VALUE="<? echo $movie_swf?>"><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#FFFFFF><EMBED src="<?echo $movie_swf?>" quality=high bgcolor=#FFFFFF WIDTH="360" HEIGHT="240"
    NAME="<? echo $movie_swf?>" ALIGN="" TYPE="application/x-shockwave-flash"
    PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
    </OBJECT>
    ';
echo $play;
$file = 'video/'.$seperate[0].'.mov';

}

Basically $movie_file gets passed in along the lines of this: name.flv and from their it should play, i do get a white box that show the browsers recognizes flash player. but it doesnt play anything. Thank you.

Actually i was attempting to make one swf that plays all of the files but it wouldnt work so i just published one seperate from flash.

This post has been edited by musya: 26 Apr, 2008 - 01:47 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


girasquid
post 26 Apr, 2008 - 02:57 PM
Post #2


Barbarbar

Group Icon
Joined: 3 Oct, 2006
Posts: 953

Are you sure that the file exists?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

musya
post 26 Apr, 2008 - 03:02 PM
Post #3


D.I.C Head

Group Icon
Joined: 25 Apr, 2007
Posts: 179

QUOTE(girasquid @ 26 Apr, 2008 - 02:57 PM) *

Are you sure that the file exists?

Yes, the way that my script works is that the contents of the directory which is the movie files is being generated dynamically, so when i click on the name it passes that file name to the function. so it has to exist, and plus i echo'd it just to check and i know its in the ftp folder. Im sure if i can get this one to work then i can get the general swf to work as well.

This post has been edited by musya: 26 Apr, 2008 - 03:03 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

girasquid
post 26 Apr, 2008 - 03:12 PM
Post #4


Barbarbar

Group Icon
Joined: 3 Oct, 2006
Posts: 953

I don't mean to sound repetitious, but are you absolutely sure it exists? If you're getting the white box but nothing is showing up, the two possibilities I'm aware of are that the file doesn't exist, or the SWF is corrupt and unreadable. Try using Firebug to see if the file is being pulled back properly.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

musya
post 26 Apr, 2008 - 03:29 PM
Post #5


D.I.C Head

Group Icon
Joined: 25 Apr, 2007
Posts: 179

QUOTE(girasquid @ 26 Apr, 2008 - 03:12 PM) *

I don't mean to sound repetitious, but are you absolutely sure it exists? If you're getting the white box but nothing is showing up, the two possibilities I'm aware of are that the file doesn't exist, or the SWF is corrupt and unreadable. Try using Firebug to see if the file is being pulled back properly.

Yes it exists, and when i open up the html file that is generated by flash when you publish it plays perfectly fine.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

musya
post 26 Apr, 2008 - 03:36 PM
Post #6


D.I.C Head

Group Icon
Joined: 25 Apr, 2007
Posts: 179

Okay i figured out why it was showing white, and that was because i forgot to put the swf and the skin into the folder that i was pulling from, but now it just shows a small image of the skin and the rest is white, if i go directly to the skin then it plays it but not in the page i need to to, not in my embed.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

girasquid
post 26 Apr, 2008 - 03:50 PM
Post #7


Barbarbar

Group Icon
Joined: 3 Oct, 2006
Posts: 953

Take a look under Firebug, and make sure that the SWF is being pulled back properly - not throwing a 404 or 500 error or anything.

If it is coming back properly, then it's a problem with your actionscript to load the video in.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

musya
post 26 Apr, 2008 - 03:58 PM
Post #8


D.I.C Head

Group Icon
Joined: 25 Apr, 2007
Posts: 179

Okay I cleared up some code and it plays now, but no controls, another thing is that the video is smaller than it is suppose to be, and i don't think that its the compression but i can check that in a bit i don't have access to it now, but shouldn't the controls still appear on the video? they don't appear right now.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 5/17/08 02:39AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month