AForge.NET

  :: AForge.NET Framework :: Articles :: Forums ::

using videoSourcePlayer to display an array of byte

Forum to discuss AForge.NET Framework, its features, API, how-tos, etc.

Re: using videoSourcePlayer to display an array of byte

Postby btb4198 » Tue May 22, 2018 8:18 pm

what should I do with :
public static implicit operator VideoCaptureDevice(PixeLinkDataSource v)
{
// throw new NotImplementedException();
}
so my class is call PixeLinkDataSource
and it is implementing IVideoSource.

now what should implicit operator VideoCaptureDevice(PixeLinkDataSource v)
do ?
I do not see it in the examples
btb4198
 
Posts: 34
Joined: Fri May 18, 2018 2:31 am

Re: using videoSourcePlayer to display an array of byte

Postby btb4198 » Tue May 22, 2018 8:53 pm

ok I tried this :
public static implicit operator VideoCaptureDevice(PixeLinkDataSource v)
{
return v;
}

but it did not work.
and I cannot find an example of it in the source code...
btb4198
 
Posts: 34
Joined: Fri May 18, 2018 2:31 am

Re: using videoSourcePlayer to display an array of byte

Postby btb4198 » Tue May 22, 2018 8:59 pm

ok VideoCaptureDevice : IVideoSource
does not have anything like, so what do I have to ?

if I remove I get an error :
here

PixeLinkDataSource temp = new PixeLinkDataSource();
// create video source
VideoCaptureDevice videoSource = temp ;
saying :
Severity Code Description Project File Line Suppression State
Error CS0029 Cannot implicitly convert type 'Pixelation_Tool.PixeLinkDataSource' to 'AForge.Video.DirectShow.VideoCaptureDevice' Pixelation Tool
btb4198
 
Posts: 34
Joined: Fri May 18, 2018 2:31 am

Re: using videoSourcePlayer to display an array of byte

Postby andrew.kirillov » Tue May 22, 2018 9:10 pm

Get the source code of the AForge.NET Framework and look for all classes implementing IVideoSource interface. Come back when you spend enough time learning.
With best regards,
Andrew


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3453
Joined: Fri Jan 23, 2009 9:12 am
Location: UK

Re: using videoSourcePlayer to display an array of byte

Postby btb4198 » Tue May 22, 2018 9:15 pm

I did
and I have been looking at it and it do not have anything like that...
I do not see why C# thinks
I need it
btb4198
 
Posts: 34
Joined: Fri May 18, 2018 2:31 am

Re: using videoSourcePlayer to display an array of byte

Postby btb4198 » Tue May 22, 2018 9:19 pm

never mind I got it
btb4198
 
Posts: 34
Joined: Fri May 18, 2018 2:31 am



Previous

Return to AForge.NET Framework

cron