symbian qt 流媒体播放器

原文:http://wiki.forum.nokia.com/index.php/QtMobilityYouPlayer

 

Contents

  [hide]

YouPlayer - QtMobility Api application


Introduction

YouPlayer is small mediaplayer written in Qt. It serves a single purpose: use YouTube API to search, fetch music and stream media directly from YouTube. Similar idea like spotify client but use YouTube as a mediasource. It also includes interface which to extend to add other media source which to query playlists. Application uses three [QtMobility] API: multimedia, location and bearermanagement. When using location api you can limit your search results containing those near you (radius is used). Bearer management api is used to help connecting to the Internet with default connection. 

Application has been developed using Ubuntu Linux using and QtCreator 1.3. Also some quick emulator test with Symbian 5th Edition SDK and Carbide.

File:YouPlayer_metal.png


How to use it

  • Enter a search string and press search. If you want to limit search to a location near you check the "use location" checkbox.
  • Save button enables one to save the playlist for a later purpose (to /home/username/youplayer_list.m3u)
  • Load button loads previously saved list from filesystem.
  • Clear buttons clears/empties playlist.
  • To listen/watch playlist entries use playlist or use control buttons at the bottom.

The Code


How to add your own Media feed provider (not YouTube)

  • extend class MediaFeedApi
  • take at look what methods are currently implemented for YouTube in GDataApi.cpp (this class implements MediaFeedApi)
  • tweak to your own needs

How to compile and test it

  • First Dependencies (=needed libraries for successfull compilation):
  • Needed capabilities for Symbian, add to qjson/src/src.pro file before compilation and remember to run qmake after updating pro file
  
    TARGET.CAPABILITY = Location /
    NetworkServices /
    ReadUserData /
    WriteUserData /
    UserEnvironment /
    ReadDeviceData /
    WriteDeviceData /
    SwEvent
  • After dependencies and capabilitys get the File:Youplayer against beta.zip file and unzip it somewhere. Then cd to that dir and build it with following commands:
    • qmake
    • make #for linux this is sufficient and for symbian emulator build
    • make release-gcce #for symbian device
    • make sis # for symbian package
  • For installing sis Youplayer.sis to Symbian device sis-package needs to be signed. Easiest way to get it done is to use open signed online service from SymbianSigned (https://www.symbiansigned.com/app/page/public/openSignedOnline.do ). Just enter your phones IMEI, email address and YouPlayer.sis to the reserver fields. After a moment you will have the signed sis in email. Install this sis to the phone.

Related Wiki Articles

No related wiki articles found

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值