Census Audio

The Census Audio component allows content authors to embed audio source files on AEM pages. 

On This Page:

Example

View on public site:

When to Use

Use the Census Audio file when you wish to embed audio files on your AEM webpage.

Responsive Design Displays:

  • Desktop: Displays, in regular size, within the main content
  • Most Tablets (959 - 601 pixels): Displays, in reduced size, within the main content
  • Small Tablets/ Large Phones (600 - 321 pixels): Displays, in reduced size, within the main content
  • Standard Phones (320 pixels and less): Displays, in reduced size, within the main content

Usage

The Census Audio component supports only mp3 audio files, uses the Census Flash Player to embed audio and will display an HTML5 audio player to browsers that support using HTML5 audio.

Census Audio Title

Audio description.

Configure Dialog

The configure dialog allows the content author to define the audio source file.

audio
  • Title - If you'd like to add a Section Title, insert it here.
  • Title Size - Choose the title size.
  • Title Alignment - Choose how to align the title.
  • Description - If you'd like to add a description to your audio file, insert it here.
  • Audio Source - Insert the mp3 audio file here.

 

Developer Resources

<div id="audio_entry">

            <script type="text/javascript">

            $(document).ready(function () {

                var flashvars = {};

                flashvars.ccMediaName = "//broadcast.census.gov/comm/sis/youcount.mp3";

                flashvars.ccCaptionSource = "";

                flashvars.ccAudioImage = "";

                flashvars.ccCaptionLanguage="";

                flashvars.ccMediaBufferTime = ".5";

                flashvars.ccMediaHeight = "0";

                flashvars.ccMediaWidth = "0";

                flashvars.ccMediaRewind = "true";

                flashvars.ccCaptSourceType = "external";

                flashvars.ccPlayerControls = "//"+"broadcast.census.gov"+"/main/swf_flv/ccControls_audio.swf";

 

                var params = {};

                params.bgcolor = "#ffffff";

 

                var attributes = {};

                attributes.id = "ccPlayerAS3aud";

                attributes.name = "ccPlayerAS3aud";

 

                swfobject.embedSWF("//"+"broadcast.census.gov"+"/main/swf_flv/ccPlayerAS3.swf", "audioplayer", "400", "52", "9.0.0", false, flashvars, params, attributes);

});

            </script>

 

 

            <div id="audioplayer">

               <audio controls="">

                <source src="//broadcast.census.gov/comm/sis/youcount.mp3" type="audio/mpeg">

                </audio>

            </div>

        </div>

Top of Section
Is this page helpful?
Thumbs Up Image Yes Thumbs Down Image No
NO THANKS
255 characters maximum 255 characters maximum reached
Thank you for your feedback.
Comments or suggestions?

Top

Back to Header