Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




FlvPlayBack-problem



I use FlvPlayback-component in my flash and load movies with buttons.The problem is that when I close down the window and then open the window again the seekbar and volumebar is stuck at there last position before pressing "close"-button. The're stuck there and FlvPlayback "duplicates" them (or something) so I can move seek- and volume-bar but the "old ones" are still there and stuck.I really need help with this guys...So.. Either a way to unload the seek- and volume-bar so they can load again when entering the window again.orUnloading the seek- and volume-bar components.I really hope somebody knows what I should do..Thx in advance,Rob



Adobe > Flash General Discussion
Posted on: 12/10/2006 08:43:35 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

FLVPlayback Changing Another FLVPlayback
Hi,

I have a movieclip with an FLVPlayback component and a second movieclip on it. In that second movie clip, there's another FLVPlayback component. I was wondering if there was any actionscript I could use in the second movieclip to change the contentPath of the first FLVPlayback component upon the completion of the second FLVPlayback component.

This is the code I tried, but didn't work:

var listenerObject:Object = new Object();
listenerObject.complete = function(eventObject:Object):Void {
this._parent.flvp1.contentPath = "vid2.flv";
}
flvp2.addEventListener("complete", listenerObject);

(flvp1 is the first FLVPlayback component, flvp2 is the second, and vid2.flv is the file to be played in flvp1)

Also, I know that the listenerObject function is working because I tested a trace() command earlier, and it worked.

If anyone could point me in the right direction, I would appreciate it.

Thanks,
Brad

[CS3] FLVplayback
My FLVplayback is different to the one in the adobe tutorial. Its got an ugly blue playbar! ... I have applied the latest updates i.e v.9.0.3 and its still not the same. Anyone know why?

[F8] Help On FLVPlayback
Hi all,

I have FLVPlayback component and contentPath is being taken from flashVar.
The player is set autoPaly false and until user click on play button the player embedded area is empty.
1) So i need how to cover that?
2) Is there a way to get a frame of video and display that?
3) What we have tried was to use anther player on top original player with out skin and assigning same content path to that and using seekPercent() to move it forward.

But the problem is the top player doesn't call seekPercent() until it buffer full video.

Once it buffered the tactic looks fine.

This is what we were trying without clear idea about FLVPlayback on flash,So this might be stupid.

So any practical idea is appriciated.

Thx!

Using FLVPlayback With FMS - How?
Hi,

I'm new to the FLVPlayback and somewhat of a newbie to Flash in general, but luckily I have managed to stream video from FMS using the MediaPlayback component. Unfortunately, I'm not having too much luck with FLVPlayback.

Macromedia says in order to use this component with FMS, contentPath must point to a SMIL file. Is this true? Should FLVPlayback work out-of-the-box without writing any Action Script (like MediaPlayback does)? If so, I would greatly appreciate some help with some very basic code to get this component to work.

Thanks.

Flvplayback A No-go?
I'm a newbie so be gentle, but I have an flvplayback 101 question. I'm using the video wizard to import my movie into an existing project. However, once I drag the flvplayback component to the stage and execute, neither the video nor the skin appear no matter how or where they are placed. Things work if I drag into an empty flash file. How do I begin to figure out what's wrong? Thank you!

FLVPlayback
Hello,

I am creating a flash movie using the FLVPlayback component that uses a skin. After exporting, the skin is visible in the swf playback but once imported into DW CS3 and tested in IE7 the skin is not visible. The swf skin file is included.

I never encountered this issue in Flash 8. The only difference I see in parameters is second from the bottom version_1_0_1.

Does anyone know how to get the skin visible in the browser?

Thanks.

Flvplayback And Xml
i am trying to play a " flv " file in the flvplayback component via an xml file...please help... i have searched high and low for tutorial's... please take a look and let me know what i need to do to fix it...

here is the action script in frame 1

import mx.video.*;
this.attachMovie("FLVPlayback", "my_FLVPlybk", 10, {_width:320,_height:240,_x:100,_y:100});
my_FLVPlybk.skin = "file:///C:/Program Files/Macromedia/Flash 8/en/Configuration/Skins/SteelExternalAll.swf"
my_FLVPlybk.contentPath = "rtmp://Documents and Settings/Angie/My Documents/video/videos.xml";

and here is the xml file it is supposed to pull the flv from

<smil>
<head>
<layout>
<root-layout width="320" height="240" />
</layout>
</head>
<body>
<video src="mikegundy.flv" />
</body>
</smil>

i dragged the component and placed it on the stage and then editted the " as "... right now i get a black screen with the player control's searching... finally no error's... it just isnt finding the file...

thanks
trey

FLVPlayBack
Hi there,
I am trying to control video in fullScreenTakeOver mode and having some issues. Robert, you've replied to several video questions and I hope you know this one too... :)

I have a simple FLVPlayBack component on the stage with its skin that has a fullscreen button, simple enough...
When it goes in fullscreen I want to be able to control the size of the video and a black background... I've tried this with several properties with no success. The closest I get, is with "player.scaleMode = VideoScaleMode.NO_SCALE;". This centers the video in its original size with black background... I want to be able to custom its size ... how would I do this? I am trying to avoid fullScreenTakeOver= false and having to remove all the elements on the stage except for the video, then relocating/resize it...

I hope it makes sense, thank-you

How To Use More Than One FLVPlayback?
I am creating a website in Flash. I have a page with 3 buttons on it to allow people to see 3 videos i have created. Each button moves the flash file to a separate frame. On each frame is a new FLVPlayback instance. Each one refers to a different externally referenced .flv file.

Only the first FLVPlayback video will play. If i go to the second frame, the FLVPlayback video will not play.

If i delete the first FLVPlayback frame, then the second frame will play its video.

How do i fix this?

FLVPlayback
The FLVPlayback for playing FLV is not working correctly for me, the video plays fine but the controls doesnt show. When playing in flash player localy it does, but on the webpage it doesnt appear, only the video. Any ideas?

FLVPlayback
How do you make the FLVPlayback component to repeat its content over and over again, until the user pushes the stop button?

thanks

FLVPlayback
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 movies. 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 And As3
Hi all,
I have one flvplayback intance name is videom, i just want to konw if the user clicked play button.

Besause i want to hide a picture when the user clicked play button, hiding picture is easy, but how can i konw if the user clicked play?
I use cs3

FLVPlayback
I have a FLVPlayback component on my stage with the instancename "my_FLVPlybk"
And then I have my flv files "movie1.flv", "movie2.flv", and "movie3.flv"
How would I with actionscript randomly load one of these into my FLVPlayback when the movie starts?

Flvplayback
Hello,
I would like to stream flv files.
I read few posts and some documentation but unfortunately I could not get any positive result.
I have two basic but important questions.
1) what should I put in main.asc file
2) I s there anything to add after dragging the flvplayback component appart the rtmp address where the flv file is located.
I would very much appreciate a fully illustrated answer which can I apply successfully.
Thanks very much indeed.

FMS/FLVPlayback
FMS is installed. I have my .flv file under my directory for the application. Trying to use the FLVPlayback in Flash 8 to call it using rtmp://myserver/myapp/_definst_/myvideo.flv. Publish and it just brings up a blank screen. never plays. I know the .flv file works ok. I can see it connecting to the FMS so I know that is working ok. My application does use UC/LC combination and i read something that says it might be a problem. Any help??? I have the main.asc file from the Flash8 components sample (although that does say it is for the old 1.5 server).

FLVPlayback And MP3
From everything that I have read, FLVPlayback should be able to handle a streamed mp3 file using FMS. Whenever I try to put in my stream source address, rtmp://mydomain/myapp/myfile.mp3, I get an error that says

"Unable to make connection to server or to find the FLV on server"

I know the FMS is setup correctly because I can stream video FLV files without a problem.

Does anyone know how to connect to a streamed mp3 using FLVPlayback?

Using FLVPlayback
Hi,

Scenario

I have multiple video files, which on click should be played.

Problem

I'm using FLVPlayback component to play flv files. When user clicks on selected FLV videos it finds path and plays that video. During the time of video being palyed if, user selects another video it doesn't play.

Below is the code that I have when user click on the video list.
---------------------------------------------------------------------------------------------------------------------

if(flvPlayBack.state == PLAYING ||
flvPlayBack.state == BUFFERING)
{
flvPlayBack.stop();
flvPlayBack.source = uri;
flvPlayBack.load(flvPlayBack.source);
}

thanks for your help and time.

FLVPlayback AS3, Help Please
Is there a way to get the FLVPlayback to work correctly in fullscreen if the stage is set to fullscreen?

some gen. info about the file, and what I would like to happen:
The project I'm working on is 1600 x 1200. On the left side is a navigation menu with dropdowns and so forth. All of the sublinks bring up an 800x600 movie on the right side. So when a sublink is clicked I just want the movie to be shown at 800x600 on the right side. Then, if the user wants, they can click the FLVPlayback fullscreen button to make the video fullscreen. The videos should only be full screen after the button has been clicked.

What seems to be my problem is that I need the stage to be fullscreen, no windows or border or anything. Currently I have
stage.scaleMode = StageScaleMode.EXACT_FIT;
stage.displayState = StageDisplayState.FULL_SCREEN;

If I have the FLVPlayback property fullScreenTakeOver = true; the video loads fullscreen, bad. If I have fullScreenTakeOver = false, when the fullscreen btn is clicked the stage is taken out of fullscreen. The only way i can get close to getting what I'd like is by Not setting the stage to fullscreen and setting the takeOver property to true(Everything works fine, but the swf does not take up the whole screen, it is in window mode).

Thanks to all in advance!! If I need to explain it better, please let me know.

FLVPlayback
Hey!
Im working on a flash clip, that has to be able to contain atleast 5 Flvs. Well easy as h¤ll i thought

The problem:
First i tried to load each flv externally from another swf and the loop code in each of those, unfortunatly this didnt work...Looping each of the flvs. If i have the same flv in all "holders" they loop fine with this code:

on (complete) {
this.seekSeconds(0);
this.play();
}

Also tried using this:

on (complete) {
flvmov1.seekSeconds(0);
flvmov1.play();
flvmov2.seekSeconds(0);
flvmov2.play();
} and so on...

When i then add diffrent flvs to each container none will loop? What am i doing wrong here?

Thanks in advance!

FLVPlayback
Iam trying to create a Videogallery,
and since i've imported a couple of videoclips, im having three FLVplayback and im getting
this message

**Warning** The linkage identifier 'FLVPlayback' was already assigned to the symbol 'video/FLVfolder/FLVideo3', and cannot be assigned to the symbol 'video/FLVfolder/FLVideo2', since linkage identifiers must be unique.

the thing is that the page works just fine, but it's enoying!

FLVPlayback And Vod On FMS
My FLVPlayback component works well with vod folder on my FMS3 but my FLV files need to be in separate sub folders. So how can I work with vod an separate sub folders?

FlvPlayback Help
I am using the flvPlayback component from the flash library and when my video is done I want the playhead to advance to a new frame. I am trying to make sense out of the help file but I not having any luck. This is my code the play function is working but I am not sure how to integrate the the stopped function.

Any help appreciated.


Code:
stop();
//trace(video);
my_FLVPlybk.contentPath = "";
import mx.video.*;
my_FLVPlybk.autoPlay = false;
var listenerObject:Object = new Object();
listenerObject.ready = function(eventObject:Object):Void {
my_FLVPlybk.seekPercent(0);
my_FLVPlybk.play();

};
listenerObject.stateChange = function(eventObject:Object):Void {
if (eventObject.state == FLVPlayback.STOPPED) {
trace("State is "+FLVPlayback.STOPPED);
}
};
my_FLVPlybk.addEventListener("ready",listenerObject);
my_FLVPlybk.contentPath = "videos/"+video;

Flvplayback Actionscript, Please Help
Hello guys. I'm an intermediate in Actionscripting and so I want to ask you with a problem I am having.

I used an flvplayback component and used actionscript because the flv that it would be running would be dynamic. It went great. With it, I also used the skin feature in actionscript (I somewhat tweaked the existing skin). This seems to be the problem.

In IE it worked good. In mozilla, at first seemed ok. Everything is there and functioning. But when I refreshed it, the skin didn't seem to load up, so I was left with a playing flv which dont have any control. I thought at first, there must have been something that I tweaked in the skin. But when i tried to load up a fresh unedited skin, the same result ensued.

I have tried another method, using LoadVars: and it seemed to work again at first because when I refreshed it (in Mozilla) the skin was still there. But then it maybe there, but I cant move any of the controllers at all.

It seem in my program, that I must take out the skin variable out of the mySkin.onload = function()....but, when move it out, the result of the variable is undefined.

Please help me with this problem, I really really appreciate it. Here's the code:

import mx.video.*;
myPlayBack.contentPath = "videoViewer.flv";
myPlayBack.autoPlay = true;

mySkin = new LoadVars();
mySkin.load("mySkin.txt");

mySkin.onLoad = function () {
nowSkin = mySkin.nextSkin;
}

trace(nowSkin);
myPlayBack.skin = nowSkin;
myPlayBack.scaleX = 150;
myPlayBack.scaleY = 100;
myPlayBack.autoSize = true;
myPlayBack.autoRewind = true;



Thank you so much.

SOS....FLVPlayback Buffering %
hey guys
i neeed your help

- i use flvplayback component(flash 8) for streaming video from vitalstream.com
- interface as on productorials.com
- flvplayback and flvplayback custom ui components are skinned individually
- so question is - HOW CAN I SHOW BUFFERING %? - because flvplayback doesn`t have any property similar to NetStream.bufferLength property. It shows progress bar only.
------------
sorry for duplicating message
it is related to 3 forums, but i dont know how to make links in several forums to one message.

Emptying FLVPlayback
Hi

How do I return an FLVPlayback component to its virgin state (ie unload the currently loaded flv and return the component to just sitting there on the stage without anything loaded)? I've tried code: my_FLVPlybk.load = (""); and code: my_FLVPlybk.contentPath = ""; with no success.

How do I do it?

thanks
mark

FLVPlayback And A Loader
Hi

I try to make so when my FLVPlayback need to load my streaming FLV file it show a movieclip

I have this code I found at macromedia hompage


Code:
import mx.video.*;
var listenerObject:Object = new Object();
listenerObject.buffering = function(eventObject:Object) {
trace("The state property has a value of " + eventObject.target.state);
trace("The video player number is: " + eventObject.vp);
};
my_FLVPlybk.addEventListener("buffering", listenerObject);



I have the FLVPlayback in a movieclip so my code look like this


Code:
var listenerObject:Object = new Object();
listenerObject.buffering = function(eventObject:Object) {
if(eventObject.vp==0) {
McBuff._visible=true;
}else{
McBuff._visible=false;
}
};
McMovie.my_FLVPlybk.addEventListener("buffering", listenerObject);


I have done so McBuff visible is false so that dont show.

But that is not good at all. I have to use the FLVPlayback on this flash

[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 Question
I have been messing with this for way too long.

Using the FLVPlayback component i have no problem loading flv files that are located on a web server (h**p://www.myurl.com/media/this.flv). The problem is loading those same files from a local path (media/this.flv).

Everything works fine as long as I use the url as the contentPath.

When the contentPath is not the url, the FLVPlayback doesn't even look for
the flv. It is like the swf that holds all this is not allowed any access to the local files.

I have looked into the security parameters of flash 8, but I can not
seem to figure this.

Any Help would be great!
thanks

[F8] Flvplayback Problems
I am have problems with the flvplayback component. I am trying the add video to the a webpage that sits in the root of my website. I have my flv and both of my swfs (main swf and skin) all in the same directory name media. At first I was having problems with video loading without the skin, so to get around that problem I am dynamically loading the skin (i.e. myVideo.skin = "skinFile.swf" ). This seems to work with firefox that is running flashplayer 8, but the video does not load at all in IE running flashplayer 9. Can anyone let me know what I am doing wrong. Is there some AS2 / AS3 compatibility issue? Thanks in advance!

FLVPlayBack Cuepoints?
Hey..

I have an FLVPlayback component on my stage, and I have a movie attached via the parameters menu. I have also add a cuePoint called "End" via the parameters menu of the component.

I am looking to have the FLV stop and hold its last frame when it reaches the "End" cuepoint. I've been searching, but can't find a good tutorial on this anywhere...

Any help is greatly appreciated!


Thanks!

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!

How To Add Cue Points To Flvplayback?
I am trying to add these cue points but it is not really working:
I am using Flash CS3 actionscript 3.


Code:
cuePt.time =221.46;
cuePt.name = "cue1";
cuePt.type = "actionscript";
materia.addASCuePoint(cuePt);
materia.addEventListener(MetadataEvent.CUE_POINT, mat_cue);
materia.addASCuePoint(231.17, "cue2");
materia.addEventListener(MetadataEvent.CUE_POINT, mat_cue2);
materia.addASCuePoint(401.26, "cue3");
materia.addEventListener(MetadataEvent.CUE_POINT, mat_cue3);
materia.addASCuePoint(416.46, "cue4");
materia.addEventListener(MetadataEvent.CUE_POINT, mat_cue4);
materia.addASCuePoint(1592.46, "cue5");
materia.addEventListener(MetadataEvent.CUE_POINT, mat_cue5);
materia.addASCuePoint(1608.66, "cue6");
materia.addEventListener(MetadataEvent.CUE_POINT, mat_cue6);
materia.addASCuePoint(1725.86, "cue7");
materia.addEventListener(MetadataEvent.CUE_POINT, mat_cue7);
materia.addASCuePoint(1755.46, "cue8");
materia.addEventListener(MetadataEvent.CUE_POINT, mat_cue8);
materia.addASCuePoint(1763.46, "cue9");
materia.addEventListener(MetadataEvent.CUE_POINT, mat_cue9);
materia.addASCuePoint(1965.16, "cue10");
materia.addEventListener(MetadataEvent.CUE_POINT, mat_cue10);
materia.addASCuePoint(1982.36, "cue11"); 1973,86
materia.addEventListener(MetadataEvent.CUE_POINT, mat_cue11);
materia.addASCuePoint(2456.86, "cue12");
materia.addEventListener(MetadataEvent.CUE_POINT, mat_cue12);
materia.addASCuePoint(2472.76, "cue13");
materia.addEventListener(MetadataEvent.CUE_POINT, mat_cue13);

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 Listener
If I was to make a movie with 10 frames and on each frame is a different FLV player. Then what do I put in the script below so that it goes to a different frame at random after the flv is done playing?

flvPlayback.addEventListener("complete",this.compl ete);
function complete(evt:Object):Void {
//Go to random frame?
}

[F8] Stop FLVplayback?
Hi everyone, I'm making my own flv player and so far I'm doing good..BUT I seem to have problems with my Stop button...just a simple stop button that stops the video...I've tried a couple of things but they didn't work, so if you guys can help me out that would be great!...please?

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));

AS3 FLVPlayback From XML Playlist.
So here's my dillema...

I need to use AS3 for a Video Player that pulls everything from an XML file. This includes:

FLV location
Thumbnail/Preview image location
Captions XML file
Description

Now, this would be perfect:
http://www.adobe.com/devnet/flash/ar..._playlist.html

Except, I don't need the playlist functionality, and there's no mention of adding captions (MAGpie generated) to the XML playlist.

Anyone?

Joe

FLVPlayback And Metadata
I rarely ever make posts like this, but if it saves anyone the 4 hours it took me to figure out then I feel I have done some good for this community.

I don't know why, I don't know how, but for some reason setting the FLVPlayback.bufferTime property to anything past its default value of 0.1 will (more often than not) make it so the .flv metadata does not ever make it to the video player. Granted, this may also have to do with my slow connection, but I know I am not the only one who has had this problem (see http://www.actionscript.org/forums/s....php3?t=142403 or http://www.afcomponents.com/forum/vi...8f93428c976937)

Those of you who have made players with custom seek-bars know the lack of metadata is can be a problem because the FLVPlayback.totalTime property is set directly from the "duration" property of the FLVPlayback.metadata object (see http://livedocs.adobe.com/flash/9.0/...html#metadata).

My suspicion as to why this is not a more widespread issue is due to the "one video per player" nature of players on websites. I don't believe that players often reuse the net connection of the same FLVPlayback control to load one video after another (however, I could be wrong, this is all assumption on my part anyways).

Anyways, if your custom video player falls under the most or all of the following criteria, I may have a solution for you

1) The FLVPlayback's net connection is reused (that is, you call the load() or play() method several times during the lifetime of the videoplayer.

2) You notice that occasionally meta information is never received when you increase the buffer time to a value above the default.

3) Your seek-bar does respond or you get a run-time error when you try to seek (most likely because totalTime property NaN and the playheadPercentage property relies on this value)

The simple solution (or so I am led to believe ):

set the buffer time back to the default value before every call to the new connection. In other words, make sure that the the FLVPlayback.bufferTime property is set to 0.1 before calling the load() or play() method for a new video. This will ensure that the metadata is properly received by the component for playhead calculations.

For those of you implementation bound people, I have a simple example below:


Code:
//assume we have an existing FLVPlayback component
myFLVplayback:FLVPlayback = this.flvPlayer as FLVPlayback;

//make sure to attach the meta handler for your player
myFLVplayback.addEventListener(MetadataEvent.METADATA_RECEIVED, startVideo);

//a call to the player to load a new video. notice I set the buffer time back to default
myFLVplayback.bufferTime = .1;
myFLVplayback.load("newVideo.flv");

//the meta handler
function startVideo(m:MetadataEvent):void
{
if(m.info.duration != undefined)
{
player.bufferTime = 10;
player.playWhenEnoughDownloaded();
}
else trace("no duration info in metadata!");
}
and there you have it! I hope it does more good than bad. And if this really is a replicatable problem, I sincerely hope someone at adobe is reading this.

Regards,

Jon

FLVPlayback Volume
Hi Guys,

I have a FLVPlayback component that autoplays with Volume set to 0 - I need to have a button that when clicked will set the flvplayback volume to 100 IF the volume is set to 0.

In AS2 i'd do this by:

on(release){
if (FLVPlayback.volume == "0") {
FLVPlayback.volume=100;
}

though this doesn't work in AS3, even if i nest it in

function button_function( evt:MouseEvent ) {

How would I do this IF statement in AS3 on a MouseEvent?

it's all got too complicated!

Preloader For FlvPlayback
Greetings - I am hoping someone will know how to solve what would appear to be a simple problem, but I am yet to find a simple solution.

Flash CS3 | AS 2/3 |

I have a number of flv movies on a single webpage, each with their own video player (one of the default flvPlayback players).

When the page loads, each movie loads in preparation to be played which means much bandwidth is being used for movies that may not necessarily be watched.

The obvious solution aside (putting each movie on its own page) is there a way that I can add a preloader to the swf so that it doesn't begin to load the movie until the play button is pressed.

Turning off the autoplay in the parameters has stopped the movies playing automatically, but they still all load at the same time.

I don't have a great knowledge of actionscript, or much experience in making preloaders, but I can generally work backwards from a completed script to ascertain how and why it works.

I realise it's asking a lot but if someone could suggest how this might be achieved (and maybe even adding a youtube-style play button on the video itself) I would greatly appreciate it.

Many thanks

PS I have looked at preloaders and tutorials at many websites but none seem to address this exact problem and I'm not sure how to adapt those ones to this situation, I would be grateful for constructive advice.

FLVPlayback.isLive
I'm trying out a few methods of streaming media from Flash Media Server 2.

So far I have been successful in creating NetConnection & NetStream objects and using simple Video objects to stream media.

However, I see that the FLVPlayback component has some added flexibility and I'm looking at using this as an easier option for adding cuePoints via AS and displaying subtitles, etc.

I can stream fine by simply setting the FLVPlayback.contentPath="rmtp://my_servername/applicationname/instancename/stream.flv"

If I set FLVPlayback.isLive=true the playback fails.
If I set FLVPlayback.isLive=false the playback is successful.

I thought this would be the other way around! Can anyone tell me whether this file is actually streaming properly when isLive is set to false? or otherwise shed any light on this?

Documentation says that to stream from FCS, I need to set isLive=true. However, what I am doing contradicts this and I'd like to make sure I'm doing the right thing before I continue.

Thanks in advance for any help.

Simon.

Switch FLVPlayback To... Something Else?
Ok - I'm posting this cos I'm treading water a bit here - I'm working on a file originally created by a bloke who's currently on holiday and unavailable.

He's got an FLVPlayback instance sitting inside a movie clip, inside some other stuff, loads of layers all over the shop and it all looks horrendously complicated. Another colleague is creating the FLV files in After Effects, but is having all sorts of bother; it's started crashing when she tries to export as FLV. She can export MOV files, though. And probably a couple of other types.

My question is - if you had a FLVPlayback instance sitting in a rather complex FLA that you really, really, really didn't want to mess with, how would you go about switching it to use a different video file?

Err.. thankyou

FMS Components & FLVPlayback
I am trying to build a video chat application.

The FMS components made by Adobe (simpleconnection,chat,AVPresence,VideoPlayback etc..) are all based on ActionScript 1.0.

To use FLVPlayback we should choose at least Flash Player 8 from publish settings.

And if FlashPlayer 8 is selected FMS components do not run correcly.

Then the conclusion is that the FMS components are very obsolete can not run together with FLVPlayback.

Am I true?

Then, what is the right way of starting with FMS and ActionScript 3.0?
Is there any new components from Adobe for the latest versions of development environments?

Thanks in advance.

Regards,

Server To FlvPlayback
hi


How to stream video (flv) from server to flvPlayback component ,
in my application?


thanks in advance

PHP Proxy For FlvPlayback
Has anyone had any luck using a PHP proxy to load FLVs in the FlvPlayback component? The proxy files I have used in the past all generate errors stating that the component wants a .flv file. Any way around this?

Multiple FlvPlayBack
Hi all,
I'm working on a slide-cd application. (like powerpoint)
In each slide, i have the possibility to view a video (flv).
When i use normaly the slideshow, i have no problem. But, if i need to go back ... its bad.
The number of videos (if present) is correct, as well as the others video parameters (with, contentPath, x, ...) but the last video on the slide dont appear (ex: if the slide containt 2 videos, only the first appear). What is the problem. I work on it since one month ...
HELPPPPPPPPPPPPPPP.

ActionScript Code:
/* ==========================
    Fonction init
    =========================== */
    function init() {
        slide = 1;
        nbslides = _global.total;
        video    = _global.video;
        titre       = _global.titre;
        _root.mc_big.loadMovie("slides/"+_global.variable+"/img/Diapositive01.jpg");
        _root.mc_small_right.loadMovie("slides/"+_global.variable+"/tn/Diapositive02.jpg");
        _root.btn_prev.enabled = false; 
        //
    };
/* ==========================
    Fonction detect_video
    =========================== */ 
    function detect_video(video:Array,slide:Number):Boolean {
        //
        var occurr:Array = new Array();
        //
        for (t_video = 0; t_video <= video.length; t_video++) { 
            occurr[t_video]  = video[t_video]['slide´];
        }
        //
        var encours:String = "0"+slide;
        var nb_video = occurr.array_count(encours);
        //
        if (occurr.in_array(encours)) {         // Si le slide en cours contient une ou plusieurs videos
            //
            var ar = occurr.findPos(encours); // Selection des elements du tableau pour le slide en cours (résultat dans un tableau) 
            if (!ar) {             // Si l´occurence n´est pas contenue dans le tableau
                trace("not found");
            } else {                                         // Sinon génération d´un tableau contenant la position (id) des videos sur le meme slide
                //
                _global.ar = ar;
                //
                trace("Video=>slide "+slide);
            }               
            //
            var r = true;
        } else { // Masquage objet(s) FlvPlayBack
            var r = false;
        }
        _root.mc_big.loadMovie("slides/"+_global.variable+"/img/Diapositive0"+slide+".jpg")
        return r;
    }
/* ==========================
    Fonction clean_video
    =========================== */
    function clean_video(nb):Void {
        for (i = 0; i < nb; i++) {
            _parent["my_FLVPlybk_"+i].stop();
            _parent["my_FLVPlybk_"+i].alpha  = 0;
            _parent["my_FLVPlybk_"+i].unloadMovie();
    }
/* ==========================
    Fonction in_array
    =========================== */
    Array.prototype.in_array = function(o:Object):Boolean{
    var b:Boolean = false;
  for(var m in this){
    if(this[m]==o){
        b = true;
      break;
    }
  }
  return b;
};
/* ==========================
    Fonction array_count
============================= */
    Array.prototype.array_count=function(val):Number{
        var occ, ind, array_length;
        for(occ=ind=0, array_length=this.length; ind<array_length; ind++) if(this[ind]==val) occ++;
        return occ;
    };
/* ==========================
    Fonction Position dans tab
============================= */
    Array.prototype.findPos = function(value) {
            var tAr = [];
            for (var i = 0; i<this.length; i++) {
                    if (this[i] == value) {
                            tAr[tAr.length] = i;
                    }
            }
            return (tAr.length>0) ? tAr : false;
    };
/* ===========================
    Gere l´avancement des Slides
    ============================ */
    function avance() {
        import mx.video.*;
        stop();
        //
        _root.btn_next.enabled  = true;
        _root.btn_slide.enabled = true;
        _root.btn_prev.enabled  = true;
        //
        //var tbLecteur:Array = new Array();
        //
        if (slide < nbslides) {
            slide++;
            _root.mc_small_left.loadMovie("slides/"+_global.variable+"/tn/Diapositive0"+(slide-1)+".jpg");
            _root.btn_prev.enabled = true;
            // => Gestion de la fin du diaporama
            if (slide == nbslides){
                _root.mc_small_right.unloadMovie();
                _root.btn_next.enabled = false;
                _root.btn_slide.enabled = false;   
            } else {
                _root.mc_small_right.loadMovie("slides/"+_global.variable+"/tn/Diapositive0"+(slide+1)+".jpg");
            }
        }
        //
        if (!detect_video(video,slide)) {
            clean_video(8); 
        }else{
            for (val_test = 0; val_test < ar.length ; val_test++) {
                //
                var max = ar.length;
                //   
                if (this["my_FLVPlybk_"+val_test]) {
                    this["my_FLVPlybk_"+max].unloadMovie();
                }else{
                    this.attachMovie("FLVPlayback", "my_FLVPlybk_"+val_test, this.getNextHighestDepth());
                }
                //
                this["my_FLVPlybk_"+val_test].contentPath = "slides/"+_global.variable+"/movie/Diapositive0"+slide+"_"+val_test+".flv";
                this["my_FLVPlybk_"+val_test].name = 'Lecteur_'+slide+'_'+val_test;
                this["my_FLVPlybk_"+val_test].x = video[ar[val_test]]['x´];
                this["my_FLVPlybk_"+val_test].y = video[ar[val_test]]['y´];
                this["my_FLVPlybk_"+val_test].width  = video[ar[val_test]]['width´];
                this["my_FLVPlybk_"+val_test].height = video[ar[val_test]]['height´];
                //
                this["my_FLVPlybk_"+val_test].skin   = "ClearOverPlaySeekMute.swf";
                this["my_FLVPlybk_"+val_test].skinAutoHide = true;
                this["my_FLVPlybk_"+val_test].bufferTime     = 5;
                this["my_FLVPlybk_"+val_test].autoPlay    = false;
                //
                trace("nb_videos = "+max);
                trace("video = "+this["my_FLVPlybk_"+val_test].contentPath);
            }
        }
    };
/* ========================
    Gere le retour des slides
    ========================= */
    function recule() {
        _root.btn_prev.enabled  = true;
        _root.btn_next.enabled  = true;
        _root.btn_slide.enabled = true;
        //
        if (slide > 1) {
            slide--;
            _root.mc_small_right.loadMovie("slides/"+_global.variable+"/tn/Diapositive0"+(slide+1)+".jpg");
            //
            if (slide == 1) {
                _root.mc_small_left.unloadMovie();
                _root.btn_prev.enabled = false;
            } else {
                _root.mc_small_left.loadMovie("slides/"+_global.variable+"/tn/Diapositive0"+(slide-1)+".jpg");
            }
        }
        //
        if (!detect_video(video,slide)) {
            clean_video(8); 
        }else{
            //
            for (val_test = 0; val_test < ar.length ; val_test++) {
                //
                var max = ar.length;
                //
                if (this["my_FLVPlybk_"+val_test]) {
                    this["my_FLVPlybk_"+max].unloadMovie();
                }else{
                    this.attachMovie("FLVPlayback", "my_FLVPlybk_"+val_test, this.getNextHighestDepth());
                }
                this["my_FLVPlybk_"+val_test].contentPath  = "slides/"+_global.variable+"/movie/Diapositive0"+slide+"_"+val_test+".flv";               
                //
                //Paramétrage de l´objet créé   
                this["my_FLVPlybk_"+val_test].x = video[ar[val_test]]['x´];
                this["my_FLVPlybk_"+val_test].y = video[ar[val_test]]['y´];
                this["my_FLVPlybk_"+val_test].width  = video[ar[val_test]]['width´];
                this["my_FLVPlybk_"+val_test].height = video[ar[val_test]]['height´];
                //
                this["my_FLVPlybk_"+val_test].skin   = "ClearOverPlaySeekMute.swf";
                this["my_FLVPlybk_"+val_test].skinAutoHide = true;
                this["my_FLVPlybk_"+val_test].bufferTime     = 5;
                this["my_FLVPlybk_"+val_test].autoPlay    = false;
            }
        }      
    };
/* =============
    initialisation
    ============== */
//init();   
if (retour != null)
{
    trace("retour => "+_global.retour);
    trace("slide en cours => "+retour);
    trace("slide => "+slide);
    trace("nbslides => "+nbslides);
    _root.onLoad = suite(_global.retour);
}else{
    _root.onLoad = init();
}
/* =====================
    Pilote le bouton slide
    ====================== */
_root.btn_slide.onRelease = function() {
    avance();
};
/* ====================
    Pilote le bouton Next
    ===================== */
_root.btn_next.onRelease = function() {
    avance();
};
/* ====================
    Pilote le bouton Back
    ===================== */
_root.btn_prev.onRelease = function() {
    recule();
};

FLVPlayback - Youtube In HD
Hello,

How do I pleay youtube HD videos in FLVPlayback video player from actionscript 3.0 ?

Please advice,
Sallaboy

Recompiling Flvplayback.as
I have a need to count how many people actually hit "play" on my recorded movies, so I added 1 line of code inside flvplayback.as (inside the "first run" folder tree).

Now, when I used to use the "MediaController" component, all I had to do was re-start flash, and it used the new version of the actionscript. Now, however, I cannot make it use the new version of the flvplayback.as. I have added a TON of tracing, and should see my traces show up in the output window, but it just does not take.

Is there something else I need to do, to make the new flvplayback.as be used?

Any alternative ideas, rather than what Im doing? Im adding a line of code to the "PLAY" function, and doing a "loadVariables" call to a certain URL, which increments the counter for me.

Thanks!

Rich

Copyright © 2005-08 www.BigResource.com, All rights reserved