Note that there are some explanatory texts on larger screens.

plurals
  1. PORead MP3 Tag attribute in Silverlight
    primarykey
    data
    text
    <p>I know it works to read out the MP3 Tag attribute MP3V1 in silverlight. I know it works without any third party moduls. But when I use the MP3 workflow like Microsoft described I always get the count of zero attributes in my MP3 file. </p> <p>How to solve?</p> <p>Example project: Download MP3 demo file from here: <a href="http://www.file-upload.net/download-2617219/Elenor_techno.mp3.html" rel="nofollow noreferrer">http://www.file-upload.net/download-2617219/Elenor_techno.mp3.html</a></p> <pre><code>&lt;UserControl x:Class="MP3_Tag_test.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400"&gt; &lt;Grid x:Name="LayoutRoot" Background="White" Margin="12"&gt; &lt;StackPanel Orientation="Vertical"&gt; &lt;MediaElement x:Name="MediaHelper" Visibility="Visible" /&gt; &lt;TextBlock x:Name="txtTitle" Text="Title" FontSize="28" /&gt; &lt;Button Content="STOP" Height="23" HorizontalAlignment="Left" Name="Button3" Width="75" /&gt; &lt;Button Content="Play MP3" Height="23" HorizontalAlignment="Left" Name="Button1" VerticalAlignment="Top" Width="75" Margin="0,20,0,0" /&gt; &lt;Button Content="Play stream" Height="23" HorizontalAlignment="Left" Name="Button2" VerticalAlignment="Top" Width="75" /&gt; &lt;/StackPanel&gt; &lt;/Grid&gt; </code></pre> <p></p> <pre><code>Partial Public Class MainPage Inherits UserControl Public Sub New() InitializeComponent() End Sub Private Sub MainPage_Loaded(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles Me.Loaded End Sub Private Sub MediaHelper_CurrentStateChanged(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles MediaHelper.CurrentStateChanged If Me.MediaHelper.Attributes.ContainsKey("Title") Then Me.txtTitle.Text = Me.MediaHelper.Attributes("Title") End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles Button1.Click Me.txtTitle.Text = "Loading mp3..." Me.MediaHelper.Source = New Uri("http://dave-d.ch/database/music/public/1000036869_stefan%20lange%20koolja.mp3") Me.MediaHelper.Play() End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles Button2.Click Me.txtTitle.Text = "Loading stream..." Me.MediaHelper.Source = New Uri("http://asx.skypro.ch/radio/internet-128/fm1-nord.asx") Me.MediaHelper.Play() End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles Button3.Click Me.MediaHelper.Stop() End Sub </code></pre> <p>End Class</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload