Overblog Tous les blogs Top blogs Technologie & Science Tous les blogs Technologie & Science
Editer l'article Suivre ce blog Administration + Créer mon blog
MENU

This is a bunch of tips and techniques related to Oracle PL/SQL and Forms.

Publicité

A JavaBean to play sound files

Purpose

This is a JavaBean that allows to play sound files from the file system.

Sound JavaBean


The Java code

sound.java    soundlist.java      soundloader.java

note : the jar file must be signed


Implementation Class property

      oracle.forms.fd.Sound


The properties you can set

Set the file name to read

Set_Custom_Property( 'BLK.BEAN', 1, 'SET_FILE', 'directory,filename' ) ;


Play the sound

Set_Custom_Property( 'BLK.BEAN', 1, 'PLAY', '' ) ;


The sample dialog

     . Download the sound.zip file
     . Unzip the file
     . copy the sound.jar file in the <ORACLE_HOME>/forms/java directory
     . Edit your /forms/server/formsweb.cfg file
     . Open the SOUND.fmb module (Oracle Forms 9.0.2)
     . Compile all and run the module


Publicité
Retour à l'accueil
Partager cet article
Repost0
Pour être informé des derniers articles, inscrivez vous :
Commenter cet article