want to create a socket application to receive data from streaming server(Live Media)
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 14 of 14

Thread: want to create a socket application to receive data from streaming server(Live Media)

  1. #1
    Join Date
    Apr 2012
    Posts
    7

    want to create a socket application to receive data from streaming server(Live Media)

    Hi everybody....

    Actually i want to create a socket application(client) to receive data from streaming server(Live Media)...
    i a unable to create that code...
    can anyone guide me any pseudo code for that....


    Thank You

  2. #2
    VictorN's Avatar
    VictorN is online now Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,358

    Re: want to create a socket application to receive data from streaming server(Live Me

    Did you read something about sockets (in MSDN, for a example)?
    If you can use MFC then I'd recommend you to use MFC CAsyncSocket class
    Victor Nijegorodov

  3. #3
    Join Date
    Apr 2012
    Posts
    7

    Re: want to create a socket application to receive data from streaming server(Live Me

    Hey i can't use MFC

  4. #4
    VictorN's Avatar
    VictorN is online now Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,358

    Re: want to create a socket application to receive data from streaming server(Live Me

    Victor Nijegorodov

  5. #5
    Join Date
    Apr 2012
    Posts
    7

    Re: want to create a socket application to receive data from streaming server(Live Me

    sir i started the programming but unable to reach the end...so need a sample for rtsp client to look at...

  6. #6
    VictorN's Avatar
    VictorN is online now Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,358

    Re: want to create a socket application to receive data from streaming server(Live Me

    Quote Originally Posted by tarun Batra View Post
    sir i started the programming but unable to reach the end...so need a sample for rtsp client to look at...
    1. What is "rtsp"?
    2. What did you already do?
    3. Didn't you fine any sample code in the link I've posted?
    Victor Nijegorodov

  7. #7
    Join Date
    Apr 2012
    Posts
    7

    Re: want to create a socket application to receive data from streaming server(Live Me

    RTSP is real time streaming protocol...
    i got a MFC code from some link and tried to build my VC++ code without using MFC...but am not able to do that...

  8. #8
    VictorN's Avatar
    VictorN is online now Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,358

    Re: want to create a socket application to receive data from streaming server(Live Me

    What is the problem for you in using MFC?
    Victor Nijegorodov

  9. #9
    Join Date
    Apr 2012
    Posts
    7

    Re: want to create a socket application to receive data from streaming server(Live Me

    Actually the cod is not running in VC++
    its giving errors like "

    1>Compiling...
    1>StdAfx.cpp
    1> WINVER not defined. Defaulting to 0x0600 (Windows Vista)
    1>c:\program files\microsoft sdks\windows\v6.0a\include\windns.h(1369) : error C2059: syntax error : 'constant'
    1>c:\program files\microsoft sdks\windows\v6.0a\include\windns.h(1369) : error C2238: unexpected token(s) preceding ';'
    1>c:\program files\microsoft sdks\windows\v6.0a\include\windns.h(1428) : error C2059: syntax error : 'constant'
    1>c:\program files\microsoft sdks\windows\v6.0a\include\windns.h(1428) : error C2238: unexpected token(s) preceding ';'
    1>Creating browse information file...
    1>Microsoft Browse Information Maintenance Utility Version 9.00.21022
    1>Copyright (C) Microsoft Corporation. All rights reserved.
    1>BSCMAKE: error BK1506 : cannot open file '.\Debug\Rtspc.sbr': No such file or directory
    1>Build log was saved at "file://c:\Documents and Settings\Administrator\Desktop\imp\rtspc-src-1.3.1.tar\rtspc1.3.1\win32\Debug\BuildLog.htm"
    1>Rtspc - 5 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

  10. #10
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    5,960

    Re: want to create a socket application to receive data from streaming server(Live Me

    Quote Originally Posted by tarun Batra View Post
    so need a sample for rtsp client to look at...
    Learning how to google: rtsp client source code
    Best regards,
    Igor

  11. #11
    Join Date
    Apr 2012
    Posts
    7

    Re: want to create a socket application to receive data from streaming server(Live Me

    Hey sir i want a code implemented through Socket not through Live Media libraries or some what else......

  12. #12
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,632

    Re: want to create a socket application to receive data from streaming server(Live Me

    Don't click on any link that uses something you don't want...
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    http://www.microsoft.com/visualstudio/eng/downloads

  13. #13
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    5,960

    Re: want to create a socket application to receive data from streaming server(Live Me

    sir i started the programming but unable to reach the end...so need a sample for rtsp client to look at...
    Quote Originally Posted by tarun Batra View Post
    Hey sir i want a code implemented through Socket not through Live Media libraries or some what else......
    The library source code was supposed to be "a sample for rtsp client to look at". So you do think the "libraries or some what else" implements that not through socket, right? By some magic, you think?
    Last edited by Igor Vartanov; April 23rd, 2012 at 06:03 PM.
    Best regards,
    Igor

  14. #14
    Join Date
    Nov 2002
    Location
    California
    Posts
    4,553

    Re: want to create a socket application to receive data from streaming server(Live Me

    Here is one example of a source code library that can be used to to build a streaming application using protocols like RTP/RTCP, RTSP, SIP: "LIVE555 Streaming Media" at http://www.live555.com/liveMedia/ . The link includes sample code, like sample code for building a basic RTSP client.

    Incidentally, although the above link was found independently, it's the very first hit in the Google search that Igor gave you. Pay attention to Igor, and listen to his advice. He's smart.

    Mike

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center