Page 1 of 1

How can i open a fixed stream when i press a special hotkey?

Posted: 12 Mar 2010 01:49
by holacarson
Hello everyone, I'm using the latest vlc code. I want to modify the code so that I able to open a fixed URL video stream when one of the hotkey was pressed.
example:
press Crtl+F10, vlc will give it up whatever playing right now and start to play RTP://224.1.1.1:1234 (this is fixed, i want it to be in the code.)
in one instance

So, I try to add some code in the file /modules/control/hotkeys.c. but i really dont know how to call it.

please help, thanks

Re: How can i open a fixed stream when i press a special hot

Posted: 13 Mar 2010 09:35
by RĂ©mi Denis-Courmont
If you want to use hotkeys, you will need to define a new action in include/vlc_keys.h and add an option for it in src/libvlc-module.c

Re: How can i open a fixed stream when i press a special hot

Posted: 14 Mar 2010 00:23
by holacarson
thank you
I did all what you said
but the thing is that how to apply this in vlc code
--------------------------------------------------------------------------
vlc will give it up whatever playing right now and start to play RTP://224.1.1.1:1234 (this is fixed, i want it to be in the code.)
in one instance
----------------------------------------------------------------------------------------------------------