1 / 17

E-Radio code presentation

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.

cale
Download Presentation

E-Radio code presentation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. E-Radio code presentation Software group project Prepared By Abdullah Mustafa Abu Nada 120070069 Hussian Abd-Jaleel Shaalan 120070105 Nael Wael Skaik 120070275

  2. Contents Parts of project 1 E-radio WEB application 2 E-radio Windows application 3 4

  3. 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

  4. WEB APP • Message Bean Class Main setting Class Classes • Playlist Bean Class DJ bean Class • Program Bean • Integrated software Bean

  5. WEB APP • Main setting Class : • This class contains the radio settings (name , description, URL, Port number). • Store this information in DB.

  6. WEB APP • DJ Class : • This class contains the DJ info. (name , picture , email , Status). • Store this information in database, and display DJ information.

  7. 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.

  8. 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.

  9. BASS API Start sever Streaming Desktop APP Get audio files

  10. 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.

  11. 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.

  12. Start Server

  13. 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.

  14. Thread Accept Run()

  15. 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.

  16. 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

  17. Thank You !

More Related