FORUMS: list search recent posts

FLVPlayback - Video but no Audio

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Mike Lathrop
FLVPlayback - Video but no Audio
on Sep 20, 2012 at 6:52:55 pm

I'm building a flash projector who's main purpose is to play video.

Everything was working great, but occaisionally the video player showed video but no audio. It did this inconsistently - sometimes it would work, sometimes it didn't, and the volume always reported back as "1"

Here is some of the excerpted as3 I've written:

flv_player.height = 720;
flv_player.width = 1280;
flv_player.x = 0;
flv_player.y = 0;
flv_player.fullScreenTakeOver = false;
flv_player.source = my_source; // (variable string containing path to f4v file)
// ======= //;; // number

for now, I've fixed the problem by throwing in a half second wait using setInterval, after adding the child and starting the player (where // ===== // appears above

What bothers me about this fix is:

A) there's a half second of sitting on black and
B) I don't know why it's not working or why a wait fixes it.

I tried waiting to play until the
event fired from the the FLVPlayback object, but no dice.

Any ideas out there?

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved