Yes I am tryiing to develop a rtp player
yaminisridaran
Posts
-
Does any one have an idea about streaming RTP -
Does any one have an idea about streaming RTPI am trying to develop a RTP Player in vc++.I downloaded vlc open source but compiled in cygwin and able to get exe but I too convert that code to vc++6.0. Can any one suggest me regrading the rtp player
-
Has any one compiled VLC in vc++6.0I answered ur question I have to compile it in vc++
-
Has any one compiled VLC in vc++6.0Yes But I Have to develop in vc++
-
Has any one compiled VLC in vc++6.0I downloaded the source code from website and in that folder I found activex folder and main.cpp open the main.cpp in vc++ and build it. i got missing source filename
-
Has any one compiled VLC in vc++6.0I am trying to compile VLC open source code from videolan.org.But when i compile it in vc++ I am getting too many errors.Need to Build it
-
Has any one compiled VLC in vc++6.0I am trying to compile VLC Open source code in vc++6.0. But not able to get it done
-
Need solution for WSAEWOULDBLOCKI am trying to receive asynchronous sockets via udp but I am mostly getting WSAEWOULDBLOCK error . I anyone help me solving this problem WSADATA wsaData; int error = WSAStartup(0x202,&wsaData); if(error) return FALSE; if(wsaData.wVersion != 0x202) { WSACleanup(); return FALSE; } m_UdpSock=(SOCKET)WSASocket(AF_INET,SOCK_DGRAM,0,NULL,NULL,0); if(m_UdpSock==INVALID_SOCKET) return FALSE; sockaddr_in sockAddrServer; sockAddrServer.sin_family=AF_INET; sockAddrServer.sin_port=htons(port_data); sockAddrServer.sin_addr.s_addr=INADDR_ANY; // Bind socket to listener address if(bind(m_UdpSock,(SOCKADDR*)&sockAddrServer,sizeof(sockaddr_in))==SOCKET_ERROR) { int y=WSAGetLastError(); printf("Unable to bind socket\n"); return FALSE; } // Create WinSock Event object WSAEVENT eventWinsock=(WSAEVENT)WSACreateEvent(); if(eventWinsock==WSA_INVALID_EVENT) { printf("Unable to create winsock event\n"); return FALSE; } // Signal WinSock Event on receive packet if(WSAEventSelect(m_UdpSock,eventWinsock,FD_READ)!=NOERROR) { printf("Unable to connect event to socket\n"); return FALSE; } //long length=50000; // m_Thread=new CManager((LPVOID)this); // m_Thread->CreateThread(); bool occurance=true; while(m_abort) { Recvbuf=new char[BUFFER_SIZE]; TRACE("Before Receive Data\n"); //if(WaitForSingleObject(eventWinsock,INFINITE)== WAIT_OBJECT_0) if(WaitForSingleObject(eventWinsock,INFINITE)== WAIT_OBJECT_0) { sockaddr_in sockAddrRecv; int nSockAddrSize=sizeof(sockaddr_in); // Packet received EnterCriticalSection(&m_cs); int nErr=recvfrom(m_UdpSock,Recvbuf,BUFFER_SIZE,0,(sockaddr*)&sockAddrRecv,&nSockAddrSize); LeaveCriticalSection(&m_cs); TRACE("Receive data\n"); if(nErr==SOCKET_ERROR) { TRACE("nErr %d\n",nErr); nErr=WSAGetLastError(); if(nErr==WSAEWOULDBLOCK) { WSAEventSelect(m_UdpSock,eventWinsock,FD_READ); WSANETWORKEVENTS wsevents; WSAEnumNetworkEvents(m_UdpSock,eventWinsock,&wsevents); DWORD dwEventId = WaitForSingleObject(eventWinsock,3000); if(dwEventId == WAIT_TIMEOUT) continue; continue; } else { WSAEventSelect(m_UdpSock,eventWinsock,FD_READ); WSANETWORKEVENTS wsevents; WSAEnumNetworkEvents(m_UdpSock,
-
Always receiving WSAEWOULDBLOCK errorHow to reset please explain
-
Always receiving WSAEWOULDBLOCK errorI am trying to receive udp packets which contains video data. I am receiving WSAEWOULDBLOCK error always.Can any one help me The code is WSADATA wsaData; int error = WSAStartup(0x202,&wsaData); if(error) return FALSE; if(wsaData.wVersion != 0x202) { WSACleanup(); return FALSE; } m_UdpSock=(SOCKET)WSASocket(AF_INET,SOCK_DGRAM,0,NULL,NULL,0); if(m_UdpSock==INVALID_SOCKET) return FALSE; sockaddr_in sockAddrServer; sockAddrServer.sin_family=AF_INET; sockAddrServer.sin_port=htons(port_data); sockAddrServer.sin_addr.s_addr=INADDR_ANY; // Bind socket to listener address if(bind(m_UdpSock,(SOCKADDR*)&sockAddrServer,sizeof(sockaddr_in))==SOCKET_ERROR) { int y=WSAGetLastError(); printf("Unable to bind socket\n"); return FALSE; } // Create WinSock Event object WSAEVENT eventWinsock=(WSAEVENT)WSACreateEvent(); if(eventWinsock==WSA_INVALID_EVENT) { printf("Unable to create winsock event\n"); return FALSE; } // Signal WinSock Event on receive packet if(WSAEventSelect(m_UdpSock,eventWinsock,FD_READ)!=NOERROR) { printf("Unable to connect event to socket\n"); return FALSE; } while(m_abort) { Recvbuf=new char[BUFFER_SIZE]; if(WaitForSingleObject(eventWinsock,INFINITE)== WAIT_OBJECT_0) { sockaddr_in sockAddrRecv; int nSockAddrSize=sizeof(sockaddr_in); // Packet received EnterCriticalSection(&m_cs); int nErr=recvfrom(m_UdpSock,Recvbuf,BUFFER_SIZE,0,(sockaddr*)&sockAddrRecv,&nSockAddrSize); LeaveCriticalSection(&m_cs); if(nErr==SOCKET_ERROR) { nErr=WSAGetLastError(); if(nErr==WSAEWOULDBLOCK) { WSANETWORKEVENTS wsevents; WSAEnumNetworkEventsm_UdpSock,eventWinsock,&wsevents); DWORD dwEventId = WaitForSingleObject(eventWinsock,3000); if(dwEventId == WAIT_TIMEOUT) continue; continue; } } else { TRACE("Receive Data Size %d\n",nErr); BYTE init=Recvbuf[0]; TRACE("Packet Size for Init %d =%d and index=%d \n",init, nErr,index); }
-
Need to convert DWORD to Date TimeIndicates in 100-nanosecond intervals the stop time of this sample. The above mention is the sdk document we have regarding the DWORD
-
Need to convert DWORD to Date TimeYes I using a dll the DWORD is return from that dll and the Datetime is coded in that value.I want to check that date and time in vc++
-
Need to convert DWORD to Date TimeI have a DWORD value 524642425 I need to see this value in Date Time Can i know how to use to get the value using COleDateTime.
-
Need to convert DWORD to Date TimeI need to convert DWORD to Date time. Can any one suggest me
-
CHttpFile::EndRequest FailsI am trying to use POST url to the server using CInternetSession ,CHttpConnection,CHttpFile But I am getting exception when excuting EndRequest The format i have to post is: POST /axis-cgi/audio/transmit.cgi HTTP/1.0\r\n Content-Type: audio/basic\r\n Content-Length: 9999999\r\n Connection: Keep-Alive\r\n Cache-Control: no-cache\r\n \r\n <Audio data> <Audio data> <Audio data> My Code is : CInternetSession session; CHttpConnection *m_pConnection; CHttpFile* pHTTP; CString strPreFileData; strPreFileData = "Content-Type: audio/basic\r\n"; strPreFileData += "Content-Length: 9999999\r\n"; strPreFileData += "Connection: Keep-Alive\r\n"; strPreFileData += "Cache-Control: no-cache\r\n"; strPreFileData += "\r\n"; CFile fTrack; if (FALSE == fTrack.Open(strFullPath, CFile::modeRead )) { AfxMessageBox(_T("Unable to open the file.")); return FALSE; } dwReadLength = fTrack.Read(pBuffer, 200); m_pConnection=session.GetHttpConnection("10.200.11.63", (INTERNET_PORT)80, "root", "root"); pHTTP = m_pConnection->OpenRequest(CHttpConnection::HTTP_VERB_POST, "axis-cgi/audio/transmit.cgi"); pHTTP->AddRequestHeaders(strPreFileData); pHTTP->SendRequestEx(240,HSR_INITIATE,0); pHTTP->Write(pBuffer, 240); pHTTP->EndRequest(); Please Help me regarding this S.Yamini
-
Need help regrading making a control transparent when rendering videoI am using a picture box and a static control. I am trying to render the video on the picture box so whenever the video is render the picture box gets painted . I have placed a static control on top of the picture box and I have painted the frame of the static control. My problem is whenever the picture box is painted during render the video my static control also gets painted and the painted frame is washed out. I want the painted frame to remain the same even the picture box is painted.I getting flickers if i repaint the static control.
-
WM_DRAWITEM does not process for tab controlThanks for ur support
-
WM_DRAWITEM does not process for tab controlIt works now when i call insert item Thanks
-
WM_DRAWITEM does not process for tab controlI am waiting for ur reply
-
WM_DRAWITEM does not process for tab controlAm I doing anything wrong in setting the properties of the tab control. Shall I send the sample code.