Code Monkey home page Code Monkey logo

Comments (6)

WormsCH avatar WormsCH commented on July 23, 2024

Hi, I can't find the render with my samsung stock player. I looked into the file upnp_transport.c and found that:

static int get_device_caps(struct action_event *event)
{
if (obtain_instanceid(event, NULL) < 0) {
return -1;
}
// TODO: implement ?
return 0;
}

static int get_transport_settings(struct action_event *event)
{
if (obtain_instanceid(event, NULL) < 0) {
return -1;
}
// TODO: what variables to add ?
return 0;
}

so, returning an empty value should solve the issue ?

from gmrender-resurrect.

hzeller avatar hzeller commented on July 23, 2024

@caxton , what was the control point you were using, that required the device capabilities ? This way I can have something to play with.

Usually, these calls are never used in all the control points I have seen, so this is why they are not implemented.

from gmrender-resurrect.

caxton avatar caxton commented on July 23, 2024

@hzeller I use "AwoX mediaCTRL" on android device, and that was what they feedback to me renderer should return valid GetDeviceCapabilities and GetTransportSettings based on DLNA spec.

from gmrender-resurrect.

mimepp avatar mimepp commented on July 23, 2024

Yes, I confirm this is a issue too.
For a video APP: PPTV, after add following, it could play video, otherwise, device could be found, but it will not set uri to DMR.

static int get_device_caps(struct action_event *event)
......
// TODO: implement ?

  •   upnp_append_variable(event, TRANSPORT_VAR_PLAY_MEDIA, "PlayMedia");
    
  •   upnp_append_variable(event, TRANSPORT_VAR_REC_MEDIUM, "RecMedia");
    
  •   upnp_append_variable(event, TRANSPORT_VAR_POS_REC_QUAL_MODE, "RecQualityModes");
    

BTW, I do not add code to GetTransportSettings.

from gmrender-resurrect.

WormsCH avatar WormsCH commented on July 23, 2024

I added these lines but the render is still not listed on the galaxy note 3 player :(

from gmrender-resurrect.

mimepp avatar mimepp commented on July 23, 2024

Maybe different APP has different checking of services.
Above lines work for APP PPTV, but it does not work for another APP: sohu.
Maybe gmediarender needs to run DLNA CTT test (DMR) to check what's still missing.

from gmrender-resurrect.

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.