Click here to Skip to main content
14,364,954 members
   

Mobile

 
QuestionHow to draw a straight line 3 cm?( windows phone) Pin
chinakknd11-Jan-14 15:39
memberchinakknd11-Jan-14 15:39 
AnswerRe: How to draw a straight line 3 cm?( windows phone) Pin
Richard MacCutchan11-Jan-14 23:17
protectorRichard MacCutchan11-Jan-14 23:17 
QuestionTextBlock does not display all Text (Windows Phone 8) Pin
Abdul Rahman Hamidy3-Jan-14 20:12
memberAbdul Rahman Hamidy3-Jan-14 20:12 
AnswerRe: TextBlock does not display all Text (Windows Phone 8) Pin
PavanPareta9-Jan-14 20:29
memberPavanPareta9-Jan-14 20:29 
Questionsystem.data version conflict? Pin
murali_utr3-Jan-14 4:46
membermurali_utr3-Jan-14 4:46 
Questionnot enough space on disk Pin
murali_utr3-Jan-14 4:43
membermurali_utr3-Jan-14 4:43 
QuestionRemoving Delay in Playing Mp3 Files in Windows Phone 8 Pin
Abdul Rahman Hamidy30-Dec-13 1:35
memberAbdul Rahman Hamidy30-Dec-13 1:35 
AnswerRe: Removing Delay in Playing Mp3 Files in Windows Phone 8 Pin
Hadrich Mohamed31-Dec-13 10:24
professionalHadrich Mohamed31-Dec-13 10:24 
Hi,
this is a code sample that can help you :
private HttpWebRequest request;
private Mp3MediaStreamSource mss;
private string mediaFileLocation =
@"http://media.ch9.ms/ch9/755d/4f893d13-fa05-4871-9123-3eadd2f0755d/
EightPlatformAnnouncements.mp3";
public MainPage()
{
InitializeComponent();
Get = (ApplicationBarIconButton)ApplicationBar.Buttons[0];
Play = (ApplicationBarIconButton)ApplicationBar.Buttons[1];
Pause = (ApplicationBarIconButton)ApplicationBar.Buttons[2];
}
private void Get_Click(object sender, EventArgs e)
{
request = WebRequest.CreateHttp(mediaFileLocation);
request.AllowReadStreamBuffering = true;
request.BeginGetResponse(new AsyncCallback(RequestCallback), null);
}
private void RequestCallback(IAsyncResult asyncResult)
{
HttpWebResponse response =
request.EndGetResponse(asyncResult) as HttpWebResponse;
Stream s = response.GetResponseStream();
mss = new Mp3MediaStreamSource(s, response.ContentLength);
Dispatcher.BeginInvoke(() =>
{
mp3Element.SetSource(mss);
Play.IsEnabled = true;
Get.IsEnabled = false;
});
}
private void Play_Click(object sender, EventArgs e)
{
mp3Element.Play();
Play.IsEnabled = false;
Pause.IsEnabled = true;
}
private void Pause_Click(object sender, EventArgs e)
{
mp3Element.Pause();
Pause.IsEnabled = false;
Play.IsEnabled = true;
}
Thanks
GeneralRe: Removing Delay in Playing Mp3 Files in Windows Phone 8 Pin
Abdul Rahman Hamidy31-Dec-13 18:00
memberAbdul Rahman Hamidy31-Dec-13 18:00 
GeneralRe: Removing Delay in Playing Mp3 Files in Windows Phone 8 Pin
Hadrich Mohamed1-Jan-14 2:21
professionalHadrich Mohamed1-Jan-14 2:21 
GeneralRe: Removing Delay in Playing Mp3 Files in Windows Phone 8 Pin
Abdul Rahman Hamidy11-Jan-14 21:23
memberAbdul Rahman Hamidy11-Jan-14 21:23 
GeneralRe: Removing Delay in Playing Mp3 Files in Windows Phone 8 Pin
Hadrich Mohamed12-Jan-14 1:26
professionalHadrich Mohamed12-Jan-14 1:26 
QuestionGoogle map API key sample code bellow but it will display on error Pin
junnubabu.N27-Dec-13 17:39
memberjunnubabu.N27-Dec-13 17:39 
QuestionHow to speed up the populating of listview + filter Android Pin
Member 947380925-Dec-13 21:23
memberMember 947380925-Dec-13 21:23 
QuestionEncryption in Portable Classes Pin
Member 1047755319-Dec-13 9:46
memberMember 1047755319-Dec-13 9:46 
Questionmaps Pin
junnubabu.N13-Dec-13 17:18
memberjunnubabu.N13-Dec-13 17:18 
AnswerRe: maps Pin
Tom Marvolo Riddle30-Dec-13 3:24
professionalTom Marvolo Riddle30-Dec-13 3:24 
QuestionPush notifications to IsolatedStore Pin
Alex C. Duma10-Dec-13 21:29
memberAlex C. Duma10-Dec-13 21:29 
QuestionCopying and Playing of an mp3 from a URL in Windows Phone 8 Pin
Vimalsoft(Pty) Ltd9-Nov-13 0:10
professionalVimalsoft(Pty) Ltd9-Nov-13 0:10 
SuggestionRe: Copying and Playing of an mp3 from a URL in Windows Phone 8 Pin
Richard MacCutchan9-Nov-13 0:41
protectorRichard MacCutchan9-Nov-13 0:41 
GeneralRe: Copying and Playing of an mp3 from a URL in Windows Phone 8 Pin
Vimalsoft(Pty) Ltd9-Nov-13 0:45
professionalVimalsoft(Pty) Ltd9-Nov-13 0:45 
QuestionHow to Download the a Video,Audio, PDF, etc into a Local Storage Pin
Vimalsoft(Pty) Ltd8-Nov-13 21:55
professionalVimalsoft(Pty) Ltd8-Nov-13 21:55 
QuestionXML contents to Model in C# Windows Phone Pin
Vimalsoft(Pty) Ltd8-Nov-13 7:49
professionalVimalsoft(Pty) Ltd8-Nov-13 7:49 
AnswerRe: XML contents to Model in C# Windows Phone Pin
Vimalsoft(Pty) Ltd8-Nov-13 8:23
professionalVimalsoft(Pty) Ltd8-Nov-13 8:23 
QuestionAjax Navigation in Windows Phone 8 Pin
santhosh_init6-Nov-13 22:10
membersanthosh_init6-Nov-13 22:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.