Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27056

VS 2010 Setting Media Player Item Attributes

$
0
0
Here is my code:

Code:

    Public Sub SaveMediaItemAttributesToFile(stringFilename As String, stringAttributeName As String, stringAttributeValue As String)

        Dim MediaObject As WMPLib.IWMPMedia3

        MediaObject = MediaPlayerObject.newMedia(stringFilename)

        With MediaObject

            .setItemInfo(stringAttributeName, stringAttributeValue)

        End With

        MediaPlayerObject.enabled = True

    End Sub

This code works perfectly when changing attributes such as:
Title
Author

My question is this:
Is it possible to create new attributes that can then be saved to the file as standard attributes that can then be seen when viewing the attributes of a file?

Viewing all articles
Browse latest Browse all 27056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>