[solve] how to get the psz_uri or the URL in hotkeys.c

This forum is about all development around libVLC.
wssoh85
Blank Cone
Blank Cone
Posts: 20
Joined: 20 Dec 2008 10:52

[solve] how to get the psz_uri or the URL in hotkeys.c

Postby wssoh85 » 26 Dec 2008 17:49

Hi, I'm using the vlc-0.8.6f. I want to modify the program so that I able to display the URL of the stream or the parameter of psz_uri when one of the hotkey was pressed. So, I try to add some code in the file vlc-0.8.6f/modules/control/hotkeys.c.

But I dunno how to get the URL of current stream media in the hotkeys.c file. Can anyone please tell me how to obtain that or give me an direction on how to do it? Due the argument pass to the method of "static void Run(intf_thread_t *p_intf) is intf_thread_t, I dunno how to related that to obtain the URL of stream media.

Any help is very kind.
Last edited by wssoh85 on 27 Dec 2008 07:14, edited 1 time in total.

wssoh85
Blank Cone
Blank Cone
Posts: 20
Joined: 20 Dec 2008 10:52

Re: how to get the psz_uri or the URL in hotkeys.c

Postby wssoh85 » 27 Dec 2008 07:08

I found out the way to obtain the URL :

p_input->input.p_item->psz_uri;


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 8 guests