Coder Social home page Coder Social logo

simpleupnplibrary's Introduction

SimpleUpnpLibrary

A simplified UPnP library which allows you to stream and control media on UPnP/DLNA devices. Uses cling, which can be found at http://4thline.org/projects/cling/

How to use this library?

  1. Include the SimpleUpnp.jar file in your project and create a UpnpServiceProvider object.
  2. Call the startDiscovery() method to begin monitoring for Devices in your network. Allow the discovery procedure to run for a couple of seconds.
  3. Use the getDeviceList() method to obtain a JSON String of the devices detected on the network and their UUIDs
  4. Call the selectDevice(String uuid) method using the UUID of the desired device. The UUID for one particular device will remain the same throughout.
  5. Use the sendStream(String url) method to send a target URI to the device. Alternatively, you can also provide media metadata using sendStream(String url, String title, String artist, String album, String duration);
  6. You can now use the play(), pause(), stop() and seek(String absoluteTime) methods to control the device. For the seek method, time will be in the HH:MM:SS format.
  7. You can invoke the getDetails() method at any point in time after you select the device to get status information for the device. It will return a JSON formatted string.
  8. You can invoke the stopDiscovery() method to stop discovering devices. Should be called during cleanup operations.

To Do

  • Support for automatic metadata extraction.
  • Playlists support. Next and Previous buttons.

simpleupnplibrary's People

Contributors

karthikiyengar avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

simpleupnplibrary's Issues

Failed to run on device

  • java.lang.Error: Unsupported runtime environment, use org.teleal.cling.android.AndroidUpnpServiceConfiguration

Device Information:

  • Nokia G10
  • Android 11

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.