05-18-2009 11:44 PM
I created another script that basically does the same thing as you want. It switches an image every second.
Now this script works on any device that has an OS > 4.6 so it will work on you 9530 simulator but not the 8330 simulator.
Before v4.6 there is no dynamic refresh of the page, i.e. if you want the page to look different, you need to reload the page again.
1 way of doing this in <4.6 is to cache the page and recall it with different images. That way the speed is reasonable as the page is cached.
You will have to upgrade the OS on the actual BB devices to > 4.6 if you want the user to be able to see the page dynamically refreshing.
05-19-2009 11:11 AM
What is required to update the 8830 (currently 4.3 in the simulator) to be able to handle dynamically changing images ? If this solves the problem in the simulator,what is required for a customer to update, too ? How risky is the update for the customer ?
Please try this link again to check my code: http://126.96.36.199:8080/test-BB1000.html. Please note that the simulator may not be able to keep up with a new image at the rate of 1 frame per second.
05-19-2009 02:51 PM - edited 05-19-2009 02:53 PM
The 9530 Simulator is unreliable !
If I reboot my PC, I can get Abarber's IntervalTest3.htm to work ok.
But if I load one of my scripts, the simulator BB browser hangs. If I then reload IntervalTest3.htm, it sticks on the first image -- it's broken. Restarting the 9530 and MDS simulators does not solve the problem. Also, all the browsing history is lost.
I have three browsers side by side on the same machine, all trying to run IntervalTest3.htm:
1) IE6 -- works ok
2) FF3 -- works ok
3) BB -- doesn't work most of the time
05-19-2009 08:34 PM
PROBLEM IN BB BROWSER CACHE FOUND
I gave up on the simulator for the 9530 and tried the 8900. The 8900 simulator works. I discovered that the browser cache does not work right. It ignores the URL-encoded string that I append to each image request, thus my script keeps getting the same image from cache rather than using the changing URL-string to differentiate successive images. Since I'm trying to view live video, not a few GIF's, this bug killed my video.
05-21-2009 07:14 AM
When you type a message, under the [Post] and [Cancel] you have a "Add Attachments" link.
How do I attach the screen shots you requested to this post ?
To this day, the 8830 device can get an upgrade of the OS, up to version 4.5 only.
What is required to update the 8830 (currently 4.3 in the simulator) to be able to handle dynamically changing images ?
05-21-2009 12:09 PM
OS 4.5 is not high enough to update the screen without refreshing the screen, I take it...
If I have to refresh the screen to update each video image, what's the best way to do it ? Can I keep a new image in memory so I can immediately put it on the screen so the screen is not blank for long ? What's the least amount of time it would take to refresh the screen and put a new 320x240, or 160x120, JPEG image on it from memory on the 8330 ?
05-22-2009 05:33 AM
05-22-2009 09:12 AM
05-22-2009 11:54 AM
Here is 1 solution. Check it out on the 8830.
Wait until the image loads, then call the url of the next image.
05-22-2009 12:17 PM
Also check out this script on the 8830.
It loads the next image into memory so it loads a bit quicker.