1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-02-12 19:51:54 +00:00
Commit graph

247 commits

Author SHA1 Message Date
albfan
76b773c491 consider all files obsolete always 2015-04-11 23:25:26 +02:00
albfan
8484a126be fix cmake compilation
closes #7
2015-04-11 23:11:52 +02:00
albfan
8b61f733da avoid miracle filter on wifi devices 2015-03-30 13:41:30 +02:00
albfan
640f731d44 Merge branch 'agusakov' 2015-03-30 13:40:52 +02:00
Andrey Gusakov
2fac0f0ea9 Notice sinkctl if pending peer fails to connect/disconnects
Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
2015-03-30 12:06:38 +02:00
Andrey Gusakov
1a86754573 Show timeout error
Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
2015-03-30 12:06:38 +02:00
Andrey Gusakov
cafa336f5e miracle-gst.sh pass -r argument (output video resolution)
Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
2015-03-30 12:06:38 +02:00
Andrey Gusakov
c1b476146c RTSP: reply with only requested parameters
Some peers (like Nexus 5 and Nexus 7) send empty GET_PARAMETER
request during streaming. Seems it just some kind of ping. Do not
include unnecessary information in reply.

Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
2015-03-30 12:06:38 +02:00
Andrey Gusakov
62460a9e89 RTSP: parse SET_PARAMETER resolution
Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
2015-03-30 12:06:38 +02:00
Andrey Gusakov
ca07b34f3b RTSP: support reading hex and skiping
Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
2015-03-30 12:06:38 +02:00
Andrey Gusakov
c6334a7509 Allow to set resolution mask from command line
Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
2015-03-30 12:06:38 +02:00
Andrey Gusakov
9be88e46bf Add WFD defines and helpers
Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
2015-03-30 12:06:38 +02:00
Andrey Gusakov
0d54cd4e0b Separate go_neg_request and provision_discovery
Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
2015-03-30 12:06:38 +02:00
Andrey Gusakov
563a415a24 Accept connection only on p2p_go_neg_request
Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
2015-03-30 12:06:38 +02:00
Andrey Gusakov
5aa1772240 Add P2P-GO-NEG-REQUEST handler
Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
2015-03-30 12:06:38 +02:00
Andrey Gusakov
6de9b112d8 Lease IP on REQUEST if address is free
Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
2015-03-30 12:06:38 +02:00
Andrey Gusakov
7d936b3cdf Do not fail if host name cannot be read over DBUS
Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
2015-03-30 12:06:38 +02:00
Andrey Gusakov
026e7ea095 Set Miracle as device name if no frindly_name set
Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
2015-03-30 12:06:38 +02:00
Andrey Gusakov
4d9cd01606 Do not use udev tags
Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
2015-03-30 12:06:37 +02:00
Andrey Gusakov
16d90afcd2 Remove unnecessary close body and close head
Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
2015-03-30 12:06:37 +02:00
Andrey Gusakov
066eca8638 RTSP: close message header and body on fail
Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
2015-03-30 12:06:37 +02:00
albfan
b40d416c2e specific linux flavours install steps 2015-03-29 23:27:51 +02:00
Alberto Fanjul
24369a54ff Merge pull request #13 from thopiekar/various-fixes
typing error "defualt" -> "default"
2015-03-22 18:51:28 +01:00
Thomas-Karl Pietrowski
026869dd08 typing error "defualt" -> "default" 2015-03-22 16:39:48 +00:00
Alberto Fanjul
490e809483 Merge pull request #11 from thopiekar/cmake-patches
Downgrading required CMake VERSION to 3.0

This is related with #7. it's okay to downgrade (not specific version is needed) but cmake was not working anyway.
2015-03-22 11:28:13 +01:00
albfan
cda6da3144 Allow virtual path on cmake
Remove fixed paths on CMake whom broke virtual path compilation

Relates to #7 but still not resolve it.
2015-03-22 11:25:19 +01:00
Thomas-Karl Pietrowski
c23b6df8a4 Downgrading required CMake VERSION to 3.0 2015-03-21 09:49:26 +00:00
albfan
2e933497ff cmake configuration 2015-03-13 07:54:19 +01:00
albfan
f884dd858c split monolithic Makefile.am to follow autotools standards 2015-03-08 22:16:57 +01:00
albfan
1b1751043b there's no releases url 2015-03-06 00:01:41 +01:00
albfan
bbb21f96cf better first step guide 2015-03-05 23:58:10 +01:00
albfan
028bfc3e34 Local helpers
helpers to start/stop wpa_supplicant
2015-03-05 23:34:07 +01:00
albfan
4cc81e1261 quickstart 2015-01-27 06:50:07 +01:00
albfan
740a9de080 fix view tester 2015-01-23 04:50:06 +01:00
albfan
091080b3a7 add gstreamer prerequisites 2014-11-21 22:14:39 +01:00
Alberto Fanjul
279cc7d73a tester for gstreamer viewer
miraclecast depends on gstreamer an a bunch of its plugins to show
screen mirrored. This script provides a test to confirm everything
needed is installed, and suggest another way to show streamed
source if its needed plugins are not available.
2014-09-09 12:16:12 +02:00
Alberto Fanjul
7aa483ba75 render README in markdown 2014-09-09 12:16:12 +02:00
Alberto Fanjul
12dbe6e335 avoid miracle filter on wifi devices 2014-09-09 12:16:12 +02:00
Alberto Fanjul
931cbea770 include stdio.h 2014-09-09 12:16:12 +02:00
Andrey Gusakov
5fc9133a60 sink: fix session ID extraction
Devices sometimes report sessions followed by ";timeout=..". Cut this off.

Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
2014-09-03 08:44:40 +02:00
Andrey Gusakov
06d7dce2ec wifi: report formation failture if pending peer is lost
Properly notify API users if we free peers that are pending. This way,
they don't have to use timers to restart peer discovery on wpa_supplicant
failures.

Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
2014-09-03 08:42:16 +02:00
Andrey Gusakov
204fa269e3 wifi: do not start new connections if one is already pending
If there is already a connection pending, don't start a new one.
Unfortunately, wpa_supplicant is unable to deal with this so we have to
enforce this.. Yuck!

We also reset the pending state during P2P_FIND now, this enables API
users to reset failed connections that wpa_supplicant was unable to close
(yeah, beacuse it's so hard to write proper APIs.. *sigh*).

Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
2014-09-03 08:39:08 +02:00
Andrey Gusakov
e79f08dd25 wifi: p2p_connect does not need display parameter
No need to add 'display' to p2p_connect commands. Drop it for future
compatibility.

Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
2014-09-03 08:34:14 +02:00
Andrey Gusakov
e81f5e2833 sink: use RTSP_CODE_OK
Avoid magic numbers when creating rtsp responses, use RTSP_CODE_*
constants instead.

Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
2014-09-03 08:11:53 +02:00
Andrey Gusakov
67ad486765 wifi: check device_name and name in supplicant_parse_peer()
P2P-PEER reports the device name as 'device_name' while P2P-DEVICE-FOUND
reports it as 'name'. Try both.

Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
2014-09-03 08:11:13 +02:00
Andrey Gusakov
dbf3972619 sink: add arguments to enable/disable audio and scaling
Forward the --audio and --scale arguments to our gst-spawn helper and
parse them via bash for now.

Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
2014-09-03 08:11:13 +02:00
Andrey Gusakov
e7aa531dca sink: move GST pipeline construction to bash script
The sinkctl tool is currently a hack to make Miracast sinks work. The
embedded gst-launch invocation is kinda ugly to handle. Move it into a
bash-script so we can experiment a bit more with different pipelines.
Ultimatively, the goal is obviously to make this work as its own gst
element.

Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
2014-09-03 08:11:03 +02:00
Andrey Gusakov
5fabb386b8 build: drop /usr/local from include path
We now use the pkg-config snippet of libsystemd, so no need to add
host-local include paths, anymore.

Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
2014-09-03 07:55:42 +02:00
Andrey Gusakov
76b736aca3 build: fix required package to libsystemd
We require libsystemd, not libsystemd-daemon. Fix the pkg-config test and
also adjust the version.

Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
2014-09-03 07:54:24 +02:00
David Herrmann
b7d04aa20d sink: exit header/body in case rtsp_message_readv() fails
rtsp_message_readv() is a convenience function. If one of the values to be
read fails, it does not restore the previous situation. Therefore, handle
that in sinkctl in case we cannot read a value.

Reported-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
2014-08-15 15:53:25 +02:00