-
Notifications
You must be signed in to change notification settings - Fork 417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Source side implementation #304
Conversation
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).
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.
…o org.freedesktop.miracle
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.
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.
…lems to ease parsing
Change-Id: Ib8fc055789a1bd0a6df3075b176385407c17a74c
Change-Id: I7460f6173815f054c0dc51accf96a531f6faf4b1
Change-Id: Iafefe39652d9ade06c58e41f091a30df274cb091
Change-Id: Iacf53af83c151c6746f778a97201ed3f7bd55504
Change-Id: I8434fe9dfcf141156635d7a6f8a9c2aaa4469263
Change-Id: Ibfc14aca1c03b8cd6b50a49d5128da8597acb898
Change-Id: I1b7f18a704203fc60a35b67f09936095ae6398f0
Change-Id: Id2f5a8d6bbfbbd205dbe25e8b8bc0ddd289591e5
Change-Id: Ia51167abc10c4c8bc03f58883aca06e05879c6e9
Change-Id: Ic5752cea7b64307c3c2d8dd0a8389d3b18ab3339
Change-Id: Ifa2b1ee85b2abf4cc0d9d7f40c452517cb94761d
Change-Id: I12e647f9b4f13aaa0aedf81907aa251675d2be32
when a session is destroyed due to peer free event, dispd_out_session must detach from sink to it won't cause double free. Change-Id: I71ad7e977fa71ec84f12f5e914786aa24a650f34
…method Change-Id: I1e3994517f492aa7d9996494110077c81acc41b4
Change-Id: I4d72782516ffff487010cd94cc47ec68133ff257
Will review today, thanks for working on this. Btw, there's an initiative under GNOME based on miracast. https://github.com/benzea/gnome-screencast Take a look and join us if you want to see this feature on your laptop |
@albfan Did you ever get a chance to review this PR? (sorry if I'm being a bother here, just been a few days) |
Sorry, didn't get to review it yet. Hope to do soon |
@edurenye finally reviewing this. I set up a Docker container to build miraclecast 3a459e5. Build is passing on master. Nice! I have:
but this PR do not compile for me. does it for you? You can check build output here: https://semaphoreci.com/albfan/miraclecast-2/branches/wip-edurenye-source-side/builds/5 cmake output
Please rebase your PR and grab those CI changes. You can run docker locally with:
|
btw: there's a https://github.com/albfan/miraclecast/tree/derekdai-master-squashed where I squashed all the back and forth in derekdai fork. Maybe rebase that branch would be a better option |
The error is as listed:
In file "src/wifi/wifid-link.c" at line 173 there is no ending "}" for function "link_set_config_methods" |
I compiled with autotools and seemed to finish ok, but it didn't compile the dispctl tool. I then used cmake and the compile failed because the src/disp CMakeList.txt file needs directives for GLIB2 includes and libs. |
Its hard to tell which particular branch you continue to reference as it doesn't show up in the branch listing since its not named. It's also is difficult to tell which branch is the most up to date. So please make this repository make sense. Are you referring to the "docker" branch or "56f9d44b19"? Please update the readme file for your prefered branch with updated instructions for the operational use of the software--the use of dispctl in the "documentation" section. |
I suppose you mean the "derekdai-master-squashed" branch which shows up as "stale". If this is the branch, please update the readme there. |
Update README? |
Yes, the README.md file. In this or the derickdai-master-squashed branch (I've switched). The "Documentation" section lists steps for sink and peer, but these branches used the miraclecast-dispd and miraclecast-wifid services to automate switching NetworkManager with dbus. Also, miracle-dispctl (and miracle-wifictl) need updated documentation there. |
There're lot of noise in @derekdai PR. I just squashed to avoid rebase things like enable audio, disable audio which happens in that fork, but in the end I need to patch it, so I just want to notice that. It is supposed implementation should keep reviews and rework there in #172, but it stops to get progress so I guess we are not in a step where we can update docs about how it should work. The whole idea is to enable Wifi Direct (through a dbus setting that could be trigger in gnome-control-center at some point) so you save battery when not using miracast, and then enable miracast where a service like miracle-dispd manages everything. I'm collapsing this days comments with long output with @AtesComp you can always suggest a PR on top of As said, I will close this PR, it doesn't even compile so just confuse people looking for source implementation |
Rebased the pull #172 , just trying to speed up issue #4