23 May '13 - 09:23 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: 1 ... 133 134 [135]
  Reply  |  Print  
Author Topic: BASS_DSHOW Video Library  (Read 271697 times)
subh
Posts: 153


« Reply #2680 on: 13 May '13 - 18:58 »
Reply with quoteQuote

The VB header is not complete.

any news? Inout
How to Alpha color change when Multi Video Output?

Ionut pls. check my code, where i am wrong?


* Multi Video Output.zip (2.21 KB - downloaded 4 times.)
Logged
Ionut Cristea
Posts: 1374


« Reply #2681 on: 13 May '13 - 19:27 »
Reply with quoteQuote

  Seems to be ok except some codes have been set after creation of stream but that don't matter so much. What is the problem.

Ionut
Logged
subh
Posts: 153


« Reply #2682 on: 14 May '13 - 03:55 »
Reply with quoteQuote

the problem is does not work all panel Alpha color, working only one panel (picturebox1).
Logged
subh
Posts: 153


« Reply #2683 on: 16 May '13 - 07:24 »
Reply with quoteQuote

the problem is does not work all panel Alpha color, working only one panel (picturebox1).


which day you post your new vb header and demo code Smiley and please upload demo code. Ionut, I told you how to get
codec filter name in popup menu or dual audio streems name so kindly help this code Smiley

please reply

subh Angry
Logged
Ionut Cristea
Posts: 1374


« Reply #2684 on: 16 May '13 - 15:44 »
Reply with quoteQuote

Quote
var
 menu: TMenuItem;
 count: Integer;
 str: xVideo_STREAMS;
 I: Integer;
begin
 Popupmenu1.Items.Items[2].Items[0].Clear;
 Popupmenu1.Items.Items[2].Items[1].Clear;
 Popupmenu1.Items.Items[2].Items[2].Clear;
 count := xVideo_ChannelStreamsCount(chan);
 if(count<=0) then exit;
 for I := 0 to count-1 do
 begin
   if(xVideo_ChannelGetStream(chan,I,@str,xVideo_UNICODE)) then
   begin
     menu := TMenuItem.Create(PopupMenu1);
     menu.Caption := String(PWideChar(str.name));
     menu.Checked := str.enabled;
     menu.Tag := I;
     menu.OnClick := EnableStream;
     Popupmenu1.Items.Items[2].Items[str.format-1].Add(menu);
   end;
 end;
end;

HEre is the delphi code to get the streams. About vb code, sorry don't know so much VB.

Ionut
Logged
subh
Posts: 153


« Reply #2685 on: 18 May '13 - 06:52 »
Reply with quoteQuote

Try Delphi to vb Smiley then I'll post it okay  Wink

subh Angry
Logged
subh
Posts: 153


« Reply #2686 on: 18 May '13 - 11:14 »
Reply with quoteQuote

Try Delphi to vb Smiley then I'll post it okay  Wink

and how to solve this code.
the problem is does not work all panel Alpha color, working only one panel (picturebox1). ??


subh  Angry
Logged
subh
Posts: 153


« Reply #2687 on: 20 May '13 - 15:08 »
Reply with quoteQuote

Quote
var
 menu: TMenuItem;
 count: Integer;
 str: xVideo_STREAMS;
 I: Integer;
begin
 Popupmenu1.Items.Items[2].Items[0].Clear;
 Popupmenu1.Items.Items[2].Items[1].Clear;
 Popupmenu1.Items.Items[2].Items[2].Clear;
 count := xVideo_ChannelStreamsCount(chan);
 if(count<=0) then exit;
 for I := 0 to count-1 do
 begin
   if(xVideo_ChannelGetStream(chan,I,@str,xVideo_UNICODE)) then
   begin
     menu := TMenuItem.Create(PopupMenu1);
     menu.Caption := String(PWideChar(str.name));
     menu.Checked := str.enabled;
     menu.Tag := I;
     menu.OnClick := EnableStream;
     Popupmenu1.Items.Items[2].Items[str.format-1].Add(menu);
   end;
 end;
end;

HEre is the delphi code to get the streams. About vb code, sorry don't know so much VB.

Ionut

sorry Ionut does not work properly Sad
String(PWideChar(str.name)); 'not found

what can I do now?Huh??

subh  Angry
Logged
Ionut Cristea
Posts: 1374


« Reply #2688 on: 20 May '13 - 16:02 »
Reply with quoteQuote

 That's is a cast for reading unicode strings.

str.name is a ansi/unicode string. Depends if xVideo_UNICODE flag was specified when called the xVideo_ChannelGetStream function.

Ionut
Logged
Chris
Posts: 1507


« Reply #2689 on: 20 May '13 - 16:34 »
Reply with quoteQuote

I don`t think that vb6(15 years old dev language strange)  knows unicode
so change it to
if(xVideo_ChannelGetStream(chan,I,@str,0)) then
   begin
     menu := TMenuItem.Create(PopupMenu1);
     menu.Caption := PAnsiChar(str.name);
     menu.Checked := str.enabled;
     menu.Tag := I;
     menu.OnClick := EnableStream;
     Popupmenu1.Items.Items[2].Items[str.format-1].Add(menu);
   end;
Logged
subh
Posts: 153


« Reply #2690 on: 20 May '13 - 18:53 »
Reply with quoteQuote

I don`t think that vb6(15 years old dev language strange)  knows unicode
so change it to

I know Chris but I love VB and my demo project ready is 85% complete, I can't change my language. thanks your advice and I will follow to you Smiley

Hello Ionut,
My Over head Programmer I don't Understand this logic, I totally confused Huh
and I hate copy paste.

see my attachment and please create it for me
thanks

* xVideo Demo.zip (1.96 KB - downloaded 8 times.)
Logged
Ionut Cristea
Posts: 1374


« Reply #2691 on: 21 May '13 - 09:44 »
Reply with quoteQuote

  Take this. Note that you should read the documentation or see the examples. No one will do the whole project for you and i don't know VB so i can't help you so much except with C++/.NET or Delphi examples.


Ionut

* bin.zip (6.39 KB - downloaded 6 times.)
« Last Edit: 21 May '13 - 09:46 by Ionut Cristea » Logged
Pages: 1 ... 133 134 [135]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines