Actionscript 3 :: OSMF - Add Cuepoint To A Video?
Jun 5, 2010
I'm trying to add a cuepoint to a video using OSMF. I built an OSMF video player, and I'd like to use this instead of the FLVPlayback component, which seems like the only way to add an actionscript cuepoint? Anyhow, I created a cuepoint by writing this:
[Code]...
View 2 Replies
Similar Posts:
Aug 4, 2009
However, either I'm declaring my variables at the wrong bit/way or there is another problem, as I have been able to add the child I want to from the display list (sidepoint: is it right to call the display list everything in the library on stage at runtime plus those things you have exported for actionscript usage??!)...but when I want to remove it at the next cuepoint nothing happens. I feel this is a basic principle that is alluding me here.
Code:
vid.addEventListener(MetadataEvent.CUE_POINT, cueText);
function cueText(e:MetadataEvent): void{
[code]....
View 1 Replies
Dec 3, 2008
I have imported a video into Flash CS3 and I want to be able to stop the video on the last frame. If I say false to autoRewind, it goes to a black screen and if I say true to autoRewind, it goes to a white screen. I believe if I use a cuePoint on the last second to STOP then it would work.
View 3 Replies
Jul 10, 2009
I hava an application which heavily uses cuepoints for al kinds of navigation and event purposes. To properly handle the cuepoints I use some sorting etc. of the cuepoints when the onMetaData fires. The video is played as a NetStream from a WOWZA rtmp server. In the production it will probably run from FMS. Today I received the final flv from the client which contains about 300 cuepoints of type navigation and event. The file is generated in AE CS4. With this specific file the onMetaData event does not fire at all anymore (or it generates error below), the onCuepoint event does fire as expected.
Testing with playback trhough the flvplayback component generates the folowing error:
1002: Illegal cue point: Unsorted cuePoint found after time: 93.16
There are two cuepoints set at that point in the video (never thought that was possible...). Could the 'duplicate' cuepoint be the reason onMetaData does not fire? Any preferably cross platform, tool that just inserts cuepoints into an FLV instead of rendering the whole thing again? (I don't think FLVmetainjector does).
View 1 Replies
Apr 29, 2010
OSMV is very thick so so I'm trying to put a series of minimalist tutorials and again I'm stuck with something that should be dead simple.I have a VideoElement that I added to a MediaPlayer. Now now do I set the size of the video?I'd like to just set the size on the mediaPlayer or MediaElement and not include 20 layout classes like the OSMF examples.
private function handle_elementLoaded(e:MediaFactoryEvent):void
{
mediaPlayer = new MediaPlayer(e.mediaElement); [code]....
View 1 Replies
Apr 28, 2011
i'm working on a AS3 project including video reproduction managed with OSMF 1.5. Now i must implement analytics using AppMeasurement.swc. How use AppMeasurement to track data from my video?
View 0 Replies
Nov 5, 2009
I've encoded an flv with cuepoints. When I play the video, it freezes at the cuepoint. I'm useing as3 on windows 7. I've removed the metaData callback from the code below as the problem occurs with and without the callback.
nc = new NetConnection();nc.connect (null);ns = new NetStream(nc);
vid = new Video();vid.attachNetStream(ns);ns.play('names1680.flv');
View 1 Replies
Jul 1, 2011
I have an flv inside an swf. when the flav gets to either 22:00 or a certain frame I need an invisible button to appear ONLY after the cue point where the flv will display a click here graphic and the invisible button will be on top.I was able to add the button to the stage but it is clickable throughout the video, how can I get the button to appear AFTER the cuepoint.
View 7 Replies
Feb 8, 2010
Currently I'm using a rtmp server to streaming a video (m4v format), and now I need to set a cuePoints to call this one.
The problem is,
I'm using a simple video playback with NetStream and NetConnection, till here its okay, the video is streaming correctly, now appears the necessity to show some graphics in middle of the video.
How can I set the cuePoint name? addCuePoint()? The simple video player support it?
View 1 Replies
Apr 29, 2009
I have added a cuepoint at the end of a movie while converting it into flv file, how do I use the cuepoint to stop the flv and go to the next frame? I am new to all of this, can animate a little, but not hand-coding. This is what I received from a co-worker trying to make something happen with Flash and PHP
"Basically, at the end of the video, display in the Flash something simple like this: [URL] Feel free to format as needed to look good in context. Freeze on that frame so that they can retype that confirmation code in a form. Let's use these two variables: confirm_code (unique 7-digit alphanumeric string) video_control (to turn on video controls for testing, to turn off default) You can output a basic HTML page with hardcoded variables, and from there, I can modify it for use on the dynamic PHP page interfacing with the database."
View 1 Replies
Aug 24, 2009
So I have this bit of code that pulls text from within the "caption" tags in the XML file and displays it in sync with the cue points...it works great.
Code:
caption_mc.setText(String(xmlData.cuepoints.cuepoint[i].caption));
I sorta understand how it works but not enough to convert it to pull a graphic. I assume it would be something like:
Code:
graphic_mc.setGraphic(URL(xmlData.cuepoints.cuepoint[i].caption));
View 0 Replies
Aug 24, 2009
I have an FLV file that I am loading in with the FLV Playback component. Within this FLV is a cuepoint called "endvis" that I want to trigger an MC's visibility (make it visible).
View 1 Replies
Apr 22, 2010
I'm working on a more interactive movie. It basically just has effects over the video that go outside of the FLVPlayback's dimensions to seem more "realistic." It seems very basic, but I am unsure where I would begin. Let me tell you the basics: It's offline, I imported the video from my computer and used the "Load external video with the playback component."My FLVPlayback on the stage is called:
fla_movieTrailer It has cuepoints already in the .FLV video. I have one Event one named "blacksmoke." If the video reaches the cuepoint "blacksmoke" I want it to play the MovieClip named fla_blacksmoke. So how do I have it activate fla_blacksmoke?
View 3 Replies
Oct 27, 2008
I have this custom flv player and now I want to add cue points to it, but I don't know how. I've been doing research online. I know that if I use the component flv playback I can use addASCuePoint to add cue points in actionscript, but what about custom flv player?
View 3 Replies
Dec 12, 2010
I have a FLVPlayback component with an FLV. I have it setup so that when the FLV reaches a cuepoint at the end, a button appears to rewind and play the video, and remove the button. This all works fine. My question is if there is a way to remove the button (removeChild) if the user goes back in the video using the seekbar in the FLVPlayback component?
View 2 Replies
Jul 30, 2009
This should be simple but...I have several buttons "Questions" on the main timeline. The answers to these Questions are at specific cuepoints in the flv. This .flv has nav.cuepoints inserted during encoding.Click the button needs to load the flv,then automatically go to the specific cuepoint. Then it needs to run, eventually, to the end of the flv.I dont want the user to have to load the video first then use the cuepoints.I also dont want the video to load at the start, only after one of the questions(buttons) have been clicked.
Will the flv buffer from the cuepoint or does it have to buffer from the start of the video regardless of the cuepoints?
code Im playing with:
import mx.video.FLVPlayback;
//play at start
var my_flvPb:FLVPlayback;my_flvPb.autoPlay = true;[code].....
View 2 Replies
Mar 15, 2011
I'm having trouble adding a cuepoint listener to a dynamically loaded .flv which targets a dynamically loaded .swf. I'm also adding cuepoints via actionscript.
Basically everything loads okay but I get a compile error in the the function cuePointHandler when referencing mc_slideLoader.
Scene 1, Layer 'Actions', Frame 1, Line 601061: Call to a possibly undefined method gotoAndPlay through a reference with static type flash.display:Loader.
I'm still a rookie with AS3 so I'm thinking the Loader class doesn't have a gotoAndPlay property and some how I have to get it to act like a MovieClip?
Here's the actionscript.
ActionScript Code:
// using Flash version CS5
import fl.video.*;
import fl.video.FLVPlayback;
[Code]....
View 7 Replies
Dec 15, 2009
What I have is a video that plays and has nav cuepoints which, when reached, trigger the movie to display a new frame, each frame being a "slide" of bullet points that correspond to what the person in the video is discussing. This all works well, but I the only problem is that if the viewer scrubs the video backwards or forwards the slide doesn't update to display the appropriate slide unless the user plays through the nav cuepoint again. I would like to make it so that when the user scrubs, it will check for the last nav cuepoint and jump to the appropriate movie frame/slide but without taking the video back to the last cuepoint.
I'm pretty new at actionscript 3 but I believe I need to use some combination of onScrubFinish and findNearestCuePoint, but I don't know how to implement this.I should do this? Here's my code so far:
Code:
// *************************
// Stop the timeline
[code]......
View 2 Replies
Jul 12, 2011
I am developing a video player using the OSMF library. I have the problem that I sometimes lose the connection to the server. So I set up an object that watches the connection to the server and in case of connection lost it tries a limited number of times to reconnect before giving up. Everything works just fine except for the message that I get on the debugger version of the player which states:[code]But I still get the error. The onNetStatus method gets events like NETSTREAM_BUFFER_EMPTY, NETSTREAM_BUFFER_FULL or NETSTREAM_PLAY_START but not NETSTREAM_PLAY_STREAMNOTFOUND.
View 2 Replies
Oct 21, 2011
I'm working on a local application ( it's not a website or nothing related ) and I have various FLVs with a very simple encryptation method (just like adding 10 at each byte). I can load/play them using NetStream.appendBytes() after my decrypt, but that happens only after I read all video data. What I really need is to stream those videos from a remote url, and decrypting while receiving data, using a OSMF player that I already have.
This is my current code just to play my decoded FLV byte array
private function playBytes(bytes:ByteArray):void
{
// detecting it's header
if (bytes.readUTFBytes(3) != "FLV")
[Code].....
View 3 Replies
Apr 29, 2011
The Flex 4.1 SDK ships with OSMF 1.0. For new features, OSMF can be updated. Adding the updated osmf.swc to a Flex 4.1 project, I get error messages as soon as I add an OSMF component in my application (VideoDisplay in the sceenshot): Screenshot: [URL].png OSMF 1.5 download page According to the documentation, OSMF 1.5 should work with the Flex 4.1 SDK. Unfortunately, I have to stick to Flex 4.1 because Flash 10.1 needs to be supported (Flex 4.5 needs Flash 10.2) When I change the SDK to version 4.5, the error messages disappears and it compiles as expected. --> Is the documentation wrong about supporting Flex 4.1 or am I doing something wrong?
View 2 Replies
Jun 29, 2011
I'm building a pretty simple player and have a a buffer size set on my MediaPlayer (mediaPlayer.bufferTime = BUFFER_TIME). That's working but I want to show a graphic whenever it starts to buffer. I have an Event Listener on my mediaplayer to show and hide but it doesn't seem to be working properly.[code]...
View 1 Replies
Jul 24, 2011
How would one create a video or audio stream using OSMF when there must be basic authentication on the url?Can one feed in Audio/Video using HTTPService to provide the header authentication?
View 2 Replies
Sep 5, 2011
I'd like to crossfade two AudioElements inside a SerialElement but I don't know where to start.
View 1 Replies
Oct 20, 2011
I'm working on a local application ( it's not a website or nothing related ) and I have various FLVs with a very simple encryptation method by now (just like adding 10 at each byte).
I can load/play them using NetStream.appendBytes() after decrypting, but that happens only after I read all video data it's not streamed.
What I really need is to stream those videos from a remote url, and decrypting while receiving data, using a OSMF based player that I already have built. I'm lost on how OSMF deals with FLV, otherwise, I would try to create a plugin or something like. .
find a way to load a local file using OSMF, passing a ByteArray value, instead of a url (below). Or even giving me directions to create a OSMF plugin to solve my problem.
videoElement.resource = "video_url/video.flv";
This is my current code just to play my decoded FLV byte array
private function playBytes(bytes:ByteArray):void
{
// detecting it's header
if (bytes.readUTFBytes(3) != "FLV")
[Code].....
View 1 Replies
Dec 1, 2011
I have a HTTP video player built using Adobe's OSMF and I am experiencing a strange behavior when trying to seek within a subclip.The player requests data from the server using URL like "http:[url]...." to get the full video, and appends "?begin=123456" to request a subclip starting at 123456 bytes offset.Whenever I try to seek within a loaded subclip, the playhead just drops to the start of the subclip and the video plays from there. Although both mediaPlayer.canSeek() and mediaPlayer.canSeekTo(newtime) return true.
View 1 Replies
May 28, 2010
I am looking to build a custom OSMF player such as this OSMF player sample, however I only have Flash CS but not Flex. Is it possible to build a OSMF player without using Flex?
View 2 Replies
Jan 9, 2011
I am developing an web application in flex which have a feature of recording the runtime by having a snapshot of each frames then encoding it into a ByteArray for video playback. I am currently using NetStream.appendBytes() for playing the ByteArray FLV. It is working, but I just found out about OSMF and thinking bout integrating it in my application. It is it possible to play the flv byteArray in OSMF?
View 1 Replies
Apr 7, 2011
I use OSMF's SWFElement for my project to load SWF file in to main Application but the main app can't detect event from child SWF at all, .CODE in the Main App
mediaPlayerSprite = new MediaPlayerSprite();
var swfElement:SWFElement = new SWFElement();[code]....
CODE in the Child Flash SWF using Flash CS3 add code in The FLASH TimeLine
this.dispatchEvent(new Event('animationEnd') );
View 1 Replies
Jun 7, 2011
I've written a little OSMF player that streams via RTMP from Amazon Cloudfront. There's a known issue, the mp3 duration is not correctly readed from metadata and thus the seek function is not working.
I know there's a workaround implying the use of getStreamLength function of NetConnection, which I successfully implemented in a previous non-OSMF player, but now I don't know how and when to call it, in terms of OSMF Events and Traits. This code is not working:
[Code]...
View 1 Replies