It's the ternary operator. This line of code will set player to 1 if player originally was odd, and to 2 if it was even. The NetworkPlayer is a data structure with which you can locate another player over the network. With this you can, for example, send a message directly to another player. Is something described here not working as you expect it to?
Raspberry Pi has been used to play video and music since the very first board landed in the hands of an enthusiast. Its use as a media platform is legendary, and for good reason.
This article was written by Rob Zwetsloot and first appeared in The MagPi 85. Get a free Raspberry Pi with a 12-month subscription to the print edition of The MagPi magazine.
Want to take advantage of Raspberry Pi’s media powers? Here are ten excellent ways…
VLC Media Player: all-purpose player
VLC seems to be able to play just about anything you throw at it, while still having a very small install size. Beatunes 5 1 5 – organize your music collection. It also has great streaming abilities, and can receive web streams and network streams as well. It also has a GUI.
MPlayer: the legend
MPlayer is still adored by many long-term Linux and open-source software users, and for good reason: it’s great. You’ll probably have to compile it from source to get a version you prefer, though.
Plex: ultimate media library
Need a tiny media server that will stream to all your devices that support Plex? Using Raspberry Pi you can create the ultimate streaming media server, with the tiniest footprint in both physical space and on your electricity bill.
Pi MusicBox: music-streaming software
Another excellent streaming solution for your home. As well as being able to connect to your local music collection, it connects well to online services such as Spotify and SoundCloud.
OSMC: Raspberry Pi HTTP
A Kodi alternative for people who like slightly more modern user interfaces. It has a special installer that can get a Raspberry Pi microSD card set up in minutes, and it also supports streaming to other devices.
Chromium: web browser streaming
Using the default Raspbian web browser, you can access a world of content online from various video sources like YouTube, as well as stuff on your home network with the right add-ons.
RuneAudio: in-home music system
RuneAudio is a complete home hi-fi system, connecting to local network storage and internet streams. It can be controlled by multiple clients if run headless, and plays music perfectly through a DAC. It’s also open-source.
Volumio: all in one audio
Volumio wants you to have everything connected to one device, and has created a system to allow you to do that. Not only can you store music on it, you can stream music from other places to it.
LibreELEC: the purest Kodi
Our favourite Kodi-based OS gives you the pure, familiar, highly customisable Kodi experience. It can play just about anything you can throw at it, including a lot of video games now. Read more about its performance on Raspberry Pi 4 in The MagPi 85.
See also: LibreELEC on Raspberry Pi 4 review
OMXPlayer: command-line player
This is great for having media play when you turn a Raspberry Pi on, or to control it from an SSH-connected remote computer. It makes use of minimal resources, while also being hardware-accelerated for great picture quality.
See also:
| Aug 11, 2020 | 0 commentsCompared with Auralic’s more specialist models the Altair G1 is a workhorse, but it’s still a pure thoroughbred
| Jul 10, 2020 | 0 commentsDespite its compact dimensions this network audio player is surprisingly flexible and capable
| Mar 19, 2020 | 0 commentsAs Audiolab joins the stream age, HFC discovers whether its off-the-peg platform and audio prowess are a recipe for success
| ![Networkplayer Networkplayer](https://image.slidesharecdn.com/unitynetwork-120704203146-phpapp02/95/unitynetwork-17-728.jpg?cb=1341434030)
The BluOS multi-room range has a new all-in-one system and it’s a total stormer
| Oct 08, 2019 | 0 commentsThe unassuming mini music streamer that takes a different approach to most
| Aug 21, 2019 | 0 commentsThe compact networked music player that boasts an impressive spec at an attractive price
| Jun 14, 2019 | 0 commentsAuralic’s Vega G1 streaming DAC builds on the success of its Aries transport series, but there’s a twist
| Jun 14, 2019 | 0 commentsNext-gen digital hub that wowed Bristol Hi-Fi Show now available
| Jun 12, 2019 | 0 commentsKnown for its playback software, Volumio’s first standalone networked music management tool impresses
| May 16, 2019 | 0 commentsAs the most affordable model in Naim's latest standalone network music player series, the ND5 XS 2 may have a minimalist aesthetic, but what it offers is anything but..
| Feb 03, 2019 | 0 commentsSince the demise of the iPod Classic and the rise of the smartphone as the portable audio device of choice for the majority of users, the digital audio player market has struggled to flourish. This hasn’t stopped some specialists from carving out a niche, though, and Astell&Kern has been offering a considerable range of high-end players for some time. With an eye on keeping things in the real world, the A&norma SR15 is at A&K’s more affordable end of its extensive product range and is £100 more than the AK70 (HFC 428) that’s more recently been updated to mkII. The specification of the SR15 improves on the AK70 mkII and it’s fitted with 64GB of internal memory, which is supplemented by the inclusion of a microSD card slot for a card up to 400GB.
Network Player 2 1 Player
|2 Player Games On 1 Computer
Feb 03, 2019 | 0 comments2 Player 1 Pc
As last month’s Group Test of entry-level network audio players showed, the streaming sector is hotting up with a wide selection of easy-to-use players to choose from at some very attractive prices. As if to further demonstrate the growth in the market, Yamaha has introduced its keenly priced MusicCast NP-S303 music streamer that’s designed to be an easy network audio add on to an existing hi-fi setup, or to partner with its matching full-size integrated amplifiers as part of a unified system.
| Feb 01, 2019 | 0 commentsOur recent Group Test of entry-level network music players (HFC 442) showed there are some very impressive low-cost models to help you get started in streaming, but Google perhaps offers the bargain of the lot. It has a growing range using its own Cast streaming platform and for £70, the Chromecast Ultra supports video, but we’re more interested in the Chromecast Audio at just £30.
| Nov 22, 2018 | 0 commentsWith streaming music readily available at our finger tips, it’s sometimes difficult to fathom the best way of combining digital media libraries into one central location to achieve the same effortless tap-to-play scenario that brings together all our digital music. I am sure plenty of us have spent enough time grappling with network-attached storage hardware and CD-ripping software to know that there has to be a more elegant way of cataloguing our music libraries.
| Nov 19, 20181 2 Player Game
|2 Player 1 Pc Games
0 commentsEagle-eyed readers will recognise the form of the Auralic Aries G1 from our review in the January issue of its high-end Aries G2 sibling at £3,899. Understandably the G1 sacrifices some of the features of the flagship model to come in at less than half the price. The principle is the same, though, and this is a streaming transport that focuses on the business of accessing your digital music files on a home or external server and presenting them to an outboard DAC via its digital output connectivity.