#14 setting OSD text using xdtv_cmd

closed
None
5
2006-06-10
2006-05-14
Anonymous
No

I would like to set text of OSD in order to configure
an incremental recording button in freevo. Each button
press increase recording time by 30min, and total
recording time should be display by OSD in xdtv, using,
for example :

xdtv_cmd setosd "Recording Time : xx Minutes"

Discussion

  • Sir Pingus

    Sir Pingus - 2006-05-16

    Logged In: YES
    user_id=654886

    I don't understand your need.
    You want to send a message with xosd and xdtv_cmd?
    Can you re-explain your need please?

    Pingus

     
  • Sir Pingus

    Sir Pingus - 2006-06-10

    Logged In: YES
    user_id=654886

    to use it:

    xdtv_cmd "setosd my message bla bla bla bla"

    --- src/commands.c 11 Aug 2005 23:25:01 -0000 1.46
    +++ src/commands.c 10 Jun 2006 20:48:28 -0000
    @@ -114,6 +114,7 @@
    "fullscreen", "Toggle fullscreen mode",
    "setres", "Set resource value",
    "showtime", "Display time",
    +"setosd", "Display your own sentence on the screen",
    "title", "recall nxtvepg title info",
    "stayontop", "Stay on Top Yes / No",
    "decoration", "Window Decoration Yes / No",
    @@ -244,6 +245,13 @@
    argc = 0; // Show Time
    ShowtimeAction (NULL, NULL, NULL, &argc);
    }
    + else if (strcmp(tok, "setosd") == 0)
    + {
    + char value[20];
    + argc = get_arg(&tok, &s);
    + sprintf(value,"%s %s",tok,s); // The complete
    sentence is needed here, not only the first work
    + osd(30, 20, value, 6000);
    + }
    else if (strcmp(tok, "title") == 0)
    {
    // no args

     
  • Sir Pingus

    Sir Pingus - 2006-06-10
    • assigned_to: nobody --> pingus77
    • status: open --> closed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks