P | Cast now has a custom URI scheme

When you want your app to become more popular you could enable other apps to launch your app. You can even go beyond just launching and even activating special features.

As you’ve probably read, P | Cast now has a Car Mode UI built in. So there are apps that are focused on Car Mode, which would want to launch P | Cast in it’s Car Mode. Even more, they might want to even start playing the music directly after launching the app.

That’s why adding a custom URI scheme for P | Cast was on my mind from the beginning, and now it’s there.

The basics of launching P | Cast

You can launch P | Cast in it’s normal UI, but also in Car Mode.

/// <summary>
/// Launch P | Cast in Normal UI
/// </summary>
private void Normal()
{
    Windows.System.Launcher.LaunchUriAsync(new Uri("pcast:NormalPlayer"));
}

/// <summary>
/// Launch P | Cast in Car Mode
/// </summary>
private void Car()
{
    Windows.System.Launcher.LaunchUriAsync(new Uri("pcast:CarPlayer"));
}

 

Launch P | Cast and start playing immediately

When we go beyond the basic launch, we can add a couple of additional URI elements to enable immediate playback on app launch.

To start playing the most recent track upon app launch use the below URIs.

/// <summary>
/// Launch P | Cast in Normal UI and immediately start playing the most recent track
/// </summary>
private void NormalPlayRecent()
{
    Windows.System.Launcher.LaunchUriAsync(new Uri("pcast:NormalPlayer?Play=Recent"));
}

/// <summary>
/// Launch P | Cast in Car Mode and immediately start playing the most recent track
/// </summary>
private void CarPlayRecent()
{
    Windows.System.Launcher.LaunchUriAsync(new Uri("pcast:CarPlayer?Play=Recent"));
}

 

And if you want the app to start playing a random track, use these.

/// <summary>
/// Launch P | Cast in Normal UI and immediately start playing a random track
/// </summary>
private void NormalPlayRandom()
{
    Windows.System.Launcher.LaunchUriAsync(new Uri("pcast:NormalPlayer?Play=Random"));
}

/// <summary>
/// Launch P | Cast in Car Mode and immediately start playing a random track
/// </summary>
private void CarPlayRandom()
{
    Windows.System.Launcher.LaunchUriAsync(new Uri("pcast:CarPlayer?Play=Random"));
}

 

If you’ve questions about integration of P | Cast in your app, please leave a message in the comments or contact me on the P | Cast twitter account.

  • Gravatar Vans Shoes Outlet May 2nd, 2014 at 20:30
    Vans Dam Sk8 Hi Platform Shoes-Leopard Black Women,vans shoes application,womens vans sk8-hi wedge trainers,80s vans,cheap vans shoes Vans Shoes,Cheap Vans,Vans For Sale,Vans Shoes Outlet,Custom Vans Shoes,vans lindero grey seafoam evo,vans era guate<a href=" http://www.shoesvansonuk.com/vans-dam-sk8-hi-platform-shoesleopard-black-women-vs23765-p-647.html"/>Vans Shoes</a> Big Discount Vans Dam Sk8 Hi Platform Shoes-Leopard Black Women Vs23765 Just go and buy Big Discount Vans Dam Sk8 Hi Platform Shoes-Leopard Black Women Vs23765 to meet your demand of running and climbing in this season,action to get one with low price now!Just go and buy Big Discount Vans Dam Sk8 Hi Platform Shoes-Leopard Black Women Vs23765 to meet your demand of running and climbing in this season,action to get one with low price now!
  • The Mid Skool '77, a mid-top lace-up inspired by Vans iconic Old Skool, has a durable canvas and leather upper with Vans side stripe, padded tongue and lining, colored detail on heel and Vans signature Waffle Outsole. &lt;br/&gt;&lt;br/&gt;&lt;b&gt;Season&lt;/b&gt;: Spring/Summe Vans Shoes,Cheap Vans,Vans For Sale,Vans Shoes Outlet,Custom Vans Shoes,vans lindero grey seafoam evo,vans era guate<a href=" http://www.shoesvansonuk.com/mid-skool-77-shoes-cl-steel-graymulti-stripe-vvhrar0-p-882.html"/>Vans Mid Skool 77 Shoes-(C&L) Steel Gray/Multi Stripe-VVHRAR0</a> Vans Mid Skool 77 Shoes-(C&L) Steel Gray/Multi Stripe-VVHRAR0The Mid Skool '77, a mid-top lace-up inspired by Vans iconic Old Skool, has a durable canvas and leather upper with Vans side stripe, padded tongue and lining, colored detail on heel and Vans signature Waffle Outsole. &lt;br/&gt;&lt;br/&gt;&lt;b&gt;Season&lt;/b&gt;: Spring/SummeThe Mid Skool '77, a mid-top lace-up inspired by Vans iconic Old Skool, has a durable canvas and leather upper with Vans side stripe, padded tongue and lining, colored detail on heel and Vans signature Waffle Outsole. &lt;br/&gt;&lt;br/&gt;&lt;b&gt;Season&lt;/b&gt;: Spring/Summe
  • Gravatar Vans Shoes Outlet May 2nd, 2014 at 20:30
    The Old Skool, Vans classic skate shoe and the first to bare the iconic side stripe, has a low-top lace-up silhouette with a durable canvas upper with all-over floral print, metal eyelets, padded tongue and lining and Vans signature Waffle Outsole. &lt;br/&gt;&lt; Vans Shoes,Cheap Vans,Vans For Sale,Vans Shoes Outlet,Custom Vans Shoes,vans lindero grey seafoam evo,vans era guate<a href=" http://www.shoesvansonuk.com/old-skool-shoes-multi-floral-true-white-vvokb8i-p-853.html"/>Vans Shoes</a> Vans Old Skool Shoes-(Multi Floral) True White-VVOKB8IThe Old Skool, Vans classic skate shoe and the first to bare the iconic side stripe, has a low-top lace-up silhouette with a durable canvas upper with all-over floral print, metal eyelets, padded tongue and lining and Vans signature Waffle Outsole. &lt;br/&gt;&lt;The Old Skool, Vans classic skate shoe and the first to bare the iconic side stripe, has a low-top lace-up silhouette with a durable canvas upper with all-over floral print, metal eyelets, padded tongue and lining and Vans signature Waffle Outsole. &lt;br/&gt;&lt;
  • Gravatar cheap oakley o frame May 10th, 2014 at 02:19
    Just want to say your article is as astounding. The clearness in your post is simply great and i could assume you're an expert on this subject. Well with your permission allow me to grab your RSS feed to keep up to date with forthcoming post. Thanks a million and please continue the rewarding work.
    [url= http://www.foxyladyjewellery.com.au/images/cheap-oakley-o-frame-6970142.html]cheap oakley o frame[/url]
  • Gravatar cheap oakley asian fit May 10th, 2014 at 02:19
    I do consider all of the ideas you've introduced for your post. They are very convincing and will definitely work. Still, the posts are too brief for newbies. May you please prolong them a little from next time? Thanks for the post.
    [url= http://www.reyc.net/image/Officers/cheap-oakley-asian-fit-1401600.html]cheap oakley asian fit[/url]
  • Gravatar cheap oakley flak jacket xlj lenses May 10th, 2014 at 02:19
    A person essentially help to make seriously articles I'd state. That is the very first time I frequented your website page and thus far? I surprised with the research you made to make this particular put up amazing. Fantastic task!
    [url= http://www.sardiniasecondhome.com/Temi/blank/cheap-oakley-flak-jacket-xlj-lenses-7621998.html]cheap oakley flak jacket xlj lenses[/url]
  • Gravatar cheap oakley clearance May 10th, 2014 at 02:19
    I together with my guys have been digesting the nice helpful tips located on your site while all of a sudden I had an awful suspicion I had not expressed respect to the site owner for those tips. The people appeared to be for that reason joyful to learn all of them and have honestly been having fun with them. I appreciate you for turning out to be simply considerate and for making a choice on this sort of smart things millions of individuals are really desirous to know about. My very own honest regret for not saying thanks to sooner.
    [url= http://www.laveronica.it/files/cheap-oakley-clearance-8751453.html]cheap oakley clearance[/url]
  • Gravatar cheap oakley military boots May 10th, 2014 at 02:20
    You could certainly see your expertise in the paintings you write. The world hopes for more passionate writers such as you who aren't afraid to mention how they believe. At all times go after your heart.
    [url= http://www.artworkboutique.com/manager/images/top/cheap-oakley-military-boots-6998218.html]cheap oakley military boots[/url]
  • Gravatar cheap oakley sponsorship May 10th, 2014 at 02:20
    Hello to every body, it's my first visit of this weblog; this weblog consists of amazing and actually fine material in favor of readers.
    [url= http://www.re-base.net/Book2/Book2/cheap-oakley-sponsorship-5087513.html]cheap oakley sponsorship[/url]
  • Gravatar cheap oakley beanie May 10th, 2014 at 05:53
    Hello to every , because I am genuinely eager of reading this web site’s post to be updated on a regular basis. It includes nice material.
    cheap oakley beanie http://www.tinecorp.co.za/images/cheap-oakley-beanie-9627918.html
  • Gravatar True Religion Jeans May 11th, 2014 at 03:42
    Thanks for another wonderful post. Where else could anybody get that type of information in such an ideal way of writing? I have a presentation next week, and I’m on the look for such information.
  • Gravatar Discount Louis Vuitton wilshire mm May 14th, 2014 at 06:11
    What i don't understood is in fact how you are no longer really much more neatly-appreciated than you may be right now. You're so intelligent. You understand therefore significantly in terms of this matter, produced me in my opinion consider it from a lot of varied angles. Its like men and women don't seem to be interested until it is something to do with Lady gaga! Your personal stuffs great. At all times care for it up!
    Discount Louis Vuitton wilshire mm http://www.cranfieldsolutions.co.uk/Images/extras/Discount-Louis-Vuitton-wilshire-mm-1350331.html
  • Gravatar Discount Louis Vuitton laptop May 14th, 2014 at 06:12
    I simply could not go away your website before suggesting that I actually enjoyed the usual information an individual provide to your visitors? Is going to be again steadily to check up on new posts
    Discount Louis Vuitton laptop http://www.sounditholding.se/bilder/Discount-Louis-Vuitton-laptop-16378711.html
  • Gravatar Discount mens Louis Vuitton belts May 14th, 2014 at 06:12
    A person necessarily lend a hand to make critically posts I might state. This is the very first time I frequented your web page and thus far? I surprised with the research you made to create this particular post amazing. Fantastic activity!
    Discount mens Louis Vuitton belts http://www.curtainandblindstudio.co.za/scripts/images/Discount-mens-Louis-Vuitton-belts-4700855.html
  • Gravatar Discount Louis Vuitton dog May 14th, 2014 at 06:12
    It¡¦s actually a great and useful piece of information. I¡¦m satisfied that you simply shared this useful info with us. Please keep us informed like this. Thanks for sharing.
    Discount Louis Vuitton dog http://www.nicamo.com/pics/Discount-Louis-Vuitton-dog-526356.html
  • Gravatar Discount Louis Vuitton fashion May 14th, 2014 at 06:12
    I have to express thanks to you for rescuing me from such a circumstance. After checking throughout the world wide web and finding views which are not helpful, I figured my life was gone. Living devoid of the strategies to the issues you have solved through your short post is a serious case, and ones which might have negatively affected my career if I had not encountered your web page. The mastery and kindness in handling every aspect was invaluable. I'm not sure what I would've done if I had not come upon such a subject like this. I'm able to at this point look ahead to my future. Thank you so much for this skilled and amazing help. I will not think twice to endorse the sites to any individual who needs tips on this matter.
    Discount Louis Vuitton fashion http://www.cantinadelbovale.it/Moduli/Contatti/Discount-Louis-Vuitton-fashion-6707081.html
  • Gravatar Discount loui vuitton purses May 14th, 2014 at 06:24
    Nice post. I was checking constantly this blog and I'm impressed! Extremely useful information particularly the last part :) I care for such information a lot. I was looking for this certain info for a very long time. Thank you and best of luck.
    Discount loui vuitton purses http://www.advantia.org/Styles/Discount-loui-vuitton-purses-2734608.html
  • Gravatar Discount kanye Louis Vuitton shoes May 14th, 2014 at 06:24
    magnificent issues altogether, you just won a brand new reader. What would you recommend about your post that you made some days in the past? Any sure?
    Discount kanye Louis Vuitton shoes http://www.toper.it/mappa/Discount-kanye-Louis-Vuitton-shoes-5342945.html
  • Gravatar Discount Louis Vuitton outlet authentic May 14th, 2014 at 06:24
    I simply desired to say thanks yet again. I'm not certain the things I might have handled in the absence of the actual ideas documented by you concerning that subject. Previously it was an absolute intimidating condition for me, nevertheless considering a new skilled strategy you processed the issue forced me to leap for contentment. Extremely happy for your advice and then have high hopes you find out what an amazing job you are always putting in training many people using your web site. Most probably you've never come across any of us.
    Discount Louis Vuitton outlet authentic http://www.zetaemme.net/img/Discount-Louis-Vuitton-outlet-authentic-8795704.html
  • Gravatar Discount Louis Vuitton coupon May 14th, 2014 at 06:24
    I not to mention my buddies came looking at the great pointers found on the blog and so immediately got a horrible feeling I never expressed respect to the website owner for them. These young boys are already so happy to study all of them and already have sincerely been using these things. I appreciate you for getting considerably thoughtful and for pick out varieties of important subject areas most people are really needing to understand about. My sincere apologies for not expressing gratitude to earlier.
    Discount Louis Vuitton coupon http://www.ajppublishing.co.uk/flash/Discount-Louis-Vuitton-coupon-3210377.html
  • Gravatar Custom Vans Shoes May 15th, 2014 at 05:48
    http://www.shoesvansonuk.com/authentic-lo-pro-shoes-galaxy-nebulatrue-white-vt9nd85-p-832.html/Vans Shoes Outlet
  • Gravatar Custom Vans Shoes May 15th, 2014 at 05:48
    http://www.shoesvansonuk.com/vans-chukka-low-navygum-skate-shoes-fe34676-p-565.html/Buy Vans Chukka Low Navy/Gum Skate Shoes Fe34676 UK Sale
  • Gravatar Vans Shoes May 15th, 2014 at 05:48
    http://www.shoesvansonuk.com/authentic-vans-girls-slim-grey-chambray-coral-polka-dot-shoes-hn35646-p-643.html/Custom Vans Shoes
  • Gravatar Rebel8 snapback hats May 16th, 2014 at 10:55
    I am extremely impressed with your writing skills as well as with the layout on your blog. Is this a paid theme or did you customize it yourself? Anyway keep up the nice quality writing, it's rare to see a great blog like this one nowadays..
    Rebel8 snapback hats http://www.penman-fairs.co.uk/userfiles/image/Newsletters/Rebel8-snapback-hats-4472279.html
  • Inspired by reissued prints and patterns from the Vans archives, The Van Doren Authentic is a simple low top, lace-up with a durable canvas upper, all-over paisley print fabric, metal eyelets, Vans flag label and Vans original Waffle Outsole. &lt;br/&gt;&lt;br/&gt;&lt;b Vans Shoes,Cheap Vans,Vans For Sale,Vans Shoes Outlet,Custom Vans Shoes,vans lindero grey seafoam evo,vans era guate<a href=" http://www.shoesvansonuk.com/van-doren-authentic-shoes-van-doren-navypaisley-vvoec7d-p-684.html"/>Custom Vans Shoes</a> Vans Van Doren Authentic Shoes-(Van Doren) Navy/Paisley-VVOEC7DInspired by reissued prints and patterns from the Vans archives, The Van Doren Authentic is a simple low top, lace-up with a durable canvas upper, all-over paisley print fabric, metal eyelets, Vans flag label and Vans original Waffle Outsole. &lt;br/&gt;&lt;br/&gt;&lt;bInspired by reissued prints and patterns from the Vans archives, The Van Doren Authentic is a simple low top, lace-up with a durable canvas upper, all-over paisley print fabric, metal eyelets, Vans flag label and Vans original Waffle Outsole. &lt;br/&gt;&lt;br/&gt;&lt;b
  • Gravatar Vans Shoes May 17th, 2014 at 12:56
    Vans Half Cab Camo/Black Skate Trainerss,custom vans,who sells black platform vans shoes,vans shoes wholesale,vans store Vans Shoes,Cheap Vans,Vans For Sale,Vans Shoes Outlet,Custom Vans Shoes,vans lindero grey seafoam evo,vans era guate<a href=" http://www.shoesvansonuk.com/vans-half-cab-camoblack-skate-trainerss-fp32378-p-598.html"/>Cheap Sale Vans Half Cab Camo/Black Skate Trainerss Fp32378 </a> Cheap Sale Vans Half Cab Camo/Black Skate Trainerss Fp32378 Cheap Sale Vans Half Cab Camo/Black Skate Trainerss Fp32378 .no matter which one you buy,never make you down,all of them are direct from factory,worth you try.Cheap Sale Vans Half Cab Camo/Black Skate Trainerss Fp32378 .no matter which one you buy,never make you down,all of them are direct from factory,worth you try.
  • Gravatar Vans For Sale May 17th, 2014 at 12:56
    The Authentic Lo Pro, a simple low top, lace-up with a slim silhouette, has a canvas upper, metal eyelets, Vans flag label and low profile vulcanized micro Waffle Outsole. &lt;br/&gt;&lt;br/&gt;&lt;b&gt;Season&lt;/b&gt;: Carry Over&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Composition&lt;/b&gt;: Canvas Vans Shoes,Cheap Vans,Vans For Sale,Vans Shoes Outlet,Custom Vans Shoes,vans lindero grey seafoam evo,vans era guate<a href=" http://www.shoesvansonuk.com/authentic-lo-pro-shoes-navytrue-white-vgyqnwd-p-849.html"/>Vans For Sale</a> Vans Authentic Lo Pro Shoes-Navy/True White-VGYQNWDThe Authentic Lo Pro, a simple low top, lace-up with a slim silhouette, has a canvas upper, metal eyelets, Vans flag label and low profile vulcanized micro Waffle Outsole. &lt;br/&gt;&lt;br/&gt;&lt;b&gt;Season&lt;/b&gt;: Carry Over&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Composition&lt;/b&gt;: CanvasThe Authentic Lo Pro, a simple low top, lace-up with a slim silhouette, has a canvas upper, metal eyelets, Vans flag label and low profile vulcanized micro Waffle Outsole. &lt;br/&gt;&lt;br/&gt;&lt;b&gt;Season&lt;/b&gt;: Carry Over&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Composition&lt;/b&gt;: Canvas
  • Gravatar hogan shop on line May 19th, 2014 at 06:27
    The result sees Andy Thorn's side end a run of four consecutive draws and, despite staying in the relegation zone, move to within a point of Bristol City while Portsmouth are six points adrift of safety.
  • The first is not technically part of the Mille Miglia line, but aesthetically it cannot be removed. The Chopard Grad Prix de Monaco Historique 2008 watch in steel is
  • Gravatar black spider-man summer cycling costume May 30th, 2014 at 04:51
    Thank you for all of the effort on this website. My aunt really likes carrying out investigation and it's obvious why. All of us notice all of the powerful method you convey valuable techniques through the web blog and therefore invigorate contribution from others on the subject matter plus our own child has always been learning a whole lot. Take pleasure in the remaining portion of the year. You are performing a good job.
  • Gravatar cheap wow gold June 2nd, 2014 at 17:18
    Trés gracieux cheap wow gold, colis rapide, convention satisfaisante. Merci beaucoup.
  • Gravatar Coldwater Creek Outlet June 5th, 2014 at 05:09
    provide access to the best scientific knowledge for international environmental governance and the mainstreaming of environmental concerns into social and economic sectors, and in support of the internationally agreed development goals;
  • The codes are readable with any smartphone,
    but a maximum of 5-7 fields is a reasonable range to go for.
    There are four main characteristics that should guide you in the
    right direction. In this way your paper
    wrk is completed and direct phone support blizzard australia mail.
  • Gravatar 時計コピー June 23rd, 2014 at 04:30
    ガガミラノ偽物時計: http://www.cheapwatchcopy.com/cs-gagamilano.html
    オーデマピゲコピー時計: http://www.cheapwatchcopy.com/cs-audemarspiguet.html
    フランクミュラー偽物: http://www.cheapwatchcopy.com/cs-franckmuller.html
Gravatar