Navigating from Cue Points in a FLV
I am using Flash CS3 and AS2 on a PC. I am making a CD in Flash, for a client. The CD has videos, images and text. What I need is be able to go to the next scene once an FLV has finished playing. Also if a new FLV can be loaded once the curent ends. The FLV is in the FLVPlayback component. I need to add Cue Points which I can use to navigate with. The client would prefer a minimum of buttons, and thus auto navigation once a point is reached. I am not an expert with ActionScript, so please make your answers idiot friendly. I would prefer to avoid the need for me to use third party software or add-ons unless absolutely necessary. Thanks in advance.
open the as2 help files, click on "actionscript 2.0 component language reference", click on flvplayback component and click on flvplayback class. you only need to check the following sections:
flvplayback.complete (to detect when an flv has completed play so you can start your next flv)
flvplayback.addascuepoints (to add cuepoints that you can use to navigate).
there is sample code in the help files. copy the sample code and adjust the instance name(s) to match your project. if you have any trouble, return with your code attempt and the issue.
Similar Messages
-
Possible to add cue points to a FLV recorded by webcam?
Hello,
I am wondering if it is possible to add/inject a cue point to an FLV server-side that has been recorded/published from a users webcam using FMS3.5.
Thank youSure, you can do that on the server side. Assume you have a stream named foo that is recording, you can do something like:
var s = Stream.get("foo");
s.send("myCuepointFunction", var1, var2, var3);
When played back, the client side function "myCuepointFunction" will be invoked on the stream's client property (or, in AS2, you'd need a function on the netstream object named myCuepointFunction). -
Flash CS4, Using ActionScript in Buttons to go to cue points in a FLV
Hi.
I'm pretty much a Flash novice, so i don't think this question is particularly hard, it's just something that's vexing me for a few days. I know it's possible based on all the literature I've read, but I can't seem to get it done properly.
Basically, I have a video file that I rendered in FLV with 5 navigation points called 1, 2, 3, 4, 5.
What I want to do is use buttons to navigate to the five cue point in the flash movie. I think that this is possible using ActionScipt 2, but I don't know what to code in the script function.
Any help would be very, very appreciated.
Thanks,
JavierHi,
The following AS2 code may help you
stop();
var listenerObject:Object = new Object();
listenerObject.ready = function(eventObject:Object):Void {
<your flv playback instance name>.addEventListener("ready", listenerObject);
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
<your button instance name>.onRelease = function () {
playback.seekToNavCuePoint("<your cue point name>");
<your flv playback instance name>.addEventListener("cuePoint", listenerObject);
\\replace all the placeholder things including the < >
Also just take a look at the description at http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Liv eDocs_Parts&file=00003003.html for more details
Thanks!
ps: pls mark this post as answered if this is of help to you -
Cue Points Lost When FLV URL Is Relative
hi all
i've got an flv which i have put a cue point in at the end
(to launch a new swf when the flv is finished). everything works
fine but my contentPath displays an absolute url. when i change
this to a relative url the cuePoints field goes blank and loses the
information previously inserted.
i need to upload the swf to a proof, development and live
server so i need the url to be relative, but retain the cue point
info.
any help greatly appreciated.
;-)ok so i managed to get it working by bypassing the cue points
in the flv, putting the following actionscript into the timeline
and changing the flv contentPath to a relative location. while this
works fine for a single action at the end of the film im still
unsure what to do to retain the flv cuepoints when specifying a
relative contentPath... any ideas?!
var listenerObject:Object = new Object();
listenerObject.complete = function(eventObject:Object):Void {
// insert event-handling code here
my_FLV.addEventListener("complete", listenerObject); -
Create navigation cue points in a FLV file using Media Encoder CC
When I export a FLV file with Navigation cue points created in Media Encoder CC (by loading a cue points XML file), upon examining the file I see that the cue points are recorded as Event type cue points in the metadata at the top of the file.
When I load the FLV file in Flash, I can receive cue point notifications using action script while the video is played, but cannot use seekToNavCuePoint to move the play head to one of the cue points, which accords them being Events rather than Navigation points.
I am wondering if there are any other export settings which need to be particular values in order for navigation cue points to be created properly in the exported file?Lestyn, thanks for the verification. Took me a frantic 4 hours to arrive at the same conclusion. Do these people test their software???
Maddening. -
FLV Cue Points from Soundbooth
I am having a strange issue. I have several audio files that I have opened in Sounbooth and added cue points. I saved the files as FLVs. Upon importing into Flash CS4 with the FLVPlayback component, my cue points are not loading. The component inspector shows "cuePoints: None". In a test I did before the New Year, the cue points loaded fine. I have no idea what I did differently this time. Any ideas? I know I can add the cue points in the FLVPlayback component, but I'd rather be able to do it in Soundbooth.
Thank you!This is an annoying work around, but here's how I got the cue points from Soundbooth to be recognized in Flash:
Opened the original MP3 in Soundbooth
Added my markers/cue points
Saved As ".AVI"
Saved again as ".F4V" (not FLV)
Imported the F4V into the FLVPlayback component
NOTE: If you add a new cue point to the FLV and try to resave as the same file name, the latest cue point will not import into Flash. I had to do yet another save as and pick a new file name.
Going to try to eliminate the AVI step, but note hopeful.
Hope this helps others. -
Displaying previous FLV cue point during scrubbing
I have a single FLV that has 10 different scenes in it. I've
been able to make a "credit" list for each scene by adding
actionscript cue points in the FLV component, and displaying the
info using dynamic text. It all works fine.
Now I want the dynamic text to reflect the current scene when
the end user scrubs through the video using the seek bar. (Or at
least after the seek bar is released and the FLV begins to play
again.)
I just need a head start, I think.
Thanks for listening!
DavidThank you again Dima!!!
Now I've CS6 now but the only way that I see to have flv is: Creates (I'm translating from my language) => Flash, from menu file.
I need to insert cue point ("navigation" like in Media Encore Cs5.5).
But the only marker that I see in CS6 is named "Chapter" (translating form my language).
If I create an flv file (like above) I obtain two different flv files (one for chapter).
Is there a way to insert inside the flv file the "navigation" cue points?
Thank you again Dima. -
Embedded FLV Cue Points not working
I am updating a project which uses an FLVPlayback component to play and navigate FLV videos using embedded Navigation cue points. The FLVs were originally encoded using an older version of AME, CS4 possibly. When trying to replace an FLV with a new one encoded using AME CS6, the embedded cue points do not work. Testing in Flash I get "VideoError: 1003: Invalid seek" when attempting to use "seekToNavCuePoint".
Comparing the two FLVs using Premiere shows no recognizable differences between them. They are the same format, their cue points are named identically, all are designated as Flash Cue Points, and all set to type "Navigation".
Digging into the FLV data, I've found that the cue point descriptions are formatted quite differently and I'm wondering if this is the source of the problem:
Excerpt from the original FLV (AME CS4?):
<rdf:li>
<rdf:Description
xmpDM:trackName="AME Markers"
xmpDM:frameRate="f254016000000">
<xmpDM:markers>
<rdf:Seq>
<rdf:li
xmpDM:startTime="9323149248000"
xmpDM:name="q1in"
xmpDM:type="FLVCuePoint"
xmpDM:cuePointType="Navigation"/>
Excerpt from the new FLV (AME CS6):
<rdf:li>
<rdf:Description
xmpDM:trackName="FLVCuePoint"
xmpDM:trackType="FLVCuePoint"
xmpDM:frameRate="f15">
<xmpDM:markers>
<rdf:Seq>
<rdf:li>
<rdf:Description
xmpDM:startTime="550"
xmpDM:name="q1in"
xmpDM:cuePointType="Navigation">
<xmpDM:cuePointParams>
<rdf:Seq>
<rdf:li
xmpDM:key="marker_guid"
xmpDM:value="2c2c8be0-75af-47d6-8938-4a365e33a550"/>
</rdf:Seq>
</xmpDM:cuePointParams>
</rdf:Description>
</rdf:li>
Completely stumped here, any ideas appreciated!More digging into the new FLV shows that while XMP defines the cue points as type "navigation", there is prior data in the file that defines all the cue points as "event". This makes sense, because my SWF is correctly listening for and reacting to an "end" cue point in the FLV, but will not seek to any cue point since they are all set as "event".
Copying and pasting from Notepad++:
cuePoints 0 name q1in time @BYûçl‹D type event
1 name q1out time @JÜ(õÂ\ type event
2 name q2in time @V£¥ãS÷Ï type event
3 name q2out time @^/ Ÿ¾w type event
4 name q3in time @_Oß;d type event
5 name q3out time @nE™™™™š type event
6 name q4in time @s G® zá type event
7 name q4out time @vNÄ›¥ãT type event
8 name q5in time @w¢Ù ‡+ type event
9 name q5out time @zw×
=p¤ type event
10 name end time @€ð bMÒò type event
Any idea why AME is doing this? -
End of FLV advance? Cue points
Hi there.
Have been playing around with cue points in MX2004pro to get
my swf movie to advance once the FLV that it loaded was at its end.
However, MX2004pro gets really confused if you use the display
component in instances in different scenes to call different videos
with their own cue points. (you can delete them and then they just
always exist when you're on the component again. No reference to
the 2nd and 3rd component's action script for cue points in script
editor etc.) Only got the first one to work and its cue points work
fine, but the others are hopeless. Is there any other way to
advance & play the timeline once a FLV reached its end apart
from cue points?>>Is there any other way to advance & play the
timeline once a FLV
reached its end apart from cue points?
Yes, you can use the onStatus event of the NetStream object
to know when
play has stopped.
Dave -
FLV/Mp3 Cue Points for Accessing Frame Labels on the Main Timeline in Flash 8
Hello,
In Flash MX2004, creating cue points for syncing locations on
flv and mp3 files to locations on the main timeline included:
1) Dragging a media component onto the stage
2) Entering file path, frame label name, and time code
information in the component inspector
3) Creating the frame label names on the main timeline, and
4) Enabling the Media Labeled Frame Cue Point Navigation
Behavior
Flash 8 documentation details a considerably different
process of creating cue points. While it discusses how to create
cue points in the flv, I have not been able to locate how to enable
linking locations in flv and mp3 files with frame labels on the man
timeline. It appears that there would need to be ActionScript
necessary to accomplish this that is not available in the docs.
Please advise what ActionScript/process would enable this
function.
Thank you!
James
[email protected]I usually start off solving problems with the livedocs, as I
recommend for anyone. The following link will take you to the
NetStream.onCuePoint handler. This is what you need.
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context= LiveDocs_Parts&file=00002561.html
You can have this code on the main timeline. When the
cuepoint is hit, it will invoke this event handler and inside is
where your gotoAndPlay( ) should go.
Your other question about the text will get activated by the
same handler. Just have a conditional statement (if, switch, etc.)
to differentiate between the two events. The text itself can be
mask inside a movieclip.
Does this help? -
[Q] Can I insert the cue point when recording an FLV via FMS2???
Hi... :)
I think this can be a simple yes/no question...
Does anybody know if I can insert the cue point when
recording an FLV via FMS2 via AS???
Thanks... :)
CyanBlueAccording with fms2 documentation, you can define cue points
in an FLV file when you first encode the file, or when you import a
video clip in the Flash authoring tool by using the Video Import
wizard.
The FMS2 only handles with cue points.... using the
NetStream.onCuePoint event handler. -
Exporting FLV With Cue Points In Adobe Premiere Pro CS5
Hello
I am currently using Adobe Premiere Pro CS5 to export to a FLV file with flash cue points. I have managed to do this but I also want to export (separately) a list of all the time codes of the cue points in the clip. I see that you can save the cue points to an xml file but it doesn't come up with the time codes (well it does, but it is in milliseconds and amongst other things). Is there any way I can save a list of the time codes of the cue points on my FLV file, rather than having to manually type it out?
Thanks,
RvnistelrooyI don't think there is any easy way to do this, but one thing I could suggest is to export the metadata as an xml side car and then use the text editor to extract the times. I'm not sure this would work, but it's worth a try.
Cheers,
Dennis -
Hai am tying to inject the cuepoints in strobe mediaplayer version 2.0.Its not Working ,Same code is working in another version(1.6).Whats the problem kindly guide me
More digging into the new FLV shows that while XMP defines the cue points as type "navigation", there is prior data in the file that defines all the cue points as "event". This makes sense, because my SWF is correctly listening for and reacting to an "end" cue point in the FLV, but will not seek to any cue point since they are all set as "event".
Copying and pasting from Notepad++:
cuePoints 0 name q1in time @BYûçl‹D type event
1 name q1out time @JÜ(õÂ\ type event
2 name q2in time @V£¥ãS÷Ï type event
3 name q2out time @^/ Ÿ¾w type event
4 name q3in time @_Oß;d type event
5 name q3out time @nE™™™™š type event
6 name q4in time @s G® zá type event
7 name q4out time @vNÄ›¥ãT type event
8 name q5in time @w¢Ù ‡+ type event
9 name q5out time @zw×
=p¤ type event
10 name end time @€ð bMÒò type event
Any idea why AME is doing this? -
Cue points - Non-Component-based, NetStream class to gotoAndPlay?
Hello all,
I am trying (unsuccessfully) to utilse cue points in my flv (my_video) to jump to places in my timeline. My flv's are placed within a movieclip if this is helpful? I've learnt alot from this website (Goldmine for anyone needing help) http://www.quip.net/blog/2007/flash/how-to-use-flash-video-cue-points
but i just don't know enough about coding to get it to work. I've done a trace of my flv and this is the information it came back with;
onCuePoint:
parameters =
web1: website1
type = event
time = 3.009
name = web1
onCuePoint:
parameters =
web2: website2
type = event
time = 10.127
name = web2
onCuePoint:
parameters =
web3: website3
type = event
time = 17.866
name = web3
I've tried to 'fudge' my way through this but don't understand the language?! I exprted the flv with embeded cue points called web1, web2 & web3 and am trying to get these to jump to the main timeline (out of the mc) to their respective labels (web01, web02 & web03) Whilst I was embedding those cue poitns i also added event names (also web1, 2 & 3) and values of website1,website2 & website3 -no idea why just thought they had to be filled?
Just to reiterate i'm not using components and I am using the net stream class.
Help!
...please!
Here's my code so far;
ns.onCuePoint = function(evt:Object):Void {
trace(evt.name);
trace(evt.time);
trace(evt.parameters);
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
// Put any code you like here
trace("web1: " + eventObject.info.name);
trace("event: " + eventObject.info.type);
if(eventObject.info.name=="web1"){
gotoAndStop("web01");
my_video.addEventListener("cuePoint", listenerObject);Thanks kglad. Being able to customize is always better in my flash world. LOL
I'll have to stay with the FLVPlayback component as long as I have to use cue points in my videos.
Thanks -
In what formats After Effects can export cue points recognized by director?
Thanks.Richard,
Thanks for your reply. I know I need a listener to activate
something when a cue point in my FLV is reached, it's just that
I've never written the code for a listener before!
If I can explain further what I intend to do...
I will have an FLV called "advert01.flv" with a cue point at
the very beginning called "start" being played in a FLVPlayback
component with the instance name "ad_playback" . When the cue point
"start" is reached (straight away) I want a dynamic text field with
the var name "ad_description" to display some descriptive text.
Would my code go along the lines of...
ad_playback.onCuePointListener = function(){
if cuePoint = "start"{
ad_description="The advert is playing and is funny";
...or am I a million miles from getting it right?
Thanks for your help.
Maybe you are looking for
-
System status field table name
Dear all, I required help from all of you for finding the table name for system status of equipment Thanks Raghav
-
Hi, I am trying to run the following program to see how volatile variable is shared by 2 threads! The result of the program does not satisfy the definition of volatile. Please help me in checking if it is the right way ... or the codes needs any chan
-
SPRO Setting in client copy.
I had Copy client from production to devlopment. During the process all transection are get copy but while vieving or modifying i come to know that all SPRO master setting is missing in client on devlopment server. Say my production client is 300 and
-
Hi there. I recently added some data to my capped plan mobile phone and want to remove the added data. So it was 2GB usage and I made it 2.2GB but I want to go back to 2GB. Anyone know where/how to do this please :/
-
Color acting really slow!!! Please help!!!
Color is acting really slow, I can't even view effects, adjust exposure, ect. Wondering what I could do, never used to be like this. Please advise!