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.
Printable View
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?
"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).
Here's what I use - gameswf
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.Quote:
plz give me code
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.
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. ;)
Well, learn the SWF specs in and out. You have to write a decoder and convert them to a format your GUI knows (you could use OpenGL or SDL for that). It is _not_ easy and will take more than a few hours.
On windows, just use the Flash control.
No code needed...