Since BlogEngine finally got its extensions section up and running on the project’s home page, I put my Mp3 Player extension up there. Also I’ve been pointed on a small glitch this player has – in IE you have to click once to activate it and only after second click it will play. Not a big deal and I did not pay a lot of attention to it, mostly because pretty much every flash player I used so far has this same problem (see the picture). After short investigation I found out that reason Microsoft can’t fix this glitch is a legal one – there is a dispute over a patent going on. But MS (and Flash people) do provide works around “click to activate” problem, most of which comes down to writing “object” tag by JavaSript rather than embedding it directly into HTML code. Can be done in variety of ways for different situations and I think I found one that will work in my case. Needs a bit more testing, but looks like it should work just fine.

So I went back to Player extension and decided to add a few more features while implementing the activation thing. Firstly, I’ve added URL encoding to make sure it works in old browsers. Then I fixed building path string so it happily takes any "http://" URL along with simple "file.mp3" for the local files. Now you should be able to play any publicly available .mp3 file in the universe, and you can still use short names for local files – best of two worlds!

Another improvement is ability to play multiple files. After new release you’ll be able to add the whole play list to the single player (just separate them by commas):

It is a good basis for podcasting support (enclosures etc.). I’m thinking about tackling more podcasting features in the future.

On a totally separate note: how did we come to live in the world where two crappiest applications on my machine are iTunes and FireFox? It saddens me; I used to love them both :(

Signature

Related posts

Comments

11/6/2007 7:48:05 AM

Cool. When do you think it will be ready for download?

Stan

11/6/2007 9:05:55 AM

Should be done in a day or two, I want to finish it before weekend. I'll be out of town for a couple of days after it...

rtur.net

11/7/2007 10:44:01 AM

Hi there...

You might want to look up http://blog.deconcept.com/swfobject/
It's a de-facto standard way of dealing with flash these days. It'd be good if Blogengine would come standard with that stuff. It's been around a long time now and it just works.
An extension for dealing with any/all flash bits would be really nice.

Thanks for a nice mp3 extension...
Damir

Damir

11/7/2007 1:39:32 PM

Thanks Damir, it looks very interesting. I need some time to investigate this before adopting this approach, but I like idea of been standards compliant Smile
I have few concerns on my own, but I might be wrong and it all will play just fine. I'll give it a shot.

rtur.net

11/8/2007 12:07:46 PM

http://www.ckurl.com/techblog/post/2007/11/IE-fixing-Click-to-Activate-issue!.aspx

Looks like M$ will be releasing a fix for the click to activate.

CK

11/8/2007 3:03:00 PM

Wow... looks like Bill reads my blog when he gets bored at those charity meeting - don't see another explanation Smile

By the way, I'm using your QuickLinks extension - the word "BlogEngine" in this post made into link by it. And I'm planing to add settings page to the player extension the way you did for QuickLinks - excellent idea! Would be even better if BlogEngine had a special section in the admin for extensions if they need extra configuration etc. I would push it so far as having interface from which each extension must inherit so you can turn it on and off from admin, change settings and so on. Wouldn't be that hard and I don't think its overcomplicated.

rtur.net

4/17/2008 11:31:55 PM

Hi everyone here,

I have started a new shopping portal - www.topestore.com where I have made my all endeavors to keep the prices highly competitive. At here, you can find 1GB, 2GB digital Mp3, Mp4 players with FM Radio & much more. Let me know what you think about it and anything I should add. I would thank the community here for their suggestion/advices. Please do not consider this is a spam.

Prashant

Prashant

Add comment


 

  Country flag

biuquoteimg
Loading



<<  July 2008  >>
SuMoTuWeThFrSa
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789
Enhanced with Snapshots

Subscribe to Rtur.net