Released cfMediaPlayer on RIAForge
I've released cfMediaPlayer on RIAForge today. It's a ColdFusion custom tag wrapper to display FLV, MP3, MP4 and AAC files using the JW FLV Player™ with one line of code. For example, <cf_mediaplayer file="myvideo.flv"></cf_mediaplayer>.
This tag supports many more options than CF9's newly added cfMediaPlayer tag. Included is a readme.htm file that gives full descriptions on all of the available attributes as well as some detailed usage examples.
Download is available at http://cfmediaplayer.riaforge.org/. SVN access can be found at http://svn.riaforge.org/cfmediaplayer.
I look forward to hearing any feedback users might have. Thanks!
Comments
Glad you like it and thanks for the feedback. I haven't run into your problem with .mp4 files yet, but would suspect it might have something to do with the way the file was encoded.
Interesting ... I would check a couple things.
1. As silly as this sounds, I would make sure you have JavaScript enabled ... that happened to me once when I was doing some debugging and disabled JS but forgot to re-enable it.
2. Inspect the code that was generated and verify that the paths to the flv are correctly generated.
3. Make sure .flv is a valid mimetype on your machine.
When the video has finished playing is there a way to something similar to onComplete when using CF 9's cfmediaplayer tag?
Basically when the video is done I want to be able to immediately forward the person to another page so they can take a test.
I'm not sure I understand your question fully ... if you're asking about CF9's cfmediaplayer tag, then yes, they have an onComplete method to do that.
As for this custom tag, it just wraps the JW Player. So you should be able to use any of the methods in their API:
http://www.longtailvideo.com/support/jw-player/288...
Cheers!
-Steve
JWPlayer has changed quite a bit since I originally wrote this. Since then, I've created a plugin for Mura CMS that you should be able to glean some information from:
https://github.com/stevewithington/MuraPlayer
However, that plugin is on JWPlayer 5, not 6. When they moved to 6, they disabled many of the features that made JWPlayer so compelling unless you're willing to pay for it.
The primary pieces of the puzzle can be found in this file:
https://github.com/stevewithington/MuraPlayer/blob/develop/extensions/components/includes/jwPlayer.cfm
{ColdFusionRoot}/CFIDE/scripts/ajax/
The files are scattered around in there because the team wrote their own wrapper.
Thanks