MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Community Skins and Plugins » Plugins


Plugins Plugins developed and maintained by users. Want to create your own plugin? Start a thread in here.

Reply
 
LinkBack Thread Tools Display Modes
Old 2008-04-02, 13:22   #1 (permalink)
Portal Member
 
Join Date: Apr 2008
Posts: 26
Thanks: 2
Thanked 1 Time in 1 Post

Country:


Default play file

hi all,
can someone please give me code to play a playlist or music file in media portal. I have an idea for a plugin that plays music on voice commands. The voice part is good. now once my plugin recognizes that the user say "play music.mp3" how can i play the file or playlist "music.mp3"
thanks.
hbe02 is offline   Reply With Quote
Old 2008-04-02, 13:44   #2 (permalink)
MP Donator
 
uggabugga's Avatar
 
Join Date: Feb 2007
Location: Torshavn
Posts: 61
Thanks: 6
Thanked 0 Times in 0 Posts

Country:


Default

Hi hbe02 and welcome,
I think there already is a plug in that does this, take a look: myVoice
You could always help with development if you got skills in that department
__________________
#########
#UggaBugga#
#########
uggabugga is offline   Reply With Quote
Old 2008-04-02, 13:50   #3 (permalink)
Portal Member
 
Join Date: Apr 2008
Posts: 26
Thanks: 2
Thanked 1 Time in 1 Post

Country:


Default

thanks for the feedback uggabugga.. unfortuntely the link to the myVoice plugin seems to have died.
In regards to my plugin, i am trying to combine the myVoice with the X10 plugin into 1 where u can say something like. "Set mood to romantic" and my plugin will send the appropriate x10 signals to dim the lights and play some nice music and so on...
question is, how can i play music?
hbe02 is offline   Reply With Quote
Old 2008-04-02, 14:12   #4 (permalink)
MP Donator
 
uggabugga's Avatar
 
Join Date: Feb 2007
Location: Torshavn
Posts: 61
Thanks: 6
Thanked 0 Times in 0 Posts

Country:


Default

Ok, sorry I can't help you in that department. But you might consider posting this question under this sub-forum: General Development or try to PM booyakasha.
Good luck anyways
__________________
#########
#UggaBugga#
#########
uggabugga is offline   Reply With Quote
Old 2008-04-03, 14:54   #5 (permalink)
Portal Member
 
jburnette's Avatar
 
Join Date: Aug 2006
Location: Kentucky
Age: 23
Posts: 645
Thanks: 112
Thanked 75 Times in 38 Posts

Country:

My System

Default

You can use g_player like this:

MediaPortal.Player.g_Player.Play(whatever.mp3, MediaPortal.Player.g_Player.MediaType.Music)

That should work for you. I'm not really sure if there's a better way, but that's what I use for the Music Trivia plugin and it seems to work fine.
jburnette is offline   Reply With Quote
Old 2008-04-03, 19:50   #6 (permalink)
Portal Member
 
Join Date: Apr 2008
Posts: 26
Thanks: 2
Thanked 1 Time in 1 Post

Country:


Default

Thanks jburnette, I will try it out asap!
hbe02 is offline   Reply With Quote
Old 2008-04-06, 14:05   #7 (permalink)
Portal Member
 
Join Date: Apr 2008
Posts: 26
Thanks: 2
Thanked 1 Time in 1 Post

Country:


Default

moved to other thread "how to play a playlist"

Last edited by hbe02; 2008-04-06 at 15:54.
hbe02 is offline   Reply With Quote
Reply

Bookmarks

Tags
play

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
please play second file if movie has two files. Al_Capone Improvement Suggestions 17 2008-04-26 16:25
MKV file won't play in MediaPortal wlgspotter Codecs, External Players 0 2007-10-20 08:57
How to play a growing file rklootwijk Plugins 0 2007-08-28 21:49
Can't play any video file kike_1974 General Support 7 2007-01-20 20:06
Unable to play a video file Acteo The old Bugreport Forum 1 2006-07-06 22:33


All times are GMT +1. The time now is 06:27.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress