Click here to Skip to main content
15,356,183 members
Home / Discussions / Mobile
   

Mobile

 
QuestionHow to draw a straight line 3 cm?( windows phone) Pin
chinakknd11-Jan-14 14:39
Memberchinakknd11-Jan-14 14:39 
AnswerRe: How to draw a straight line 3 cm?( windows phone) Pin
Richard MacCutchan11-Jan-14 22:17
mveRichard MacCutchan11-Jan-14 22:17 
QuestionTextBlock does not display all Text (Windows Phone 8) Pin
Abdul Rahman Hamidy3-Jan-14 19:12
MemberAbdul Rahman Hamidy3-Jan-14 19:12 
AnswerRe: TextBlock does not display all Text (Windows Phone 8) Pin
PavanPareta9-Jan-14 19:29
MemberPavanPareta9-Jan-14 19:29 
Questionsystem.data version conflict? Pin
murali_utr3-Jan-14 3:46
Membermurali_utr3-Jan-14 3:46 
Questionnot enough space on disk Pin
murali_utr3-Jan-14 3:43
Membermurali_utr3-Jan-14 3:43 
QuestionRemoving Delay in Playing Mp3 Files in Windows Phone 8 Pin
Abdul Rahman Hamidy30-Dec-13 0:35
MemberAbdul Rahman Hamidy30-Dec-13 0:35 
AnswerRe: Removing Delay in Playing Mp3 Files in Windows Phone 8 Pin
Hadrich Mohamed31-Dec-13 9:24
professionalHadrich Mohamed31-Dec-13 9: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 17:00
MemberAbdul Rahman Hamidy31-Dec-13 17:00 
GeneralRe: Removing Delay in Playing Mp3 Files in Windows Phone 8 Pin
Hadrich Mohamed1-Jan-14 1:21
professionalHadrich Mohamed1-Jan-14 1:21 
GeneralRe: Removing Delay in Playing Mp3 Files in Windows Phone 8 Pin
Abdul Rahman Hamidy11-Jan-14 20:23
MemberAbdul Rahman Hamidy11-Jan-14 20:23 
GeneralRe: Removing Delay in Playing Mp3 Files in Windows Phone 8 Pin
Hadrich Mohamed12-Jan-14 0:26
professionalHadrich Mohamed12-Jan-14 0:26 
QuestionGoogle map API key sample code bellow but it will display on error Pin
junnubabu.N27-Dec-13 16:39
Memberjunnubabu.N27-Dec-13 16:39 
QuestionHow to speed up the populating of listview + filter Android Pin
Member 947380925-Dec-13 20:23
MemberMember 947380925-Dec-13 20:23 
QuestionEncryption in Portable Classes Pin
Member 1047755319-Dec-13 8:46
MemberMember 1047755319-Dec-13 8:46 
Questionmaps Pin
junnubabu.N13-Dec-13 16:18
Memberjunnubabu.N13-Dec-13 16:18 
AnswerRe: maps Pin
Tom Marvolo Riddle30-Dec-13 2:24
professionalTom Marvolo Riddle30-Dec-13 2:24 
QuestionPush notifications to IsolatedStore Pin
Alex C. Duma10-Dec-13 20:29
MemberAlex C. Duma10-Dec-13 20:29 
QuestionCopying and Playing of an mp3 from a URL in Windows Phone 8 Pin
Vimalsoft(Pty) Ltd8-Nov-13 23:10
professionalVimalsoft(Pty) Ltd8-Nov-13 23:10 
SuggestionRe: Copying and Playing of an mp3 from a URL in Windows Phone 8 Pin
Richard MacCutchan8-Nov-13 23:41
mveRichard MacCutchan8-Nov-13 23:41 
GeneralRe: Copying and Playing of an mp3 from a URL in Windows Phone 8 Pin
Vimalsoft(Pty) Ltd8-Nov-13 23:45
professionalVimalsoft(Pty) Ltd8-Nov-13 23:45 
QuestionHow to Download the a Video,Audio, PDF, etc into a Local Storage Pin
Vimalsoft(Pty) Ltd8-Nov-13 20:55
professionalVimalsoft(Pty) Ltd8-Nov-13 20:55 
QuestionXML contents to Model in C# Windows Phone Pin
Vimalsoft(Pty) Ltd8-Nov-13 6:49
professionalVimalsoft(Pty) Ltd8-Nov-13 6:49 
AnswerRe: XML contents to Model in C# Windows Phone Pin
Vimalsoft(Pty) Ltd8-Nov-13 7:23
professionalVimalsoft(Pty) Ltd8-Nov-13 7:23 
QuestionAjax Navigation in Windows Phone 8 Pin
santhosh_init6-Nov-13 21:10
Membersanthosh_init6-Nov-13 21: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.