Palvelinympäristön luonti mobiilistreaming palvelulle

Abstract

Palvelinympäristön luonti oli toinen osa projektia, jossa luotiin lisäksi ohjelmisto matkapuhelimeen, joka osasi toistaa musiikkia palvelimelta tallentamatta sitä. Tavoitteenamme oli luoda helposti muokattava palvelinympäristö, joka olisi samalla käyttäjäystävällinen. Alkuperäisenä suunnitelmanamme oli siirtää musiikkia mp3-muodossa http:n yli. Palvelinympäristö luotiin syksyllä 2006. Palvelinympäristön teoriaosuudessa käsiteltiin streaming-tekniikkaa yleisesti, mobiililaitteiden streamingia ja palvelimia. Toteutuksen yhteydessä käytimme tietojamme streaming-tekniikoista ja palvelimista lopullisen tuloksen aikaansaamiseksi. Halusimme luoda ympäristön, joka oli helposti muokattavissa mahdollisten ongelmien kiertämiseksi. Työ aloitettiin asentamalla Mandriva 2006 Free käyttöjärjestelmäksi. Järjestelmään asennettiin www-palvelimeksi Apache. Tietokannaksi asensimme MySQL:n ja www-sivujen dynaamisuudeksi PHP:n. Käyttäjien luontia varten tehtiin oma sivusto, johon pääsi vain ennalta määritellyllä salasanalla. Tunnukset sijoitettiin tietokantaan ja lisäksi sftp:tä varten käyttöjärjestelmään. Palvelun käyttäjä pääsi omille sivuilleen luomillaan tunnuksilla ja kirjauduttaessa käyttäjän IP-osoite tallennettiin tietokantaa. Toiminnoiksi käyttäjille annettiin mahdollisuuksia luoda, muokata ja poistaa soittolistoja. Jälkeenpäin lisäsimme kappaleiden poiston ja siirron verkkohakemistoon. Siirtotoiminto tarvittiin, koska rajoitimme käyttäjän pääsyä public_html-kansioon. Nykyisten matkapuhelinten rajoittuneisuuden takia päätimme kokeilla erillisiä streaming-palvelimia. Muutos edellytti musiikin tiedostotyypin muuttamista amr:ksi. Kokeilemamme vaihtoehdot olivat Flash Media Server2, Darwin Streaming Server ja Live555. Ainoastaan Live555 sisälsi haluamamme ominaisuudet. Testattuamme matkapuhelimella soittaa musiikkia Live555:n avulla havaitsimme epäluotettavuutta soitossa ja päätimme siirtyä takaisin alkuperäisiin suunnitelmiin. Havaittuamme uusien S60 3rd fp1 puhelimien tukevan streamausta http:n päällä amr-tiedostoille, päätimme vaihtaa vain tiedostomuotoa.Creating a server environment was the other part of the project where also software for mobile phones was created which would be able to reproduce music from the server without storing it first. The goal was to create an easily adjustable server environment that would also be user friendly. The original plan was to transfer music in the mp3 format over the http. The server environment was created in the autumn 2006. In the theory section of the server environment that was covered, the topics were streaming techniques in common, streaming with mobile devices and servers. While we were working among the realization we applied our knowledge of streaming techniques and servers in order to create final product. We wanted to create environment that was easily modifiable for making workarounds for possible problems. Work was started with the Mandriva 2006 Free installation as the operating system. Apache was installed as the web server into the system. MySQL was selected to be installed as the database and PHP to provide dynamics to the web pages. The web page was made for the creation of users where there was access only with the password that was made earlier. Accounts were positioned into the database and also into the system for sftp access. The user of the service was able to access his own pages with keys that were made before and when logging the user's IP address was stored into the database. We decided to give the user the ability to create, modify and remove playlists. Afterwards we added abilities to remove songs and to move them into web folder. Moving of the songs was needed because we limited users' access to a public_html folder. Because of the limitations of present mobile phones we decided to try separate streaming servers. Modification required changing the file format as amr. Options that we tried were Flash Media Server2, Darwin Streaming Server and Live555. Only Live555 included the properties that we wanted. After having tested playing music with the help of Live555 we noticed unreliability in playing and decided to move back to original plans. We didn't decide to change the file format until we noticed that the new S60 3 rd fp1 mobile phones support streaming over the http to amr files

Similar works

This paper was published in Theseus.

Having an issue?

Is data on this page outdated, violates copyrights or anything else? Report the problem now and we will take corresponding actions after reviewing your request.