Get ready for beta!

Prepare for Halo Wars 2 Blitz Mode beta: Everything you need to know!

One Windows

Microsoft is building a new Windows 10 Shell for PC, Mobile and Xbox

On the Inside

Everything you need to know about the Xbox Insider Program

Beautiful compromises

Surface Studio review: you'll want one, even if you don't need one


Is this the Surface Phone? Microsoft awarded patents for foldable devices

Windows Central Offers

MCSE Certification bundle is just $39

Even more improvements

All the changes found in Windows 10 build 15007!

Games as a Service

What does the cancellation of Scalebound mean for future Xbox exclusives?

Windows Central Offers

Save $90 on these FRESHeBUDS Pro Magnetic Bluetooth Earbuds

Returning for 2017

We're back with an new episode of #AskDanWindows

Lifetime Subscription

VPNSecure is currently 91% off

Our favorite things

The Best of CES 2017 Awards

Infinity Edge in your hand

The XPS 13 2-in-1 is the Dell convertible we've always wanted

Project Valerie

Razer just made a laptop with three — THREE! — 17-inch 4K displays. 😱

Great design from Palo Alto

HP's CES 2017 releases are truly gorgeous PCs

Intel and Google's big day

CES 2017 Day Two: New laptops, new phones, and old ideas made new

Take five is better than ever

The updated Lenovo ThinkPad X1 packs Kaby Lake chips and zero bloatware

Everything we know about the next Xbox: Project Scorpio


'Game Mode' for Windows 10 will power Xbox One and Scorpio games too

Buyer's guide

Best accessories for Microsoft Surface Book

< >
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

    3,046 Posts
    Global Posts
    4,703 Global Posts
    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

    Click image for larger version. 

Name:	Screen Capture.jpg 
Views:	2 
Size:	39.0 KB 
ID:	26818

    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.
  2. Daniel Ratcliffe's Avatar
    Retired Moderator

    3,046 Posts
    Global Posts
    4,703 Global Posts
    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.

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