How to trigger embedded cue points
Hi all
I need to trigger embedded cue points. I have navigation cue
points, and I want the video to pause when it reaches the end of a
section. I also have an event cue point where I want to import
graphics. Im new to actionscript and dont know what code to write
to implement this. Ive looked at many, many websites but to no
avail, I just dont know where to start. any info or tutorials would
be very much appreciated as im working against a deadline.
thanks!
Hi,
you would need the ADF Faces context to PPR an area on a screen, the FacesContext doesn't help. Also, PPR is a feature of ADF Faces and not the external context in JSF. I would try to issue PPR through JavaScript using the AdfPage object
http://download.oracle.com/docs/cd/E15523_01/apirefs.1111/e12046/oracle/adf/view/js/base/AdfPage.html
What I would try is
- define an af:serverListener on af:document
- look the af:document up using JavaScript
- invoke a managed bean through serverListener
- have this bean issuing the PPR
See: http://download.oracle.com/docs/cd/E15523_01/web.1111/b31973/af_event.htm#DAFBJGAH
Note that you don't need the clientListener since you invoke the server listener from extern (your SVG)
Frank
Similar Messages
-
How to play a cue point with mixer
I know how to play a cue point of sound with the method:
sound(1).queue([#member: ... #startTime: ... EndTime: ... ])
How can I transfer the method of cue point using the mixer?
I need to have any hint about this because I must use both cue
point with playrate, at my begginer level of knowledge I know that:
1) I can't use "playrate" with "sound(1).play()" method.
With this method I can use cue point;
2) I'm trying to know If I can use cue point with mixer method.
With this method I can use "playrate" .
It is also for me important to know if it is possible or
impossible to solve this problem in director.
Thanks.iPhone 3gs, 4 or 4s?
With the former two, just drag the videos to the desktop iTunes and sycnhronize to your iPad. They will be synched to the stock Videos.
With the latter, you can either resize the video to 720p (or less) OR use a third-party app (It's Playing, AVPlayerHD, GoodPlayer being the best choices) to play it back. I'd go with the latter to avoid quality degradation and long-lasting reencodings. -
I cannot figure out how to get a embedded event cue point to
advance to the next scene of a movie and have zero experience at
writing action code. The event cue point is on the last frame of
video and was encoded with Flash 8 video encoder. The application I
am working on has three scenes. The first and third have audio and
graphics. The second scene uses the FLVPlayback component to play
the flv file. On test movie, the first scene plays fine and
advances to the second where the video plays. When video is over
the movie does not advance to the third scene. Thoughts? Any
assistance would be greatly appreciated.I truly apperciate you assistance but I am still doing
something wrong. I am getting the following error:
**Error** Scene=Scene 2, layer=Actions, frame=1:Line 3:
Identifier expected
var.vidList : Object = new Object();
I changed the name of the FLV instance to "vid" and changed
the "vid.contentPath = peopleStyle.flv" for my video.
Here's the code.
vid.contentPath = video_PS.flv // put in your flv file here
var.vidList : Object = new Object();
vidList.Complete = function (){
nextScene();// this is what will occur when the end of the
video is reached
vid.addEventListener ("Complete",vidList)
T
hanks again for your help. -
Can you link flash buttons to a embedded cue point
I have a video that I exported to flv with 10 embedded
navigation cue points. I also have 10 buttons in a flash file that
I would like to link to those cue points. I can't find any info on
how to do that. I see info on making a cue point make a event
happen, but nothing on linking a button to a cue point. Basically
I'm looking for the same interaction as a DVD were the user clicks
on a chapter they want and the video goes to it.There are players that will play a swf with volume mute stop start that sort of thing I downloaded one a couple of years ago I don't recall where I got it.
-
Need help with embedded cue points in FLV please (quickly/ :-))
Here is my scenario - I have a flv streaming in a swf. All I
want to do is to is call the cuepoint (event) in the flv, so that
it will go to and play somewhere else further down the timeline of
the swf - I don't think it should require much AS, but I haven't
done much communication of this sort between an flv and it's parent
swf. Any help would be greatly appreciated! Thanks.I figured it out. If anyone is interested, this the code snippet I found in Adobes help that allows you to access cue points and trigger events on flv's brought in with netstream:
function onCuePoint(infoObject:Object):void
trace("onCuePoint:");
for (var propName:String in infoObject) {
if (propName != "Run")
RunCuePoint.visible=true
else
trace("parameters =");
if (infoObject.parameters != undefined) {
for (var paramName:String in infoObject.parameters)
trace(" " + paramName + ": " + infoObject.parameters[paramName]); -
How do you add cue points to a MOV file that Director 12 can read?
I have just downloaded the Trial of Director 12 - and unless I can add cue points to video that it can interpret - I am not going to be able to achieve what I need to. I've spent the last day and a half looking over the scant documentation provided by Adobe, and anything else I could find online - but the only answers that came anywhere near were for old versions using discontinued xtras.
Please can anyone help? - I am using Windows 7 64 bit - CS6.
Thanks in advance. :-)Probably too late for your project but...
You can do this by using 3 sprites in addition to the SWF. In this example, I've named them "videoPlay", "videoRewind, and "videoStop". The SWF in this case was named "video."
Apply this script to each of the 3 sprites.
property mySprite
on beginSprite me
mySprite = sprite(me.spriteNum)
end
on mouseUp me
case mySprite.name of
"videoPlay":
sprite("video").play()
"videoStop":
sprite("video").stop()
"videoRewind":
sprite("video").stop()
sprite("video").rewind()
end case
end -
How do I create cue point in FLV component
Ok team,
I have a video clip that needs to have sound with it, I also want to put motion graphics at certain points in the clip using Flash.
Ok so if I embed the clip into the timeline so that I can use another layer on top to do the graphics I get problems with the sound- I have even tried to have the sound as a separate file and play it using script starting the video and sound at the same time, but it gets out of whack..
If I import the video externally there is no way I can see what is going on so that I can do the graphics on top....
I am looking at adding cuepoints to the video to try to trigger my graphics in this way, it says online to go to the property inspector and right click on the cuepoints option, but when I go to the properties inspector it is telling me that this is not supported in AS3? so WTF! I am nearly ready to start punching myself in the head here... The online Adobe help I am looking at is for Actionscript 3 compnents so something is goig very very wrong
Please help, is there an easier way to do this? I am compositing in Premiere pro and adding text but when I export as FLV it is looking fuzzy- and also the text becomes interactive at a later stage so it would be much better if it could happen in Flash.
PLease please help
Cheers
subThe topic of audio / video syncing is often mentioned in the Forum. The usual suspect is the audio...." but it gets out of whack".
That is a fundamental mis-understanding.. it's NOT the audio that gets out of whack... it's the video!
You can embed video with (streaming type) sound into the main timeline and get very good syncing results provided you understand and build on the fact that the vdeo must match up and sync with the audio, NOT the other way around.
For your review (from an earlier post):
Also remember that it's the animation that gets out of sync, not the audio.
The reason I say that is because the audio MUST play at one and only one frequency... or in other words, the audio will have an exact length of time that it takes to play the sound. If you shorten that time in an attempt to match the animation, that's sort of like pushing the sound together, that increases the frequency and raises the pitch... making it sound like Alvin and the Chipmunks.
On the other hand, if you streeeeetch out the sound over a longer period of time, decreasing the frequency, you looowweer the pitch.
So knowing that sound must play back at only one rate (or frequency), you'll need to match the animation to the playback speed (frequency) of the audio, not the other way around.
While it's often recommeded that you not embed video into the main timeline because of this same audio/video syncing problem ("audio gets out of sync"), I've had no problems with syncing the audio and video as long as I set the Flash doc frame rate to exactly match the original video Frame rate (29.97 frames per sec for mini-DV).
Here's an example of a video embedded directly into the timeline, yet the audio stays in sync.
http://www.cidigitalmedia.com/tutorials/vid_sync/vid_sync.html
Now I realize you may not be using video, but the principle is the same. Match the animation to the audio, not the other way around.
This may mean that you need to play with the document frame rate to find the sweet spot where the audio and animation stay in sync. Test your .swf with higher and lower frame rates to see the effect. It may take some experimentaion but you should be able to greatly improve the sync.
So in your case, if the video origianlly had audio with it (as many videos do), the frames per second of the Flash document must match exactly that of the original video or the video will either get ahead of the audio or fall behind the audio. Again, it's the video that is out of sync, NOT the audio.
Best wishes,
Adninjastrator -
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? -
How to hear audio while scrubbing for cue points?
There don't appear to be any video control functions in AME in the Export Options dialog. How can I play and pause the video? How can I insert cue points if I can't hear any audio?
You do all this while still in PP.
-
How to sync image slides to video cue points?
Hi, I'm working in AS3. What is the best way to sync some
image slides to cue points I have embedded in a video? Ideally the
video would play and and the image will change according to the cue
points.Hi there.
I encountered that same question just recently. Here's what I
did:
First, import your video, choosing to load an external video
w/ FLYPlayback componant. Name it "vid". The video should already
your embedded cue points. In this case, the cue points are called
"Slide 1", "Slide 2" etc.
Next, bring a UILoader componant to the stage and name it
"myLoader"
Specify where your images are (in "myImageHere") and away you
go my friend.
Here is the code:
import fl.video.FLVPlayback;
import fl.video.VideoEvent;
import fl.video.MetadataEvent;
import fl.containers.UILoader;
vid.addEventListener(MetadataEvent.CUE_POINT, cueSlide);
function cueSlide(e:MetadataEvent):void {
var cuePointName=e.info.name;
if (cuePointName=="Slide 1") {
myLoader.source="yourImageHere1.jpg";
} else if (cuePointName == "Slide 2") {
myLoader.source="yourImageHere2.jpg";
} else if (cuePointName == "Slide 3") {
myLoader.source="yourImageHere2.jpg";
} -
As3 cue points from soundbooth
hello one and all,
i am a bit frustrated because i can not find a straight forward howto/tutorial on accessing cue points from a flv or xml file produced in soundbooth and imported or read into flash so trigger a MetadataEvent.CUE_POINT event within an action script. i have fuzzy understanding about it but not quite enough to make it work properly and with small efficient code. can anyone direct me please to a good howto/tutorial on triggering an event when a cue point is hit when an audio file plays in flash cs4? btw, i only want to do it with pure audio and not video also, if that makes it simpler. thank you in advance and have a great day.
lucaswell, i got very lucky and after 6 days of searching for a good tutorial, i just finally got lucky. a piece here another there. essentially, soundbooth is a pretty suit little program and saving the cue points within are excellent also. it can even do it for video. anyway, i was only working with audio and was able to save my flv audio as audio only which included the embedded cue points and attached parameters. the below code, actionscript 3, works very well and i believe it is the simplest code for reading and triggering on cue points as the audio is played. txt1 and txt2 are simply dynamic text boxes on the stage on frame 1.
i still have a question though. how do i give the audio in the library an instance name outside of an actionscript? as you can see below, i create an FLVPlayback instance and load the file through as. with text boxes and rectangles and such, i can give those an instance name under Properties off of the stage. however, the audio is not visible on the stage so i can't access it through the Properties window. i can somewhat access it through the frame, that that is a frame label and not an instance variable. so, how do i assign an instance variable to audio outside of actionscript?
anyway, the code is below for anyone to use. thank you and have a great day. lucas
import fl.video.*;
trace("FLVPlayback Version = "+FLVPlayback.VERSION);
txt1.text = "file: \"1st.fla\", initializing...";
var p:Object;
var player:FLVPlayback = new FLVPlayback();
player.addEventListener("cuePoint",onCue);
player.load("voice1.flv");
player.play();
function onCue(e : MetadataEvent) : void {
txt2.text = e.info.time+"s";
trace("cue "+e.info.type+" name: \""+e.info.name+"\" @ time: "+e.info.time);
p = e.info.parameters;
if (p != undefined) {
txt1.text = e.info.parameters["en"];
trace(" name of \"en\" only: \""+e.info.parameters["en"]+"\"");
trace(" all name/value paired parameter(s).. .");
for (var n:String in p) {
trace(" "+n+"=\""+p[n]+"\"");
else {
txt1.text = e.info.name; -
We are trying to make an educational series we have created with Flash (FLV) videos compatible with the iPad. We currently use .flv files with cue points to trigger URL flips with java script to change the mulitple choice questions that appear next to the playing video using JWPlayer. JWPlayer will also play the .mp4 files we need to get the videos to play on iPad, but I cannot find out how to put a cue point into a .mp4. Would that be a "chapter marker" in FCP? So if the video was to trigger test#28 we now insert a cue called "test_28" in the flv, would we make a chapter marker titled "test_28" in FCP and then export with markers?
We currently use .flv files with cue points to trigger URL flips with java script to change the mulitple choice questions that appear next to the playing video using JWPlayer.
This is a job for Adobe Flash Pro:
http://www.adobe.com/products/flash.html -
I am working with event cue points and I have it working with
action script and embedded cue points. What I am trying to figure
out is how to tie a specific events or movie clip with specific cue
points. Right now all the movie clips play whenever I hit any cue
point. I have not figured out how to tie specific cue points with
specific events. Anyone have knowledge of this that can direct me
properly. I would highly appreciate it. ThanksFirst of all thanks for the reply. I didn't explain myself
well. I know about the stop frame on the first frame. My cue points
are working. I want to be able to play different movies cued up at
different times in the video. Right now all my movie clips play at
all the cue points. I want a specific movie to play at a specific
cue point then later in the video another different clip play at a
difffent time element in the movie. Thanks. I really appreciate the
help. -
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 -
I've created a custom object without the FlvPlayback
component. I used the following code:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
myVid.attachVideo(ns);
ns.play("flv/home/intro.flv");
That flv file has embedded cue points. How do I access them?
I can access them easily if I were using the FlvPlayback component,
but I don't think the cue points are getting through the netstream.
Any ideas?use the ns.onCuePoint event handler.
Maybe you are looking for
-
ORA-20100 The system cannot find the file specified 0RA-06512
I can create and deploy a .NET stored procedure but when I run it either from Visual Studio 2005 Oracle Explorer or TOAD or SQLPlus I get the following: ORA-20100: The system cannot find the file specified. ORA-06512: at "SYS.DBMS_CLR", line 211 ORA-
-
How to find rubber feet for mbp 13"?
I've lost one of the rubber feet on the bottom of my macbook pro 13" 2.6 GHz core duo. What can I do please? Can anyone inform me, so that I can find a solution?
-
Form that is a map of Ohio. I created layers for each county so I can click and it highlights, but I need to be able to click more than one. How do I do that?
-
I am using Firefox 3.6.10 on a iMac with a LaCie backup drive attached. Every time I launch Firefox, it asks me in 3 seperate pop-up boxes if it can use the following fonts on the backup drive.(Quick Type Mono, SvttTwo ITC TT, and SvtyTwo OS ITC). It
-
Tips or Improvements for my Bitlocker Encryption Test Script
Hi Guys, I just finished a little script to check if a drive is encrypted with Bitlocker. I wanted to post it here to see if anyone had some constructive criticism. Here you go: $computer = import-csv C:\scripts\bitlock3.csv $namespace = "root\CIMV2\