Comments (3)
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.
@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.
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)
- Media item title with or without extension HOT 2
- The README.md doesn't say anything about the functionality
- Playlist issue HOT 1
- How to trap LastChange event? HOT 2
- Streaming a video
- How to Broadcasting iPhone's media as the service side HOT 1
- LG Tvs : 714 - Illegal MIME-type HOT 2
- Please add an option to ignore the `NOTIFY` messages on delegate 'discovery:didFindDevice:' HOT 7
- Please add the supported UPnP version(s) to the docu (readme) HOT 1
- Request: please add property "presentationURL" from the Device description to Class UPPBasicDevice
- The value for "USER-AGENT" in the M-SEARCH message does not comply to the UPnP standard. It also contains version issues.
- Does this library support DMR functionality ? HOT 3
- Devices search failed on iOS 14 and deployment target iOS 12 or newer HOT 10
- Is there a way to save urn/url of device and restore it later without rediscovering it? HOT 2
- GCDAsyncUdpSocket sendto error = EINPROGRESS HOT 2
- The bitrate of the song queried through CocoaUPnP is incorrect HOT 1
- UPPMediaRendererDevice HOT 1
- Fetch all songs & metadata from server at once ? HOT 2
- Trying to stream an audio file to a renderer HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cocoaupnp.