I am trying to create a program that displays a Flash movie(SWF live stream) from the internet how do i do this?
Plz give me code or a good tutorial.
I am trying to create a program that displays a Flash movie(SWF live stream) from the internet how do i do this?
Plz give me code or a good tutorial.
Last edited by kakayoma; 07-31-2009 at 10:39 PM.
>> I am trying to create a program that displays a Flash movie(SWF live stream) from the internet how do i do this?
"Simple". You just need to parse the SWF file format and then process the output to screen. Here is the specification.
>> Plz give me code.
Please give me a break. If you want someone to do this for you I'd recommend something like rent-a-coder. Otherwise, do it yourself (but feel free to ask questions along the way).
Last edited by Sebastiani; 07-31-2009 at 06:07 AM.
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }
Here's what I use - gameswf
Spidey out!
Did i forget to mention that i am a beginner.
Then I'd try to do something easier. Anyway, here your code:
You can make this kinda better. And don't forget to link against swfplayer.o or it won't work.Code:#include "swfplayer.h" int main(int argc, char **argv) { if (argc < 1) swferror("Too few arguments"); swfplayfile(argv[1]); return 0; }
And if the code breaks, who are you going to run to then?
Sorry, but that's not how things work. Either you pay someone to do it and maintain it or you learn the language first and then create what you want.
We can help you learn the language if you put the effort into it, but we're not going to build something for you. That's not what this forum is about.
>> Who says I'm not trying to learn the language what i am trying to ask here is :
You said it.
I realize that you've since edited you original post, but as it stands the miscommunication was all yours.plz give me code
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }
When i posted this i thought that there was some simple command in some predefined header or one i could download of the internet that would allow me to put in the Url and it would automatically stream and display on my window.
Now i am asking for a tutorial.
The best way would be to google "C swf library". And you need to learn GUI programming.
Well, if you read post #3 you'll see precisely something of that sort. There are others as well, I'm sure. At any rate, nothing in programming is entirely "automatic" - you, the programmer, are responsible for putting things together, and if you're wanting to be proficient at it your going to have to work very hard to do so. Otherwise, you are just a plain "user" of software, and should probably just find/buy an existing program anyway.
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }
I didn't find anything on google and in post #3 THE LIBRARY IS NOT MEANT TO STREAM LIVE MOVIES JUST PLAY THEM FROM A FILE.
Oh ya Sebastani why are you telling me to go find another program when this forum and site is all about C and learning it.
Plus i don't want to make any complicated program ther will be one swf file located at the same url and it will display in the whole window>
p.s. I've already learned GUI programming
I didn't find anything on google and in post #3 THE LIBRARY IS NOT MEANT TO STREAM LIVE MOVIES JUST PLAY THEM FROM A FILE.
Oh ya Sebastani why are you telling me to go find another program when this forum and site is all about C and learning it.
Plus i don't want to make any complicated program ther will be one swf file located at the same url and it will display in the whole window
p.s. I've already learned GUI programming
>> I didn't find anything on google and in post #3 THE LIBRARY IS NOT MEANT TO STREAM LIVE MOVIES JUST PLAY THEM FROM A FILE.
That is what I'm trying to tell you here. Not everything comes prepackaged. As a programmer, you need to figure out how to connect things together to get them to work. If they don't exist (or aren't free) you need to make the decision as to whether you want to spend the time/energy to figure it out yourself or just pay someone to make/provide a library to do this.
>> Oh ya Sebastani why are you telling me to go find another program when this forum and site is all about C and learning it.
I'm not. I'm telling you that if you want to learn, go right ahead. I provided a link to the Flash specification, so go learn it.
>> Plus i don't want to make any complicated program ther will be one swf file located at the same url and it will display in the whole window
Programming is a complicated business. As a programmer you have to learn how to manage complexity.
>> p.s. I've already learned GUI programming
Good! That should make it a bit easier then.
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }