170 likes | 381 Views
E-Radio code presentation. Software group project. Prepared By Abdullah Mustafa Abu Nada 120070069 Hussian Abd-Jaleel Shaalan 120070105 Nael Wael Skaik 120070275. Contents. Parts of project. 1. E-radio WEB application. 2. E-radio Windows application. 3. 4. Project parts.
E N D
E-Radio code presentation Software group project Prepared By Abdullah Mustafa Abu Nada 120070069 Hussian Abd-Jaleel Shaalan 120070105 Nael Wael Skaik 120070275
Contents Parts of project 1 E-radio WEB application 2 E-radio Windows application 3 4
Project parts E-Radio WEB APP For managing the radio station web site and receive streaming.PHP and MYSQL Windows APP For streaming audio files from PC. VB.NET
WEB APP • Message Bean Class Main setting Class Classes • Playlist Bean Class DJ bean Class • Program Bean • Integrated software Bean
WEB APP • Main setting Class : • This class contains the radio settings (name , description, URL, Port number). • Store this information in DB.
WEB APP • DJ Class : • This class contains the DJ info. (name , picture , email , Status). • Store this information in database, and display DJ information.
WEB APP • playlist Class: • Create playlists and manage it. • Playlist programs Class: • Responsible for adding the programs to playlists with out conflict. • Program Class: • Adding programs and manage it. • Time Class: • Adding times and manage it.
WEB APP • Integrated software Class: • Responsible for adding the society website links and manage its. • Message Class: • Responsible for sending and receiving messages from and to visitor admins and DJs.
BASS API Start sever Streaming Desktop APP Get audio files
libraries • System. Threading :enable multithreaded programming. In addition to classes for synchronizing thread activities. • System. Net. Sockets :provides a managed implementation of the Windows Sockets.
Start Server • Start Server() • Start the server (socket) . • Determine the total number of connection can be Listen it in the server . • Creates an IP Address instance from an IP address . • Identify current port . • Identify Directory to get audio files.
Thread Accept Run() • Thread Accept Run() • Enables our application to have more than one execution path at the same time and multiple connection which IP current listing. • If the Connection accepted , then Initialize the Server class.
The handler for the load event • The handler for the load event • Gets the path for the executable file that started in the application. • create the Directory TMP stream to load the current files(*.mp3) where it run. • Handle Connection • Create byte array buffer. • Stream byte array by using BASS API.
The handler for the load event Directory.CreateDirectory(Application.StartupPath & "\tmp_streams") 'CREATE THE Directory TMP STREAM TO LOADED THE CURRENT FILES(*.mp3) WHEN RUN IT End If Dim filestr As String For Each filestr In Directory.GetFiles(Application.StartupPath & "\tmp_streams", "*.mp3") 'GET THE CRRENT FILES THAT TRANSFER FROM Directory SONGS TO Directory tmp_streams TO RUN IT IN mp3 PROGRAM Try File.Delete(filestr) Catch ex As Exception End Try