1 / 13

D istributed M edia P layer

Students: Ran Margolin & Dan Waxman Supervisor: Ittay Eyal. D istributed M edia P layer . Project Objective. Theory - Log. Synchronized Log - identical behavior. Read/Execute. Read/Execute. Log Play PauseStop PausePlay Stop. Log Play PauseStop PausePlay Stop. Synced. Issue.

andie
Download Presentation

D istributed M edia P layer

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. Students: Ran Margolin & Dan Waxman Supervisor: Ittay Eyal Distributed Media Player

  2. Project Objective

  3. Theory - Log • Synchronized Log - identical behavior. Read/Execute Read/Execute Log Play PauseStop PausePlay Stop Log Play PauseStop PausePlay Stop Synced Issue Issue Broadcast Broadcast

  4. Theory – NCT (Network Clock Time) • Commands executed synchronously. Synchronized Current Time (11:12) Current Time (11:12) Read/Execute Read/Execute Log 11:03 - Play 11:07 - PauseStop 11:12 - PausePlay 11:13 - Stop Log 11:03 - Play 11:07 - PauseStop 11:12 - PausePlay 11:13 - Stop Synced Issue Issue Broadcast Broadcast

  5. Network Structure • Identical privileges and control. • Synchronization via broadcast messages & peer2peer exchange.

  6. Software Design - Structure Presentation Tier User presses play Play Song + update GUI Broadcast command + retrieve song Logic Tier Using Database, retrieve song from hard drive Data Tier

  7. Software Design - Modules Neighbor List Neighbor List Song List GUI NCT Controller Clock DMP Controller Media Player Listen Server Log Listen Server

  8. Software Design – Design Patterns • Observer – • Sub modules inherit java.util.Observable • Core modules implement java.util.Observer. • Decorator – Used in GUI. Implemented using Swing library.

  9. Software Design – Technologies • JAVA • Song library maintained using MySQL • Media files played using Java Media Framework

  10. Software Design – Data Types Used • TreeSet – Inner implementation of NeighborList. (log[n]) • ArrayList – SongList transfer. • MySQL – Song library data (SongList).

  11. Software Design – Inheritance/ Interface • Interface Serializable- Transfer of data between users. • Interface Observer/Class Obervable – Monitor & update changes between modules. • Interface Comparable- Facilitate comparison in data structures.

  12. Problems • JMF non real-time oriented • Workaround: Heuristic algorithms (partial results) • Playback rate varies according to CPU workload

  13. The End

More Related