Mediaplayer : Unable To Play Some Songs?

Dec 21, 2009

In my VB.Net application, I am using Mediaplayer for playing songs. It is working fine with some songs. But some songs are not playing. I gave msdxm.ocx for COM componetes. I used breakpoint to see what is happening, I got the the error as "Error HRESULT E_FAIL has been returned from a call to a COM component.". I am using the following code,

AxMediaPlayer1.FileName = "D:Songsabc.mp3"
AxMediaPlayer1.Play()

View 2 Replies


ADVERTISEMENT

Add Songs To A Play-list?

Nov 13, 2009

I have a music player, and i can add songs to a play-list, but i was wondering if you can make only the song name show up, and not the entire file path?

View 3 Replies

Play All Songs In A File?

Apr 7, 2012

I created a file that has 10-20 songs in a file and i want when button1 is pressed to play all of these songs in order

View 4 Replies

Play All Songs In A Listbox?

Mar 5, 2011

I have got a button - lets call it button X. And a listbox, listbox Y.

when button X is pressed MediaPlayer Z - "Axwindowsmediaplayer" will play all the songs in Listbox Y.

the items in the listbox are all files on the user's computer.

View 11 Replies

VS 2008 - Using Timer To Play Songs One After Another

May 19, 2011

I have a list of song format .wav. I want to play the first song until it finish after that the second song will be play .. etc. The problem I used timer to play song and I put the time for each song 1 minute all song played together. I want to arrange that when the first song played all song hold until the first song finish then the second song played the third song hold until all other song finish...etc.

View 20 Replies

[2005] Unable To Play Some Audio Files

Jan 24, 2009

I am building a music player. I found this class that has worked great for what I need. However, for some reason, it won't play certain audio files. IT just reads it as 0 duration. I have no idea why. Below is the code that plays the file.

[Code]...

View 8 Replies

Get Album Art Of Songs?

Jul 1, 2009

How can I get the album art of a song file in visual basic.net?I use the Windows Media Player control if that helps anything.You can get album art with the SDK for creating skins, so it might be a similar way here.

View 1 Replies

Create A MediaPlayer Program?

Nov 5, 2009

I need to know how to create a program like MediaPlayer from scratch .Does Directshow do this ??? And if yes , what the steps I should follow to have full control at this side of programming ( Is there any SDK I should download )?I'm using VisualBasic 2008 Pro.

View 10 Replies

Different Playback Speed Mediaplayer

Dec 27, 2009

I am making a program that works with my hometrainer so i can now have my speed and distanse on my screen but now when i start byking i would like to play a video on my screen also when i am biking slow the video has to play slow when i am biking fast the video has to play fast is there any one how can tell my how todo this whith a sample

View 3 Replies

Load The Decrypted One On A Mediaplayer?

Jun 5, 2009

I have a wpf application that stores videos/images and generic files

1) what is the best way to encrypt these type of file in term of performances

2) and when you encrypt a video how do you load the decrypted one on a mediaplayer?

View 10 Replies

VS 2008 MediaPlayer For Windows Xp?

Jan 9, 2012

I wrote a program for Playing Video's , I used 'AxInterop.WMPLib.dll' This i think will only work with 64 bit machines because it is Media player 12. I need to play my video's on a Windows XP 32 bit machine. But i need a older version of the player. Where can i download the dll for Mediaplayer 11.

View 1 Replies

Click The The Song To Play, Even The Play Song Finish But Does't Play Automatically?

May 8, 2010

I want to the song can auto start one by one when import the song to list box. But it doesn't work that I need to select one by one. Besides, the program can repeat all the song or individual song when checkbox enable.

If AxWindowsMediaPlayer1.playState = WMPLib.WMPPlayState.wmppsMediaEnded Then
If playlistbox.SelectedIndex < playlistbox.Items.Count - 1 Then

[code].....

View 4 Replies

Forms :: Mediaplayer Time In Label?

Dec 4, 2011

so i am busy with a mediaplayer ( just for fun ) and everything pretty much works, but one thing doesn't.the thing is ive got 2 labels, the first label needs to show how much ive already played, and the second label needs to show the duration of the media file.example: a media file from 1 hour 32 minutes and 18 second and i have already player 43 minutes and 9 seconds from it, then the first label needs to show 00:43:09 and the second label 01:32:18.

View 5 Replies

Mediaplayer Fade In Visual Studio?

Sep 14, 2010

Is there any ready method/function etc to create a fade in/fade out effect for sound with Windows Mediaplayer in Visual Studio Express 2008?

View 3 Replies

Programs Like Winamp Add Songs At Runtime?

Jun 23, 2009

I can find out myself how to add a button to the Explorer context menu, but my main question is: How do programs receive commands at runtime? And can you do it in VB. NET? Oh, and no, I don't have any code because I have no idea where to start. So, I guess first I need to make my program a single-instance-application?

View 2 Replies

Syncing All Songs In Textbox Onto USB MP3 Player

May 26, 2010

I would like some simple codes that allow you to import songs into a listbox then at the application of a button it will sync all of the songs in the textbox onto a USB MP3 Player.

View 5 Replies

Add Effects To Sounds That Are Playing Using The Mediaplayer Control?

Sep 15, 2009

is it possible to add effects to sounds that are playing using the mediaplayer control?. i have tried using directsound which works good and i can add effects to the sounds playing but it wont play mp3 files and i have looked all over for information on directshow which does play mp3s but all the examples i managed to find all have about 50 lines of code just to play one track and dont show how to add effects.

i need to play several sounds at the same time and add different effects to each track and also be able to play - stop - pause each individual track at will mediaplayer i can do this but dont know how to add effects directsound i can do all of this but cant play mp3s.is there any way to add effects using mediaplayer control? or does anyone please know where i can see a code example in directshow that adds effects to the sounds playing?

View 2 Replies

MediaPlayer.URL Makes Vb 2010 Application Not Responding?

Sep 19, 2011

Im building an application in vb 2010 which uses window media player component. When I run the application in debug mode and Press Play button, the application hangs up and stops responding. When I press PAUSE button in vb 2010 the line it shows is

mediaPlayer.URL = curl

View 3 Replies

Playing Video - Auto Seeking In MediaPlayer

Mar 4, 2010

If I have a video of 70 Seconds and I want to play it directly from 31 seconds to onwards how can I do that in vb.net.

View 1 Replies

VS 2005 Receive The Time And If The Mediaplayer Is Paused Using Api?

Oct 30, 2010

I want to receive the time and if the mediaplayer is paused using api.My problem is that the child is called Static but there�s 3 items there and it seems that I just get the first of them.

Heres my code so far:

Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As IntPtr
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As

[code].....

View 4 Replies

Shell - Media Player Play File Error - Refuses To Play

Sep 16, 2010

Im trying to open media player (full screen) and play a movie. When i create the file path like so: Dim MoviePathVTS As String = String.Concat("""" + tempMoviePath, " \VIDEO_TS\VTS_01_1.VOB" + """")

It wont play the file but if i do it like this: Dim video1 = """F:\Movies\DvD\Angels and Deamons\VIDEO_TS\VTS_01_1.VOB"""

It plays fine? the file paths are the same including the extra "" but it just refuses to play. I need the top one because i have many movies in a treeview.

Heres my code

Private Sub watchNow_Click(ByVal sender As Object, ByVal e As EventArgs)

'get the position of the selected node
Dim i = movieTreeView.SelectedNode.Index

[CODE]...

View 2 Replies

Filter Table And Show 100 Most Played Songs?

Jun 13, 2012

I have mp3 database (access). I want to filter table and show 100 most played songs. There is a field "PlayCount" which is increased every time the song is played. I know how to use TOP clause, but there is a problem when I want to sort results in descending order by "PlayCount" .here is the sql query:
SELECT TOP 100 * FROM Database ORDER BY PlayCount DESC this query returns 120 results. If I use "TOP 200" it will return 278 results. But everything works fine if I use ORDER BY Filename.

View 6 Replies

Make A Playlist With The Names Of All The Songs In Library?

Jan 19, 2012

I am somewhat new to VB and I am currently working on a media player program. I used WMP to make a playlist with the names of all the songs in my library. Then I have my VB program open the library playlist and read all the music names into an array. This works perfectly until i get to a song title with a

(which is not the same as the ' on the keyboard) but readline reads them in as a black diamond with a ? in it. Is this an ASCII/ UNICODE problem, or something like that? How do I fix this? I checked the text file and it is correct.

View 5 Replies

Media Player : Plays Songs Using Webhost

Jul 8, 2009

i used to code with vb6 but now im using the new windows 7rc so im trying the new .net

Anyway So i uploaded a few songs to my webhost and i would like to play them in media player i know i can do this (Ply1.url = "blah.com") but how would i play the next song on my server as if i add one more track to it. it just seems to play the first and with no next button

View 3 Replies

Move And Re-size A Window That Has BorderStyle = None With MediaPlayer As Child

Jul 10, 2011

What I am doing is making a Media Player, but I am making it to be some sort like BS Player.

The Video part of the player is on its own with no border and then there is going to be a separate Form for the controls. (I might need help with that later) But the first thing that I have to do is make the window movable and re-sizable by dragging the Media Player (WMP). WMP is taking up the whole screen of the Form so there is no where to click on the original Form. If possible, I would like it to show contents while dragging, ignoring the Windows Appearance and Performance. If that can't be done or is to much work, I will settle for just the border of the Form being showed while moved.

For re-sizing, the media player has to stay the same size as the form, but it also has to stay the same Ratio of the video. So as long as I can specify the current height and width of the window and also get then get the width while the window is being re-sized, I can get the height that the window needs to be by using this formula.

Window.y / Window.x * Sized Window.x = New Window.y .

I know that may sound complicated or maybe I am making it harder then it actually is, this is just how I know how to do it. I will explain what each variable in the Formula means.

Window.y is the current height of the window

Window.x is the current width of the window

Sized Window.x is the width of the window while it is being re-sized

New Window.y is the final height for the new size of the window

View 11 Replies

Make A Play Button Play/stop Toggle?

Feb 9, 2010

How can you make a play button play/stop toggle? Currently my button plays a file in WMP but when I click it again, it just restarts the file. I would like it to toggle on and off, play and stop, not play and pause.

View 8 Replies

Display Current Songs Album Art In A Picture Box Using Axwindowsmediaplayer?

Mar 10, 2012

Is it possible to display the current songs album art in a picture box, using axwindowsmediaplayer.

View 14 Replies

Making An Express App To Search For Duplicate Files (songs) In Music Directory?

Jan 21, 2010

Windows Media Player has hosed up my library, making multiple copies of the same songs.I am looking at making a VB express app to search for duplicate files (songs) in my music directory, and allow me to delete or move.Where can I go learn about the files and directory controls I would need to use to point to the directory I want to search?

View 5 Replies

Load The Files In A Folder Into A Box And Display The Songs Info Into A List View?

Feb 23, 2010

Okay I'm making a song organizer and I have a program that will load the files in a folder into a box and display the songs info into a list view. That part works fine but when you click the button to make it do anything it will get the variables that it need from the tags on the cells for each song but for some reason the one for the Album just disappears... I tried having it just show the value in a message box and it works fine. Just when I try to combine it with another variable then it wont show at all. Heres my code

[Code]...

View 10 Replies

Which Of The MediaPlayer Events Is Related To "FileEnd" (when The Playing File Reaches To Its End)?

Apr 11, 2007

Which of the MediaPlayer events is related to "FileEnd" (when the playing file reaches to its end)?

I tried "EndOfStream" event, but it didn't work.

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved