Click here to Skip to main content
15,886,110 members

IVideoWindow interface put in Silverlight applcation

Oleg Orlov asked:

Open original thread
C#

I want to render some videos in my Silverlight application.

For such aims in desktop-apps I'm using IVideoWindow interface where I'm living in loaf, becuase it's simple.

But when I'm embedding such stuff in Silverlight applcation - I've got problems.

Silverlight 5th is able to use P/Invoke features and also you could use COM objects via AutomationFactory class and dynamic type.

C#
dynamic shell = AutomationFactory.CreateObject("WMPlayer.OCX.7");
shell.openPlayer(@"D:\oleg\vlc_work\6_Sony_Sean_Kingston_Beautiful_girls.mpg");


Like smth that, I'm launcing from Silverlight WindowsMedia Player. It's good, but I want to render video inside my Silverlight app.

Decoding video to the formats, which Silverlight natively supports - isn't good for me. Because I need to render frames from MPEG-Transport system (using mpeg2) and render frames in Silverlight app.

There are 2 ways:

• implement well IVideoWindow in my SL-app and render video from Broadcast/Multicast
• implement mpeg2/mpeg-ts algorithms ( with Discreete Cosine Transformation, Huffman Code, RLE, ZigZag algo etc ) and I don't want to use such method because it will be too difficult and long
So, are there any methods to use implement IVideoWindow in my Silverlight app?

Thank you
Tags: C#, .NET, Silverlight5, COM, DirectShow, PInvoke, Video, Automation

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900