New SDK functions ? What else do you need? for the next SDK

Module API help / support section for programmers.

Moderators: Dreamer, FredB, X05

User avatar
rel
relocation
Posts: 2051
Joined: Fri Jun 16, 2006 9:50 am

New SDK functions ? What else do you need? for the next SDK

Postby rel » Mon Nov 05, 2007 5:57 am

This forum thread has been created to help module programmers for their needs on the API.


Please write the things that you think ModuleSDK must have in next version.

e.g. "it must be possible to set aspect ratio from the ModuleAPI" :)

DVB Dream - because I have to dream about having time to code it
User avatar
FredB
love DVB Dream!
Posts: 315
Joined: Fri Jun 16, 2006 1:19 pm
Location: France
Contact:

Postby FredB » Tue Nov 06, 2007 2:49 pm

Simoh's wish : Add KEY_PRESSED and KEY_RELEASED events to DDEVENT_ON_KEYBOARD (and perhaps also to DDEVENT_ON_REMOTE)
Forum PCTVSat : http://pctvsat.free.fr
-----------------------------------------------------------------------
Pinnacle PCTV Sat + Terratec Cinergy 1200 DVB-S / Athlon 64 3500+ - 2048 Mb DDR - GeForce 7900 GS
Twinhan Vision Plus 1030A + Asus Europa II Hybrid / PIV D920 2x2.8 Ghz - 2048 Mb DDR2 - GeForce 7600 GS
PCTV Sat Pro PCI (PCTV 450i) + DVICO Fusion HDTV USB / Athlon XP 3200+ - 1024 Mb DDR - GeForce 6600GT
-----------------------------------------------------------------------
Collective installation with 2 LNB Quad and multiswitches DiseqC - LNB A = Astra 19.2°E - LNB B = Hotbird 13.0°E - Commutation = 13V/18V/22K + DiseqC 2.0
appiem
Just popping in
Posts: 3
Joined: Thu Jun 21, 2007 5:24 am

Postby appiem » Wed Nov 07, 2007 5:01 pm

Empty...
Last edited by appiem on Fri Feb 29, 2008 3:07 am, edited 2 times in total.
Technotrend 1500-C
chattana
Just can't stay away
Posts: 43
Joined: Sun Nov 04, 2007 3:49 pm

Postby chattana » Sun Nov 25, 2007 3:58 pm

Any function/API that could help to write channel list and EGP effectively. My goal is to write those as the plug in, look STB alike.
Twinhand 1027
XP
AMD X2 5600
Geforce 8600
Cruonit
Just popping in
Posts: 3
Joined: Sun Feb 10, 2008 3:25 pm

Postby Cruonit » Sun Feb 10, 2008 3:38 pm

hmm.. i think the MFC has problems(a conflict) with the name OnClose when including afxwin.h (and OnShow)

i fixed it by using (adding before the void):

extern "C" __declspec(dllexport)

example:

extern "C" __declspec(dllexport)
int __stdcall OnClose ()
{
return FALSE;
}


after that it works. I just changed the dll export from C++ (xchaninfo.def) to C style:

Error 7 error LNK2001: unresolved external symbol OnShow d:\Projekti\dreamViewerServer\xchaninfo.def 1
Error 8 fatal error LNK1120: 1 unresolved externals .\Debug/xchaninfo_cpp.lib



another tip if you wanna include afxwin.h (instand of windows.h) to the example application you need to add:
/FORCE:MULTIPLE to the linker command line:

http://pokit.etf.ba/upload/?pokitf32094 ... dddfc6.png
SS2 / TechS
Cruonit
Just popping in
Posts: 3
Joined: Sun Feb 10, 2008 3:25 pm

Postby Cruonit » Mon Feb 11, 2008 12:50 pm

could you make an API to change the UDP TP client IP address ?

http://pokit.etf.ba/upload/?pokitca4603 ... 9b687b.png

it would be usefull for remote control
SS2 / TechS
User avatar
ScanMan
love DVB Dream!
Posts: 191
Joined: Fri Sep 08, 2006 4:52 am
Location: 49565 Germany

Change audio channels

Postby ScanMan » Fri Apr 11, 2008 4:46 am

Is there an API - function to change between available audio pids ?
... couldnt find anything. Would be very helpfull.

Can someone (rel ?!) please explain then meaning of dwFlags in the TAudioInfo - record ?
.
Visit the german DD-Forum: www.dvbdream.de
_________________________________________
90cm Dish on Rotor STAB HH 120 / Uni-LNB + 90cm Dish / Dual-Quad-LNB to 9/8 MultiSwitch for 23.5°E/19.2°E --- SkyStar 2, SkyStar USB-Box plus, TwinHan 1041 S2, Technotrend S-3200 S2, DVBWorld S2, Terratec Cinergy T USB XE --- a few PCs with AMD-CPU/ASUS-Boards from Athlon-2400+ to 64 X2 5600+, 1-2GB RAM, totally up to 2 TB HardDisk, nVidia Graphics. All using XP-Professional - everytime up2date
User avatar
rel
relocation
Posts: 2051
Joined: Fri Jun 16, 2006 9:50 am

Postby rel » Sun May 11, 2008 12:55 am

Is there an API - function to change between available audio pids ?
... couldnt find anything. Would be very helpfull.

Can someone (rel ?!) please explain then meaning of dwFlags in the TAudioInfo - record ?
DDMODAPI_SET_AUDIO_PID added (will be available in next version) the parameter to this function is an Integer (PID)

The first byte in dwFlags is the type of audio pid (MPEG1/MPEG2/AC3) AUDIO_xxxx definitations in ModuleAPI headers.
Remaining 3 bytes is language-code (3 letters, for ex. ENG=English DEU=German etc)


hmm.. i think the MFC has problems(a conflict) with the name OnClose when including afxwin.h (and OnShow)
it is possible to use OnModuleClose() instead of OnClose() as export name (v1.4i and above)


could you make an API to change the UDP TP client IP address ?
explain please? where and how would you use such an API function?
DVB Dream - because I have to dream about having time to code it
mfury957
Posts: 1
Joined: Fri Jul 18, 2008 11:28 am
Location: Colorado, USA

Set Text in the Status Bar

Postby mfury957 » Fri Jul 18, 2008 11:44 am

I would like to be able to write a text message to the status bar on the main window. In particular, it would be nice to put a message in the the second box on the status bar, where DVBDream displays the channel name and recording information (when it is recording). I have a recording plugin and I would like to display a messages like "Recording..." there.
Twinhan 1025/1027
Windows XP
LLloody
Posts: 2
Joined: Fri Oct 03, 2008 12:00 pm
Contact:

.NET translations

Postby LLloody » Fri Oct 03, 2008 12:15 pm

Hey folks
Glad to join in.
I'm a MS developer for 15 years.
The Visual Studio .NET ide makes for very fast GUI development
and I would love to see one of u fluent C++ coders translate one of the samples to C# or VB .net. If nothing else maybe help me do it...
My C++ is limited and its been years since I wrote anything in it or Delphi.
I would like to do an EPG/scheduler using XML guide data plus maybe a GUI to scrape the transponders from lyngsat and allow easier more current transponder configuration. I would like to get more knowledge about what can and can't be done to dreams' graph from a module / plugin. I have worked alot with directshow and am wishing for a direct to divx transcoding ability.
Thanx in advance...I know I ask alot right off the bat :)

LLlood
Skywalker-1, Intel Quadcore 2.4, Vista Home Premium
r00t
Just can't stay away
Posts: 26
Joined: Mon Apr 05, 2010 4:58 pm

Postby r00t » Sat Jul 17, 2010 8:45 am

What I miss in current API:

DDMODAPI_GET_TUNER - way to read tuner set by DDMODAPI_SET_TUNER.
Channel Viewable functions - Currently there is no way to change if channel is viewable or get this value. Simple GET/SET API calls would be nice, or one API call to reload viewable.ini from disk.
Take video snapshot function - Ideally with optional parameter - destination filename

(This list will be updated as needed...)
Skystar2 2.3 + Skystar HD2 + SG-2100 + TwinLNB
User avatar
rel
relocation
Posts: 2051
Joined: Fri Jun 16, 2006 9:50 am

Postby rel » Thu Aug 05, 2010 10:13 am

What I miss in current API:

DDMODAPI_GET_TUNER - way to read tuner set by DDMODAPI_SET_TUNER.
Channel Viewable functions - Currently there is no way to change if channel is viewable or get this value. Simple GET/SET API calls would be nice, or one API call to reload viewable.ini from disk.
Take video snapshot function - Ideally with optional parameter - destination filename

(This list will be updated as needed...)

v1.5d and SDK v1.8 has these functions
http://www.dvbdream.org/files/DVBDreamModuleSDKv1.8.rar

details:
--------------------------------------------------------------------------------
DDMODAPI_GET_TUNER
Decsription : Gets tuner information from the device or cache.
Parameter Type : PSetTunerParams
Notes :
If PSetTunerParams.wSatPos = 1 , then function will return the information from the cache.
Some devices don't support querying from the hardware. So beware!
--------------------------------------------------------------------------------
DDMODAPI_SAVE_SNAPSHOT
Decsription : Saves a screenshot
Parameter Type : pointer to null terminated string, file name
Notes :
If file name is empty, then this function will record to default path
with default name.
--------------------------------------------------------------------------------
DDMODAPI_SET_VIEWABLE
Decsription : Sets the given channel's viewable status
Parameter Type : Channel ID
--------------------------------------------------------------------------------
DDMODAPI_CLEAR_VIEWABLE
Decsription : Clears the given channel's viewable status
Parameter Type : Channel ID
--------------------------------------------------------------------------------
DDMODAPI_GET_VIEWABLE
Decsription : Gets given channel's viewable status
Parameter Type : Channel ID
Notes:
Returns 1 or 0.
--------------------------------------------------------------------------------
DVB Dream - because I have to dream about having time to code it
r00t
Just can't stay away
Posts: 26
Joined: Mon Apr 05, 2010 4:58 pm

Postby r00t » Fri Aug 06, 2010 6:26 pm

Thanks, these will be useful.
Too bad DDMODAPI_SEND_DISEQC still doesn't work :roll:
Skystar2 2.3 + Skystar HD2 + SG-2100 + TwinLNB
Lexus34
Posts: 1
Joined: Tue Apr 26, 2011 9:47 am

OSD transparent

Postby Lexus34 » Tue Apr 26, 2011 9:56 am

OSD transparent work is not correctly or doesn''t work ? This is developer''s bug. In big-town OSD transparent doesn''t work too. :cry:
TT-S1401 36E HTCP
User avatar
rel
relocation
Posts: 2051
Joined: Fri Jun 16, 2006 9:50 am

Re: OSD transparent

Postby rel » Tue May 10, 2011 3:08 am

OSD transparent work is not correctly or doesn''t work ? This is developer''s bug. In big-town OSD transparent doesn''t work too. :cry:
transparency is intentionally disabled because of extensive CPU usage. Maybe in next versions it will be supported again.
DVB Dream - because I have to dream about having time to code it

Return to “Module / Plugin Programming”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest