|
|
Rank: Devotee
Joined: 12/4/2006 Posts: 57
|
Hi all, further to my attempts at trying to integrate flash player with Umbraco (player downloaded from here http://www.jeroenwijering.com) I am banging my head against a brick wall. This is how I have my template setup; Code:
<br style="clear: both;" /> <div id="player">This content requires the Adobe Flash Player. <a href=http://www.adobe.com/go/getflash/>Get Flash</a> to see this player.</div> <script type="text/javascript" src="/media/js/swfobject.js" /> <div id="player">This text will be replaced</div> <script type="text/javascript"> var so = new SWFObject('/media/clips/flvplayer.swf','mpl','320','340','7'); so.addParam('allowfullscreen','true'); so.addVariable('displayheight','240'); so.addVariable('file',/media/clips/playlist.xml'); so.addVariable('height','340'); so.addVariable('width','320'); so.write('player'); </script> <br />
But this did not work. If I then however tried to do it like this; Code:
<br style="clear: both;" /> <div id="player">This content requires the Adobe Flash Player. <a href=http://www.adobe.com/go/getflash/>Get Flash</a> to see this player.</div>
<script type="text/javascript" src="/media/js/swfobject.js" />
<script type="text/javascript" src="/media/js/player.js" />
This worked fine in Firefox but still nothing in IE 7. I am going round and round in circles with this considering it should be a quite straight forward task but I think I have hit a mental block. Can anyone shed any light on how I can get this player to embed correctly within Umbraco?
|
|
Rank: Fanatic
Joined: 3/15/2007 Posts: 378 Location: Cary, NC USA
|
Andy - I actually just put something similiar together yesterday that uses this logic and the flv streaming component. I'll wrap it up in a umbraco package/macro for easy integration. give me a few hours...
|
|
Rank: Devotee
Joined: 12/4/2006 Posts: 57
|
Wow, you are a life saver, I look forward to using it! :w00t:
|
|
 Rank: Addict
Joined: 7/19/2006 Posts: 790 Location: Århus, Denmark
|
Andy. Is it only the .flv file that is not loading, or is it the entire player? Somteimes flash is a bit irritating because it needs complete urls to the files it needs, so maybe you could try giving it full urls for the .fvl files?
|
|
Rank: Devotee
Joined: 12/4/2006 Posts: 57
|
Thanks for that Morten, it is actually the flash player that will not load in IE but it works fine in Firefox?
|
|
Rank: Fanatic
Joined: 3/15/2007 Posts: 378 Location: Cary, NC USA
|
I just added playlist integration so you can either embed a single flv file or an xml playlist file. I'm going to start on the packing in the next couple hours (after lunch) so this may take just a tad longer that expected BUT I think the playlist integration was worth it. I'll keep you posted...
|
|
Rank: Fanatic
Joined: 3/15/2007 Posts: 378 Location: Cary, NC USA
|
also just tested using IE, Firefox and Netscape and all seems well...
|
|
Rank: Devotee
Joined: 12/4/2006 Posts: 57
|
John, that is great news and the playlist feature is the part that is of the greatest benefit for my specfic task. I look forward to the package. :thumbup:
|
|
Rank: Fanatic
Joined: 3/15/2007 Posts: 378 Location: Cary, NC USA
|
Andy - I don't have a public a direct way for you to download or host this package (I don't see any way to attach files in this forum) but I can email the .umb package to you - send me an email to jHodgkinson@nc.rr.com or if anyone wants to host it feel free to contact me but keep in mind this is the initial version and may need further testing and updates. NOTE: streaming flash media (flv) requires that you already have configured your server to stream flv files (visit http://blogs.ugidotnet.org/kfra/archive/2006/10/04/50003.aspx for more info). NOTE #2: This umbraco component is basically a wrapper package/macro using Jeroen Wijering's Flash Video player (visit http://www.jeroenwijering.com/?item=Flash_Video_Player for more info). Below are the basic macro properties that are initially setup. Note: everything should be customizeable so if you want to add additional properties/attributes it should be easy. Movie/Playlist File (FLV or XML) - this uses the media picker so you can upload flv or playlist xml files directly into your media folder(s). basically checks if .xml file extension exists if so the media type is flagged as a playlist otherwise will be treated as a single item object. also if flagged as a playlist, a (height - 100 pixel) attribute is added to display the playlist item so the movie will be a little smaller height-wise. Width - width of player image Height - height of player image Auto Start - auto start playing movie (I believe this only works on single item movies) Object ID - make sure you provide a unique object id for each instance in page (supports multiple embedded objects within single page) Player File - this uses the media picker so you can upload multiple players (and assign per instance) in into your media folder(s). if no player file is designated, a default player has been added into the /data/embedStreamingFlashMedia folder. Player Preview Image - this uses the media picker so you can upload preview images (and assign per instance) in into your media folder(s). Buffer Time - buffer time before streaming.
|
|
Rank: Fanatic
Joined: 3/15/2007 Posts: 378 Location: Cary, NC USA
|
Andy - if I didn't mention above the package is ready so just shoot me an email to the address mentioned in the previous post. also something else I missed in the macro property descriptions above, the player preview image only applies to the non-playlist items as well. also what version of umbraco are you using?
|
|
Rank: Devotee
Joined: 12/4/2006 Posts: 57
|
Hi John, thanks for all your help so far. I have sent you an email with my email address. I am currently working with V3 Beta.
|
|
Rank: Fanatic
Joined: 3/15/2007 Posts: 378 Location: Cary, NC USA
|
Andy - just sent you the package. please let me know if you have any questions, run into any bugs/problems, or if there are any enhancements you would like added. I'm also using a 3.0 beta so it should work out. also, make sure you have the umbraco\umbraco\components\macroRenderings\umbraco.macroRenderings.dll copied into your umbraco presentation bin directory otherwise you won't be able to insert macros correctly. again - many thanks.
|
|
Rank: Fanatic
Joined: 3/15/2007 Posts: 378 Location: Cary, NC USA
|
Andy - also I created a folder in my media directory and uploaded files into it for use, ie:
/media /media/videos/ /media/players/ /media/backgrounds/ /media/playlists/
and then dropped the sample files Jeroen put togther into the /data/embedStreamingFlashMedia so you can add them or your own files to test. then just plug them into when adding the macro to you page. remember add a unique object id for each instance (ie: player1, player2, etc) and if you don't specify a player then the sample one in /data/embedStreamingFlashMedia will be used... good luck... let me know how it goes...
|
|
Rank: Devotee
Joined: 12/4/2006 Posts: 57
|
Thank you very much, works like a charm! No problem getting it up and running. Gonna play around with it some and will let you know how I get on! :w00t::thumbup::w00t:
|
|
Rank: Devotee
Joined: 12/4/2006 Posts: 57
|
Hi John, things are going great, I have got the player live on my site and all looks well. I have noticed one small glitch that I can't seem to pin down. When viewing in IE7 sometimes the player does not appear unless you refresh the page a couple of times, how strange?
|
|
Rank: Devotee
Joined: 12/4/2006 Posts: 57
|
Recon it has got to be a problem with my browser so please ignore last post. :blush:
|
|
Rank: Fanatic
Joined: 3/15/2007 Posts: 378 Location: Cary, NC USA
|
Andy - I'll do some testing on my end. I tested using IE 6.x yesterday... I'll let you know what I find out...
|
|
Rank: Fanatic
Joined: 3/15/2007 Posts: 378 Location: Cary, NC USA
|
Andy - just tested with IE 7 and I did notice a couple things. make sure you have the latest flash plugin installed (http://www.macromedia.com/go/getflashplayer or click on the get flashlink) and then close down your web browser and clear out your cache. I think I also set my browser settings to always get the latest version of the webpage but try that after making sure you have the latest flash plugin. I'm going to make a couple more tweaks and I'll send you and update and see if I can get around this cache issue. of note, I did see there were some similiar issues others were having using the scripting library as well: http://www.jeroenwijering.com/?forum=Bugs_and_problems
|
|
Rank: Devotee
Joined: 12/4/2006 Posts: 57
|
Great, I thought it was just me doing something wrong!
|
|
Rank: Fanatic
Joined: 3/15/2007 Posts: 378 Location: Cary, NC USA
|
Andy - I've got a fix for you. basically it looks like there is an issue with IE 7 caching the javascript/object embedding logic and then being able to parse it correctly (if I understand correctly from quickly glancing over the previous posts) SO what I've done is modified the xslt logic to create a makeshift cachebuster reference when wiring up the player file using a date/time stamp lookup so the refence is actually changing with every request. I tested under IE 7 and it appears to work. Give me a few minutes to re-package and I'll send you the updates...
|
|
|
Guest |