java - Using VLCJ for DVB-T tuner -


in our country there dvb frequency of 570000000 3 channels/programs; 16,17,18

this mrl using change channel vlc via batch file replacing :program value.

"c:\program files (x86)\videolan\vlc\vlc.exe" dvb-t://frequency=570000000:bandwidth=8 :dvb-adapter=0 :live-caching=1000 :program=16 

but when use same mrl via vlcj seems :program not have effect , randomly show channel without changing code.

import uk.co.caprica.vlcj.discovery.nativediscovery; import uk.co.caprica.vlcj.player.mediaplayer; import uk.co.caprica.vlcj.player.mediaplayerfactory;   public class vlcjtest {      public static void main(string[] args) throws exception {         new nativediscovery().discover();          final mediaplayerfactory factory = new mediaplayerfactory();         final mediaplayer mediaplayer = factory.newheadlessmediaplayer();          string str = "dvb-t://frequency=570000000 :bandwidth=8 :dvb-adapter=0 :live-caching=1000 :program=16";          mediaplayer.playmedia(str);          thread.currentthread().join();     } } 

can me solve how change of channel/program of digital tv via vlcj mrl?

thank you.

the string must split mrl , separate "options":

string mrl = "dvb-t://frequency=570000000"; string[] options = {     ":bandwidth=8",     ":dvb-adapter=0",     ":live-caching=1000",     ":program=16" }; mediaplayer.playmedia(mrl, options); 

Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -