SlideShare une entreprise Scribd logo
1  sur  17
Audio Content Management




        www.prodigyview.com
Overview
Objective

Learn how to manipulate audio content of ProdigyView’s built-in content
management system. Also learn how to upload an audio file directly into
the cms.

Requirements

 Installed version of ProdigyView with a database
 Understanding of base content
 Understanding of the DEFINES in ProdigyView
 Understanding of FFMPEG from the FFMPEG tutorials
Estimated Time

13 minutes

                          www.prodigyview.com
Follow Along With Code
                  Example
1. Download a copy of the example code at www.prodigyview.com/source.
2. Install the system in an environment you feel comfortable testing in.
3. Proceed to examples/content/AudioContentWithFileExample.php




                              www.prodigyview.com
What Is Audio Content?
Audio content is content designed to facilitate the storing
and retrieval of audio files. Natively, ProdigyView supports
midi, oga, wav, ra, mp3, and aif files. FFMPEG is required
for conversions. Examples usage of audio content can be:



  Independent Artist
  Sound Clips
  Music Libraries
  Audio Books
  etc                  www.prodigyview.com
Extends Base Content
Like the other content types, audio content extends base
content. This means it has all the fields that base content
has in addition to the fields that describes an audio file.




      Audio Content Fields                     Base Content Fields




                         www.prodigyview.com
Create Audio Content
  Audio content is relatively easy to create. In an array, passed
  defined fields into PVContent::createAudioContent method.

                       1. Define the content that will be stored as audio content




3. Return content id        2. Pass the array to PVContent::createAudioContent
Database View
Remember that the audio content utilizes both the base
content and audio content fields. This is accomplished
by joining two tables. Your two tables in the database
should look something like below.


                 Base Content Database View




                 Audio Content Database View
Audio Content
       Fields
The previous slide only showed a
few fields that can be set when
defining audio content. Here is a
complete list of fields that apply only
to the audio content.




                           www.prodigyview.com
Create Audio Content with File
Similar to creating normal audio content, creating audio content
with a file is accomplished through setting arguments correctly.
In the example below, also going to perform a conversion when
the file is copied.

 1. Name of the file    2. The location the file currently 3. The size of the file
                        resides




  4. The type of file   5. Make an oga and wav copy            6. Upload into cms
Database View
The file will be uploaded will be placed in the PV_Audio folder
and a reference link will be placed in the database. Your database
should look something like this:


1. Auto generated random file name for converted wav file




         2. Auto generated random file name for mp3 file




                               www.prodigyview.com
Search for Audio Content
 Using the syntax from the PV Standard Search Query, we
 can search for content related to audio content on fields for
 both base content and audio content.

       1. Search based on the passed arguments




                                       2. Pass args into getAudioContentList()
                                       method
3. Returns an array of arrays that
contains the list of audio content
                                www.prodigyview.com
Iterate Through The List
Next we can iterate through the list of audio content to
see the data we just added.

1. Iterate through the base content fields




                             2. With the automatic joining of the tables, audio
                             content fields are also returned
Retrieving Audio Content
Audio content can also be retrieved directly using the content
id. The data associated with that content id will be returned in
array.
                                        1. Pass in the content id

  2. Content is returned in an array




  3. Get the values of the array by specifying
  the associated index
Updating Audio Content
That array contains the information for updating the Audio
content. Simply change a value at an index in the array and
pass it to PVContent::updateAudioContent() method.
Remember the content_id variable is required.



       1. Update the audio content’s length




                              2. Pass the array back to update
Deleting Audio Content
The last action to take place is deleting the audio content.
To delete content, we pass the content id into
PVContent::deleteContent method.

All the content types(audio, video, event, etc) use the
PVContent::deleteContent method. Associated files
will be deleted also.




                      www.prodigyview.com
Review
1. Create audio content by passing an array of arguments into
   PVContent::createAudioContent()

2. PVContent::createAudioContent() will return the id of the
   newly generated Audio content

3. Search for audio content by using the syntax from PV
   Standard Search Query and passing those arguments into
   PVContent::getAudioContentList()

4. Update content by passing an array of accepted fields in
   PVContent::updateAudioContent(). The content_id must
   be present for this method to work.

5. Delete Audio content by passing the content_id into
   PVContent::deleteContent().
                        www.prodigyview.com
API Reference
For a better understanding of audio content, visit the api
by clicking on the link below.

PVContent




                 More Tutorials
For more tutorials, please visit:

http://www.prodigyview.com/tutorials


                       www.prodigyview.com

Contenu connexe

Similaire à Audio Content Management

TERMINALFOUR t44u 2009 - University of York Case Study
TERMINALFOUR t44u 2009 - University of York Case StudyTERMINALFOUR t44u 2009 - University of York Case Study
TERMINALFOUR t44u 2009 - University of York Case Study
Terminalfour
 
Day3 dec16-2011
Day3 dec16-2011Day3 dec16-2011
Day3 dec16-2011
ecacs
 
La Nación - EditorsLab Hackdays Finale -
La Nación - EditorsLab Hackdays Finale -La Nación - EditorsLab Hackdays Finale -
La Nación - EditorsLab Hackdays Finale -
Global Editors Network
 

Similaire à Audio Content Management (20)

Enterprise Content Management
Enterprise Content ManagementEnterprise Content Management
Enterprise Content Management
 
Video formats guide
Video formats guideVideo formats guide
Video formats guide
 
Active Server Page - ( ASP )
Active Server Page - ( ASP )Active Server Page - ( ASP )
Active Server Page - ( ASP )
 
File upload in asp.net
File upload in asp.netFile upload in asp.net
File upload in asp.net
 
KKBOX WWDC17 Airplay 2 - Dolphin
KKBOX WWDC17 Airplay 2 - DolphinKKBOX WWDC17 Airplay 2 - Dolphin
KKBOX WWDC17 Airplay 2 - Dolphin
 
Crud operations using aws dynamo db with flask ap is and boto3
Crud operations using aws dynamo db with flask ap is and boto3Crud operations using aws dynamo db with flask ap is and boto3
Crud operations using aws dynamo db with flask ap is and boto3
 
SophiaConf2010 Présentation des Retours d'expériences de la Conférence du 08 ...
SophiaConf2010 Présentation des Retours d'expériences de la Conférence du 08 ...SophiaConf2010 Présentation des Retours d'expériences de la Conférence du 08 ...
SophiaConf2010 Présentation des Retours d'expériences de la Conférence du 08 ...
 
Adding closed captions_youtube
Adding closed captions_youtubeAdding closed captions_youtube
Adding closed captions_youtube
 
Biothings presentation
Biothings presentationBiothings presentation
Biothings presentation
 
Rubedo CMS : Tutorial Content import
Rubedo CMS : Tutorial Content importRubedo CMS : Tutorial Content import
Rubedo CMS : Tutorial Content import
 
TERMINALFOUR t44u 2009 - University of York Case Study
TERMINALFOUR t44u 2009 - University of York Case StudyTERMINALFOUR t44u 2009 - University of York Case Study
TERMINALFOUR t44u 2009 - University of York Case Study
 
Podcasting Workshop
Podcasting WorkshopPodcasting Workshop
Podcasting Workshop
 
Videostream compression in iOS
Videostream compression in iOSVideostream compression in iOS
Videostream compression in iOS
 
Podcasting the Place: Using Tech to Create Community
Podcasting the Place: Using Tech to Create CommunityPodcasting the Place: Using Tech to Create Community
Podcasting the Place: Using Tech to Create Community
 
Day3 dec16-2011
Day3 dec16-2011Day3 dec16-2011
Day3 dec16-2011
 
People aggregator
People aggregatorPeople aggregator
People aggregator
 
La Nación - EditorsLab Hackdays Finale -
La Nación - EditorsLab Hackdays Finale -La Nación - EditorsLab Hackdays Finale -
La Nación - EditorsLab Hackdays Finale -
 
14 asp.net session20
14 asp.net session2014 asp.net session20
14 asp.net session20
 
Feed the Masses
Feed the MassesFeed the Masses
Feed the Masses
 
Murach': HOW TO DEVELOP A DATA DRIVEN MVC WEB
Murach': HOW TO DEVELOP A DATA DRIVEN MVC WEB Murach': HOW TO DEVELOP A DATA DRIVEN MVC WEB
Murach': HOW TO DEVELOP A DATA DRIVEN MVC WEB
 

Plus de ProdigyView

Plus de ProdigyView (20)

Installing Plug-ins
Installing Plug-insInstalling Plug-ins
Installing Plug-ins
 
Building An Application
Building An ApplicationBuilding An Application
Building An Application
 
Installing Applications
Installing ApplicationsInstalling Applications
Installing Applications
 
Email Configuration
Email ConfigurationEmail Configuration
Email Configuration
 
HTML5 Tags and Elements Tutorial
HTML5 Tags and Elements TutorialHTML5 Tags and Elements Tutorial
HTML5 Tags and Elements Tutorial
 
HTML Forms Tutorial
HTML Forms TutorialHTML Forms Tutorial
HTML Forms Tutorial
 
Html Tags Tutorial
Html Tags TutorialHtml Tags Tutorial
Html Tags Tutorial
 
Video Conversion PHP
Video Conversion PHPVideo Conversion PHP
Video Conversion PHP
 
Sending Email Basics PHP
Sending Email Basics PHPSending Email Basics PHP
Sending Email Basics PHP
 
Tools ProdigyView
Tools ProdigyViewTools ProdigyView
Tools ProdigyView
 
Custom Validation PHP
Custom Validation PHPCustom Validation PHP
Custom Validation PHP
 
Understanding Web Cache
Understanding Web CacheUnderstanding Web Cache
Understanding Web Cache
 
Javascript And CSS Libraries
Javascript And CSS LibrariesJavascript And CSS Libraries
Javascript And CSS Libraries
 
PHP Libraries
PHP LibrariesPHP Libraries
PHP Libraries
 
Database Basics
Database BasicsDatabase Basics
Database Basics
 
Implementing the Adapter Design Pattern
Implementing the Adapter Design PatternImplementing the Adapter Design Pattern
Implementing the Adapter Design Pattern
 
Intercepting Filters Design Pattern
Intercepting Filters Design PatternIntercepting Filters Design Pattern
Intercepting Filters Design Pattern
 
Creating Dynamic Objects PHP
Creating Dynamic Objects PHPCreating Dynamic Objects PHP
Creating Dynamic Objects PHP
 
PV Standard Search Query
PV Standard Search QueryPV Standard Search Query
PV Standard Search Query
 
Prodigyview XML COnfiguration File
Prodigyview XML COnfiguration FileProdigyview XML COnfiguration File
Prodigyview XML COnfiguration File
 

Dernier

Dernier (20)

Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 

Audio Content Management

  • 1. Audio Content Management www.prodigyview.com
  • 2. Overview Objective Learn how to manipulate audio content of ProdigyView’s built-in content management system. Also learn how to upload an audio file directly into the cms. Requirements  Installed version of ProdigyView with a database  Understanding of base content  Understanding of the DEFINES in ProdigyView  Understanding of FFMPEG from the FFMPEG tutorials Estimated Time 13 minutes www.prodigyview.com
  • 3. Follow Along With Code Example 1. Download a copy of the example code at www.prodigyview.com/source. 2. Install the system in an environment you feel comfortable testing in. 3. Proceed to examples/content/AudioContentWithFileExample.php www.prodigyview.com
  • 4. What Is Audio Content? Audio content is content designed to facilitate the storing and retrieval of audio files. Natively, ProdigyView supports midi, oga, wav, ra, mp3, and aif files. FFMPEG is required for conversions. Examples usage of audio content can be:  Independent Artist  Sound Clips  Music Libraries  Audio Books  etc www.prodigyview.com
  • 5. Extends Base Content Like the other content types, audio content extends base content. This means it has all the fields that base content has in addition to the fields that describes an audio file. Audio Content Fields Base Content Fields www.prodigyview.com
  • 6. Create Audio Content Audio content is relatively easy to create. In an array, passed defined fields into PVContent::createAudioContent method. 1. Define the content that will be stored as audio content 3. Return content id 2. Pass the array to PVContent::createAudioContent
  • 7. Database View Remember that the audio content utilizes both the base content and audio content fields. This is accomplished by joining two tables. Your two tables in the database should look something like below. Base Content Database View Audio Content Database View
  • 8. Audio Content Fields The previous slide only showed a few fields that can be set when defining audio content. Here is a complete list of fields that apply only to the audio content. www.prodigyview.com
  • 9. Create Audio Content with File Similar to creating normal audio content, creating audio content with a file is accomplished through setting arguments correctly. In the example below, also going to perform a conversion when the file is copied. 1. Name of the file 2. The location the file currently 3. The size of the file resides 4. The type of file 5. Make an oga and wav copy 6. Upload into cms
  • 10. Database View The file will be uploaded will be placed in the PV_Audio folder and a reference link will be placed in the database. Your database should look something like this: 1. Auto generated random file name for converted wav file 2. Auto generated random file name for mp3 file www.prodigyview.com
  • 11. Search for Audio Content Using the syntax from the PV Standard Search Query, we can search for content related to audio content on fields for both base content and audio content. 1. Search based on the passed arguments 2. Pass args into getAudioContentList() method 3. Returns an array of arrays that contains the list of audio content www.prodigyview.com
  • 12. Iterate Through The List Next we can iterate through the list of audio content to see the data we just added. 1. Iterate through the base content fields 2. With the automatic joining of the tables, audio content fields are also returned
  • 13. Retrieving Audio Content Audio content can also be retrieved directly using the content id. The data associated with that content id will be returned in array. 1. Pass in the content id 2. Content is returned in an array 3. Get the values of the array by specifying the associated index
  • 14. Updating Audio Content That array contains the information for updating the Audio content. Simply change a value at an index in the array and pass it to PVContent::updateAudioContent() method. Remember the content_id variable is required. 1. Update the audio content’s length 2. Pass the array back to update
  • 15. Deleting Audio Content The last action to take place is deleting the audio content. To delete content, we pass the content id into PVContent::deleteContent method. All the content types(audio, video, event, etc) use the PVContent::deleteContent method. Associated files will be deleted also. www.prodigyview.com
  • 16. Review 1. Create audio content by passing an array of arguments into PVContent::createAudioContent() 2. PVContent::createAudioContent() will return the id of the newly generated Audio content 3. Search for audio content by using the syntax from PV Standard Search Query and passing those arguments into PVContent::getAudioContentList() 4. Update content by passing an array of accepted fields in PVContent::updateAudioContent(). The content_id must be present for this method to work. 5. Delete Audio content by passing the content_id into PVContent::deleteContent(). www.prodigyview.com
  • 17. API Reference For a better understanding of audio content, visit the api by clicking on the link below. PVContent More Tutorials For more tutorials, please visit: http://www.prodigyview.com/tutorials www.prodigyview.com