views:

44

answers:

0

I have read in other sources that we can use Data API from Youtube to get the 3gp link and feed it to the native Video Player. The problem, i always receive "Bad Requestion" Error and don't know why Here is my code:

  url = L"rtsp://v3.cache6.c.youtube.com/CiILENy73wIaGQlvkzjVhV1k7BMYDSANFEgGUgZ2aWRlb3MM/0/0/0/video.3gp";
     ArrayList* pDataList = null;
     pDataList = new ArrayList();
     pDataList->Construct();
     String* pData = null;
     pData = new String(L"type:video");
     pDataList->Add(*pData);
     String* pData2 = null;
     pData2 = new String(L"path:"+url);
     pDataList->Add(*pData2);
     AppControl* pAc = AppManager::FindAppControlN(APPCONTROL_VIDEO, OPERATION_PLAY);

     if(pAc)
     {
         pAc->Start(pDataList,null);
         delete pAc;
     }
     pDataList->RemoveAll(true);
     delete pDataList;