Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Embedding Flash Player and Movie in EZ-Page?

Embedding Flash Player and Movie in EZ-Page?

Locked

Views: 1,729

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
16 Sep 2010, 6:25 PM
#1
jrayfield avatar

jrayfield

New Zenner

Join Date:
Dec 2008
Posts:
81
Plugin Contributions:
0

Embedding Flash Player and Movie in EZ-Page?

I'm trying to embed a flash player and a movie, into an EZ-Page.

I've looked at some of the other posts regarding this subject, but nothing seems to work with this particular flash player and movie.

Can someone help me here?

Here's the code, in an index.htm, that works fine (as long as it isn't in a Zen-Cart page). Obviously, the index.htm file is also in the same directory where swfobject.js and FLVVideo.FLV are located.

<html>
<head>
<title>MOTOTRBO Video</title>
<script type="text/javascript" src="swfobject.js"></script>
</head>
<body>
<center>
<h1><font face="Verdana">West Tennesse Healthcare</font></h1>
<br>
<div id="flashcontent">
Upgrade your Flash Player to version 8 to view this video! (<a href=http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player.exe target=_blank>Click here for the download</a>)
</div>
<script type="text/javascript">        
var so = new SWFObject("SkyBlue.swf?path=FLVVideo.FLV&buffersize=10&startauto=false&redirect=", "player", "420", "350", "8", "#ffffff");
so.write("flashcontent");</script>

  
</center>
</body>
</html>

John Rayfield, Jr.
https://www.rayfield.net

16 Sep 2010, 6:59 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Embedding Flash Player and Movie in EZ-Page?

One does not use all code fron a html page
Only what is between the body tags

To have js loaded review this tutorial

https://www.zen-cart.com/tutorials/index.php?article=36
Find section on
Adding Extra Javascript to a specific page

16 Sep 2010, 8:05 PM
#3
jrayfield avatar

jrayfield

New Zenner

Join Date:
Dec 2008
Posts:
81
Plugin Contributions:
0

Re: Embedding Flash Player and Movie in EZ-Page?

To someone who is a 'black belt' in Zen-Cart, I'm sure this is very simple. But, I have no 'belt'. :dontgetit

I've renamed 'swfobject.js' to 'jscript_swfobject.js' and placed it in the '/includes/templates/MyTemplate/jscript' folder. Somewhere else, I read that this file should be renamed, but is that correct?

I've placed the following files in the '/images/videos/wthc/' folder.

FLVVideo.FLV
SkyBlue.swf

On my EZ-Page (where I want the video to be played), I place this code:

<center>
<h1><font face="Verdana">West Tennesse Healthcare</font></h1>
<br>
<div id="flashcontent">
Upgrade your Flash Player to version 8 to view this video! (<a href=http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player.exe target=_blank>Click here for the download</a>)
</div>
<script type="text/javascript">        
var so = new SWFObject("http://rayfield.net/images/vidoes/wthc/SkyBlue.swf?path=http://rayfield.net/images/vidoes/wthc/FLVVideo.FLV&buffersize=10&startauto=false&redirect=", "player", "420", "350", "8", "#ffffff");
so.write("flashcontent");</script>
  
</center>

But this does not work. What do I have wrong?

John Rayfield, Jr.
<https://www.rayfield.net>
16 Sep 2010, 9:27 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Embedding Flash Player and Movie in EZ-Page?

But this does not work. What do I have wrong?
"Does not work" is too little information
What does happen
Any error messages?
Blank Page
What??

A link to this page would assist

16 Sep 2010, 10:27 PM
#5
jrayfield avatar

jrayfield

New Zenner

Join Date:
Dec 2008
Posts:
81
Plugin Contributions:
0

Re: Embedding Flash Player and Movie in EZ-Page?

No error messages. The video doesn't play. And it acts like something is trying to load, but it never loads.

http://rayfield.net/Videos

John Rayfield, Jr.
https://www.rayfield.net

16 Sep 2010, 10:44 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Embedding Flash Player and Movie in EZ-Page?

Not sure but SEO urls break many things
Try turning them off to see and enable us to follow the real paths

16 Sep 2010, 11:28 PM
#7
jrayfield avatar

jrayfield

New Zenner

Join Date:
Dec 2008
Posts:
81
Plugin Contributions:
0

Re: Embedding Flash Player and Movie in EZ-Page?

Here's the page without SEO enabled:

http://rayfield.net/index.php?main_page=page&id=13

You can access that URL from a link on the sidebar, too.

It still doesn't work.

I've also tried embedding Windows Media Player in this page. The media player shows up, but when I 'click' on the play button, nothing plays.

I've seen comments by others here in the forums who have managed to get embedded video to work on a Zen-Cart site, but I haven't seen any 'easy-to-follow' (as in, step-by-step) instructions on how to do this. I've also seen lots of comments from those who had trouble getting it to work, too. It would be nice if someone would put together a good, easy-to-follow, step-by-step outline of how to embed streaming video on a page in Zen-Cart. Maybe it could even be added to the FAQ section on the Zen-Cart site.

John Rayfield, Jr.
https://www.rayfield.net

16 Sep 2010, 11:53 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Embedding Flash Player and Movie in EZ-Page?

Take a scientific approach

Try loading a copy of jscript_swfobject.js in the following locations and insure that you clear your browser cache

at the root of your account "/"
If Zencart is elsewhere at the root of ZenCart
/images/vidoes/wthc/

If no joy with above try a copy of swfobject.js to the same locations

17 Sep 2010, 1:35 AM
#9
jrayfield avatar

jrayfield

New Zenner

Join Date:
Dec 2008
Posts:
81
Plugin Contributions:
0

Re: Embedding Flash Player and Movie in EZ-Page?

Still doesn't work.

John

17 Sep 2010, 5:00 AM
#10
jrayfield avatar

jrayfield

New Zenner

Join Date:
Dec 2008
Posts:
81
Plugin Contributions:
0

Re: Embedding Flash Player and Movie in EZ-Page?

I finally found something that works.

https://www.flv-player.net

But, I also found out that the .flv files can't be under the '/image' directory. I created a new directory, in the root directory, and the files from flv-player.net work fine there.

John Rayfield, Jr.
https://www.rayfield.net

30 Nov 2010, 10:38 PM
#11
sasha_fieldman avatar

sasha_fieldman

New Zenner

Join Date:
Nov 2010
Posts:
1
Plugin Contributions:
0

Re: Embedding Flash Player and Movie in EZ-Page?

Hey I tried downloading that flv player that you suggested- but for some reason it's not working on my computer. It freezes every time I load something that requires a flv embed. What could be causing this?

who is the scorpio most compatible with