Using Flash with C++.

This is a discussion on Using Flash with C++. within the C++ Programming forums, part of the General Programming Boards category; I am trying to create a program that displays a Flash movie(SWF live stream) from the internet how do i ...

  1. #1
    Registered User kakayoma's Avatar
    Join Date
    Jul 2009
    Location
    Dallas, Texas
    Posts
    42

    Question Using Flash with C++.

    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.

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,655
    >> 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.

  3. #3
    Webhead Spidey's Avatar
    Join Date
    Jul 2009
    Posts
    285
    Here's what I use - gameswf
    Spidey out!

  4. #4
    C++11 User Tux0r's Avatar
    Join Date
    Nov 2008
    Location
    Sweden
    Posts
    135
    Quote Originally Posted by kakayoma View Post
    Plz give me code.
    Sorry but, rofl.

  5. #5
    Registered User kakayoma's Avatar
    Join Date
    Jul 2009
    Location
    Dallas, Texas
    Posts
    42

    Reply

    Did i forget to mention that i am a beginner.

  6. #6
    Making mistakes
    Join Date
    Dec 2008
    Posts
    476
    Then I'd try to do something easier. Anyway, here your code:

    Code:
    #include "swfplayer.h"
    
    int main(int argc, char **argv)
    {
        if (argc < 1)
            swferror("Too few arguments"); 
        swfplayfile(argv[1]);
        return 0;
    }
    You can make this kinda better. And don't forget to link against swfplayer.o or it won't work.

  7. #7
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,428
    Quote Originally Posted by kakayoma View Post
    Did i forget to mention that i am a beginner.
    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.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  8. #8
    Registered User kakayoma's Avatar
    Join Date
    Jul 2009
    Location
    Dallas, Texas
    Posts
    42

    Exclamation Reply

    Quote Originally Posted by Elysia View Post
    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 :

    Is there any good site where i can learn about this?

  9. #9
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,655
    >> Who says I'm not trying to learn the language what i am trying to ask here is :

    You said it.

    plz give me code
    I realize that you've since edited you original post, but as it stands the miscommunication was all yours.

  10. #10
    Registered User kakayoma's Avatar
    Join Date
    Jul 2009
    Location
    Dallas, Texas
    Posts
    42

    Exclamation Reply

    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.

  11. #11
    Making mistakes
    Join Date
    Dec 2008
    Posts
    476
    The best way would be to google "C swf library". And you need to learn GUI programming.

  12. #12
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,655
    Quote Originally Posted by kakayoma View Post
    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.
    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.

  13. #13
    Registered User kakayoma's Avatar
    Join Date
    Jul 2009
    Location
    Dallas, Texas
    Posts
    42

    Exclamation Reply

    Quote Originally Posted by Brafil View Post
    The best way would be to google "C swf library". And you need to learn 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

  14. #14
    Registered User kakayoma's Avatar
    Join Date
    Jul 2009
    Location
    Dallas, Texas
    Posts
    42

    Exclamation Reply

    Quote Originally Posted by Brafil View Post
    The best way would be to google "C swf library". And you need to learn 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

  15. #15
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,655
    >> 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.

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Debian on a system with Compact Flash, without Hard Disk
    By mynickmynick in forum Linux Programming
    Replies: 19
    Last Post: 09-01-2008, 11:38 AM
  2. which flash product?
    By iain in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 03-21-2005, 12:55 PM
  3. !! - My Huge Flash Tutorial
    By Krak in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 12-14-2004, 10:51 PM
  4. Flash Flash Revolution
    By Esparno in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 12-09-2002, 11:43 AM
  5. Flash <--> c++
    By c-- in forum C++ Programming
    Replies: 7
    Last Post: 09-13-2002, 11:26 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21