“Although Android finally has its own podcasts app, you may want to check out a very good third-party option: Pocket Casts, which as of this year is owned by NPR and three other public radio producers. And it’s only gotten better since, with a big redesign arriving just last month that delivers some much-requested features.”. It might confuse some of them how to download NPR podcasts on iPhone. Podcasts app for iOS is really a useful tool for downloading NPR podcast. With it, users can enjoy the latest news from NPR. The following steps will guide you how to download NPR podcasts on iPhone. Open Podcasts app.
Know Your NPR News App – Windows XP/7/8/10 and MAC PC
The best of NPR’s content in your pocket: read the latest breaking news, stream your local public radio stations, and hear your favorite NPR shows and podcasts. The NPR App is in your hands, wherever you go.
Now in App Emulator click on the Search button in the first line on the app emulator home screen. Now in the search box, type NPR News and get the manager on Google Play Search. Click on the app and install it. Once installed, you will find NPR News in all apps in Android App Emulator, click to open it. Trusted Windows (PC) download NPR Live Toolbar 6.5. Virus-free and 100% clean download. Get NPR Live Toolbar alternative downloads. NPR delivers breaking national and world news. Also top stories from business, politics, health, science, technology, music, arts and culture. Subscribe to podcasts and RSS feeds.
Tap into a world of stories with on-demand access to the best of NPR content—news, live radio streams, programs, and podcasts. Never miss a beat with hourly newscasts, breaking news alerts, and story feeds filtered by topic. With the NPR app, home feels close enough to touch. Stream your local station to hear the stories that matter in your community.
HIGHLIGHTS:
Get the latest stories from NPR delivered right to your phone.
Hear local and national newscasts and receive breaking news alerts. Stream your local radio station from wherever you are. Listen to America’s top conversations from NPR’s award-winning news programs, Morning Edition and All Things Considered. Enjoy on-demand access to your favorite podcasts, including NPR’s Wait Wait…Don’t Tell Me! and Planet Money. You can now support the station in your community with a simple, easy tap to visit their donation page.
Data Protection Choices
At NPR, we understand how important privacy is to you, and we are committed to transparency about how we collect, use and share your information. Please take a moment to read our privacy policy: https://n.pr/privacypolicy.
By downloading this app:
• You agree to NPR’s terms of use, available at https://n.pr/termsofuse.
• You acknowledge that NPR may process your personal data as described in NPR’s privacy policy, available at https://n.pr/privacypolicy.
• You agree that NPR uses devices identifiers, tracking technologies, and information about the device you use to access NPR’s apps to enhance your viewing, listening, and user experience, personalize content, personalize messages from NPR’s sponsors, provide social media features, and analyze NPR’s traffic. This information is shared with social media services, sponsorship, analytics, and other third-party service providers. See details in NPR’s privacy policy.
Npr App For MacNPR News for PC Free Download Links:
NPR News for PC is now available for free download. Directly download the NPR News for PC app setup files along with Bluestack installation files and follow the below-listed instructions to smoothly run NPR News for PC in your Windows XP/7/8/10 and MAC PC.
NPR News for PC Free Download Link: Click Here on the Link Bluestack for PC Free Download Link: Click Here on the Link Download Instructions for NPR News:Inorder to run NPR News on your Windows 7/8/10/XP or MAC PC, you will need an Android or iOS emulator to prepare the system environment for the mobile application. You will need to install Bluestack for PC on your Windows 7/8/10/XP or MAC PC and then would need to install the NPR News for PC apk or setup file. Bluestack for PC is an top grossing award winning Android Emulator available in the market and is proficient to run all major Android/iOS mobile applications (including NPR News for PC) and mobile games on the host PC. In all, it would provide a mesmerizing experience running NPR News on your Windows 7/8/10/XP or MAC PC. Just follow the below-listed instructions to Download and Install NPR News for PC on your Windows XP/7/8/10 or MAC PC: 1. Download the Bluestack Standalone installation file from the link provided in the above section. 2. BlueStacks-Installer_native.exe file consuming about 261.86 MB will be downloaded on your Windows XP/7/8/8.1/10 or MAC PC. 3. After downloading the Standalone setup file, install the Bluestack on your Windows 7/8/8.1/10 or MAC PC. It would take about 2-5 minutes. Just skip through all the interrupts in between. 4. Now, your Bluestack installation is over and you are ready to run it for the first time on your Windows 7/8/8.1/10 or MAC PC. Just feel free to have experience with its highly interactive look and functioning. 5. The next step involves installing Summoners War for PC app on your Bluestack emulator. Just simply search in the Bluestack Apps Search Console for Summoners War game. You will be prompted to Play store from where you could download the NPR News for PC which would run smoothly on this Bluestack Emulator. 6. If you feel somewhat confused with the above step, Just simply open the link provided in the above section in your Bluestack Browser and everything will be done automatically.
I love NPR. Our family listens to Up First every morning during breakfast & KCUR every evening when we cook dinner. We’re proud contributors.
Last year, I built a simple macOS App that lets you stream your favorite NPR station from your menubar. We’re going to recreate that.
End Result
At the end of this 2-part series, we will have made a menubar macOS app to stream NPR stations. We’ll have “reverse-engineeered” the way to search for stations via zipcode and built a macOS menubar app with the following features:
This will all be done using Swift.
Requirements
I am going to assume you have the following installed:
Step 0: Create the ProjectNote: if you'd like to skip this step, you can simply download the starter project.
First things first, let’s create the project.
In Xcode, go to
File → New → Project . You’ll see a dialog similar to below —
Select the macOS tab, and be sure that App is selected.
Free with spotify account. In the next step, give the project a name (I chose NPR) and be sure that it is a Swift project. Even though we won’t be using SwiftUI, let’s set the project to use SwiftUI for the User Interface. This will make it easier to start from a clean slate.
Remove what’s unnecessary
Like I mentioned above, this won’t actually be using
SwiftUI . Let’s remove some of the unnecessary code that was generated.
This is what my AppDelegate.swift looks like (again, you can download the starter project if you’d prefer): Sonja marinkovic istorija muzike pdf.
AppDelegate.swift
Ok, Build & Run the project. You should have an empty App show up in your Dock. Woohoo!
Step 1: Stream the audioFinding the audio stream
Before we build out any UI, let’s get an audio stream going.
Fortunately, NPR has a way to find a station via a city, state or zip code. If we pop open the Web Inspector and go to the Network tab, we’re able to see what HTTP requests the webpage is making. Let’s look to see if we can find out how it works…
Bingo! Looks like the NPR page is hitting a
/stationfinder endpoint, and passing the input as a query string parameter.
If we look at the Preview tab of that request, we can unpack the response a bit and further understand what’s happening under the hood.
Npr App For Macbook
Looks like there is a Your browser does not support the audio tag.
streamsV2 key with an urls array. Each url has an href which looks like it points to an audio stream. Pop that into a new tab in your browser and…
Mac mini app store download failing. voilà! You should be able to play that stream right from your browser. High five! This is some progress.
Note: I recently learned that the NPR One Developer Center documents a Station Finder Service. If you were building a mass-distributed app, that would be the method you should use. Thanks, Jon!
Be sure to note the URL of the audio stream somewhere; we’re going to be using that here shortly.
Ok, so after doing some digging, we know how to find stations. Lets see how we can actually stream the station on a macOS app…
Streaming audio in Swift
On iOS, macOS, watchOS & tvOS, there is a handy framework provided by Apple,
AVFoundation , that allows you to play and create audiovisual media. We’re going to be using that.
Basically, you have an instance of the
AVPlayer class, and you give it an AVPlayerItem . That’s it.
AppDelegate.swift
Pretty simple, right? We just create an instance of
AVPlayer and call replaceCurrentItem with an AVPlayerItem we created with the URL of the audio stream. Finally, we play() the player.
Go ahead and Build & Run the project…
…and nothing is happening.
I don’t know about you, but I was expecting that to work! It’s not a big deal; this trips me for almost every macOS app I write.
Pop open the
Debug area (View → Debug Area → Show Debug Area ) and check out what’s in there. You’re probably seeing something like this:
tl;dr — macOS requires you to explicitly opt your app in to making and receiving network connections. Since this is streaming from a URL and not our local filesystem, we need to tell the app that making network requests is allowed.
In the Xcode project editor, with your application target selected, view the
Signing & Capabilities tab. From there, be sure to check Outgoing Connections (Client).
Now go ahead and Build & Run the project.
Still nothing? Hmm. Oh!
We also have to tell Xcode that our app can make requests to arbitrary servers.
In your
Info.plist file, add a new key, App Transport Security Settings of type Dictionary . Underneath that, add a key, Allow Arbitrary Loads and set the value of that to YES .
One more time, let’s Build & Run the project.
You should now be hearing audio streamed from an NPR station. High five!
Step 2: Adding a menuBar UI
It’s pretty simple to make a menuBar UI. For now, there are two main concepts —
So, a
StatusItem belongs to a StatusBar . StatusItem objects have buttons that you can style with either images or text.
Take the following code in
AppDelegate.swift —
AppDelegate.swift
As you can see, we:
Build & Run the project, and you should see a
Hello, world! in your menu bar!
??!
Toggling Play / Pause
Next up, we’ll add a little menu attached to the
statusItem from above. Again, this is pretty simple —
AppDelegate.swift
Now, when clicking the
Hello World statusBarItem, we’ll se a Menu dropdown show, with a Play / Pause button. Go ahead, click it! It should toggle the audio stream to be, well, played or paused.
Tidying things up
How to uninstall apps on mac without emptying trash removal. This is working! That’s exciting. Nice job!
However, there are a few loose ends that I think we should tidy up before getting too far. Notably —
Let’s fix those up —
Only showing in the menubar
This is a fairly common use case on macOS, so after some quick googling I found the answer. Basically, we need to tell the OS, in our
Info.plist file, that our app is an agent .
To do that, open the
Info.plist file and add a new entry —
It should now look something like this:
If you Build & Run now, you’ll see that the app no longer shows an icon in the Dock and doesn’t show up in the
⌘ + Tab app switcher.
Making the menubar more helpful
Right now, our menubar button title says
Hello, world! . Let’s make it the NPR logo.
First, download the icons. Go ahead and unzip that file.
In the Xcode project, ensure the Project Navigator is being shown by going to
View → Navigators → Show Project Navigator .
In the Project Navigator, right-click Assets.xcassets and select
Show in Finder . Simply drag the unzipped folders into that Assets.xcassets Wordpress mac app download. directory.
Now that the assets are added to the project, we can go ahead and swap out that
Hello, world! for… something a bit more helpful ?
In
AppDelegate.swift , replace the Hello, world! line with this:
Build & Run the app and you should see the NPR icon in the menubar!
We’re making fantastic progress. This is starting to feel like a real app!
Adding the ability to Quit the app
Since we’ve been rebuilding the app all along, it has Quit itself for us. However, if/once we start distributing it, we’d need a way to actually Quit it. Fortunately, that’s trivial to add.
Back in
AppDelegate.swift , after where the Play / Pause button is added, add a separator and a new button for Quit —
Now, if you try to Build & Run, Xcode will fail because we haven’t defined a
quit method.
Just above the
togglePlayPause() method, add this —
If you Build & Run, now you should see a
Quit button below a separator!
You should also notice that there is a keyboard shortcut,
⌘Q , automatically assigned to the Quit button. We got that functionality for free via the keyEquivalent parameter for the NSMenuItem.init . If the menu is open and we fire that keyboard shortcut, the menu highlights that item for us, like so:
One more piece of polish
After using the app, it sure would be nice to have a visual indicator of the Play or Pause state. Why don’t we use the
greyscale asset above as the menu icon for when the app is paused and the colored asset for when the stream is playing? That seems pretty elegant.
Now, we already know when the stream is set to playing or paused via the
togglePlayPause method, we should be able to just have an updateMenuIcon method that updates itself when the stream is toggled. Let’s try that —
We should also update the
applicationDidFinishLaunching method to use the updateMenuIcon() method instead of setting the statusBarItem’s image directly —
Build & Run and toggle pausing and playing the stream. If you’re seeing the icon flip from greyscale to colored, woohoo! That’s what we’re expecting. ??!
Finally, while we’re in this part of the codebase, let’s make the
Play / Pause button title actually say what the action will be.
This will follow a very similar path from directly above, just with a few tweaks.
First of all, we’ll need to keep a reference to the
playPauseButton . Let’s add a property to keep track of it —
Next, let’s add that instance of the button to the menu —
Next, in the
togglePlayPause() method, let’s call updatePlayPauseButtonTitle() right after updateMenuIcon() .
We can define the
updatePlayPauseButtonTitle() method right below the updateMenuIcon() method —
Finally, in
applcationDidFinishLaunching , just below the call to updateMenuIcon() , call updatePlayPauseButtonTitle() . Doing this will keep the button title and the menu icon in sync.
Build & Run and we should have a
menuItem that updates the title properly.
Nice work so far! We’ve got an app that works (as long you as hard-code the proper URL for the desired audio stream).
Mac apps opening in different desktop computer. This is a good stopping point for Part 1. If you’d like to download the code for where we’re at, here you go.
In Part 2, we’ll focus on adding a Preferences window with the ability to change stations, integrating media key shortcuts & adding some more functionality to the dropdown menu.
How to remove old macos apps. To see when Part 2 is ready, follow me on Twitter or subscribe to this blog’s RSS feed.
In the meantime, I hope you consider donating to NPR.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |