Surface Pro 7 deal! Save big at Amazon right now

  1. Daniel Ratcliffe's Avatar
    Ok, so I am now clogged up with two more issues. The first is EmailComposeTask issues, the second is AudioStreamingAgent and AudioPlayerAgent issues.


    [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]private void EmailButton_Click(object sender, RoutedEventArgs e)
    EmailComposeTask ect = newEmailComposeTask();
    ect.To = "";
    ect.Subject = "Feedback Form";
    ect.Body = "";


    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


    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. - the Bridge. Please note that all the adverts work in the exact same way. They are remote files ending with .mp3 - 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.
    01-13-2013 08:40 PM
  2. Daniel Ratcliffe's Avatar
    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:

    <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]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.
    01-23-2013 05:40 PM

Similar Threads

  1. WP8 and W7/8 integration
    By drago_zarantik in forum Other Operating Systems
    Replies: 1
    Last Post: 11-06-2012, 10:06 AM
  2. Attentive Phon Integration and DLNA?
    By HsavirnDB in forum Windows Central Archive
    Replies: 3
    Last Post: 09-28-2011, 11:52 AM
  3. Data Useage - Integrated FB and Maps in particular
    By Travis01 in forum Other Operating Systems
    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