FD- / RPiPlay

An open-source AirPlay mirroring server for the Raspberry Pi. Supports iOS 9 and up.
GNU General Public License v3.0
4.91k stars 355 forks source link

Update rpiplay.cpp to use the new API features for choosing network #258

Closed fduncanh closed 2 years ago

fduncanh commented 2 years ago

ports and display size. Also add a "random MAC" feature to replace the hard-coded DEFAULT_HW_ADDRESS and allow multiple instances of rpiplay to coexist on the same machine. The parsing of the input options is made more robust, and README.md is updated for the changes.

This adds 3 new features to FD-: master, using the API extension of my PR #257. It needs PR #257 to be first applied, followed by this PR #258.

1) It allows the display width x height to be set, as was found in #PR 141 by flatsiedatsie in Jul 12 2020 and further worked on by seungjun in PR 191.. This is a great improvement that was already there in the code base, but had not been given an interface to use it.

2) The network ports can now be set with a -p option, for use with firewalls. The starting point was the idea of hard coding fixed ports by Waester in PR #196, but it is implemented flexibly using a suggestion by FD-

3) an option -rm allows a random MAC address to be used . This allows multiple instances of rpiplay to coexist the idea of doing this was suggested in PR #244 by Sergi030

I also cleaned up the option parsing and made it more robust. and update the README document.

everything is tested with the gstreamer renderer on desktop linux, ,by not on the Rpi.

I hope this can be of use. This software is very useful for online teaching and interactions using Zoom or similar .