Custom Video Progress Bar
I'm creating a simple little progress bar in AS3 to indicate
the progress of a video loading. I have a rectangle on the stage
called "bar_mc". I have this code, but it doesn't seem to work. As
near as I can tell the function "progressHandler" is never even
being called. What am I doing wrong? Any insight would be greatly
appreciated. Thanks!
Thank You! Your info and code provided the missing link for
me. I really appreciate the help.
I thought once I figured out how to control the "loading
progress bar" I would be able to figure out the "playhead knob",
but unfortunately, I seem to be missing something there as well. I
think the code must be close, but it isn't working. I think the
problem is finding the "current position" of the .flv. Help says
that NetStream.time will show "The position of the playhead, in
seconds." So I'm using this to find the curPos. But it always seem
to return 0.038 and so the playhead knob never moves. Here's the
code. Any help would be very much appreciated.
Similar Messages
-
Custom "Draggable" progress bar in Flash
I have created a custom skin for a Flash video that I wish to use. I currently have a shape tween within an MC that acts as the progress bar for the Flash video. Is there code that will allow me to click and drag that shape tween and control the movie? My movie is embedded within my flash not streamed. Is this possible, or if anyone knows of any good tutorials that would help me achieve this that would be great.
Cheers-
Graemeyou can use any scrollbar tutorial. instead of scrolling the _x or _y property of a movieclip, you'll be scrolling through the frame numbers that span the timeline that contains your video.
to look for a tutorial specific to your situation, try using google to search for "flash scrollbar timeline" -
I need to create a progress bar for my streaming video to let
the user know how much of the video has already been
downloaded/streamed. Making a progress bar for a progressive
download is easy, just check the bytesLoaded vs the bytesTotal. But
apparently with a streaming video those do not work. What exactly
do I need to check in order to create a progress bar for a
streaming video. Here is my sample code that doesn't work for the
progress bar.Hi!
You might want to check out the video basics tutorials (8 of
them in total)
at
http://www.gotoandlearn.com/
/Jensen/
"quovadimus02" <[email protected]> wrote in
message
news:ehalfi$deh$[email protected]..
>I need to create a progress bar for my streaming video to
let the user know
>how
> much of the video has already been downloaded/streamed.
Making a progress
> bar
> for a progressive download is easy, just check the
bytesLoaded vs the
> bytesTotal. But apparently with a streaming video those
do not work. What
> exactly do I need to check in order to create a progress
bar for a
> streaming
> video. Here is my sample code that doesn't work for the
progress bar.
>
> var startingCheckX:Number = loader_mc.seek_mc._x;
> // updates loader bar as well as progress indicator
> function checkBytesLoaded() {
> amountLoaded = ns.bytesLoaded / ns.bytesTotal;
> loader_mc.bar_mc._width = amountLoaded * 280;
> loader_mc.seek_mc._x = startingCheckX + (ns.time /
duration * 280);
> var minsElapsed:Number = Math.floor(ns.time / 60); //
find number of
> minutes
> var secsElapsed:Number = Math.floor(ns.time % 60); //
find remaining
> seconds
> var minsTotal:Number = Math.floor(duration / 60); //
find total number of
> minutes
> var secsTotal:Number = Math.floor(duration % 60); //
find total number of
> seconds
> // add leading zero for single digit values
> minsElapsed = (minsElapsed < 10) ? "0" + minsElapsed
: minsElapsed;
> secsElapsed = (secsElapsed < 10) ? "0" + secsElapsed
: secsElapsed;
> minsTotal = (minsTotal < 10) ? "0" + minsTotal :
minsTotal;
> secsTotal = (secsTotal < 10) ? "0" + secsTotal :
secsTotal;
> loader_mc.counter_txt.text = minsElapsed + ":" +
secsElapsed + " / " +
> minsTotal + ":" + secsTotal;
> }
>
> loadedInterval = setInterval(checkBytesLoaded,100);
> -
Custom made progress bar didn't work
Take a look at
mytest
Why is it not behaving like it supposedly should? The
progress bar didn't really show exact progression, the File size
didn't show the correct filesize that is being loaded, even the
image loader sometimes didn't show the pics. Why is it so difficult
for me?
Oh..below is the code snippet. Thanks for helping/trying to
help.Thanks Uwe.
Anyone who has a Mac and a spare moment, may I invite you to download
the demo of the "Create Character Styles" script on my website:
www.freelancebookdesign.com, under the "Scripting" tab.
It has a progress bar and enableRedraw = false (hence my interest in
this subject), and it never occurred to me to test it on a Mac.
If someone could test it on their Mac and tell me what happens, that
would be much appreciated.*
Ariel
Free license for the first person who lets me know! -
How to display test progress in customized OI progress bar??
Hi all
From the deaf silence of group for my previous question should i assume it is not possible to store/process the user configuration deatails in database instead of .ini file??
also please clarify me the following questions.
1. Is it possible to display the test progress in customized OI (like shown in the figure)
i used the method to get the number of steps.
axExecutionViewMgr.GetCaptionText(CaptionSources.CaptionSource_NumberOfSteps,true,""); ( but it returns null i used it in precommand event of appln. mgr.)
but the teststand should provide a event so that i can update the progressbar value according to number of steps/ steps completed in UI right??
2. The functionality of ABORT will abort the current execution. but when i say restart it should restart from step that is being aborted. but the current restart functonality provided in test stand restart from very first step of sequence. is there any way to achieve this?.
3. I try to run sequence file programmatically using the following code
NationalInstruments.TestStand.Interop.API.Engine eg= axApplicationMgr.GetEngine ();
NationalInstruments.TestStand.Interop.API.SequenceFile s =eg.NewSequenceFile ();
s.Path ="D:\\Program Files\\National Instruments\\TestStand 3.1\\Examples\\Demo\\CreateDeleteUsers\\CreateDeleteUsers.seq";
eg.NewExecution (s,"CreateDeleteUsers.seq",null,true,0,null,null,null);
but it show the following error
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in TestExec.exe
Additional information: Unknown function or sequence name 'CreateDeleteUsers.seq'.
have i anything missed in the code??
Thanks in Advance
Srini
Attachments:
exec.jpg 43 KBRe 2. Restarting from the middle is not a feature that currently exists. To implement it yourself, you would have to create a step or callback that reads a persisted version of the results, variables, current step group/index, and anything else you need to restore and applies it to newly started execution. You would have to arrange to persist all these items when you terminate, either with a special step/callback or with special code in a OI application that you write.
This is probably not a feature that can be implemented in just a few of lines of code. It could be a simple or difficult project, depending on how much state you need to restore, whether you support restarting from within subsequence, whether you try to restore the system state by rerunning setup and cleanup groups, etc.
Re 3. Your code does not work because although you change the path of the new empty file, it is still a new empty file. To load a file, call ApplicationMgr.OpenSequenceFile. You can then execute it with a command object. Example:
this.axApplicationMgr.OpenSequenceFile(fileName);
// run the current sequence
this.axSequenceFileViewMgr.GetCommand(CommandKinds.CommandKind_RunCurrentSequence).Execute(true);
// run an execution entry point (Test UUTs is typically at index 0 and Single Pass is typically at index 1)
this.axSequenceFileViewMgr.GetCommand(CommandKinds.CommandKind_ExecutionEntryPoints_Set, 1).Execute(true);
Alternatively, you could create an execution with ApplicationMgr.GetEngine().NewExecution, passing in the SequenceFile that the OpenSequenceFile method returns. If you are modifying/creating an OI application, I recommend reading Chapter 9 of the TestStand Reference manual if you haven't already. -
How to customize video player progress bar?
I want a video progress bar (maybe it is a slider ), which
can be used to show the buffer progress of video, the standard
slider control in Flex has not this function.
How can I customize the silder control?this is a very basic video player. what we've done here is A
LOT of binding i.e. vp.playheadTime=(vp.totalTime/(100/ctr.value))
after you've figured out what the right math is..which is
already done here, you can just skin it and it'll work fine. i
haven't had the time to update this for a while but there is
definitely room for improvement. hope this helps.
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="
http://www.adobe.com/2006/mxml"
horizontalAlign="center" verticalAlign="middle"
horizontalScrollPolicy="off" verticalScrollPolicy="off"
width="100%" height="100%">
<mx:Script>
<![CDATA[
public function init(path:String):void
vp.source = path;
vp.play();
public function fixIt(what:Number):Number
what.toFixed(2);
return Number(what);
]]>
</mx:Script>
<mx:VideoDisplay autoPlay="false" id="vp"/>
<mx:HSlider minimum="0" maximum="100" width="{vp.width}"
height="29" id="ctr"
value="{fixIt(vp.playheadTime/(vp.totalTime/100))}"
change="vp.playheadTime=(vp.totalTime/(100/ctr.value))"
liveDragging="true"/>
<mx:Label id="duration"
text="{int(vp.playheadTime)}"/>
<mx:HBox>
<mx:Button id="pp" label="Play/Pause"
click="if(!vp.playing){vp.play()}else{vp.pause()}"/>
<mx:Button id="st" label="Stop" click="vp.stop()" />
<mx:Button id="rw" label="Rewind"
click="vp.playheadTime=0" />
</mx:HBox>
</mx:VBox> -
Hello
I have a page process in APEX that takes a while to finish. When I click a button, I want a progress loading widget to appear.
There is a lot of processing that takes place on this page; however, I only want the progress bar to show when a particular button is pressed for one particular process. I am having trouble getting the progress bar and the process to fire at the same time.
Process name: P3_REFRESH_AS_TABLE
/* calls a pl/sql procedure*/
BEGIN
PC_ST_PR_POPULATE_ATH_SCHED;
END;Button Name: P3_REFRESH_TABLE
I have the Ext JS Library 2.2.1 uploaded to the server.
This is the progress bar code I am trying to use:
//==== Progress bar 4 ====
var pbar4 = new Ext.ProgressBar({
text:'Waiting on you...',
id:'pbar4',
textEl:'p4text',
cls:'custom',
renderTo:'p4'
var btn4 = Ext.get('btn4');
btn4.on('click', function(){
Runner.run(pbar4, btn4, 19, function(){
pbar4.updateText('All finished!');
});This is the CSS code:
.status {
color:#555;
.x-progress-wrap.left-align .x-progress-text {
text-align:left;
.x-progress-wrap.custom {
height:17px;
border:1px solid #686868;
overflow:hidden;
padding:0 2px;
.ext-ie .x-progress-wrap.custom {
height:19px;
.custom .x-progress-inner {
height:17px;
background: #fff;
.custom .x-progress-bar {
height:15px;
background:transparent url(images/custom-bar.gif) repeat-x 0 0;
border-top:1px solid #BEBEBE;
border-bottom:1px solid #EFEFEF;
border-right:0;
}Any help on this is appreciated
Regards,
KellyThank you Luis and Chris for your response.
I have been able to successfully use Carl's logic only when the page process is not set to go off when the button associated with the processing bar is clicked. However, there are a few buttons on the page so each time the page gets submitted the page process fires off if it is not associated to a button. Is there a condition I can use that will prevent the process from firing until the button associated to the processing bar is clicked?
Regards,
Kelly -
Customizing OI to add step progress bar
Hello custom RTOI experts! I am attempting to make a customization to the full-featured LabVIEW RTOI (for TestStand 3.0) in order to provide the seemingly simple feature of a step completion progress bar on the execution page of the tab control. Let me explain a little behind the concept I'm going for. There are some steps in my sequences that take a relatively long time (15 minutes or so). During this period, a requirement of mine is to have a progress bar that gets updates every so often such that by the time the step would ordinary complete, the progress bar is at 100%. Initial attempts involved a separate VI that managed the progress bars, but having yet another window is not the ideal UI design... Instead, I was hoping to integrate this functionality into the RTOI so that each time a new step begins executing, additional custom data (the expected step duration) is (optionally) sent to the RTOI providing the progress update portion of the RTOI code the necessary data.
Is there any sample code out there that performs some similar task so that I can get a better feel for how the pieces fit together? In particular, there are a few things that are befuddling me:
1) What is a good way to store this custom information (step duration) in the sequence file? Should I modify the basic step types to add a new duration field which can be optionally set to something greater than the default, 0?
2) How should the step duration get passed to the RTOI? My current thought is to override the PreStep engine callback to send the custom duration field in a custom UIMessage, but that may be partly because I'm not familiar enough with the structure of the data is that is that is accessible via the sequence context...
3) How do I link the progress bar data to the actual execution page that is currently being viewed. Up to 4 executions can be running using the parallel model or the batch model in my sequences, so something would clearly need to be done so that when execution 1 is visible, the associated progress bar is shown, etc... I'm assuming I can trap on some event when the user clicks on an execution in the list bar, but there is no similar code in the out-of-box RTOI - all that appears to be managed automatically by linking the controls to the execution manager.
Thanks for any pointers or code samples (or even suggested reading) that anyone can give.Thanks for the response.
I may indeed want to use the ProgressPercent message, but I'm not so sure just yet. I did not want to leave the responsibility of sending UIMessages up to the VIs and other code modules called by the sequence - I was hoping for a simple solution to provide a new field (ExpectedDuration) that can be set for any given step. In this way, the RTOI can manage updating the progress simply by counting seconds. Perhaps there is some timer callback that can be leveraged to perform this function?
What I have so far is as follows: I have a new step type called PassFailTestWithDuration. It is a copy of the PassFailTest step type with the addition of a ExpectedDuration property and a new PreStep which calls the PostUIMessageEx with a custom event (10001). The expected duration and the RunState.TestSockets.MyIndex both get passed as parameters. Inside the RTOI, I have added a UserMessage callback VI which stores the data in the appropriate slot of a global (indexed by socket index). (The global array is implemented as what I've heard called an action engine - there are init, read, and write actions that it can perform on data stored in the VI, and it is set as non-reentrant so that race conditions cannot occur). Each entry in the global array has 2 fields - the expected duration, and the current elapsed time. My idea was to continually update the current elapsed time for all active executions and simply show a progress bar for the "active" execution by displaying its elapsed time/expected duration in each necessary event...
I think my main question now is - how do you determine the RunState.TestSocket.MyIndex of the active execution in the execution manager (or application manager)? It seems like such an obvious thing to want to know, but I don't see it anywhere.
Thanks again for any hints you can provide! -
How to make growing progress bars in video?
I am as green as you can get, in fact I do not yet have my editing software, though my first choice is Adobe premiere pro. For future reference could someone please explain to me how I could animate one or multiple progress bars to fill up over the course of a series of videos? I know this can be done as I've seen it before, please help.
Make 2 bars in Photoshop one 0% and one 100%, place the second one above the first in the timeline and animate it with a linear wipe.
-
What does a progress bar next to a video file mean?
What does a progress bar next to a video file mean? and how can I get rid of it?
Thanks!The black checkmark indicates that the song will be part of the next action you perform in iTunes. For more information about that and other symbols in the iTunes song list, see this article.
(14657) -
I am trying to export a 6.5 minute video from imovie to my camera roll on my iPad Mini. However the progress bar stops halfway through. Any advice would be very much appreciated, many thanks.
I am trying to export a 6.5 minute video from imovie to my camera roll on my iPad Mini. However the progress bar stops halfway through. Any advice would be very much appreciated, many thanks.
-
Can't Render Video Hangs on the Initializing Video Export Progress bar
When rendering a video I never get past the Initializing Video Export Progress bar.
Running windows 8 64bit, Photoshop CC.
I have Windows CS4, Lightroom 4, LIghtroom 5 and Premier Elements installed. I have no problem exporting video from lightroom or Premier ElementsI am trying to process a move clip of various types. I don’t even get to the dialogue that presents the parameter entry. I’ve tried .mp4,mts,3gp,f4v & m2t. I don't even have any changes applied to the clip.
-
Ipod video classic 5th gen won't play video/podcasts or audio only a black screen with the play symbol and volume/progress bar. games work fine! any ideas?
Here's some more info.
I tried installing the latest iTunes to my housemate's PC, logging into iTMS with my account, authorizing his machine to play my content, restoring my iPod to the factory settings, downloading the videos and copying them to my iPod.
It worked fine, and I can play my videos.
I have done the exact SAME thing on my own home PC twice, after completely uninstalling and reinstalling iTunes, QuickTime, and the Apple Software Updater. But I still can't get any videos downloaded on my home PC to play on my iPods.
Any thoughts? -
Place video with no progress bar?
Hi
I'd like to place a video seamlessly so it plays like an animation, with no progress bar or controls. It's easy to exclude the controls but there is still a progress bar. how to remove ?
learning a lot here!
thanks for the help!
SIf you disable "tap to view controls“ the video should play seemlessly.
The desktop viewer shows the progress bar even with that setting disabled.
On your iPad it will be without.
—Johannes
(mobil gesendet)
Am 08.12.2011 19:32 schrieb "SteveLunny" <[email protected]>:
place video with no progress bar? created by SteveLunny<http://forums.adobe.com/people/SteveLunny>in
Digital Publishing Suite - View the full discussion<http://forums.adobe.com/message/4071925#4071925> -
Seeking in videos using the progress bar
Ever since the 2.0 update, seeking using the progress bar seems very sluggish, far from the smooth experience I had using the 1.1.4 firmware. The playback seems to snap to certain points and fast forward to the point I seek to. I updated to 2.0.1 today hoping this issue would be fixed, but not yet. Anybody else experiencing this?
mine is even worse, after the 2.0.1, video playback is broken. There is no video!!!! but there is audio. This apply to any online video as well like youtube. any facing the same problem? How can i restore to 2.0?
wan
Maybe you are looking for
-
Hi Can anybody point me on How to configure HTTP receiver adapter. I have gone through SAP help library on XI and configuring HTTP receiver adapter topics but what I am looking for is specific weblog on HTTP receiver Adapter configuration as I have a
-
Hi Experts, I need to pick up text files from a folder using File Adapter and then send them to a mail id directly without any mapping in XI. Please suggest how it can be done. Thanks, Shobhit
-
Apple TV connecting to A/V (Niles central system)
We have centralized system w/switch that we feed all A/V too and we want to add the apple TV & remove our DVD,CD, etc? Can we do this?
-
Please Help! Dont want to restore :(
When i was updating my ipod touch itunes told me that I had to restore it. But i dont want to becasue I will lose all my pictures. Help
-
SRM EBP User management - best practice followed for your customer.
Hello All, What are the best practices followed on SRM User manageemnt followed for your customers. (1)When employee/ buyer leave the organisation ? what actions you do ? do you lock the users? (2) If any thing interested share your experiences. (