Jump to content


AccSensor / Windows Media Player Plugin

* * * * * 1 votes

22 replies to this topic

#1
zemrwhite2

zemrwhite2

    Newbie

  • Members
  • Pip
  • 45 posts
  • Devices:Samsung SGH-i900V
Hello,

I wish to share with you my first project on Windows Mobile.
It is a omnia-only Windows Media Player plugin that uses the acceleration sensor.
You will be able to play the next tune in your playlist by shaking the phone.
Please read included text file for more details, since I do not wish to give any support on the application. There will be no updates or anything, but comments are welcommed.

I just hope someone will be able to create something really great based on this.
  
Full source code and an installer are provided.

Readme :
Attached File  ShakeIt.txt   2.03K   1076 downloads

Source code and installer :
Attached File  ShakeIt.src.20081106.zip   87.56K   1165 downloads


#2
jonboyuk

jonboyuk

    Diehard

  • Members
  • PipPipPipPip
  • 340 posts
  • Gender:Male
  • Location:South West, UK
  • Devices:Samsung Omnia i900
That's amazing!!!!!!


#3
chokia

chokia

    Addict

  • Members
  • PipPipPipPipPip
  • 638 posts
  • Devices:Redefined Everything
OMG! Now not only SE phone can do this, Omnia can too.

Ive installed it and it works!

Can it register to skip backward to previous song?

I ve tested it will only skip to next song regardless which direction you shake it.


#4
zemrwhite2

zemrwhite2

    Newbie

  • Members
  • Pip
  • 45 posts
  • Devices:Samsung SGH-i900V

View Postchokia, on Nov 7 2008, 05:44, said:

I ve tested it will only skip to next song regardless which direction you shake it.

It only skip forward. But by implementing a better analysis of the vector, it is possible to detect at least the main direction of the acceleration.
This implementation has been made as simple as possible in the hope that some guy will put his hands in it and make something really great with it.


#5
golddust

golddust

    Newbie

  • Members
  • Pip
  • 20 posts
  • Gender:Male
  • Devices:SAMSUNG SGH-I900 OMNIA
This is something that I waiting for.. thanks a lot man.. :lol:


#6
Clarren

Clarren

    Newbie

  • Members
  • Pip
  • 5 posts
  • Devices:Samsung Omnia
Sounds great but how about the player thats built in with manilla2d. can you fix it for that one aswell? Would be frikkin awsome :lol:


#7
zemrwhite2

zemrwhite2

    Newbie

  • Members
  • Pip
  • 45 posts
  • Devices:Samsung SGH-i900V

View PostClarren, on Nov 7 2008, 10:59, said:

Sounds great but how about the player thats built in with manilla2d. can you fix it for that one aswell? Would be frikkin awsome :lol:

Yes, it would be awesome. I have given all the source code of the application, so you or someone else could make this enhancement :D if possible with this player.
I have no time to work on it anymore, this is why I gave everything.


#8
Omnian

Omnian

    Newbie

  • Members
  • Pip
  • 48 posts
wow!  I wish I know how to make my own apps..  Too bad I don't know programming.


#9
Mrhoffmann

Mrhoffmann

    Regular

  • Members
  • PipPip
  • 86 posts
  • Gender:Male
  • Devices:Omnia
wow :lol: amazing. Thnx :D


#10
kenneth-kofi

kenneth-kofi

    Newbie

  • Members
  • Pip
  • 11 posts
  • Devices:samsung omnia
can some one please run me through how to install this

i thought i done it but obviously not

applet?? check what ??? please help


#11
Mrhoffmann

Mrhoffmann

    Regular

  • Members
  • PipPip
  • 86 posts
  • Gender:Male
  • Devices:Omnia

View Postkenneth-kofi, on Nov 7 2008, 22:27, said:

can some one please run me through how to install this

i thought i done it but obviously not

applet?? check what ??? please help
Start --> Settings --> System --> Shakeit Setup --> Register plugin


#12
kenneth-kofi

kenneth-kofi

    Newbie

  • Members
  • Pip
  • 11 posts
  • Devices:samsung omnia
thanks alot

was pretty simple

should i keep the sliders as they are?


#13
En4evr

En4evr

    Newbie

  • Members
  • Pip
  • 6 posts
  • Devices:omnia i900
wow awesome job...shall try this just  as soon as i get my bricked omnia back


#14
zemrwhite2

zemrwhite2

    Newbie

  • Members
  • Pip
  • 45 posts
  • Devices:Samsung SGH-i900V

View Postkenneth-kofi, on Nov 7 2008, 23:59, said:

should i keep the sliders as they are?

Yes or no. Depends. It modifies the values used by the algorithm, read the ShakeIt.txt file for more details about this.
By default it is a bit too sensitive.

For example, if you move the last one to the max, you will have to throw your phone against a wall in order to skip to next song :lol:
Note : do not do this ! :D


#15
zemrwhite2

zemrwhite2

    Newbie

  • Members
  • Pip
  • 45 posts
  • Devices:Samsung SGH-i900V
Thank you everyone. I am pretty pleased with your reactions, they are all so kind and positive.

Now I hope some developers will get their hands on it and improve it.
Just a word about the development :
I got this phone about the end of september, then I started analyzing into IDA some programs, line GrandPrix*CameraTest.exe, camera.exe, Admin.exe, LCDTest.exe, etc...
I ended up reading backlight sensor, switching on/off flashlight, reading acc sensor, capturing data with front camera, with IOCTLs, or registry hack (front camera), that was so fun. Then I took the Direct3D sample, and modified matrices with acc sensor values, and I got that banana cylinder "fixed in space", cool but completely useless.
I showed the stuff to my friends and coworkers. One of them suggested to dial by gesture, the other - FX as credited in the app - the WMP plugin. The last one was easiest to implement, and with his great help and constructive suggestions through the whole process, I managed to make ShakeIt.

Apart from this, we found this project : http://wiigee.sourceforge.net
I think there is something to do with this library and the i900 !


#16
jonboyuk

jonboyuk

    Diehard

  • Members
  • PipPipPipPip
  • 340 posts
  • Gender:Male
  • Location:South West, UK
  • Devices:Samsung Omnia i900
I would love to use this in the manilla audio player as this is all I use. Can you port it to that? It would be amazing if you could!!!


#17
tokey

tokey

    Newbie

  • Members
  • Pip
  • 25 posts
thank you....
pray that you gonna be a great programmer one day.....


#18
pdaphonemaster

pdaphonemaster

    Regular

  • Members
  • PipPip
  • 112 posts
This is a great idea and works most of the time.

However, I think I  discovered a bug. After closing WMP (when shake it is working), it is not possible to restart it. Only soft rest will resrat WMP.

Can this be fixed?

Thanks.


#19
lunanxia

lunanxia

    Newbie

  • Members
  • Pip
  • 1 posts

View Postzemrwhite2, on Nov 7 2008, 02:04, said:

Hello,

I wish to share with you my first project on Windows Mobile.
It is a omnia-only Windows Media Player plugin that uses the acceleration sensor.
You will be able to play the next tune in your playlist by shaking the phone.
Please read included text file for more details, since I do not wish to give any support on the application. There will be no updates or anything, but comments are welcommed.

I just hope someone will be able to create something really great based on this.

Full source code and an installer are provided.

Readme :
Attachment ShakeIt.txt

Source code and installer :
Attachment ShakeIt....20081106.zip


thank you!!!!!!!!!!!!!!!!


#20
zemrwhite2

zemrwhite2

    Newbie

  • Members
  • Pip
  • 45 posts
  • Devices:Samsung SGH-i900V

View Postjonboyuk, on Nov 8 2008, 15:13, said:

I  would love to use this in the manilla audio player as this is all I  use. Can you port it to that? It would be amazing if you could!!!
I will make the same answer as for Clarren, I will not work on it anymore. But everything is there for someone (you ? B) ) to improve it.

View Postpdaphonemaster, on Nov 9 2008, 04:01, said:

However, I think I  discovered a bug. After closing WMP (when shake it is working), it is not possible to restart it. Only soft rest will resrat WMP.
Same answer again. I was expecting something like that, because of COM and threads which are more or less new to me, but I never encountered such a behaviour while coding.
Did you try to kill WMP with the task manager ?





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users