www.astatech.com News SkyWire Video SDK adds RTSP and 3GPP support





Asta Technology Group
Welcome to the world of wireless enabled web services
Related documents:

advanced search
ASTA in 60 seconds
Developer details
Free Internet tools
Demos
Business views
White papers
Tutorial center
Testimonials
Asta online help

SkyWire Video SDK adds RTSP and 3GPP support

SkyWire Video SDK now supports RTSP using 3GPP for MPEG4 and Audio support to Cell Phones.

Support is avilable in C++ or Delphi with .NET support coming soon. SDK is very easy to use. Below is an example of a sample C++ Implementation

 

#include <windows.h>
#include <objbase.h>
#include <stdio.h>
#include <conio.h>
#import "D:/SVN/RTSPServer/RTSPCOMServer/Debug/RTSPCOMServer.dll"
using namespace RTSPCOMSERVERLib;
void main(){
 CoInitialize(NULL); // Initialize COM
 IRTSPServerPtr server;
 if (FAILED(server.CreateInstance(__uuidof(RTSPServer)))){
  printf("Can't initalize RTSP server\n\r");
  return;
 }
 server->Initialize(554); // Initialize RTSP Server. port = 554 (default)
 DWORD ChannelID = 0; // Channel identificator
 server->AddChannel(_bstr_t("1.3gp"), 320, 200, &ChannelID); // Create channel "1.3gp". 320x200
 server->Run(); // Run the server
   // NOTE: all channels must be created before Run() call
 
 BYTE* stuff = new BYTE[320*200*3]; // allocate 320x200x3 image
 while(!kbhit()){ // main loop
  for ( int i=0; i<320*200*3;i++ ){  //
   stuff[i] = rand()%255;     // fill the image with random values
  }                                  //
  server->PushFrame(ChannelID, (BYTE**)&stuff); // push that image to the server channel
  Sleep(100); // sleep (10 fps)
 }
}

Here is sample of using Delphi:

FRTSPServer:=TRTSPServer.Create(nil);
FRTSPServer.Initialize(strToIntDef(PortEdit.Text,554));
FRTSPServer.AddChannel(ChannelNameEdit.text,FWDM.ImageWidth,FWDM.ImageHeight,FStreamID);
FRTSPServer.Run;
 

Contact ASTA for details or an evaluation.


Evaluation available for download .


This technology was developed as part of the SkyWire Video Security Product line is available on many platforms including Win32, Java Cell Phone, PocketPC, Linux, Java, Symbian and Palm OS.

 

Last modified: 10/8/2005 7:53:30 AM
Copyright © 2001-2002 Asta Technology Group, Inc. Terms & Conditions     Privacy Policy     Site Map