.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

duplicate video to multiple mediaelement

Posted By:      Posted Date: September 25, 2010    Points: 0   Category :WPF
I have xpab (partial trust) application with multiple initialized pages. Each of these pages includes an mediaelement with a backroundvideo. Is it possible to load the sourcevideo only once? I would like to do something like this: page1mediaelent = publicMediaelement, page2mediaelent = publicMediaelement . . . pageNmediaelent = publicMediaelement.  I cannot afford to download the same wmv video n times.   

View Complete Post

More Related Resource Links

how do you detect which video format can be played in a wpf mediaelement?

how do you detect which video format can be played in a wpf mediaelement?

How to play a .mp4 video file with WPF (mediaelement) ?

I would like to play a .mp4 with WPF.Does anybody know how can I accomplish it?It can play wmv but when I try to play a .mp4 it doesn't show anything. It's strange because the Blend designer shows the first frame of the .mp4 video in the mediaelement.I can play the video with Windows Media Player...Waiting for an aswer...

No sound when playing MPEG video in MediaElement

Hi, I am writing a multimedia centre using the WPF MediaElement control, the project is very mature and going really well. However I get no audio when my player plays a .MPG file. I have tried installing lots of different codec packages on my test machine but to no avail. The same files have audio when loaded in WMP but not in my WPF application. I am developing on an XP machine and on that I get sound, but on my target machine, Windows 7, no sound! Other formats such as AVI etc do not have this problem. Any ideas? Thanks in advance

Showing Video file in a MediaElement


Dear all,

I am trying to ceollect a Video file and then display the first frame of the video in a container

The dataTemplate I use is as follow :

 <DataTemplate x:Key="<strong>LibraryItemTemplateVideo</strong>" DataType="{x:Type vm:VideoMedia}">
      <Viewbox Stretch="Uniform">
        <MediaElement Source="{Binding Path=FullName}

Video formats Supported by Mediaelement in WPF


Hi ,

 I am trying to devolep a WPF applciation which will render LIVE video. The data for the Video comes through TCP/IP from the Firmware end and is of "RAW YUV format". Can i render this using a mediaelement?

If Yes please guide me further down. Thanks in advance.

MediaElement - Video freeze after Ctrl+Alt+Delete is pressed



Why do my video frozen when I do Ctrl+alt+delete and go back to the WPF application? Any idea?

string videoSource = "somevideofile";
MediaElement HomePageVideo;

void init()
  HomePageVideo.Source = new System.Uri(videoSource);

  HomePageGrid.IsEnabled = true;
  HomePageGrid.IsHitTestVisible = true;
  HomePageGrid.Opacity = 1;
  HomePageGrid.Visibility = Visibility.Visible;


void play()
   HomePageVideo.Position = new TimeSpan(0, 0, 18);

<Grid Name="HomePageGrid" Visibility="Hidden" Background="Black" Opacity="0">
  <MediaElement Name="HomePageVideo" Width="1280" Height="720" LoadedBehavior=

WPF save streamed video using MediaElement


I would like to stream videos, and save it to the hard disc using WPF MediaElement. 
For example, I'm using this code to play a video from the net:   
<MediaElement Source="http://some.url/video.wmv" />
I need to save somehow streamed media file to the hard disc.
Can anyone tell me how this is done?


Multiple tasks in video rendering



        I am devoleping a WPF application which renders live video coming from a Video camera. I am using  a seperate thread to get the frames from the camera. Apart from that i am using the UI thread to display it on the image element.

The image element is refreshed and redrawn using the below piece of code . But the video flickers a lot. Pleas let me know if i am doing somethin wrong.

         DrawingVisual drawingVisual = new DrawingVisual();
          DrawingContext drawingContext = drawingVisual.RenderOpen();
          Rect rect = new Rect(50 , 50 , 320, 240);
          drawingContext.DrawImage(bmpsrc, rect);


    private delegate void RenderImageEventsHandler(BitmapSource image);

    private void RenderImage(BitmapSource bmpsrc)
      if (this.video.Dispatcher.CheckAccess())
        this.video.Source = bm

Video: Access Multiple SharePoint 2010 Lists by Using LINQ

Learn to create SharePoint 2010 Web Parts that query multiple lists by using LINQ.

Multiple database support with Entity Framework

One of the features introduced in Entity Framework is being database independent. Which mean each database provider can support Entity Framework by implementing its provider.

This feature allows you build applications independent from the underplaying database provider. In this post I'm going to show how to build an application that support multiple databases using same conceptual model made by Entity Framework.

Binding the multiple drop down boxes in GridView using JQuery in ASP.NET

Here is the code for binding the multiple drop down boxes in GridView using JQuery in ASP.NET

Upload Multiple File using JQuery in asp.net

In this article I have explained how to upload multiple files using file upload control. I have used jQuery plugin for uploading multiple files.

I have also explained how to check for file type, file maximum size limit using jQuery & also using server side validation code.

Adding Multiple Columns and Rows in GridView without using a Database

This article describes on how to add multiple columns and rows in GridView without using a database. Basically the GridView will be populated with data based on the values entered in each TextBoxes on Button Click and retain the GridView data on post back.

GridView Multiple Filter AJAX Control

This AJAX control enables the user to filter data within any column inside a GridView. The user can add multiple filters and can delete existing ones too.

Multiple Column Dropdownlist for the ASP.NET DataGrid

Based on my previous control "Multiple Column DropDownList for ASP.NET", I received many emails asking for the same control to be used in the DataGrid for web applications. Here we go.. This control can be used as the regular MS DropDownList in the DataGrid and also as a regular dropdownlist. It has all the properties, like DataTextField, DataValueField, DataSource, SelectedIndex etc. The download file contains the samples both in VB.NET and C#. In this sample, I have used the Northwind database of SQL Server.

ASP.NET Multiple Selection DropDownList with AJAX HoverMenuExtender

Recently, I was looking for a multiple selection dropdownlist control for my new project. After spending some time researching for it, I decided to put together all my finding in one web user control. This web user control consists of an ASP.NET AJAX HoverMenuExtender, JavaScript, StyleSheet and CheckBoxListExCtrl . The final product will work with or without a MasterPage and you can drag and drop more than one instances of the control on to the page.

MOSS 2007 Tutorials video

This link about how create sharepoint website ,blogs,team site,document lib etc
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend