Flash/Flex: play embedded AAC audio?
Posted
by aaaidan
on Stack Overflow
See other posts from Stack Overflow
or by aaaidan
Published on 2010-05-27T02:34:58Z
Indexed on
2010/05/27
2:41 UTC
Read the original article
Hit count: 568
I'm pretty sure of the answer, but just wanted to check with you all.
Is it possible to play an embedded AAC file in Flash/Flex somehow? I know you can playback embedded MP3 files, but I hear that you can't do that with AAC. Anyone know any sneaky ways to get around this?
By way of illustration, here's come code.
[Embed(source='../../audio/music02.m4a', mimeType="audio/aac")]
private static const __ExampleMp4File:Class;
public var myMp4Sound:Sound = new __ExampleMp4File();
public function EmbeddedAudioTest()
{
myMp4Sound.play();
}
© Stack Overflow or respective owner