Flash Video Problem

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Flash Video Problem

Post by rj »

Youtube is going bonkers without warning "Your account has been permanently disabled for copyright infringement - no recourse"
So am serving my own videos now.
The problem is that it all works fine on the front page but when viewed from an individual article it is either not seeing the code files or the .flv movie files, and its a blank white box.

Here is what I have in the HEAD of the index.tpl

<script type="text/javascript" src="swfobject.js"></script>

And I put the two code files
mediaplayer.js
swfobjext.js
in the root and my template folder just in case.

The code in the file points to videos/movie.flv
Videos is a folder in my root.

Works on main page does not work within article.

Is this an easy one? Hopefully :)

thanks

RJ

if need to see the problem...
http://rackjite.com/archives/1315-Sunda ... -2008.html
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Flash Video Problem

Post by garvinhicking »

Hi!

You need to put absoltue paths to your javascript, like /swfobject.js.

You also need absolute URLs to your movie.flv files.

The reason, if you show an article, you are no longer in your root but /archives/, so relative URLs will not work.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Post by rj »

got it, you fixed it, I should have figured that one out myself! :)

TANKS!

RJ
Post Reply