I took the same process I have used successfully on webpages and tried to apply it to the blog and nothing comes up at all. I am now using the default editor but I remember Fukeditor had a lot of FLASH options while this has none. I wonder if it has something to do with how to apply the script file into the editor?
Anyone serving their own flash videos on Serendipity that could help me?
Thanx
RJ
The only thing I added to the index file is the UFO script.
I uploaded the playlist.xml and the flvplayer.swf and the ufo.js to the server.
Embedding Flash VIdeos into Serendipity
-
Harald Weingaertner
- Regular
- Posts: 474
- Joined: Mon Mar 27, 2006 12:32 am
I work in the code editor...
This is the string that works for my web pages...
<script type="text/javascript">
var FU = {movie:"flvplayer.swf",width:"280",height:"300", majorversion:"7",build:"0",bgcolor:"#FFFFFF",allowfullscreen:"true",
flashvars:"file=playlist_paulkucinich.xml&displayheight=190&lightcolor=0x557722&backcolor=0x006666&frontcolor=0xCCCCCC" }; UFO.create( FU, "player");
</script>
Is that familiar to you?
Any code needed in the index.tpl? Or perhaps the entries.tpl?
Any other need files on the server? other than the flvplayer.swf, ufo.js and the playlist.xml?
Nothing happens at all when I put it in an entry.
This is the string that works for my web pages...
<script type="text/javascript">
var FU = {movie:"flvplayer.swf",width:"280",height:"300", majorversion:"7",build:"0",bgcolor:"#FFFFFF",allowfullscreen:"true",
flashvars:"file=playlist_paulkucinich.xml&displayheight=190&lightcolor=0x557722&backcolor=0x006666&frontcolor=0xCCCCCC" }; UFO.create( FU, "player");
</script>
Is that familiar to you?
Any code needed in the index.tpl? Or perhaps the entries.tpl?
Any other need files on the server? other than the flvplayer.swf, ufo.js and the playlist.xml?
Nothing happens at all when I put it in an entry.
-
Harald Weingaertner
- Regular
- Posts: 474
- Joined: Mon Mar 27, 2006 12:32 am
I also played around with some Flashplayers recently.
I embed Youtube Videos in my Entries. Maybe you should try to embed a Youtube Video first and see if this works. I'm not sure if the problem maybe has something to do with the Javascript around the code.
Grab the code from this Youtube and try it:
http://de.youtube.com/watch?v=jiqibXkexUA
<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/jiqibXkexUA&re ... ram><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/jiqibXkexUA&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>
If this works, you should check the Javescript Code.
I embed Youtube Videos in my Entries. Maybe you should try to embed a Youtube Video first and see if this works. I'm not sure if the problem maybe has something to do with the Javascript around the code.
Grab the code from this Youtube and try it:
http://de.youtube.com/watch?v=jiqibXkexUA
<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/jiqibXkexUA&re ... ram><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/jiqibXkexUA&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>
If this works, you should check the Javescript Code.
-
Don Chambers
- Regular
- Posts: 3659
- Joined: Mon Feb 13, 2006 2:40 am
- Location: Chicago, IL, USA
- Contact:
That is not valid code. <embed> is a creation of Netscape. It is not now, nor has it ever been, valid. Also, the <param> tag can be self closed, ie <param name="whatever" value="whatever />.
I have not tested this, but I suspect the xhtml valid version of that code example should be:
I doubt even the param wmode is necessary.
Anyway, here is some good reading: http://alistapart.com/articles/flashsatay
I have not tested this, but I suspect the xhtml valid version of that code example should be:
Code: Select all
<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/jiqibXkexUA&rel=1" width="425" height="355"><param name="movie" value="http://www.youtube.com/v/jiqibXkexUA&rel=1" /><param name="wmode" value="transparent" /></object> Anyway, here is some good reading: http://alistapart.com/articles/flashsatay
=Don=
I have been embedding YOUTUBE everyday for many years now, using the standard YOUTUBE embed code and never had a problem.
It doubles up embed and object so all new and old browsers can read it.
I have a website I serve my own flash videos with a player. I do it all the time. So I just did what I do on the webpage and tried with serendipity and it just doesnt work AT ALL! I mean if I mess something up on the webpage things go wrong and dont work but its THERE in some form or other. Serendipity just completely ignores it. So I don't know ....
I thought maybe it needs some sort of event plugin or something...
It doubles up embed and object so all new and old browsers can read it.
I have a website I serve my own flash videos with a player. I do it all the time. So I just did what I do on the webpage and tried with serendipity and it just doesnt work AT ALL! I mean if I mess something up on the webpage things go wrong and dont work but its THERE in some form or other. Serendipity just completely ignores it. So I don't know ....
I thought maybe it needs some sort of event plugin or something...
-
Don Chambers
- Regular
- Posts: 3659
- Joined: Mon Feb 13, 2006 2:40 am
- Location: Chicago, IL, USA
- Contact:
RJ - I didn't mean to imply it would not work... in fact, it does in MOST browsers, because they adopted Netscape's <embed> tag. Still does not make it valid code, something I always try to achieve.
It might help if you could point to a permalink on your site where you believe it should work, but does not.
It might help if you could point to a permalink on your site where you believe it should work, but does not.
=Don=
I knew you knew that! 
Its just one of those incorrect things that are done about a million times a day. I dont think that is an exaggeration!
Well I got it working in FF but not IE. I think my problem was that I was putting the swf and js files in the root when they should go in the template directory with the index and entries files... I think! Not sure why it suddenly began working. But I did copy them over there. Why it doesnt work in IE I can probably figure out sooner or later.
If you have a clue as to what that could be about here is the URL
http://rackjite.com
Its the first article.
As to serving videos oneself in general... I have a video heavy blog and it seems to me that either you go all youtube or all serve yourself. Youtube slows down page load, but serving videos uses up bandwidth, and what if 1000 people hit a 20 meg file everyday for a week???
So if you had say 10 embeded youtubes on the frontpage, would that make the load slower than if you had 1 or 2 embeded youtubes? I guess I am asking once it goes to youtube to get it, does it take the same amount of time to get each one or once it connects do they all come easy?
There is also the copyright issue. Things can be yanked off Youtube fast and furious, but VIACOM aint going out checking little blogs for self serving.
Its just one of those incorrect things that are done about a million times a day. I dont think that is an exaggeration!
Well I got it working in FF but not IE. I think my problem was that I was putting the swf and js files in the root when they should go in the template directory with the index and entries files... I think! Not sure why it suddenly began working. But I did copy them over there. Why it doesnt work in IE I can probably figure out sooner or later.
If you have a clue as to what that could be about here is the URL
http://rackjite.com
Its the first article.
As to serving videos oneself in general... I have a video heavy blog and it seems to me that either you go all youtube or all serve yourself. Youtube slows down page load, but serving videos uses up bandwidth, and what if 1000 people hit a 20 meg file everyday for a week???
So if you had say 10 embeded youtubes on the frontpage, would that make the load slower than if you had 1 or 2 embeded youtubes? I guess I am asking once it goes to youtube to get it, does it take the same amount of time to get each one or once it connects do they all come easy?
There is also the copyright issue. Things can be yanked off Youtube fast and furious, but VIACOM aint going out checking little blogs for self serving.