Looping problem with flash audio - audio

At my client's request I have placed a song on her website, set to run on loop using flash. The swf is tucked inside of a table in her sidebar navigation. For some reason the swf doubles, then triples, etc. at the end of each play.
I'm using Dreamweaver and Flash and have tried different combinations of parameters:
Inside Flash: loop on event, loop with stream
Inside DW: loop on and off
Does anyone have a guess as to why/what is causing the swf to stack on itself and how to fix it?

Answering my own question:
The parameter for loop needed to be set to false, as the swf itself had a loop built into it.
The correct combination is Event:Loop (within the swf) and loop "false' in DW.

Related

What is the best way to handle dynamic Iframe values in BluePrism

i am working on a progress, but it always crashes when i use the HTML spy. the reason i found out is that the iframe is changing. Is there a way to make it dynamic, so it reads and gets the iframe. so that i can add it into a dataitem and add it into the dynamic spy.
1 time it runs : /HTML/BODY(1)/DIV(6)/DIV(1)/IFRAME(2)/HTML/BODY(1)/DIV(1)/DIV(3)/DIV(1)/DIV(1)/DIV(1)/DIV(1)/DIV(2)/DIV(1)/DIV(2)/DIV(1)/DIV(2)/DIV(1)/TABLE(1)/TBODY(1)/TR(1)/TD(1)
2 time:
/HTML/BODY(1)/DIV(6)/DIV(1)/IFRAME(5)/HTML/BODY(1)/DIV(1)/DIV(3)/DIV(1)/DIV(1)/DIV(1)/DIV(1)/DIV(2)/DIV(1)/DIV(2)/DIV(1)/DIV(2)/DIV(1)/TABLE(1)/TBODY(1)/TR(1)/TD(1)
3 time: /HTML/BODY(1)/DIV(6)/DIV(1)/IFRAME(3)/HTML/BODY(1)/DIV(1)/DIV(3)/DIV(1)/DIV(1)/DIV(1)/DIV(1)/DIV(2)/DIV(1)/DIV(2)/DIV(1)/DIV(2)/DIV(1)/TABLE(1)/TBODY(1)/TR(1)/TD(1)
Spy the iFrame if possible, capture the path in a variable,
use Dynamic path for all elements by prefixing it with the iFrame Path.
if this does not work let me know and I can give you another option.

Chrome HTML5 video range request headers in Nodejs

I am doing some experimenting with very basic MP4 video streaming using the HTML5 video tag.
Upon looking at the headers that are sent from the client (Chrome browser) when I go to the page with the video tag on it, I see three different range headers sent to the server:
range: 'bytes=0-'
range: 'bytes=4489216-'
range: 'bytes=1180401664-'
I am wondering why Chrome is not specifying an end range header to accompany the start range, it looks like Chrome is attempting to load the entire file, then asking for data somewhere a bit further in the file, and then asking for data very close to the end of the file.
When looking at the Chrome developer tools in the network tab, I see that it immediately download about 3 MB once I get to the page with the video tag on it, then about 20 kB, and then about 3 MB again near the very end of the file.
Streaming does seem to work like this as well as scanning through the video but I'm mainly wondering about why there are no end ranges specified by Chrome and also why it is downloading seemingly random points and sizes in the video while visiting the page.
Thanks!
There is no end because it doesn't not know the end. Mp4 files are split into "boxes". The first 4 bytes of each box is the box size. So the player knows where the next box starts But it doest know the next box size until it starts to download it. So it leapfrogs through the file until it finds what it needs. The browser can always just close the socket if it decides it doesn't want the rest of the range.

How can I capture an Image for post processing in OSG

I need to capture an Image from my viewer and need to do some post processing and display it back on it.
Right now am more interested in the first part of it. That is to capture Image from the viewer.
While going through the OSG I came across ScreenCaptureHandler.
But am not able to get an Image out of it.
I am still working to get it done but in case any of you have any other way of how it can be done or an Example for screencapturehandler that you can share.
To capture the rendered view into an image I use a custom osg::Camera::DrawCallback.
To capture the view at any point, set the drawCallback on the camera, force rendering, restore to a NULL callback.
Notice that the following code is part of a member function of a custom viewer (that's probably not your case):
osgViewer::View::getCamera()->setFinalDrawCallback(new ViewCaptureCallback(img));
osgViewer::Viewer::renderingTraversals();
osgViewer::View::getCamera()->setFinalDrawCallback(NULL);
The ViewCaptureCallback basically uses image->readPixels() to read from the backbuffer.
glReadBuffer( GL_BACK );
osg::GraphicsContext* gc = renderInfo.getState()->getGraphicsContext();
// Here you should process the backbuffer's size and format
image->readPixels(0, 0, gc->getTraits()->width, gc->getTraits()->height, pixelFormat, GL_UNSIGNED_BYTE);
Hope it helps

how to remove delay when looping a playlist in jPlayer?

i have the loop playlist functionality working well with:
{
swfPath: "js",
supplied: "oga, mp3",
wmode: "window",
loop: "true",
});
however there is a few seconds gap between when the playlist finishes and then starts again.
the playlist only contains one file and so i am going for a 'seamless' sound effect but at the moment there is a gap between when the playlist ends and then starts again.
does anyone know if there is an option to remove this gap or somehow manage it so that it appears to have no gap?
thank you.
from the developer:
"Well, if you are only playing 1 piece of media, using the playlist is a verbose way of doing it... Introducing a number of effects that would not normally be there. The delay is due to the playlist assuming that the next track is different to the previous track... So it always sets the media again each time and this will be the source of the delay.
Do it more like a single player and the delay will be much smaller. There will always be a small delay, but much better than you are experiencing.
For example, this demo here is better suited:
http://jplayer.org/latest/demo-01/"

How to customize the way objects/resources load from my website created with Joomla?

Suppose I want the browser to load an image right on the first connection it makes to my website. How do I do that, considering that by default the image loads later on when it's actually called for?
Also, after the whole page finishes loading, suppose I want to load more objects (say images) that aren't required yet but are just for buffer. How do I do that? Help me people, I've been at it for quite a long time.
I'm somewhat successful with the first problem by adding a script tag while actually calling an image at the beginning of my index.php's html head part which goes like:
<script src="http://www.mysite.com/my/image/url.png"></script>
But this I realize is bad scripting.
As for "Why would you want to do that?", it's for educational purposes and also because when someone visits my site, I need to load and display certain things before other things get loaded.
For preloading you probably could start with
<body onLoad="Preload('image1.jpg', 'image.gif', 'image.png', ...)">
And preload is a JavaScript function which adds each of the array of images to DOM like
document.imageArray[i].src = args[i];

Resources