Go to file
wangdi1 9a915fd16a 按照文档创建打包分支 2022-07-21 16:02:16 +08:00
.semaphore Import Upstream version 1.12.7 2022-07-20 17:35:10 +08:00
cmake Import Upstream version 1.12.7 2022-07-20 17:35:10 +08:00
debian 按照文档创建打包分支 2022-07-21 16:02:16 +08:00
gstplayer-1.0 Import Upstream version 1.12.7 2022-07-20 17:35:10 +08:00
m4 Import Upstream version 1.12.7 2022-07-20 17:35:10 +08:00
plugin Import Upstream version 1.12.7 2022-07-20 17:35:10 +08:00
res 尝试解决 openkylin 编译平台上,几个自动补齐脚本安装的问题 2022-07-21 09:21:36 +08:00
src Import Upstream version 1.12.7 2022-07-20 17:35:10 +08:00
test Import Upstream version 1.12.7 2022-07-20 17:35:10 +08:00
.gitignore Import Upstream version 1.12.7 2022-07-20 17:35:10 +08:00
.travis.yml Import Upstream version 1.12.7 2022-07-20 17:35:10 +08:00
CMakeLists.txt Import Upstream version 1.12.7 2022-07-20 17:35:10 +08:00
COPYING Import Upstream version 1.12.7 2022-07-20 17:35:10 +08:00
LICENSE_gdhcp Import Upstream version 1.12.7 2022-07-20 17:35:10 +08:00
LICENSE_htable Import Upstream version 1.12.7 2022-07-20 17:35:10 +08:00
LICENSE_lgpl Import Upstream version 1.12.7 2022-07-20 17:35:10 +08:00
Makefile.am Import Upstream version 1.12.7 2022-07-20 17:35:10 +08:00
NEWS Import Upstream version 1.12.7 2022-07-20 17:35:10 +08:00
README.md Import Upstream version 1.12.7 2022-07-20 17:35:10 +08:00
autogen.sh Import Upstream version 1.12.7 2022-07-20 17:35:10 +08:00
autotools.Dockerfile Import Upstream version 1.12.7 2022-07-20 17:35:10 +08:00
cmake.Dockerfile Import Upstream version 1.12.7 2022-07-20 17:35:10 +08:00
common.am Import Upstream version 1.12.7 2022-07-20 17:35:10 +08:00
config.h.cmake Import Upstream version 1.12.7 2022-07-20 17:35:10 +08:00
configure.ac Import Upstream version 1.12.7 2022-07-20 17:35:10 +08:00
meson.Dockerfile Import Upstream version 1.12.7 2022-07-20 17:35:10 +08:00
meson.build Import Upstream version 1.12.7 2022-07-20 17:35:10 +08:00
meson_options.txt Import Upstream version 1.12.7 2022-07-20 17:35:10 +08:00
test.supp Import Upstream version 1.12.7 2022-07-20 17:35:10 +08:00

README.md

MiracleCast - Wifi-Display/Miracast Implementation

Join the chat at https://gitter.im/albfan/miraclecast Semaphore CI Build Status Travis CI Build Status Coverage Status

The MiracleCast project provides software to connect external monitors to your system via Wi-Fi. It is compatible to the Wifi-Display specification also known as Miracast. MiracleCast implements the Display-Source as well as Display-Sink side.

The Display-Source side allows you to connect external displays to your system and stream local content to the device. A lot of effort is put into making this as easy as connecting external displays via HDMI.

On the other hand, the Display-Sink side allows you to create wifi-capable external displays yourself. You can use it on your embedded devices or even on full desktops to allow other systems to use your device as external display.

Requirements

The MiracleCast projects requires the following software to be installed:

  • systemd: A system management daemon. It is used for device-management (udev), dbus management (sd-bus) and service management. Systemd >= 221 will work out of the box. For earlier versions systemd must be compiled with --enable-kdbus, even though kdbus isn't used, but only the independent, experimental sd-libraries. required: >=systemd-213

  • glib: A utility library. Used by the current DHCP implementation. Will be removed once sd-dns gains DHCP-server capabilities. required: ~=glib2-2.38 (might work with older releases, untested..)

  • check: Test-suite for C programs. Used for optional tests of the MiracleCast code base. optional: ~=check-0.9.11 (might work with older releases, untested..)

  • gstreamer: MiracleCast rely on gstreamer to show cast its output. You can test if all needed is installed launching res/test-viewer.sh

  • P2P Wi-Fi device Although widespread these days, there are some devices not compatible with Wi-Fi Direct (prior know as Wi-Fi P2P). Test yours with res/test-hardware-capabilities.sh

  • copy the dbus policy res/org.freedesktop.miracle.conf to /etc/dbus-1/system.d/

Build and install

To compile MiracleCast, you can choose from:

See more info on wiki Building

Automatic interface selection with udev

If you want to select the interface to start miraclecast with, add a udev rule with the script res/write-udev-rule.sh and configure miraclecast with

$ ../configure --enable-rely-udev

You can also choose the interface with --interface option for miracle-wifid.

Linux Flavours and general compilation instructions

Ubuntu

Check your systemd version with:

$ systemctl --version

If you are on 221 or above your systemd has kdbus enabled.

If you are below 221, an alternative repo was created to install systemd with dbus

https://github.com/albfan/systemd-ubuntu-with-dbus

See there was interface changes on systemd 219, if you are below that version, use branch systemd-219 to compile miraclecast

See specific instructions on that repo

Arch linux

Use existing AUR package. Remember to enable kdus to systemd-git dependency if you are below 221 systemd.

$ export _systemd_git_kdbus=--enable-kdbus

You can achieve installation using yaourt

Other flavours

If you feel confidence enough (since systemd is the entrypoint for an OS) extract instructions from arch linux AUR PKGBUILD:

Documentation

Steps to use it as sink

  1. shutdown wpa_supplicant and NetworkManager

    $ systemctl stop NetworkManager.service
    $ systemctl stop wpa_supplicant.service 
    
  2. launch wifi daemon

    $ sudo miracle-wifid &
    
  3. launch sink control (your network card will be detected. here 3)

    $ sudo miracle-sinkctl
    [ADD]  Link: 3
    
  4. run WiFi Display on link:

    > run 3
    
  5. Pair your machine with other miracast device (mirroring)

  6. See your screen device on this machine

Steps to use it as peer

  1. Repeat steps 1 and 2 from "use as sink"

  2. launch wifi control

    $ sudo miracle-wifictl
    
  3. Enable visibility for other devices

  4. Locate them using scanning

    > p2p-scan
    
  5. Apart from list, or show info with peer <mac> there's nothing useful here by now. For a Q&D see Using as peer

UIBC

The User Input Back Channel (UIBC) is an optional WFD feature that when implemented facilitates communication of user inputs to a User Interface, present at the WFD Sink, to the WFD Source.

To use it just add --uibc on miracle-sinkctl startup. Single mouse events and key events are implemented.

Autocompletion

Source res/miraclecast-completion for autocompletion

License

This software is licensed under the terms of the GNU-LGPL license. Please see ./COPYING for further information.

Credits

This software is originally maintained by: David Herrmann dh.herrmann@gmail.com

This fork is maintained by: Alberto Fanjul albertofanjul@gmail.com

If you have any questions, do not hesitate to contact one of the maintainers.

Additional urls