Code Monkey home page Code Monkey logo

Comments (3)

squarefrog avatar squarefrog commented on August 15, 2024

I'm not sure I understand your question. If you want to learn more about how to use UPnP, the documentation is a good place to start.

How you create a queue is up to you. Typically you retain an array of UPPMediaItem objects.

from cocoaupnp.

vishnunltr avatar vishnunltr commented on August 15, 2024

@squarefrog
Thanks for reply. But i need to save the selected items in device like render device and fetch items from render device. If i save selected items in array locally it shows selected items and selected item is playing correctly but controls like next and previous commands not working.Plz check below code for next and previous commands . I Do not want to save locally need to fetch from connected device .Is there any way to save and get the saved the items in render device.Help me!

for playing selected track:
[self.playbackManager playItem:item];

@next item:
UPPAVTransportService *avTransport = [self.renderer avTransportService];
[avTransport nextWithInstanceID:@"0" success:^(BOOL success, NSError *error) {
if (!success) {
NSLog(@"%s: Error sending next command: %@", PRETTY_FUNCTION, error);
}
}];
@previous item :
UPPAVTransportService *avTransport = [self.renderer avTransportService];
[avTransport previousWithInstanceID:@"0" success:^(BOOL success, NSError *error) {
if (!success) {
NSLog(@"%s: Error sending previous command: %@", PRETTY_FUNCTION, error);
}
}];

from cocoaupnp.

squarefrog avatar squarefrog commented on August 15, 2024

It is up to you to handle next/previous logic. Very very few renderers support playlists. What I do is have an array of items, then when a user presses next, or previous, then handle that in the app by setting the new transport URI.

from cocoaupnp.

Related Issues (20)

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.