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

This forum is about all development around libVLC.
holacarson
New Cone
New Cone
Posts: 2
Joined: 12 Mar 2010 00:58

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

Postby holacarson » 12 Mar 2010 01:49

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15309
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 13 Mar 2010 09:35

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
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

holacarson
New Cone
New Cone
Posts: 2
Joined: 12 Mar 2010 00:58

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

Postby holacarson » 14 Mar 2010 00:23

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
----------------------------------------------------------------------------------------------------------


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 12 guests