Back to Blog
You can then obtain a particular Media object from the Playlist object by using the item method of the Playlist object. ![]() As the previous example showed, you can obtain a Playlist object by using the getAll method of the mediaCollection object, which is accessed through the root Player object. Much of the functionality in the Windows Media Player 7 or later object model is accessed through the object hierarchy. Make the MyMediaItem object the current media. When using the Windows Media Player 7 or later object model, you must set the Player.URL property: WMP9.URL = "" Īlternatively, using the 10 object model, you can obtain a Media object from the library, and then set the Player.currentMedia property: // Get the first media object in the media collection. For instance, to specify the file path in the version 6.4 object model, you set the Player6.FileName property: WMP64.FileName = "" In many cases, the names of the properties, methods, and events have changed in the Windows Media Player 7 or later object model. Most of the tasks you may have been performing using the Windows Media Player 6.4 ActiveX control object model will require a new approach.
0 Comments
Read More
Leave a Reply. |