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
 
Thread Tools Display Modes
Old 2005-07-28, 01:24   #1 (permalink)
Anonymous
Guest
 
Posts: n/a


Default Flash Player Plugin

Im trying to implement a Flash player plugin in mediaportal through the IPlayer interface but from the looks of the interface and the PlayerFactory there doesnt seem to be a way to add a player for a specific extension, IExternalPlayer seems like what I want unfortunally it only supports audio (as I was able to tell) is there any interface for implementing an external video player, I know I could write it as a DShow source filter and it would play, but I think I wont be able to send commands specific to flash as some movies require you to click a certian spot to start/etc, is there any sort of setup for implementing an external video player?

I have one Idea, not sure if it will work, from the looks of the PlayerFactory class it check for an external player first and if found will use the IExternalPlayer, which is a derived class of IPlayer, and IPlayer returns false for HasVideo by default so if I implement IExternalPlayer I should be able to override HasVideo and the other memebers of IPlayer in order to have an external video player, or maybe both IExternalPlayer and IPlayer, not too familier with OOP (I come from a native c++ background) so im not sure what the virtual property of IPlayer means if it will prevent me from overriding memebrs of IPlayer from a derived IExternalPlayer or not, I think it just means that its not a real function and must be overridden?? I think thats what responsible for make the intellisense tab thing that GUIWindow and ISetupForm implement so it automatically gives you members to fill in the code for?? does this seem like it will work? I would really like to get flash support but dont really want to code all browsing, thumbnail caching, custom views, etc to implement it as a plugin, also as a plugin it wont have that cool little window playing the flash when your browsing the menus
  Reply With Quote
Old 2005-07-28, 09:26   #2 (permalink)
Portal Member
 
Join Date: Aug 2004
Location: Fribourg (CH)
Posts: 314
Thanks: 0
Thanked 1 Time in 1 Post


Default Re: Flash Player Plugin

Greg,

Don't know details about the IPlayer / IExternalPlayer, but:

Quote:
im not sure what the virtual property of IPlayer means if it will prevent me from overriding memebrs of IPlayer from a derived IExternalPlayer or not, I think it just means that its not a real function and must be overridden??
"virtual" method means that you CAN override this method in subclasses.
You don't need to, but you're allowed to. If you want to keep the code from the inherited method you need to call it using "base.<methodname>".

Hope that helps, for the rest you need help from other guys :-)

Daniel
__________________
waeberd is offline   Reply With Quote
Reply

Bookmarks

Tags
flash, player, plugin

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 Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
IPTV@UT Plugin moiristo Plugins 116 2008-10-06 22:32
Gathering topical infos about plugins (To: authors & use tomtom21000 Plugins 2 2006-02-05 00:20
Recommended MP3 Decoder / plugin for Windows Media Player 10 AndyUK49er General Support 3 2006-01-04 08:27
RealOne Player plugin ? AndyUK49er Plugins 0 2005-12-18 15:08


All times are GMT +1. The time now is 08:32.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden