ZenphotoCMS Forum
Flowplayer question: isAudio? isVideo? - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Flowplayer question: isAudio? isVideo? (/thread-8015.html)



Flowplayer question: isAudio? isVideo? - micheall - 2010-12-30

I'm wondering if there are any checks currently in place that I haven't been able to find in the documentation or the element index.

I want to have the opengraph keys needed to properly share rich media files to Facebook load, but only if they're actually there. Else it's going to cause some headaches...

Also, on the subject of flowplayer. I haven't checked yet, but is there a way to set flowplayer to be called similar to this:
`

`

I'm looking to be able to embed with one call without having to include a bunch of variables. Even if it's just a basic player that only calls the audio/video file.




Flowplayer question: isAudio? isVideo? - acrylian - 2010-12-30

I fear embeed or object is not possible, as I don't see that on its doc. Please take a look yourself:
http://flowplayer.org/documentation/index.html

The image class has a method to check for multimedia content type:
http://www.zenphoto.org/documentation/functions/_functions.php.html#functionisImageVideo

To differ between audio and video you will have to use the suffix. There is also a helper function:
http://www.zenphoto.org/documentation/functions/_functions-basic.php.html#functiongetSuffix




Flowplayer question: isAudio? isVideo? - fretzl - 2010-12-30

It's possible to embed but not without the variables.
However there is a plugin that generates the embed code for you.
Take a look here: http://flowplayer.org/plugins/javascript/embed.html




Flowplayer question: isAudio? isVideo? - acrylian - 2010-12-30

Ah, good, the flowplayer site is a little overcomplex at times...