1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-02-13 18:11:55 +00:00
Commit graph

261 commits

Author SHA1 Message Date
Derek Dai
7ea9305172
miracle-*ctl: fix label leak 2017-02-13 13:12:55 +08:00
Derek Dai
14041bd968
miracle-*ctl: resolve object parsing issue in ctl_wifi_fetch()
while parsing ctl_peer and ctl_link objects, if a ctl_peer appear prior
to its related ctl_link, -EINVAL is reported, and miracle-*ctl will quit
immediately.
2017-02-13 13:12:54 +08:00
Derek Dai
cfc98095d1
miracle-*ctl: remove some debugging log messages 2017-02-13 13:12:54 +08:00
Derek Dai
f47669a59b
miracle-wfdctl: init commit 2017-02-13 13:12:54 +08:00
Derek Dai
df336c8c51
miracle-wifid: add MACAddress property to link 2017-02-13 13:12:54 +08:00
Derek Dai
1919de3158
miracle-srcctl: fix some warming 2017-02-13 13:12:54 +08:00
Derek Dai
853152cb9c
miracle-wifid: remove duplicated link & peer dbus nodes by checking prefix 2017-02-13 13:12:54 +08:00
Derek Dai
c5a4bf0457
miracle-wifid: add dbus & systemd service files to support dbus activation 2017-02-13 13:12:54 +08:00
Xu Fasheng
7d7df75bc9
Make miracle-wifid conexists with other network tools
The new option --lazy-managed will let miracle-wifid don't managed the
links automatically. Instead, the link will be managed only when the new
DBus property Managed was set to true. So this will be possible that
miracle-wifid could be conexists with other network tools like
networkmanager.

For example, unmange the device in networkmanager with setting the DBus
property org.freedesktop.NetworkManager.Device.Managed to false and
manage it in miracle-wifid with setting
org.freedesktop.miracle.wifi.Link.Managed to true, then both them could
works and don't need to kill each other.

Besides, there is new command named make-managed in miracle-wifictl and
miracle-sinkctla.
2017-02-13 13:12:54 +08:00
Derek Dai
d239c528ff
miracle-srcctl: fix memory management issues 2017-02-13 13:12:54 +08:00
Derek Dai
20ff174fe8
stop sender properly after session end 2017-02-13 13:12:53 +08:00
Derek Dai
d8d538ef65
encode video with x264enc temperarily to prevent decoding issue on dongle 2017-02-13 13:12:53 +08:00
Derek Dai
03744ba53b
rename dbus name back to org.freedesktop.miracle.Sender and variety kinds of tunning 2017-02-13 13:12:53 +08:00
Derek Dai
91e1ee29ec
miracle-wifid: fix call waitid() with NULL pointer issue reported by valgrind 2017-02-13 13:12:53 +08:00
Derek Dai
12cef6e0fc
gstplayer: set sync=false to reduce latency 2017-02-13 13:12:53 +08:00
Derek Dai
eb5c563a8d
miracle-sender: change bus name from org.freedesktop.miracle.Sender to org.freedesktop.miracle 2017-02-13 13:12:53 +08:00
Derek Dai
e1307f0636
stability: increase gcc warning level 2017-02-13 13:12:53 +08:00
Derek Dai
21fc207d4c
miracle-wifid: fix some leaks of wpas_message 2017-02-13 13:12:53 +08:00
Derek Dai
b3b51120e0
source implement + sender talk via dbus 2017-02-13 13:12:53 +08:00
Derek Dai
fb37a53dec
stop sender when peer freed 2017-02-13 13:12:52 +08:00
Derek Dai
047775303b
integrate miracle-sender with miracast-srcctl 2017-02-13 13:12:52 +08:00
Derek Dai
8a935e1893
initial sender implementation 2017-02-13 13:12:52 +08:00
Derek Dai
783fb7b78b
add option [-f|--full-screen] to switch to full screen mode at start up 2017-02-13 13:12:52 +08:00
Derek Dai
5c501c0594
init source side implementation 2017-02-13 13:12:52 +08:00
Derek Dai
c76667cf71
match resolution from high to low 2017-02-13 13:12:52 +08:00
Derek Dai
b6d372eae4
calculate array size of resolutions at build time instead of tailing null element 2017-02-13 13:12:52 +08:00
Derek Dai
5f39158f45
init copy & modify 2017-02-13 13:12:52 +08:00
Derek Dai
9cd56f3eff
set audio=False by default
since gstplayer has argument --audio to enable audio support but no
way to disable it, audio=False might a better choise.

If we left audio=True and incoming stream has video only, the whole
pipeline will be blocked and wait for audio stream.
2017-02-13 13:12:51 +08:00
Derek Dai
2a3796cfe9
fix byte order of DHCP_SERVER_ID option
If miraclecat is GO, miracle-dhcp runs as server, it send out SERVER_ID
option in little endian, causes non-GO peer connect to wrong IP address, so
RTSP connection can't be established.

In scenario like, say Android (GO) <-> miracalcast (non-GO), the DHCP service
is provided by Android, in this case, the SERVER_ID is in expected byte order
(big endian).
2017-02-13 13:12:48 +08:00
Alberto Fanjul
c0f49c3b9c Merge pull request #169 from nixjdm/master
Fixed small grammar error in README: this -> these.
2017-02-10 07:06:50 +01:00
Joseph Nix
2757c4f5e6 Fixed small grammar error in README: this -> these. 2017-02-09 21:40:49 -06:00
Alberto Fanjul
e5795edd04 Read UIBC capability in raw mode
Some devices send its UIBC capabilities with spaces. Read in raw mode to parse port correctly
2016-10-28 11:37:16 +02:00
albfan
cedfeeebe1 Debug GStreamer execution
Allow to config gstreamer log level
2016-10-23 10:20:12 +02:00
albfan
472fbf4a24 Check source UIBC capability
If source has no UIBC capability don't try to connect UIBC controller,
and listen UIBC setting to disable UIBC

relates to #115
2016-10-23 09:46:02 +02:00
albfan
5e93ad0638 Fix compilation warnings 2016-10-23 04:27:17 +02:00
albfan
cd23da3c74 Fix finding subnet 2016-10-01 12:29:48 +02:00
Alberto Fanjul
142ba08987 Merge pull request #125 from derekdai/master
add option --use-dev to miracle-wifid to workaround the 'no ifname' issue
2016-09-25 21:00:46 +02:00
Derek Dai
3886dcb7c7 add option --use-dev to miracle-wifid to workaround the 'no ifname' issue 2016-09-14 16:01:54 +08:00
Derek Dai
a9266e5055 re-dispatch wpa_message with ifname!=NULL from supplicant_global_fn() to supplicant_dev_fn() 2016-09-14 15:01:26 +08:00
Derek Dai
1cc667a00c don't modify raw message 2016-09-14 15:01:26 +08:00
albfan
36be37ed8b Fix wpa_supplicant search when path did not exists 2016-08-26 06:29:34 +02:00
albfan
28252707a2 Install dbus policy
closes #107
2016-08-22 03:08:40 +02:00
Alberto Fanjul
011d7e7fba Merge pull request #110 from foamboarder/master
CMake: use PROGRAMS during install
2016-08-18 18:31:47 +02:00
Tony Y
59ea55c28c CMake: use PROGRAMS during install
During install, PROGRAMS (instead of FILES) will set
execute permissions for all targets.
2016-08-18 09:19:47 -07:00
Alberto Fanjul
c412cdb846 Merge pull request #108 from foamboarder/master
CMake: correctly set file permissions
2016-08-18 12:13:53 +02:00
Alberto Fanjul
866f90f92a Merge pull request #105 from derekdai/master
Add debian support to kill-wpa.sh and find wpa_supplicant throught PATH
2016-08-18 12:09:31 +02:00
Tony Y
b6400aa14a CMake: correctly set file permissions
When building using CMake, the display would not appear
because the files did not have execute permissions.
2016-08-16 17:09:39 -07:00
Alberto Fanjul
3f800251a9 Merge pull request #106 from foamboarder/master
Add uibc-viewer to CMake install list
2016-08-16 23:48:12 +02:00
Tony Y
c7b49c9fbd Add uibc-viewer to CMake install list 2016-08-16 14:05:24 -07:00
Derek Dai
4601514799 find wpa_supplicant through PATH instead of option --wpa-bindir 2016-08-15 17:35:38 +08:00