This question is locked. New answers and comments are not allowed.
Hi,
I am receiving the following exception when I try to load a RadmediaPlayer on control load:
at Telerik.Windows.Controls.ItemsControlExtensions.<GetContainers>d__0`1.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__0.MoveNext()
at Telerik.Windows.Controls.RadMediaPlayer.SetTickMarksOnTimeSlider()
at Telerik.Windows.Controls.RadMediaPlayer.StartInternal()
at Telerik.Windows.Controls.RadMediaPlayer.MediaElement_MediaOpened(Object sender, RoutedEventArgs e)
at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)
The code that loads the control looks like this:
byte[] sng = SoundTrackLoad.OrderBy(a => a.OrderNbr).ToArray()[0].TrackBinary;
radMediaPlayer1.MediaElement.Stop();
radMediaPlayer1.MediaElement.AutoPlay = false;
radMediaPlayer1.MediaElement.SetSource(
new MemoryStream(sng));
radMediaPlayer1.SelectedIndex = 0;
When the control is finally rendered the play button on the RMP does not work. Any help would be appreciated,
thanks
Baz
I am receiving the following exception when I try to load a RadmediaPlayer on control load:
at Telerik.Windows.Controls.ItemsControlExtensions.<GetContainers>d__0`1.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__0.MoveNext()
at Telerik.Windows.Controls.RadMediaPlayer.SetTickMarksOnTimeSlider()
at Telerik.Windows.Controls.RadMediaPlayer.StartInternal()
at Telerik.Windows.Controls.RadMediaPlayer.MediaElement_MediaOpened(Object sender, RoutedEventArgs e)
at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)
The code that loads the control looks like this:
byte[] sng = SoundTrackLoad.OrderBy(a => a.OrderNbr).ToArray()[0].TrackBinary;
radMediaPlayer1.MediaElement.Stop();
radMediaPlayer1.MediaElement.AutoPlay = false;
radMediaPlayer1.MediaElement.SetSource(
new MemoryStream(sng));
radMediaPlayer1.SelectedIndex = 0;
When the control is finally rendered the play button on the RMP does not work. Any help would be appreciated,
thanks
Baz