1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00
Commit graph

309 commits

Author SHA1 Message Date
Derek Dai
2fc7a11014 add -fstack-protector-strong to capture more stack issues 2018-11-07 00:48:06 +01:00
Derek Dai
14bb371d34 miracle-wfdctl: refactoring to remove repeated snippets and centralize the
dispatching of request and reply
2018-11-07 00:48:06 +01:00
Derek Dai
739b44e138 miracle-wfdctl-demo: add an optional argument to specify link index of
NetworkManager
2018-11-07 00:48:06 +01:00
Derek Dai
98ab9ca752 add debian support prepared by Guo Shuang 2018-11-07 00:48:06 +01:00
Derek Dai
a0607fca95 miracle-wfdctl: now we can establish WFD session multiple times
in this revision, the source side RTSP protocol is not implemented
completely, the focus is on stability, DBus interfaces.
2018-11-07 00:48:06 +01:00
Derek Dai
69d613b52c ignore .vimrc from being managed by git 2018-11-07 00:48:06 +01:00
Derek Dai
6ebd9cbc12 miracle-wfdctl-demo: cleanup before exit 2018-11-07 00:47:22 +01:00
Derek Dai
078451e532 miracle-*ctl: update links and peers when wifid up or down 2018-11-07 00:47:22 +01:00
Derek Dai
a8e9e5fbfc miracle-wfdctl-demo: wait for property chainging and object apperance by
busctl instead of sleep
2018-11-07 00:47:22 +01:00
Derek Dai
f0ba87dbe3 miracle-wfdctl: first revision which can create TCP connection of WFD session between peers, controled through DBus
In this revision, the procedure of session negotiation is not yet
completed but only TCP connection can be established between peers.

You can try it by run script `res/miracle-wfdctl-demo` to see how it
work.
2018-11-07 00:47:22 +01:00
Derek Dai
94561157fb miracle-srcctl: rename ctl_src to wfd_src 2018-11-07 00:46:16 +01:00
Derek Dai
891db5ded2 remove vim settings from files 2018-11-07 00:46:16 +01:00
Derek Dai
662741c868 miracle-*ctl: rename resolution_bitmap to wfd_resolution and add progressive field 2018-11-07 00:45:52 +01:00
Derek Dai
e365ac30f6 miracle-*ctl: remove N_ELEMENTS() and use SHL_ARRAY_LENGTH() instead 2018-11-07 00:44:56 +01:00
Derek Dai
fbc0c7faf3 miracle-wifid: let the format of wfd_dev_info compliant with wfd_subelems to ease parsing 2018-11-07 00:42:36 +01:00
Derek Dai
0bcd71400e miracle-*ctl: fix label leak 2018-11-07 00:42:36 +01:00
Derek Dai
a5ec2549bb 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.
2018-11-07 00:42:36 +01:00
Derek Dai
c28ec61edc miracle-*ctl: remove some debugging log messages 2018-11-07 00:42:36 +01:00
Derek Dai
abde66f398 miracle-wfdctl: init commit 2018-11-07 00:42:36 +01:00
Derek Dai
54d393506c miracle-wifid: add MACAddress property to link 2018-11-07 00:41:44 +01:00
Derek Dai
e8ec28e96d miracle-srcctl: fix some warming 2018-11-07 00:40:45 +01:00
Derek Dai
a0ad831055 miracle-wifid: remove duplicated link & peer dbus nodes by checking prefix 2018-11-07 00:40:45 +01:00
Derek Dai
ab9243f38e miracle-wifid: add dbus & systemd service files to support dbus activation 2018-11-07 00:40:45 +01:00
Xu Fasheng
6ab22f2af5 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.
2018-11-07 00:40:45 +01:00
Derek Dai
f702a2394a miracle-srcctl: fix memory management issues 2018-11-07 00:30:30 +01:00
Derek Dai
191eb4dbe9 stop sender properly after session end 2018-11-07 00:30:30 +01:00
Derek Dai
56407bf32e encode video with x264enc temperarily to prevent decoding issue on dongle 2018-11-07 00:30:30 +01:00
Derek Dai
8f42ef4cbe rename dbus name back to org.freedesktop.miracle.Sender and variety kinds of tunning 2018-11-07 00:30:30 +01:00
Derek Dai
d314b90b01 miracle-wifid: fix call waitid() with NULL pointer issue reported by valgrind 2018-11-07 00:30:30 +01:00
Derek Dai
6fdaa07603 gstplayer: set sync=false to reduce latency 2018-11-07 00:30:30 +01:00
Derek Dai
1c961a73b5 miracle-sender: change bus name from org.freedesktop.miracle.Sender to org.freedesktop.miracle 2018-11-07 00:30:30 +01:00
Derek Dai
35f6002f20 stability: increase gcc warning level 2018-11-07 00:30:30 +01:00
Derek Dai
75a930b828 miracle-wifid: fix some leaks of wpas_message 2018-11-07 00:30:30 +01:00
Derek Dai
b093e9eacb source implement + sender talk via dbus 2018-11-07 00:30:30 +01:00
Derek Dai
894d821f93 stop sender when peer freed 2018-11-07 00:23:38 +01:00
Derek Dai
2186bb1b77 integrate miracle-sender with miracast-srcctl 2018-11-07 00:23:38 +01:00
Derek Dai
93daa99698 initial sender implementation 2018-11-07 00:23:38 +01:00
Derek Dai
c59f6e0879 add option [-f|--full-screen] to switch to full screen mode at start up 2018-11-07 00:23:38 +01:00
Derek Dai
41f6e50396 init source side implementation 2018-11-07 00:20:59 +01:00
Derek Dai
821b02bf10 match resolution from high to low 2018-11-07 00:20:59 +01:00
Derek Dai
4e8fd3675d calculate array size of resolutions at build time instead of tailing null element 2018-11-07 00:20:59 +01:00
Derek Dai
a08aea08a9 init copy & modify 2018-11-07 00:13:13 +01:00
Derek Dai
877ce155f5 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.
2018-11-07 00:13:12 +01:00
Derek Dai
cf23cf96b3 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).
2018-11-07 00:13:12 +01:00
Alberto Fanjul
c3c868e523 refactor to fix clang AST parsing 2018-10-06 15:25:39 +02:00
albfan
8151bb8cbd whitespace 2018-09-30 12:41:40 +02:00
Alberto Fanjul
4e67272f2f Avoid log errors
Do not output error settings null values or configuring unmanaged links
2018-09-22 08:51:54 +02:00
Xu Fasheng
8b76e3c212 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 coexists with other network tools like
networkmanager.

For example, unmanage 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-sinkctl.

closes #135, #75
2018-09-21 13:41:16 +02:00
Alberto Fanjul
ec7e11c8bf bash completion with lazy load 2018-09-21 13:41:16 +02:00
Alberto Fanjul
5bfc97a72c Customizable config_methods 2018-09-21 13:41:16 +02:00