Git Product home page Git Product logo

swiftupnp's People

Contributors

katoemba avatar melchior-voidwolf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

swiftupnp's Issues

Scope of this library?

Hi,

I am a bit confused on the scope of this library. It's called "SwiftUPnP", but it seems that the focus is on OpenHome devices + UPnP servers.

It seems that the conventional UPnP MediaRenderer device is not supported.

Is that intentionally the scope of this library or WIP?

Can not find device

I just try your example code but no device came up. It come with this error "nw_connection_copy_connected_remote_endpoint_block_invoke [C3] Client called nw_connection_copy_connected_remote_endpoint on unconnected nw_connection". Can you fix this?

Extremely slow discovery

Hi,

Thanks for sharing this library.
I found that discovery is extremely slow. In my testing, it takes several minutes for the first device to be discovered.

Discovery in UPnP Atom was also not fast, but still much faster than this.
Would be nice if it could be fixed in the future :)

Fatal error: Unexpectedly found nil while unwrapping an Optional value

Hi,

i tested this library with the official OpenHome demo player for Mac.

There is a problem with the "typedService()" function, as it doesn't process the "urn:av-openhome-org:service:Config:1" service type.

This results in this item being processed by the "default" of the switch statement, which will fail because this service seemingly doesn't have an eventUrl.

    default:
        return UPnPService(device: device,
                           controlUrl: URL(string: deviceService.controlURL, relativeTo: baseURL)!,
                           scpdUrl: URL(string: deviceService.SCPDURL, relativeTo: baseURL)!,
                --->> eventUrl: URL(string: deviceService.eventSubURL, relativeTo: baseURL)!, <<---
                           serviceType: deviceService.serviceType,
                           serviceId: deviceService.serviceId,
                           eventPublisher: eventPublisher,
                           eventCallbackUrl: eventCallbackUrl)

Custom UPnPRegistry types usage

I need to use custom types for UPnPRegistry such as urn:av-openhome-org:service:Transport:1, but your UPnPRegistry implementation does not allow this. Can you implement setting custom types for the UPnP Registry class or make init public?

doesn't work on iOS

Thank you so much for your selfless dedication to this library!

My code works fine in the simulator, but not on the real machine, maybe I need to add permissions to the Plist file.

I tried to add the following code

NSLocalNetworkUsageDescription</key
In order to discover media servers we will need access to your local network. This is also needed to find Chromecast devices.
com.apple.developer.networking.multicast

</dict

Works fine on Mac, doesn't work on iOS

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.