Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4468 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

I am a new hand in PHP API. I want to play sound files on the web from container fields (say Sound_A) of filemake database. I only know the use of

echo $fm->getContainerData($_GET['path'])

which displays an image on the web. Does it work on audio or video files as well?

Posted

I haven't done it, but I don't see why it wouldn't. If you try it, post back here and let us know how it worked.

  • Newbies
Posted

Thanks. I followed the tutorial for displaying image using FM PHP as below:

In Display.php, there is on script as below:

<?php if ($record->getField('Raw_Text::RT_Media')) {?> <IMG src="containerBridge.php?path=<?php echo urlencode($record->getField('Image_field')); ?>" width="600" height="400"> <?php } ?>

It calls containerBridge.php with the key script as below:

<?php echo $fm->getContainerData($_GET['path']);?>

It works! If Image_field has value, it will be displayed.

I wonder if I can use the same way to play an audio file as below:

<embed name=EmbedName src="containerBridge.php?path=<?php echo urlencode($record->getField(Audio_field)); ?>" width="600" height="400" showpositioncontrols=”1″ showstatusbar=”1″ controls=”ControlPanel” autostart="1" loop=”1″ playCount=”100″></embed>

If not, how can I get the path of a media file?

This topic is 4468 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.