Xslt Umbraco mediacurrent getmedia problem flash player
I'm having some problems with mediacurrent in xslt, In my flash player it renders the url link but with the file type and size attributes. It renders something like /media/7299/blah_blah.swfswf172228.
Ive tried changing the variable name with getmeda as below, but still no luck..
The $videopath contains the entire XML of the media node, så you need to grab the path to the file from that variable. Are you using the new XML schema?
For whatever reason, when you use the mediaCurrent parameter type, it returns the media XML wrapped in another element according to it's type, such as <Image> or <File>
Xslt Umbraco mediacurrent getmedia problem flash player
I'm having some problems with mediacurrent in xslt, In my flash player it renders the url link but with the file type and size attributes. It renders something like /media/7299/blah_blah.swfswf172228.
Ive tried changing the variable name with getmeda as below, but still no luck..
Any suggestions? Below is the rest of my code and im using umbraco 4.6.1
Hi Graeme.
Try something like this:
The $videopath contains the entire XML of the media node, så you need to grab the path to the file from that variable. Are you using the new XML schema?
/Kim A
Hi Kim, i just tried what you posted and the url field is now empty? i think I am using the new xml schema
Hi,
For whatever reason, when you use the mediaCurrent parameter type, it returns the media XML wrapped in another element according to it's type, such as <Image> or <File>
So to access the properties, you need to use:
(replacing /File/ with whatever the alias of the MediaType you are using - or you can just use $videoPath/*/umbracoFile)
Hope this helps,
Tom
is working on a reply...