Hi.
I've made a ChildWindows to show some videos. The XAML code is:
and the CodeBehind is:
All the file are WMV and I've tryied to play with Windows Media Player. All are played correctly.
On the Web, some are played correctly and other no, returning the error: Failed to load. I've seen that the long video (more than 10 Mega) returns the error and the very short no, but one of the shor video is giving seeking problems.
Maybe I've to use the Streaming source, but I don't know how.
If you want to see the errors, please connect to www.studiopische.com. Choose the 4th button on the left (Amalgama) and expand the item "Danni neuronali da mercurio". Now click on the big button on the left showing a video icon. The player should start and you can see the error.
I can't attach the video becouse is more than 3 mega, but if you want I can send you by mail.
Another error is on the video you can reach by choosing the item "Stimolazione laser". Here you can see the seeking problem.
If you need some more information, please let me know.
Thanks a lot and regards.
Andrea Ferrari
I've made a ChildWindows to show some videos. The XAML code is:
<Grid x:Name="LayoutRoot" Margin="2"> |
<telerikMedia:RadMediaPlayer x:Name="player" FullScreenChanged="radMediaPlayer_FullScreenChanged" Loaded="player_Loaded" /> |
</Grid> |
and the CodeBehind is:
private void radMediaPlayer_FullScreenChanged(object sender, EventArgs e) |
{ |
Application.Current.Host.Content.IsFullScreen = !Application.Current.Host.Content.IsFullScreen; |
} |
private void player_Loaded(object sender, RoutedEventArgs e) |
{ |
this.player.MediaElement.BufferingTime = TimeSpan.FromSeconds(5); |
RadMediaItem item = new RadMediaItem(); |
item.Source = new Uri("/Video/" + NomeFile, UriKind.RelativeOrAbsolute); ; |
item.Header = NomeFile.ToString(); |
player.Items.Add(item); |
} |
All the file are WMV and I've tryied to play with Windows Media Player. All are played correctly.
On the Web, some are played correctly and other no, returning the error: Failed to load. I've seen that the long video (more than 10 Mega) returns the error and the very short no, but one of the shor video is giving seeking problems.
Maybe I've to use the Streaming source, but I don't know how.
If you want to see the errors, please connect to www.studiopische.com. Choose the 4th button on the left (Amalgama) and expand the item "Danni neuronali da mercurio". Now click on the big button on the left showing a video icon. The player should start and you can see the error.
I can't attach the video becouse is more than 3 mega, but if you want I can send you by mail.
Another error is on the video you can reach by choosing the item "Stimolazione laser". Here you can see the seeking problem.
If you need some more information, please let me know.
Thanks a lot and regards.
Andrea Ferrari