1
Answer

Video playback via DirectShow in c# ...?

Olli TheClash

Olli TheClash

9y
940
1
Hello c# community!
 
First of all: I am a beginner in c# and need some help to find the right information / a starting point.
I would like to create a video playback software wich plays the video on a second screen. I want to realize it as a windows forms project.
I already got the media player com object to run in my application but t seems to be a bit limited - for example changing the aspect ratio manually is not possible, no further processing (like color corrections, scaling etc..).
So it seems  to be nessessary to get deeper in coding. I think directshow (GraphEditor..) would be verry interesting to me, but i can't find something like a tutorial how to implement it in c#. When i search for directshow and c# a only find c++ directshow examples. Are there some keywords or any code example to understand how to get forward at this point? So just.. how to read a file, parse and render it via some plugins und  and so force..
 
The only thing i found was this 12 years old article: http://www.codeproject.com/Articles/2632/DirectShow-MediaPlayer-in-C   As he uses some kind of a visualBasic Wrappe i dont know if this is state of the art....?
 
Thanks a lot for helping me - and every comment is welcome!
 
Olli 
Answers (1)
0
Riddhi Valecha

Riddhi Valecha

NA 3.1k 186.7k 7y

Hi..

Datatable has 4500 records. It is not empty.

 
Yes, I have mentioned all the lines...
 
cmd.CommandType = Stored Procedure 
----------
Hi all...
 
I have one more query.... Instead of WCF Service , now I am asked to do .asmx web service.
 
I need the user to insert the following values -
1. Name - string values - no number 
2. Location - String values
3. Email ID - abc@xyz.com - check if email id is valid
4. Mobile Number - Numeric values
5. Date - date must be greater than current date.
6. Select city from drodownlist.
----------
 For this, I have made -
1. A Class File with get; set properties (UserDetailsProperties.cs - Name of Class File).
2. I have made a method to return Boolean with Class Name as parameter.
public Boolean IsDataIserted(UserDetailsProperties userdetails)
{
cmd = new SQLCommand();
cmd.Parameters.AddWithValues("@Name", userdetails.Name);
int i=cmd.ExecuteNonQuery();
if(i<=0)return true;
else return false;
}
-----------
My Query is -
How do I test this functionality with .asmx service ?
 
http://localhost:12456/UserWebService.asmx - This is the URL.
 
------
And how do I get the output in JSON?
--------------------
 When I upload the webservice in server (iis), then is there a way so that instead of fields , we can have dropdownlist , datetime picker as inputs ?
This is when - we hit the url - http://1.2.3.4/UserDetails/UserWebService.asmx - click on the method and click on "Invoke" button.
------------
Please guide
 -----------------------------------------------
Dear All...
Once again I am stuck up with Basic Authentication of the Web Service...
 
Requirement - When the user hits the URL - http://localhost:34789/WebService1.asmx ; then
1. A popup or method must be displayed -  Please enter Username and Password.
 
2. If the user enters "Riddhi" in Username and "12345" in Password, then the message should be displayed -  Successfully Logged In... and display other Web Methods - Add ,Subtract, Multiply, Divide 
 
3. Else - A message - "Authentication failed" - must be displayed.
 Please guide for this... 
 
 
0
Ankit Sharma

Ankit Sharma

NA 8.8k 141k 7y
Hi riddhi,
 
You might be getting this error coz your datatable is empty.
 
 since you are using a SP, so you need to include following line in GetUserList() method 
 
cmd.CommandType = CommandType.StoredProcedure;
 
Also check if your connection string is valid or not