Hi
I am working on Video Example for play Video file from RTSP server.
and not able play video on real device E71, getting error in following code.
I am using S60 3rd edition FP1.
TRAPD(unsupported, iPlayer->OpenUrlL(_L("rtsp://stream.zoovision.com/musicvideos/well_make_a_lover_of_you.3gp"),KUseDefaultIap, KNullDesC8));
Am I missing anything? Do I need to connect to the internet explicitly or my application will connect to the internet using the IAPid I gave in the OpenUrlL()?
Code
TRAPD(unsupported, iPlayer->OpenUrlL(_L("rtsp://stream.zoovision.com/musicvideos/well_make_a_lover_of_you.3gp"),KUseDefaultIap, KNullDesC8));
Include Capabilities in .MMP file:
NetworkServices
ReadUserData
UserEnvironment
WriteUserData
Code:
Where is the problem? any idea? please tell me where is i am going on wrong?.Code:void CVideoPlayerAdapter::MvpuoPrepareComplete(TInt aError) { CFileLogger::WriteLogL(_L("MvpuoPrepareComplete")); iFileDetails->iDurationInSeconds = 0; TBuf<100> log; log.Copy(_L("GetError: ")); log.AppendNum(aError); CFileLogger::WriteLogL(log); //Here print in log is GetError:-34 if(aError == KErrNone || aError == KErrMMPartialPlayback) { TSize size( 0, 0 ); TRAPD(ignored, iPlayer->VideoFrameSizeL(size); iFileDetails->iResolutionHeight = size.iHeight; iFileDetails->iResolutionWidth = size.iWidth; // Check if audio iFileDetails->iAudioTrack = iPlayer->AudioEnabledL(); // Video track iFileDetails->iVideoTrack = iPlayer->VideoBitRateL(); // Duration of the video clip iFileDetails->iDurationInSeconds = iPlayer->DurationL().Int64() / KMPOneSecond; _LIT(KMPCopyright,"Copyright"); _LIT(KMPTitle,"Title"); TInt metaCount = iPlayer->NumberOfMetaDataEntriesL(); CMMFMetaDataEntry* metaData; for (TInt i = 0; i < metaCount; i++) { metaData = iPlayer->MetaDataEntryL(i); if (!metaData->Name().CompareF(KMPCopyright)) { iFileDetails->iCopyright = metaData->Value().AllocL(); } if (!metaData->Name().CompareF(KMPTitle)) { iFileDetails->iTitle = metaData->Value().AllocL(); } CFileLogger::WriteLogL(metaData->Name()); CFileLogger::WriteLogL(metaData->Value()); CFileLogger::WriteLogL(KNullDesC); delete metaData; } ); log.Copy(_L("TRAPDError: ")); log.AppendNum(ignored); CFileLogger::WriteLogL(log); } if ( iCtrlrListener ) { TRAPD(ignored,iCtrlrListener->InitControllerCompletedL(aError)); } }
I also post same thread in http://discussion.forum.nokia.com/fo...d.php?t=171410.
symbianyucca gave me replay also like: "could be really anything, for example a firewall that prevents the connection.." Thanks Again to symbianyucca.
I think that it's a network related problem so i post this thread over here.
Please help me.
Regards,
SymbianTH



