Welcome to the Windows Central Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
Results 1 to 2 of 2
  1. Daniel Ratcliffe's Avatar
    Retired Moderator

    Posts
    2,821 Posts
    Global Posts
    4,477 Global Posts
       #1  
    Ok, so I am now clogged up with two more issues. The first is EmailComposeTask issues, the second is AudioStreamingAgent and AudioPlayerAgent issues.

    EmailComposeTask

    XAML:
    [CODE]<TextBlock HorizontalAlignment="Left" Style="{StaticResource PhoneTextSubtleStyle}" TextWrapping="Wrap" VerticalAlignment="Top" Width="446">Thank you for your interest! Please note that you are contacting the developer.<LineBreak/></TextBlock>
    <TextBlock HorizontalAlignment="Left" Style="{StaticResource PhoneTextAccentStyle}" TextWrapping="Wrap" VerticalAlignment="Top" Width="446">Your name</TextBlock>
    <TextBox HorizontalAlignment="Left" Margin="0,0,12,0" MinWidth="480" InputScope="LogOnName" TextWrapping="Wrap" VerticalAlignment="Top"/>
    <TextBlock HorizontalAlignment="Left" Style="{StaticResource PhoneTextAccentStyle}" TextWrapping="Wrap" VerticalAlignment="Top" Width="46">Your email</TextBlock>
    <TextBox HorizontalAlignment="Left" Margin="0,0,12,0" MinWidth="480" InputScope="EmailUserName" TextWrapping="Wrap" VerticalAlignment="Top"/>
    <Button Click="EmailButton_Click">Compile to Email</Button>
    [/CODE]

    C#
    [CODE]private void EmailButton_Click(object sender, RoutedEventArgs e)
    {
    EmailComposeTask ect = newEmailComposeTask();
    ect.To = "paladinleeds.programming@gmail.com";
    ect.Subject = "Feedback Form";
    ect.Body = "";

    ect.Show();
    }
    [/CODE]

    Now, I want to be able to use the code there (with different text boxes), that when compiled to email, creates something that looks a little bit like this. Let's fill the name TextBox with Joe Bloggs and the email TextBox with bloggs.j@sonicmail.co.uk

    screen-capture.jpg

    Please note that I will of course be changing the text boxes to things more appropriate, I just copy-pasted the code from Visual Studio and this was originally going to be a feedback form that would then automatically send from the app, and haven't yet changed the code since deciding against using that and just opting for an EmailComposeTask instead. There won't be any images etc being sent, just plain text. Any help would be greatly appreciated.

    Audio Streaming/Player Agent Integration

    Now, this issue is a little bit trickier. I'm wanting to create a playlist that goes between station ID/advert/bridge, to the actual stream itself. Let's grab the links to the bridge and the stream so you can get an idea of what I mean. I'll want the playlist to automatically loop, and I'll also want the playlist to be able to bypass the Shuffle command. So, let's name the bridge as "Bridge", any show or other station-relevant adverts as "Advert", the station IDs as "Jingle", and stream as "Stream". Here's the way I would want the playlist to look (or something similar, as long as no 2 "Stream" options are directly adjacent to each other).

    1. Bridge
    2. Stream
    3. Advert
    4. Stream
    5. Jingle
    6. Stream
    7. Advert
    8. Stream


    And you get the picture. My question is, how do I go about integrating that. Lemme give you a link to the Bridge and the Stream.
    http://1radio.org/mp3/bridge.mp3 - the Bridge. Please note that all the adverts work in the exact same way. They are remote files ending with .mp3
    http://spring.wavestreamer.com:8863/ - the Stream Please note no other direct link is available. This URL for example automatically processes into WinAmp as a radio stream, but will require an AudioStreamingAgent on WP unless there is something I am missing.

    "Fortune cookie said: 'Outlook not so good'. I said: 'Sure, but Microsoft ships it anyway'."
  2. Daniel Ratcliffe's Avatar
    Retired Moderator

    Posts
    2,821 Posts
    Global Posts
    4,477 Global Posts
       #2  
    I've fixed the EmailComposeTask issue! So now the feedback forms work! Here is the code I used. I have a text box with the following:

    XAML:
    [CODE]
    <TextBlock HorizontalAlignment="Left" Style="{StaticResource PhoneTextAccentStyle}" TextWrapping="Wrap" VerticalAlignment="Top" Width="446">Bugs</TextBlock>
    <TextBox HorizontalAlignment="Left" Margin="0,0,12,0" MinWidth="480" InputScope="Text" Name="TB_Bugs" TextWrapping="Wrap" MinHeight="150" VerticalAlignment="Top"/>
    <TextBlock HorizontalAlignment="Left" Style="{StaticResource PhoneTextAccentStyle}" TextWrapping="Wrap" VerticalAlignment="Top" Width="446">Suggestions</TextBlock>
    <TextBox HorizontalAlignment="Left" Margin="0,0,12,0" MinWidth="480" InputScope="Text" Name="TB_Suggestions" TextWrapping="Wrap" MinHeight="150" VerticalAlignment="Top"/>
    [/CODE]

    C#:
    [CODE]ect.Body = "Bugs: " + Environment.NewLine + TB_Bugs.Text + Environment.NewLine + Environment.NewLine + "Suggestions: " + Environment.NewLine + TB_Suggestions.Text;[/CODE]

    This was how I fixed my Feedback form issue. Just the AudioPlayerAgent and AudioStreamingAgent to worry about now! Then my app is ready to go to BETA!
    Last edited by Paladinleeds; 01-23-2013 at 06:09 PM.

    "Fortune cookie said: 'Outlook not so good'. I said: 'Sure, but Microsoft ships it anyway'."

Similar Threads

  1. WP8 and W7/8 integration
    By drago_zarantik in forum Windows Phone 8
    Replies: 1
    Last Post: 11-06-2012, 10:06 AM
  2. Attentive Phon Integration and DLNA?
    By HsavirnDB in forum HTC Arrive / 7 Pro
    Replies: 3
    Last Post: 09-28-2011, 11:52 AM
  3. Data Useage - Integrated FB and Maps in particular
    By Travis01 in forum Windows Phone 7
    Replies: 6
    Last Post: 07-01-2011, 07:15 PM
  4. Replies: 6
    Last Post: 05-31-2011, 11:47 AM
  5. Replies: 0
    Last Post: 05-27-2011, 06:23 PM

Posting Permissions