/ShareMe

毕设项目,利用Wifi Direction建立局域网并进行设备间时间同步的音乐播放器

Primary LanguageJava

ShareMe

ShareMe是本人的毕业设计项目,主要功能有:

  1. 通过Wifi Direct配对连接和传输数据;
  2. 通过RTSP及其相关协议来传输和同步音频;
  3. 支持操作同步,播放列表同步;
  4. 支持双声道控制;

摘要

随着智能手机不断普及,人们对手机的需求不再满足于拨打电话和收发短信,新需 求包括手机游戏、多媒体播放、拍照甚至复杂文档的编辑等原本需要使用 PC 才能完成 的工作,在智能手机上层出不穷。而音乐播放器一直以来都是智能手机上不可或缺的软 件之一。 在社交网络发达的今天,人们习惯于分享自己喜欢的音乐作品,音乐社交持续繁荣 发展。在这一方面,本应用试图为音乐社交增加一种新鲜的分享方式,即通过用户手中 的手机外放喇叭来同步播放一首音乐作品,达到面对面分享的作用。 此外,目前市面上大部分手机都是单喇叭设计,对于双声道音频来说,无法完全发 挥双声道的效果,存在音乐外放效果不佳的问题。因此针对这种情况,本应用试图解决 这一问题,以满足特定用户对增强音乐外放效果的需求。 本软件采用了直观的界面设计,设计了简单易懂的操作,通过对 Real Time Streaming Protocol(下面简称 RTSP)及其相关协议的修改定制,利用 Wi-Fi Direct 面对面建立局域 网,以及通过 Websocket 来同步播放控制操作,完成了本软件的设计和开发。

ShareMe

ShareMe is my graduation project, the main functions are following:

  1. connect and transfer data via Wifi Direct;
  2. transfer and synchronize audio via RTSP and its associated protocols;
  3. support operation synchronization, playlist synchronization;
  4. support dual channel control;

Abstract

With the popularity of smart phones, people's demand for mobile phones is no longer satisfied with the call and the SMS, new needs, including mobile games, multimedia playback, camera or even complex document editor, etc. which mostly need to be completed on PC, are endless. The music player has always been one of the indispensable software on the smartphone. Today, with the development of social networks, people are used to share their favorite music, and the musical sociality continues to flourish. In this regard, this application attempts to add a new way of sharing music, in other words, to play a music synchronously through their mobile phone’s speaker, so as to achieve the role of face-to-face sharing. Currently most of the mobile phone on the market have only a single speaker, which cause the problem of poor music effect, and cannot play the desired dual-channel effect, so this software is designed to solve this problem, to meet some specific users’ need to enhance the effect of music playback. The software uses an intuitive interface design, and designed with a simple and easy operation, using the Real Time Streaming Protocol (RTSP) and its related customized protocol, and synchronizing playback control by Websocket. Finally, we use Wi-Fi Direct to set up a local area network face to face, and completed the software design and development.