Loading...
 
Skip to main content

Features / Usability


Play embedded audio file

posts: 17

Hello,

I would like to embed an audio file in my wiki so that a user could click on a link, launch a player, and listen to the audio. I can currently set up a link that will launch a quicktime player on a blank white screen. What I want to do is have the link launch a small player in a new window on top of the wiki. I understand that the "embed" command does not work any more but I can't find the correct way to do this now. Thanks in advance for your help.

Will

posts: 257 United States

Hi!,

I just ftp the file to a folder at my domain and then link to it with a standard A HREF tag(I've omitted the brackets so it shows up):

A HREF="http://www.myaurora.org/mp3s/Toddotis.mp3" TARGET="new"

Target="new" opens a new browser screen. Be sure to "allow HTML" at the bottom of the edit page (and be sure it's on in the global wiki prefs)

The user left clicks and it just starts playing through the browser's chosen MP3 player and a right click lets them download it. I frankly don't know why it works but I'm happy it does!

posts: 17

Thanks so much for the help. Adding the target setting launches the new tab or browser, which makes a big difference.

I believe that a separate player can be launched, if the embed tag were available. There are some JS solutions to make this happen but I don't quite get how to do that.

Now, the audio only plays in a QuickTime player, which doesn't want to hold an image or anything else, is a blank looking screen, and won't work for anyone without QT installed...?


posts: 257 United States

Glad it worked!

I am now getting out of my knowledge zone but my guess is that Quicktime is your default player in your browser. As I have not heard any complaints I can only assume other chosen players in our client's browsers work too.

I also am curious about embedding as I've tried to embed YouTube and other video podcasts. TW seems to strip all these out when I save.

posts: 17

I have had success with YouTube by using an inline frame, as follows (leaving out the < and > tags):

iframe src="http://www.youtube.com/v/NbParxfzXpk" width="180" height="150" /iframe

You need to give the dimensions for the frame, but otherwise this seems to display fine. Make sure you have html enabled...;-)

Hope this works for you.

posts: 4668 Japan

> I also am curious about embedding as I've tried to embed YouTube and other video podcasts. TW seems to strip all these out when I save.

))YouTube(( videos can be played with Tiki's bundled FLASH plugin. See http://www.zukakakina.com/Youtube. The idea of wiki syntax and plugins to extend it is that HTML can be avoided and page authoring made easier (and vulnerabilities reduced — this is why certain things are stripped out) Embed is now deprecated anyway. Plugins should be taken advantage of when possible. There are also flowplayer and xspf_player plugins at mods.tikiwiki.org, and I believe marclaporte did a plugin specifically for youtube videos, though as mentioned the default flash plugin does the job.

-- Gary