home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Trying to Read Tags from mp3's
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="jimbruskalski" data-source="post: 50496" data-attributes="member: 20165"><p>This is what I have and it is not working:</p><p></p><p>"protected override void OnClicked(int controlId, GUIControl control, Action.ActionType actionType)</p><p> {</p><p> if (control == buttonOne)</p><p> {</p><p> MusicTag tag = TagReader.ReadTag("M\\:\\Document and Settings\\Andrew\\My Documents\\final music final\\Adore\\03 Perfect.mp3");</p><p> </p><p> string str = "didn't work, sorry...";</p><p> str = tag.Album;</p><p> </p><p> GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK);</p><p> dlg.SetHeading("Button has been pressed");</p><p> dlg.SetLine(1, str);</p><p> dlg.SetLine(2, String.Empty);</p><p> dlg.SetLine(3, String.Empty);</p><p> dlg.DoModal(GUIWindowManager.ActiveWindow);</p><p> }</p><p> lblOne.Label = "You changed the text!";</p><p> lblOne.UpdateLayout();</p><p> base.OnClicked(controlId, control, actionType);</p><p> }"</p><p></p><p></p><p>The dialog box does not come up with this; however, if I take this line out (" MusicTag tag = TagReader.ReadTag("M\\:\\Document and Settings\\Andrew\\My Documents\\final music final\\Adore\\03 Perfect.mp3");") it does show the dialog box. Why is this? What am I doing wrong? Thank you so much.</p></blockquote><p></p>
[QUOTE="jimbruskalski, post: 50496, member: 20165"] This is what I have and it is not working: "protected override void OnClicked(int controlId, GUIControl control, Action.ActionType actionType) { if (control == buttonOne) { MusicTag tag = TagReader.ReadTag("M\\:\\Document and Settings\\Andrew\\My Documents\\final music final\\Adore\\03 Perfect.mp3"); string str = "didn't work, sorry..."; str = tag.Album; GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); dlg.SetHeading("Button has been pressed"); dlg.SetLine(1, str); dlg.SetLine(2, String.Empty); dlg.SetLine(3, String.Empty); dlg.DoModal(GUIWindowManager.ActiveWindow); } lblOne.Label = "You changed the text!"; lblOne.UpdateLayout(); base.OnClicked(controlId, control, actionType); }" The dialog box does not come up with this; however, if I take this line out (" MusicTag tag = TagReader.ReadTag("M\\:\\Document and Settings\\Andrew\\My Documents\\final music final\\Adore\\03 Perfect.mp3");") it does show the dialog box. Why is this? What am I doing wrong? Thank you so much. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Trying to Read Tags from mp3's
Contact us
RSS
Top
Bottom