×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    16

    Choose IAP for video streaming session

    Hi all!
    I would like to choose the IAP (Internet Access Point) to use when opening a video stream (CVideoPlayerUtility::OpenUrlL()).

    However, I don't know which IAP number to use. The only thing I know is the IAP name that can be displayed from the tools/settings/connections/access points menu, (can be something like "vodafone live" or "telia surfport"). Is there any way I can get the IAP number connected to such IAP name? Can I do that using the phone databases (I haven't found any database that connects IAP name with IAP number)? Or is there any other way to change IAP to use for the video stream? Is it possible to set the default IAP to use for the entire phone?

    I have tried to re-use an IAP number that is also used for HTTP get, but that didn't work. That IAP seems to mean something different in the context of the CVideoPlayerUtility.

    Thanks in advance for any help that can lead me in the right direction!!

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    50

    Re: Choose IAP for video streaming session

    The following code digs out all the (I)APs with their names and ids:

    Code:
        // create comms db session
        CCommsDatabase* commDb = CCommsDatabase::NewL( EDatabaseTypeIAP );
        CleanupStack::PushL( commDb );
    
        // open IAP table view
        CCommsDbTableView* view = commDb->OpenTableLC( TPtrC( OUTGOING_GPRS ) );
    
        // go to the first record in the view
        TInt ret = view->GotoFirstRecord();
    
        while ( ret == KErrNone )
            {
            TUint32 id;
    
            view->ReadUintL( TPtrC( COMMDB_ID ), id );
            TBuf<64> name;
            view->ReadTextL( TPtrC( COMMDB_NAME ), name );
    
            // do stuff with id + name  
    
            ret = view->GotoNextRecord();
            }
    
        CleanupStack::PopAndDestroy( view );
        CleanupStack::PopAndDestroy( commDb );

  3. #3
    Registered User
    Join Date
    Nov 2006
    Posts
    16

    Re: Choose IAP for video streaming session

    Super! I'll try that. Thanks a lot!

Similar Threads

  1. CommDB - Which IAP Id is the right IAP Id??
    By hoopsman in forum Symbian Networking & Messaging (Closed)
    Replies: 8
    Last Post: 2009-09-09, 20:52
  2. Streaming EDGE clip in GPRS coverage
    By zivs in forum Streaming and Video
    Replies: 0
    Last Post: 2006-08-22, 17:22
  3. SIP content type
    By hlothman in forum Symbian Networking & Messaging (Closed)
    Replies: 8
    Last Post: 2006-05-17, 09:26
  4. RGenericAgent, RConnection, enumeration and IAP strange behavior PLEASE HELP!!!!!!!!
    By stenlik in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2005-12-20, 05:40
  5. Iap Creation and Connection.
    By shashishaw in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2005-07-20, 09:06

Posting Permissions

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