LoadBrush() with http.streamer plugin
Posted: Mon Sep 28, 2015 12:54 am
First, thank you for the new http.streamer plugin. The announcement sounds really promising. Unfortunatily there is nearly no documentation by now.
But i gave it a try. In my script, i calculate the url for several files, fetch them with DownloadFile(), load them with LoadBrush() and display them with DisplayBrush() (on a larger Brush).
this can now be changed to
But the executiontime of the the new LoadBrush(1,url$) is exactly the same as the DownloadFile() before. And in a loop each download has to be finished before the next can be started.
How do i enable Multithreading ?
How can i see, if a download has finished ?
Is there any Eventhandler possible or callback function setable ?
Hopefully more documention can clear any of these questions
Until this time, keep the good work
But i gave it a try. In my script, i calculate the url for several files, fetch them with DownloadFile(), load them with LoadBrush() and display them with DisplayBrush() (on a larger Brush).
Code: Select all
If Exists(file$) = False
DownloadFile(url$,{File = file$})
EndIf
LoadBrush(1,file$)
DisplayBrush(1,0,0)
Code: Select all
LoadBrush(1,url$)
DisplayBrush(1,0,0)
How do i enable Multithreading ?
How can i see, if a download has finished ?
Is there any Eventhandler possible or callback function setable ?
Hopefully more documention can clear any of these questions
Until this time, keep the good work