Audio / video

Use pyfbsdk::FBAudioClip to play audio, or access properties of an audio , for example:

myAudio = FBAudioClip("c:\\example.wav")FBAudioClip.Play(myAudio)

See also the code sample in AudioTrackSetupTool.py.

pyfbsdk::FBVideo is a general media class for images, video clips and video memory.

The following code snippet shows how to load with FBAudioClip and then validate with FBVideoClip::IsValid:

# load a file
myVideo = FBVideoClip("c:\\example.avi") 
# verify the path and file are valid 
if myVideo.IsValid(): 
    # do something

See also the code sample in ShotTrackSetupTool.py and in the C++ sample toolaudio.