Global Mute Button For FLVPlayback Component
I am building an e-learning course that uses audio voiceover. Each page of the course begins with the voiceover playing. The user can stop, start, or pause the voiceover. There may be one or more voiceover instances per page depending on page length or if other activities are present. All-in-all, there will be about 80 separate FLV audio voiceovers used throughout the course. Each page of the course is an html page (about 40 total), and each voiceover FLV is embedded/called individually.
As the voiceover is turned on by default, some users would rather take the course without sound. Instead of making the user stop or start each voiceover instance, I would like to add a global mute-button. This button needs to communicate across all voiceover instances setting the volume to mute=on/off. This way, the user only needs to press one button to turn all audio on or off throughout the course as desired.
I see there is a mute button available in the Flash 8 FLVPlayback component options. How do I script this button to talk globally to other FLV voiceover instances and solve the problem mentioned above?
-Psiseeker
FlashKit > Flash Help > Flash ActionScript
Posted on: 06-21-2006, 12:08 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Global Mute Button For Multiple Voiceovers
I am building a flash presentation that uses audio voiceovers and background music. Each section has it's own animation and voice over. The action script stops the animation from going to the next section until the VO for the current section has finished playing. There are 12 different animation sections and 12 voiceovers all on one timeline, not the root timeline. Each section is it's own movie clip and includes the VO.
I put a global mute button on the root timeline and it will mute the VO for the section that is currently playing but when it goes to the next section the sound comes back on.
How do I write the script so the global mute button will mute all the VOs at one time and so the user doesn't have to click the mute button at the begining or every section?
New to scripting and can't figure this out.
Video Component Mute Button To Off By Default
Hello,
I want to set the FLV component Mute button off by default. I have seen this question asked across many forums but not answered.
All the literature I read it only tells you how to associate the mute button with the video clip but not how to control it. The only control is the volume. When set to 0 overrides any toggle of the mute button and keeps the sound off.
ex. videoclip.muteButton = mute; //mute being instance name of the mute button component
Can someone give me any direction on how to set the default to mute.
Thank You, Jacob
[F8] Setting An FLV Mute By Default,, Using The Mute Component.
Here is the scenario. Ive got an FLV object, that Ive associated a mute component with. I didnt want a complete set of skin controls, only the mute button. So everything is great so far. The video streams, and Ive associated the Mute component with the FLV,, and it works. BUT,, I desire to default the movie and the button to MUTE. So video starts to stream, and no sound until un-muted,, but the hell if I can figure out how to set the movie to mute and associate the button with it. I can set the volume to 0, on the FLV,, but that really isnt utilizing the Mute component, and then the Mute component does nothing after that. I know its a simple attribute that I dont know about,, so thanks in advance.
Button On FLVPlayback Component
I have 2 versions of a set of FLV movies -- one designed for visitors with broadband and one designed for visitors with dial-up. I want to offer visitors a choice of which version of the movie to view by putting a radio button group or dropdown menu on the FLVPlayback control. (See, e.g., the NYT homepage control.) How do I customize the control for this behavior?
Thanks.
Mute/unmute Button For Streaming Audio Using Mp3s In 'media Display' Component
I am currently streaming an mp3 onto my site through the media display component which is invisible. This is great apart from I cannot seem to make a mute/unmute button to control it. I've tried the other streaming component(media playback) but I don't want anything that big or need all the control that it offers. Really I just want a mute/unmute button or possible a volume slider. I have tried this method...
(first frame)
my_mainsound = new Sound(this);
my_mainsound.setVolume(100);
(on a button)
on (release) {
if (SoundIsMute) {
my_mainSound.setVolume(100);
SoundIsMute = 0;
} else {
my_mainSound.setVolume(0);
SoundIsMute = 1;
}
}
....but I think this only works for sounds inside the swf as opposed to streaming sounds.
Any help ideas much appreciated.
m
How To Disable A Single Button In FLVPlayback Component Skin?
Hi,
I have a few videos that have no audio, so I don't want any volume or mute controls at all. I chose a skin that doesn't have a volume button, but there isn't one that also has no mute button. Basically, I was wondering if there's a simple method for simply turning off the mute button, visually, and functionally? Nothing really any more fancy than that.
I've read this little tutorial on it, but can't figure out how to adapt this to disabling the mute button only:
http://nerdabilly.wordpress.com/2007.../#comment-2119
If anyone can give advice on this I'd be much obliged!
preesh,
blunderbus
Turning The FLVplayback Seekbar Component Into A Play Button?
Im building a custom FLV player.
Here's the jist of what i'm trying to build :
I want the SeekBarHandle (ie, the playhead) to also be the play / pause button. Ie, the play and pause button will scroll along the bottom as the movie plays.
So if you click and drag the play button it'll scrub through the movie left and right. But if you just click once it'll toggle play / pause.
I've tried a couple different ways of doing this including having a separate play button that has its x value constantly set to the x value of the SeekBarHandle. This made the play button follow and appear to be the seek bar handle. However, when clicked it just played and paused, and lost its drag abilities to change the playhead of the movie.
Another method, which I'm currently on is to replace the SeekBarHandle with a play button mc...This makes everything look like its supposed to and the play button is draggable, but I can't actually figure out how to make it also start and stop the movie.
I've uploaded a zip file of the fla here : http://tinyurl.com/3rpdqj
Global Mute Problem
Hello,
I'm working a spectrum analyser type app, using SoundMixer.computeSpectrum() and plotting the points. The audio comes from a number of different sound samples played randomly.
I've created a mute button using:
var mute:SoundTransform=new SoundTransform();
mute.volume=0;
SoundMixer.soundTransform=mute;
This mutes it alright, but it also zeros the results of SoundMixer.computeSpectrum() - which isn't what I want.
So is there a way of muting the global audio but still have computeSpectrum() give results as if it wasn't muted?
Thanks for any help
Jon
Global Click Sound For Button Component
Ok, this sould be really simple, but I have having problems. All that I want to do is assign a sound to play when a button component "clicks". I can assign a click to a specific button istance, but I am having a problem assigning the click sound to all instances of any Button Object in the movie.
I am assigning a global class to all Button Objects that controlls the font, color, size, etc. But no luck with assigning a sound, or for that matter getting any event to run everytime any button is "clicked". I have dozens of buttons in the movie, and it would be Much cleaner to just assign a global sound ...
There should be a way to assign a listener to the Button Component Object. Like:
Code:
Button.click = function () {
trace ("some button was clicked");
};
//where Button is the reserved key word for the button object
any ideas?
thanks
--mm
FLV Component Goes Mute
Hi All,
I have a very strange problem,
I have several flv components on the stage
each one request sequential files from its own directory with activeVideoPlayerIndex (comp1 asks for 1/a.flv, 1/b.flv, etc. , comp2 asks for 2/a.flv, 2/b.flv, etc. and so on. The first file is always the smallest, second is a bit larger and so on)
Strange thing is if component1 requests a large file and then component2 requests a small file, and the second request is complete before the first one is the second component goes silent and there is no way to restore the sound.
Anyone familiar with that?
you can see an example here:
http://www.tagonet-ltd.com/agadir/index6.html
thanks in advance
[f8] FLVPlayback Component
I had made a class to use the FLVPlayback Component.
The code for the class is given below
//------CODE----------
import mx.video.*;
class vidPlayback {
private var my_obj:Object;
public function vidPlayback() {
my_obj = this;
my_obj.my_FlvPlayer.contentPath = "PREDA12.flv";
trace(my_obj.my_FlvPlayer.version);
}
}
//--------CODE----------
my_FlvPlayer is the component's instance name.
Now if i am right, it should trace me the version of the player. Also Player must play the FLV as well.
I m not able to judge where i have gone wrong.
Plz help
Flvplayback Component: Not Getting It
hi,
My neck hurts, I'm so tired and I can't figure this out. I was using Media contoller component but it was freezing my flvs on my site. So, there is an update to the flvplayback component, which I am now using. The video plays on my computer, but not when I upload it. I'm just not getting it.
I put the flvplayback component on my stage, I put the path to my video in the contentpath area. When I export it, it works on my computer. When I upload it, it doesn't. Am I doing something wrong?
It's a separate flv file, I have both the swf and the flv in the same directory. Is there some other code I am missing? Am I supposed to have some sort of code on a frame somewhere? I've been searching and searching but can't find a simple answer although, I know there is one.
Please help. Please, please, please!
HELP With AS3 FLVPlayback Component
Hi,
I imported a video in flash from a URL link referencing a .flv file. I also used one of the available skins and adjusted the parameters accordingly. There is currently no actionscript in this flash file. I have Autoplay set to "false", however, when the player loads, I would like a png image to be displayed as opposed to the first frame of the video. When using the "preview" parameter. I selected a frame which I would want to use as the poster image (19.687). However, I get the following message: "This has no effect on what you see when you run the published SWF. If you want to load a poster image of the FLV at run time, use the Export button to export this image as a PNG file and write ActionScript to load it in at runtime."
I have been unsuccessful in finding any actionscript documentation regarding this process.
Also, I would like to add a time code counter (00:00 / 00:00) but have been unsuccessful writing the code.
One last thing, is there a way to re-load the "actions". I am unable to see the Actions toolbox in the top left hand corner of the Actions window. It will only produce a drop down menu allowing me to select Actionscript 2.0, 3.0 etc...
Would someone be able to help me with one if not all of these issues?
Thanks so much
FLVPlayBack Component
Having a few issues with this component, namely every thing works offline perfectly using a local contentPath, yet when I upload to my webserver when I try the movie my browser activity log states it cannot find the .flv file and the page is blank.
I have amended the contentPath parameter to both a relative path and a full URL to the flv location on my webserver, the URL is definitely correct. I can see the file in the directory the contentPath is directing to in my ftp client.
Is there something I am neglecting to do?
I'm totally stumped
FLVPlayback Component
Please advice on the following inquiry:
I use FLVPlayback component and I want to create a button which will rewind a frame back. Encoding the flv sets the keyframes. Is there a way to take all the keyframes (in order to set the logic for the button), or should I the last one I have gone trough? I need the keyframes because seek() sends to keyframe. The logig for the one-frame-forward button is:
var listenerObject:Object = new Object();
var lastTime:Number=0;
listenerObject.playheadUpdate = function(eventObject:Object):Void {
trace("playhead time is: " + eventObject.playheadTime);
lastTime=eventObject.playheadTime;
};
my_FLVPlybk.addEventListener("playheadUpdate", listenerObject);
my_FLVPlybk.seek(lastTime+(1/my_FLVPlybk.metadata.framerate));
FLVplayback Component
I'm trying to create a standalone projector that contains a .flv file, however, I can't seem to point to an embedded .flv file in my library as the content source. Is there a way to do this with the FLVplaybackl component and AS and if so, how? Right now I have a FLVplayback component placed on my stage and six custom UI playback UI components to control playback, etc., all connected with six simple lines of AS to hook the button functionality to the movie.
Edited: 03/27/2007 at 08:29:40 PM by s_mccoy
FLVPlayback Component CS3
I am making a video that will enlarge to full screen using the new Actionscript 3 Flash CS3. There is no bufferTime in the Component Inspector for the FLVPlayback Component. How do I increase the bufferTime for the component?
FLVPLayback Component
I am building a site with multiple videos (FLV) for the user to choose from. I really like the ease of using the FLVPlayback component. My issue is using several instances of the component. How can I use one instance of the component and change the "contentPath" with actionscript? The instances are NOT on the same frame, I move from frame to frame to load in new movie. If doing this is not an isue with over loading the player then I am fine with using several instances.
Thanks for the help!!!
RUss
FLVPlayback Component
Can I get around importing the whole flvplayback class when I use the flvplayback component?
It takes up like 35kb in the swf which is to much if I want to use it in a banner.
Or is there any light version or anything I can do?
FLVPlayback Component
Can I stop the FLVPlayback Component from playing an flv file by using a button of my own design and not the "pause" or " stop" buttons from the component library ?
FLVPlayback Component
I have found where this question has been asked, but never answered. I need to access the buffer.Full and buffer.Empty events while using the FLVPlayback component. Does anyone have an idea on how to do this? I have gotten as desperate as to go through the FLVPlayback source code and I am at a loss. Any help appreciated.
FF On FLVPlayback Component
Hi,
how can I get the current time of a FLVPlayback component to call a seek
for fast forward and rewind?
Or is there a better way instead of the seek function to do this?
TIA
FLVPlayback Component And FMS
Hi all,
I've been trying to get my FMS server to stream to a FLVPlayback component and have had no luck. I have seen numerous posts on this subject in this forum and others, but a lot of it seems related to the older FCS and Flash 8/Actionscript 2.0 so maybe I'm not doing something right for Flash CS3/AS3.0.
Here's what I've got, using the examples from http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/video/FLVPlayback.html#includeExamplesSummary.
I have a file named FLVPlaybackExample.fla, on the stage is a FLVPlayback component instance named "player". The Document class is set to "FLVPlaybackExample". There is a file named FLVPlayback.as in the same directory with the following code:
package
{
import fl.video.FLVPlayback;
import flash.display.Sprite;
public class FLVPlaybackExample extends Sprite {
// private var videoPath:String = "
HELP With FLVPlayback Component
Hi,
I imported a video in flash from a URL link referencing a .flv file. I also used one of the available skins and adjusted the parameters accordingly. There is currently no actionscript in this flash file. I have Autoplay set to "false", however, when the player loads, I would like a png image to be displayed as opposed to the first frame of the video. When using the "preview" parameter. I selected a frame which I would want to use as the poster image (19.687). However, I get the following message: "This has no effect on what you see when you run the published SWF. If you want to load a poster image of the FLV at run time, use the Export button to export this image as a PNG file and write ActionScript to load it in at runtime."
I have been unsuccessful in finding any actionscript documentation regarding this process.
Also, I would like to add a time code counter (00:00 / 00:00) but have been unsuccessful writing the code.
One last thing, is there a way to re-load the "actions". I am unable to see the Actions toolbox in the top left hand corner of the Actions window. It will only produce a drop down menu allowing me to select Actionscript 2.0, 3.0 etc...
Would someone be able to help me with one if not all of these issues?
Thanks so much :)
FLVPlayback Component
Hi,
This is my first time in AS 3, can some body tell me how to get the total and elapsed time and after getting it how do i display it in a text field.
Please help me it is very urgent. I am attaching my code with this mail.
Attach Code
var flvSou:String;
var dynText:String;
myflv.autoPlay = true;
onscreen_play_btn.visible = false;
onscreen_replay_btn.visible = false;
if (myflv.playing==true) {
onscreen_play_btn.visible = false;
onscreen_replay_btn.visible = false;
}
myflv.source = "test.flv";
//myflv.source = root.loaderInfo.parameters.flvSou;
//dynTxt.text = root.loaderInfo.parameters.dynText;
myflv.playPauseButton = playPause_btn;
myflv.stopButton = stop_btn;
myflv.muteButton = mute_btn;
myflv.volumeBar = volume_bar;
myflv.forwardButton = forward_btn;
myflv.backButton = back_btn;
myflv.seekBar = seek_bar;
myflv.bufferingBar = buffering_bar;
myflv.fullScreenButton = fullscreen_btn;
//========================= Actions for Button Controls =========================//
//========================= Actions for Play and Pause Button =========================//
playPause_btn.pause_mc.addEventListener(MouseEvent.CLICK, clickHandlerPause);
function clickHandlerPause(event:MouseEvent):void {
//trace("clickHandler detected an event of type: " + event.type);
//trace("the event occurred on: " + event.target.name);
trace("u clicked pause button");
onscreen_play_btn.visible = true;
//myflv.alpha = .5; // uncomment later
}
playPause_btn.play_mc.addEventListener(MouseEvent.CLICK, clickHandlerPlay);
function clickHandlerPlay(event:MouseEvent):void {
//trace("clickHandler detected an event of type: " + event.type);
//trace("the event occurred on: " + event.target.name);
trace("u clicked play button");
onscreen_play_btn.visible = false;
//myflv.alpha = 100; // uncomment later
if (onscreen_replay_btn.visible==true) {
onscreen_replay_btn.visible=false;
}
}
//========================= Actions for Play and Pause Button =========================//
//========================= Actions for FLVPlayback =========================//
myflv.addEventListener(MouseEvent.CLICK, clickHandlerPauseFlv);
function clickHandlerPauseFlv(event:MouseEvent):void {
//trace("clickHandler detected an event of type: " + event.type);
//trace("the event occurred on: " + event.target.name);
trace("u clicked video component button");
//trace(myflv.totalTime);
if (myflv.playing==true) {
myflv.pause();
onscreen_play_btn.visible = true;
//myflv.alpha = .5; // uncomment later
} else {
myflv.play();
onscreen_play_btn.visible = false;
onscreen_replay_btn.visible = false;
//myflv.alpha = 100; // uncomment later
}
}
//========================= Actions for FLVPlayback =========================//
//========================= Actions for Fullscreen Button =========================//
fullscreen_btn.addEventListener(MouseEvent.CLICK,onFullScreenButtonClick);
function onFullScreenButtonClick(event:MouseEvent):void {
stage.displayState = StageDisplayState.FULL_SCREEN;
//or set it to normal like: stage.displayState = StageDisplayState.NORMAL;
}
//========================= Actions for Fullscreen Button =========================//
//========================= Actions for onScreenPlay Button =========================//
onscreen_play_btn.addEventListener(MouseEvent.CLICK,onScreenPlayButtonClick);
function onScreenPlayButtonClick(event:MouseEvent):void {
trace("working");
if (myflv.playing==true) {
myflv.pause();
} else {
myflv.play();
//myflv.alpha = 100; // uncomment later
onscreen_play_btn.visible = false;
}
}
//========================= Actions for onScreenPlay Button =========================//
//========================= Actions for onScreenReplay Button =========================//
onscreen_replay_btn.addEventListener(MouseEvent.CLICK,onScreenReplayButtonClick);
function onScreenReplayButtonClick(event:MouseEvent):void {
trace("working");
myflv.play();
myflv.seek(0);
onscreen_replay_btn.visible = false;
if (onscreen_play_btn.visible==true) {
onscreen_play_btn.visible=false;
}
}
//========================= Actions for onScreenReplay Button =========================//
//========================= Actions for Stop Button =========================//
stop_btn.addEventListener(MouseEvent.CLICK, StopButtonClick);
function StopButtonClick(event:MouseEvent):void {
myflv.seek(0);
onscreen_replay_btn.visible = true;
}
//========================= Actions for Stop Button =========================//
//========================= Actions for Button Controls =========================//
function onMetadata(e: MetadataEvent):void {
meta.appendText( "FrameRate = " + myflv.metadata.framerate + "
" );
meta.appendText( "VideoDataRate = " + myflv.metadata.videodatarate + "
" );
meta.appendText( "Height = " + myflv.metadata.height + "
" );
meta.appendText( "Width = " + myflv.metadata.width + "
" );
meta.appendText( "Duration = " +myflv.metadata.duration + "
" );
trace(myflv.totalTime);
}
trace(myflv.duration);
trace(myflv.totalTime);
Help: FLVPlayback Component
Im using this component for my case study.
What it is intended for is to load movies
from the selected list from the MenuBar component.
The problem is, when I try to change
the contentPath dynamically for the second time,
it doesn't response. Instead, it displays a buffering animation.
(refer from the attachment)
Here's my sample code:
Code:
myFLVP.contentPath = "intro.flv";
mbListener.change = function(evt_obj:Object) {
var menuItem_obj:Object = evt_obj.menuItem;
var info;
switch (menuItem_obj.attributes.instanceName) {
case "P1-A" :
info = "Db/Movies/p1/DIMM to MoBo.flv";
break;
...
case "P4-F" :
info = "Db/Movies/p1/PSU to MoBo.flv";
break;
}
myFLVP.contentPath = info;
};
edit: Changed _global.cp to info
FLVPlayback Component
Please advice on the following inquiry:
I use FLVPlayback component and I want to create a button which will rewind a frame back. Encoding the flv sets the keyframes. Is there a way to take all the keyframes (in order to set the logic for the button), or should I the last one I have gone trough? I need the keyframes because seek() sends to keyframe. The logig for the one-frame-forward button is:
var listenerObject:Object = new Object();
var lastTime:Number=0;
listenerObject.playheadUpdate = function(eventObject:Object):Void {
trace("playhead time is: " + eventObject.playheadTime);
lastTime=eventObject.playheadTime;
};
my_FLVPlybk.addEventListener("playheadUpdate", listenerObject);
my_FLVPlybk.seek(lastTime+(1/my_FLVPlybk.metadata.framerate));
Flvplayback Component ?
I have one instance of an flvplayback component on my stage. I want to use it for multiple flvs. I am having trouble getting the play head to advance to the next labeled frame. My question is: do you have to have separate listener objects for each video that plays? In the code below the listener object is "complete", if I go to the frame labeled "machineshop", do I need to change the listener obejct to something else?
ActionScript Code:
_root.stop();changeTitle("WELCOME");_global.isOn = 2;_root.menu_intro.gotoAndStop("off");_root.menu_welcome.gotoAndStop("on");_root.menu_machine.gotoAndStop("off");_root.menu_mfg.gotoAndStop("off");_root.menu_weld.gotoAndStop("off");_root.menu_assm.gotoAndStop("off");_root.menu_paint.gotoAndStop("off");_root.menu_inspect.gotoAndStop("off");_root.menu_engr.gotoAndStop("off");_root.menu_closing.gotoAndStop("off");/** Requires: - FLVPlayback component on the Stage with an instance name of my_FLVPlybk*/import mx.video.*;var listenerObject:Object = new Object();listenerObject.complete = function(eventObject:Object):Void { trace("Elapsed play time at completion is: " + my_FLVPlybk.playheadTime); //my_FLVPlybk.play(); _root.gotoAndStop("machineshop");};my_FLVPlybk.addEventListener("complete",listenerObject);my_FLVPlybk.contentPath = "videos/Intro 500x278_CD.flv";
FLVPlayback Component
Please advice on the following inquiry:
I use FLVPlayback component and I want to create a button which will rewind a frame back. Encoding the flv sets the keyframes. Is there a way to take all the keyframes (in order to set the logic for the button), or should I the last one I have gone trough? I need the keyframes because seek() sends to keyframe. The logig for the one-frame-forward button is:
var listenerObject:Object = new Object();
var lastTime:Number=0;
listenerObject.playheadUpdate = function(eventObject:Object):Void {
trace("playhead time is: " + eventObject.playheadTime);
lastTime=eventObject.playheadTime;
};
my_FLVPlybk.addEventListener("playheadUpdate", listenerObject);
my_FLVPlybk.seek(lastTime+(1/my_FLVPlybk.metadata.framerate));
FLVPlayback Component
hello,
is there a way that the flvplayback component can play mp3 files? if not, what is the best way to play mp3 files and provide an interface for play, stop, etc.
thank you!
FLVPlayback Component
Please advice on the following inquiry:
I use FLVPlayback component and I want to create a button which will rewind a frame back. Encoding the flv sets the keyframes. Is there a way to take all the keyframes (in order to set the logic for the button), or should I the last one I have gone trough? I need the keyframes because “seek()” sends to keyframe. The logig for the one-frame-forward button is:
var listenerObject:Object = new Object();
var lastTime:Number=0;
listenerObject.playheadUpdate = function(eventObject:Object):Void {
trace("playhead time is: " + eventObject.playheadTime);
lastTime=eventObject.playheadTime;
};
my_FLVPlybk.addEventListener("playheadUpdate", listenerObject);
my_FLVPlybk.seek(lastTime+(1/my_FLVPlybk.metadata.framerate));
[F8] Little Problem On FLVPlayback Component
Hi there, I am using the FLVPlayback component to play the external flv. It looks fine. However, the only problem is the "Seek Bar Handle" (the little triangle under the seek bar) doesn't show up until the whole movie finished for the first time. Anyone has encounter this problem before? It there any setting I have missed? Thanks a lot!
you may have a look of the file by this link, the movie last for ~20s:
http://www.gardens-co.com/dev/flv/playFLV2.html
[CS3] Pausing The FLVPlayback Component?
Hi all, I've got a question that should be easy to answer! Its driving me mad that I can't fix it!
I have made an FLV player in flash that reads from an XML stream.
I want to have this stream paused so when it loads the user needs to click play before the video will play. Currently the video plays straight away which is annoying!
At the end of my AS in frame 1 I've added:
Code:
flvDisplay.stop();
Which works in flash, but when I test the SWF in a browser it does not STOP!
I have also tried:
Code:
flvDisplay.pause();
But it still will not pause when the SWF is in an HTML page.
Could some one PLEASE help me! This is driving me mad!
No Contols With FLVPlayback Component
Hi All,
I have this strange problem. I've inbedded a sfw-movie in a html page. The fsw-movie is nothing more than a FLVPlayback component wich is playing a steaming flv video.
In the component inspector you can select wich skin to use. And when I export the swf form flash and play it in the standalone flash player all is well. I can see and use the playback controls.
When I put the swf inside the html page though and I view the page in my webbrowser (safari and firefox) the controls don't show anymore, nomatter what I do. SkinAutoHide is set to false (but set to true doesn't make a difference).
The swf has all the room it needs in the html page, there is no scaling or cropping going on.
I am baffeled, what is going wrong here? Can anybody help me here?
thanks, Simon
ps. I use Flash 8 professional.
FLVPlayback Component Can't Find .flv
In a test, I import a video to the stage, and use 'Progessive download from Web server', so that the stage contains only the 'FLVPlayback' component which is linked to the location of the actual .flv.
This works fine, I can test my published .swf, and the video plays, no problems.
However, in my actual project, I have the following set up: _level0 contains my main movie, of course. My main movie loads my 'video' movie into a 'target' on the main stage. My 'video' movie contains keyframes and scenes, and my 'FLVPlayback' component has been imported to one of the keyframes in the second scene. In this scenario, the video won't play. When I publish my .swf to test, there's nothing there. Even though the URL to the .flv is correct, it seems Flash can't find the .flv.
Does Flash have trouble finding the .flv [using the above method] when the FLVPlayback component is embedded in an externally loaded movie?
Any suggestions much appreciated. Thanks
Edited: 02/10/2007 at 10:55:11 AM by metrov
Need Preloader For FLVplayback Component
Hi,
I'm playing external .flv videos using the 'FLVplayback' component. My client's complaining that they stall and stutter a bit when they start to stream, and wants to know if I can create a preloader for them.
Can anyone help or point me in the right direction to create preloaders for this component? Since the .flv is not on the timeline, I don't know where to begin. I found some info on this in the Flash Help files, but it's a little over my head.
Thanks very much
Pause Flv At End Using Flvplayback Component
Right now, I have a person alpha channeled out on screen. I placed him there using the flvplayback component and when the flv finishes, he disappears. can anyone tell me how to pause the video when it reaches the end?
i have tried numerous things and i can not get it to work. thanks.
FLVplayback Component Halts Everything
I've been working on getting video into my flash site with the "FLVPlayback component " and i've been able to get it to launch and play locally, however when it does launch when i'm "testing movie", my flash site quits working. I know this is a bit open ended and i'm no flash programmer, but I've been working on this all weekend. Can someone help me to integrate the FLVPlayback component correctly within my flash site? Thanks!
-Matt
FLVplayback Component Playhead
Is there a funtion for a flvPlayback playhead that will listen to the time and trigger an event based on plus or minus time even if the viewer scrubs the playhead.
FLVPlayback Component Problem
Hi,
I have problem with FLVPlayback component.
In List component I have list of videos which are played in FLVPlayback. It works fine.
But if I accidentally put invalid FLV file in my XML, error connection occurs.
After that I can’t open any other valid video paths, and FLVPlayback.state property is always connection error!
I have to reload the page to get it work.
Anyone know how to avoid that problem.
Thanks,
FLVPlayback Component In Standalone EXE
I am exporting an FLVPlayback component into a standalone exe file and it seems the buttons for playback (play, stop, etc) have disappeared. Is this a known issue? Is there a way around this, or do I have to create my own buttons?
FLVplayback Component Problem
my flash movie contains FLVPlayback component to play videos. In the begining of the movie( frame 1) I have a simple pre-loader. When I test my swf on a browser the pre-loader appear only after few second, not immediately. (my pre-loader start from 40%). I think the reason is that flash load the FLVPlayback component on the first frame although my component appears only on the second frame . Is there any work around this issue?
Thanks
NetStream And FLVPlayback Component
Hello everyone,
I am creating an application that uses the FLVPlayback component to stream NetStream videos. All of the FLVPlayback events get called properly but I need to find out some statistics for bandwidth profiling.
Idealy I'd like to find out the buffer length. When I use the FLVPlayback or NetStream bufferlength properties though it always returns 0 or -1. I was hoping someone could give me some practical advice on how to obtain this information.
Thanks a lot.
FLVPlayback Component Issue...
I've been working on a simple site to play flash videos, user clicks on a button and the corresponding video plays in the FLVPlayback Component. This works fine, the issue is when they click on another button, the second video loads, but stops on the first frame and the component becomes unresponsive (all linked buttons are grayed out). The component completely ignores any commands from this point, it won't pause, play, or accept another flv to load. I've tried creating a very simplified version and still the problem persists, perhaps I'm missing something easy that someone can point out for me, so here is the simplified code:
First click of 'nxtBtn' plays video properly, second click loads the second video of the array, but stops it at first frame & FLVPlayback component stops responding.
Attach Code
var vidArray:Array = new Array();
var i=0;
vidArray = ["video/pacLG.flv","video/hdbLG.flv","video/stormLG.flv"];
function flvpReady()
{
flvp.play();
}
flvp.addEventListener("ready",flvpReady);
flvp.playButton = pbtn;
nxtBtn.onRelease = function()
{
flvp.contentPath = vidArray[i];
i++;
}
Can I Empty A FLVPlayback Component?
Hi all!
I've but a FLVPlayback component on stage and a few buttons to load different videocontent, but can I empty the component back to the initial state with the push of a button so that the background shows. I can use frames to move the playhead back and forth to accomplish this but I prefer using AS code to do this.
Tried the "unload" movie without any luck.
Can anyone help?
FLVPlayback Component And Rtmp
I have the flash media streaming server 3 installed on a server in our office. It is set up with a few sample flv/mp4 files and is working great with the vodtest html page that comes with it.
I've now come to making my own flash file using the FLVPlayback component (at the moment i've just got a black document with a flvplayback instance in the middle, which i've given the correct rtmp path in the component inspector). It works fine in flash when using Test Movie, it buffers up the file and start playing almost immediately.
Unfortunately, if I publish the flash file and open it in a web browser, all I get is an endless buffering bar. I'm hoping theres something simple I've missed out somewhere.
FLVPlayback Component -- NetStatusEvent
I'm trying to get the status of a RTMP stream that is being played in an FLVPlayback component, and it's not working to well. Using the ncMgr, you can't really get any pertinent information... I'm looking to catch all the events, such as, connecting, connected, playing.. etc... Would it be possible to extend the FLVPlayback class to accept these events? Is there something I'm missing?
|