(21-07-2016, 08:29 PM)jeanjamil كتب : Stream := TResourceStream.Create(HInstance, myresource, RT_RCDATA);شكرا لك أخي جزاك الله خير
try
case i of
1: myfile := TPath.Combine(TPath.GetDocumentsPath, 'Track1.mp3') ; //your resource_1
2: myfile := TPath.Combine(TPath.GetDocumentsPath, 'mou3inewadih.3gp'); //your resource_2
end;
Stream.Position := 0;
Stream.SaveToFile(myfile);
MediaPlayer1.FileName := myfile;
MediaPlayer1.Play;
اشتغل معايه بطريقة هذي
http://community.embarcadero.com/blogs/e...ndroid-366
اللهم علمنا ما ينفعنا و انفعنا بما علمتنا وَ زِدْنا علماً

