Simple Multimedia Player Algorithm?
Aug 6, 2011
I've just recently started using VB.Net 2010 Express edition and Windows 7 Home Premium x64 and I'm trying to write a simple multimedia player. My algorithm is: Simple mutlimedia player algorithm: 1. Create a form with three listboxes (one for accessible directories, one for accessible files, one for INACCESSIBLE directories and files), a drive combobox (for a list of drives). A textbox for holding the file extension. A 'start search' button to initiate a search for the files. 2. Form load populates the comboBox with a list of all logical drives that are of type fixed and are ready. 3. The user selects a drive to search using the comboxBox. 4. The user enters a file extension in a textbox. 5. The user presses the search button. 6. The computer searches all directories starting at root for any and all files matching the file extension. The allowed read access directories are added to a listbox of directories. The allowed read access filenames (i.e. the full path of each individual file) are added to a listbox of filenames. 7. Once the files listbox is populated, clicking on a file in the listbox passes the full path of the selected file to another form which is opened and shows the ID3 v1 tags of the file in textboxes and also the obligatory open, play, pause, stop and close buttons. Plus an Edit Ok button which gets enabled if the user edits the ID3 v1 tags. 8. The sequence for playing the file is: open, play (then any of pause, play, stop), close - note that close also stops the file first if it is currently playing then closes it. 9. The user closes the playing form and goes back to first form (i.e. the search form). 10. Closing the search form exits the application. Ok I can populate the drives combobox no problem. I can get a list of directories ok I can't (and believe me. I've tried 100's of ways) seem to get a filelist of all the files in all the directories [starting at root] that match the criteria - that's the bit I keep getting stuck on. I keep getting an unauthorized access exception. Trapping that exception doesn't seem to do anything useful as I can't continue the search loop (OR get the filename that is causing the exception and add it to the files listbbox) - and so can't get any filenames. BTW I can open, play, pause, stop and close any given mp3 file (with a correct path) no problem using the Win32 API.
I know I've d/l a couple of file listers but they are/seem highly complicated for what should be a very simple task. In good old DOS, it would take a line or two of using the DIR or Tree commands to find the files so I can't believe that it is so hard to do in VB.Net It seems [to me] that Directory.GetFiles(searchpattern, startdirectory, option searchFolderDepth) doesn't properly work due to the exception which arises from the unathourised exception event (and which it then seems to be impossible of getting the filepath and then continuing the loop by simple exception handler code).
View 1 Replies
ADVERTISEMENT
Aug 30, 2011
"Method 'Private Sub Player_Control_PlayPause_Click(sender As Object, e As System.EventArgs, CurrentSong As String)' cannot handle event 'Public Event Click(sender As Object, e As System.EventArgs)' because they do not have a compatible signature. Form: MainPanel.vbLine: 21 Column: 177
My code is here:
Imports System.IO
Public Class MainPanel
[code]......
View 3 Replies
Jan 13, 2009
I am looking for a way to find the moving average for customers over a 30 day period. However I was not able to find any sample VB code to help get me started. I did find this C# sample on Code Project but my attempts at conversion have not been successfull.
Does anybody have an existing VB class they would like to share or do you know of a sample that I could use to build my own?
View 4 Replies
Feb 7, 2012
I've been pulling my hair for three days trying to figure out what has gone wrong in what little code I have in my first attempt at both the minimax algorithm, and recursive calls in general (I'm relatively new to programming). Basically, I have everything working in the application except for the thing I wanted to actually learn and work on in it: The minimax algorithm. Basically, whenever a player makes a move, the computer will do one of two things:
If there is a winning move right next to it, it will use that move. Easy as pie.
However, if this move isn't in direct sight, it will pick whatever move lets the player win. The exact opposite of what it should be doing. I know it's not coming from:
[Code]....
View 2 Replies
Aug 13, 2011
I said in a thread this week that I would set out to construct a program using the WMP component and this time, unlike in my last one, it is set up to allow any folder to be chosen. It's safe, even if the user chooses a folder with no .mp3 files in it, but it's goal is to look through all folders/subfolders, find the .mp3 files, get the path and the meta information about it, then show it in a listview.
The user has a few options such as playing the first song when a list is loaded, setting it to shuffle, etc., and all settings are saved automatically. Also, when they choose a folder to use to get their music, the next time around it remembers this also (although this latter one is done by saving the path to a text file so that you can, optionally, edit that before you send it out -- without having to change the code to do it).
I have it looking at events so that no matter what they change (click for the next song, change the volume, change one of the checkboxes, etc.), it will re-focus the listview so that the song presently playing is highlighted.[code]...
View 1 Replies
Apr 26, 2012
I am trying to create a simple DVD Player with Visual Basic 2008 (Express). But I am trying to find this item for the Toolbox-"MSWebDVD".
Does anybody have, like a download link to get it for VB 2008? If you do provide me with a download link, then I would kindly ask to tell me on how to apply it.
View 3 Replies
Apr 27, 2010
i am learning how to use the vlc plugin so i can make a simple media player but i am having trouble loading a video.[code]
View 2 Replies
Oct 16, 2009
I'm currently trying to write a really simple game on which the player has to pursuit some figures on the screen. Since i'm just writing the prototype version i'm using a Panel wich i redraw 1000 times per second. Now, i want that every level is similar but not the same as past level, so i created a Level Class that contains the game objetcs of Player Class and the Figure Class, wich are the ones that have all the movement subrutines. So, with a Timer, 1000 times per second, i get the input from a joystick, pass it to the player objetc and update the position of the figure object. All this stuff is reported to an internal Panel that every level object has, wich i refresh and then pass it ByVal to the panel that the player actually sees. The problem i have is that after the first level ends, when the second level starts running, i can see the last frame of the fisrt level flashing behind the figures and it makes the game run a bit slower after every level. I tried keeping a copy of the inicial state of exterior panel and use it to clean the one i'm using on the levels but it didn't work...
View 11 Replies
Mar 2, 2011
create a small multimedia application using Visual Basic.net 2008. What i need is for this application to pull information from a webpage.
View 9 Replies
Mar 25, 2010
how to create a multimedia aplication like media player, video layer, etc. using visual basic?
View 2 Replies
Jan 18, 2009
I have been researching how to create a multimedia sound/video converter
View 1 Replies
Jun 8, 2009
I am trying to implement an Algorithm called "Diamond-Square Algorithm" I am having trouble ending it so that it retiurns the required result. So far I have the folloiwng.
[Code]...
View 3 Replies
Jun 28, 2011
Public Class EasyPlayer
Private Sub EasyPlayer_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
System.Diagnostics.Process.Start("MediaPlayer")
End Sub
[code]....
View 1 Replies
Jan 19, 2012
So I am trying to make a program that allows you to move two shapes using two KeyPress events, one to move the first object and another for the second. It works, but it can only move one of the two objects, not both at the same time.
Private
Sub
Form_KeyPress1(ByVal[code]......
View 9 Replies
Apr 10, 2009
I want to know that how to add FLV payer component in VB.Net..cz windows Media Player doesn't play the FLV player.
View 2 Replies
Jul 27, 2010
I have a vb form with a browser on it, when the mouse is over a link and I right-click on it, the pop-up appears containing "open, open in new tab, save target as..., copy shortcut, and so on" and for other types, appears "zoom in, show all, quality, play, loop, rewind, forward, back and so on". So is ther a way to figure out what kind is object is that, something like:
[Code]....
View 3 Replies
Aug 13, 2009
i am using following code to play a mp3 with build action for mp3 after adding to application is set to copy always...
Public
Class Form1
ivate Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
[code].....
View 4 Replies
Jun 10, 2011
Is there anyone can post a simple code using vb,that start building a simple games ?
View 2 Replies
Nov 23, 2010
I'm making a speed card game [URL] for the final in one of my programming classes. I'm looking for a little assistance with how to go about getting it done the best way. I've included the code I have so far below. How does it look? What would you do differently? Would you do anything the way I did? I need to have one AI player and a human player.
Code:
View 3 Replies
Jun 9, 2011
make media player in vb6 or vb2010.. not using windows media player..
View 1 Replies
Dec 9, 2011
Trying to make a simple browser with some simple addon's. What Ive done is setup a menu(forum) for the user to enter their email providers web address and it will save it in a xml file. When they click on the email link, it should load the email xml iformation and place that info in the tb_html.text and navigate. I keep getting a null exception and im not sure what going on here. Here is the code:
Browsers:
Private Sub btn_Email_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_Email.Click
'Load Action
Dim SavedEmailObj As Storage
[code].....
View 2 Replies
Apr 14, 2010
I'll do my best to explain what the algorithm is supposed to do:There's a class 'Recipe'.ach Recipe can include other Recipes but cannot include itself or any other Recipe that includes it. So, a simple example is we have just two Recipes A & B.A,B,C(1) Recipe C Adds B(2) Recipe B Adds A(3) Recipe attempts to add C, but can't because of the relationship. C- B - A.
View 4 Replies
Sep 8, 2010
I'm Micah. Electrical/Electronic engineering 500 level student. I'm working on my final year project. please i need a code for the implementation of RSA algorithm in VB.NET. your assistance will be appreciated.
View 2 Replies
Jan 31, 2011
When I right click on the component area, a contextmenu appears.I want to disable this OR remove "Settings" and "About Adobe Flash Player..".I searched the internet for a solution,but almost all the suggestions were about the Visual Basic 6. Anyone knows how to correct this in Visual basic 2008 ? (And sorry for my English if there is a mistake )
View 1 Replies
Dec 26, 2009
is the algorithm for VB editor released anywhere? because i'm trying to create my own editor that gives various options like Linking and self defined array functions (see below) such that one edit can update several others in various places, but i do still wish to have the auto formatting VB editor provides us with.an example of a self defined array function (count):we can transform this:
Public Class test
Private Shared number_of_methods As Integer = 2
Public Function get_number_of_methods_juz_an_example() As Integer
Return number_of_methods
[code]....
well of course instead of the code it would be just click and select (i wrote out the code in <> just to show what's happening)
View 5 Replies
Mar 15, 2012
i need some tutorial to implement BLS (Boneh-Lynn-Shacham) signature algorithm to create private key and public key to encrypt a message.I need tutorial to implement this in VB.NET.
View 1 Replies
Oct 21, 2005
I found an algorithm in C# that I need to convert to C. Problem is, I have never used C# so the syntax is really strange to me.
Implementation of Berlekamp-Massey algorithm for calculating linear complexity of binary sequence
s = byte array with binary sequence
returns Length of LFSR with smallest length which generates s
[Code].....
View 7 Replies
Dec 14, 2010
I want create my own algorithm
View 1 Replies
Aug 21, 2009
How would I be able to use my own Encryption Algorithm in my program such as encrypting text. I havn't been able to figure this out.
View 1 Replies
Aug 25, 2007
can you write an algorithm which can calculate 500 factorial.scientific symbol(mode) is unauthorized.Answer should be in String mode.
View 1 Replies