SnapStream Forums

Go Back   SnapStream Forums > SnapStream Developer Network > Development Discussion
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 01-14-2005, 02:23 PM
Brett's Avatar
l33t Beta Tester
 
Join Date: Feb 2003
Posts: 3,919
Send a message via AIM to Brett
BeyondMedia SDK Documents

Hello folks,

The below link will point you to the first revision of the BeyondMedia SDK. It contains the initial documents / help files neccessary for creating plugins and skins within BeyondMedia. The installer also includes a packager for automating the process of creating .bmplugin and .bmskin files!

Please note this is a first revision! Over the next few weeks additional samples and tutorials will be added. If your interested in contributing a short tutorial please contact me directly through PM. We are particular looking for short examples that explain each widget (ie: textwindow, list, grid, etc.). It does not need to be the complete code, just the focused objective. For example, this could be the example code for textlist.

The INITIAL SDK is available here:
http://www.snapstream.com/ssdn/submi...staller_V1.exe

If you are not strongly familar with VS.NET make sure you read:
BM Plugins->Getting Started->Starting a Plugin From Scratch

If you have questions, or comments, about the SDK itself please reply here. If you have questions about coding please start a new thread.

Thanks,
-Brett
__________________
A Sample of My Beyond Media Projects:

To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
Browse and play your ROMS, Arcade Games, and PC Games within BM!


To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
Add MSN Messenger to BM. Includes MSN notifications over any module, and a chat client!


To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
Add PIN protection to any module in BM, including the settings!


To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
Brings the BTV Recording Library into BM with full show details.
Reply With Quote
  #2 (permalink)  
Old 01-27-2005, 11:23 AM
bshinkle's Avatar
Registered User
 
Join Date: Mar 2003
Location: Voorhees, NJ
Posts: 164
Re: NEW: BeyondMedia SDK Documents

Great to see this.

One question, and this is one that was hashed previously, and I never saw an answer for.. I run vs.net on a pc separate from my htpc. Will the BM SDK run on that machine?

What about BTV development on this same machine (separate from server)? I do not plan on installing vs.net on my server.

I know you can't speak for Snapstream, but what are others doing?
Reply With Quote
  #3 (permalink)  
Old 01-27-2005, 11:50 AM
Brett's Avatar
l33t Beta Tester
 
Join Date: Feb 2003
Posts: 3,919
Send a message via AIM to Brett
Re: NEW: BeyondMedia SDK Documents

Quote:
Originally Posted by bshinkle
but what are others doing?
Don't quote me here, but I believe the license allows you to install BM on an additional development machine, for the sole purpose of developing.

-Brett
__________________
A Sample of My Beyond Media Projects:

To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
Browse and play your ROMS, Arcade Games, and PC Games within BM!


To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
Add MSN Messenger to BM. Includes MSN notifications over any module, and a chat client!


To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
Add PIN protection to any module in BM, including the settings!


To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
Brings the BTV Recording Library into BM with full show details.
Reply With Quote
  #4 (permalink)  
Old 08-30-2005, 05:38 PM
Registered User
 
Join Date: Jul 2005
Location: Leiden, The Netherlands
Posts: 2
Re: BeyondMedia SDK Documents

Are there any code examples on SnapStream BeyondMedia Widgets, Classes etc comming up?

I'm currently trying to create a (vertical) TexttList of (horizontal) TextLists of TextListItems. I want the rows having equal height, but it must be possible to have listitems (within each row) of arbitrary width. This results effectively in a "gant chart" -like overview, often used to display TV Guides on screen.
(each row corresponds to a channel, each listitem within the row to a show).

Is it possible to create this kind of custom widget and position it in the plugins.xml? I can create and position individual TextListItems, but I don't know at design-time how many Listitems I will have (And what their positions will be).

Is there anyone who knows how to create custom Widgets out of standard SnapStream Widgets?

Thanx for answering
PascalNL
Reply With Quote
  #5 (permalink)  
Old 08-30-2005, 10:19 PM
Administrator
 
Join Date: Dec 2004
Location: Houston, TX
Posts: 2,291
Send a message via AIM to Kilrsat
Re: BeyondMedia SDK Documents

Yes its possible. I'm just really swamped with work at the moment. Might not be until the weekend that I can get an example put together.
__________________

To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
Reply With Quote
  #6 (permalink)  
Old 09-05-2005, 12:51 PM
Administrator
 
Join Date: Dec 2004
Location: Houston, TX
Posts: 2,291
Send a message via AIM to Kilrsat
Re: BeyondMedia SDK Documents

I'm attaching a quick and dirty example of a new list item. This list item uses multiple TextButtons to display information in line.

It should provide a decent idea on where to start, but there are a few issues with it. Mainly focus/keyboard related items. These will most likely require a new List that would allow the list items to control focus/key events instead of managing everything itself. This should be a simple extension of a TextList (or BaseList if you really want, but I'd go TextList) and overriding of only a few specific functions.
Attached Files
File Type: zip HelloWorld3.zip (631.2 KB, 362 views)
__________________

To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
Reply With Quote
  #7 (permalink)  
Old 10-27-2005, 07:00 PM
Registered User
 
Join Date: Oct 2004
Posts: 121
Re: BeyondMedia SDK Documents

I'm looking to develop a plugin...is there an email address I can use to correspond with any of the beyond media developers? I've tried PM but no answer or box full
Reply With Quote
  #8 (permalink)  
Old 10-29-2005, 11:30 AM
Administrator
 
Join Date: Dec 2004
Location: Houston, TX
Posts: 2,291
Send a message via AIM to Kilrsat
Re: BeyondMedia SDK Documents

I'm generally available to answer any and all questions.
__________________

To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
Reply With Quote
  #9 (permalink)  
Old 10-29-2005, 04:56 PM
Registered User
 
Join Date: Dec 2003
Location: England
Posts: 377
Send a message via MSN to mickwall
Re: BeyondMedia SDK Documents

Quote:
Originally Posted by Kilrsat
I'm generally available to answer any and all questions.
Now you've done it.....

I have a TextPane that gets populated using the Command Interface, and what I want to do is when the list no longer fits within the window (i.e the scroll gets activated) I want to make the list slowly scroll to the bottom, Ive tried incrementing the scrollbar.value but this does not seem to work.

Any advise would be appreciated.

Cheers


Mick
__________________

To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
Allows viewing/deleting of POP, IMAP and Hotmail based mail.

To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
Allows viewing status of all tuners in alll BTV servers from BM Main Menu
_______________
BTV Server (BM 1.0 + BTV 3.52 2 PVR 250 tuners)
Asus MB | XP Pro SP2 | P4 2.8 | FX5200 128Mb | 512 Mb PC3200 | RAID 5 4 x 250Gb SATA drives | CM Water cooled
Reply With Quote
  #10 (permalink)  
Old 10-29-2005, 06:38 PM
Administrator
 
Join Date: Dec 2004
Location: Houston, TX
Posts: 2,291
Send a message via AIM to Kilrsat
Re: BeyondMedia SDK Documents

Quote:
Originally Posted by mickwall
Now you've done it.....

I have a TextPane that gets populated using the Command Interface, and what I want to do is when the list no longer fits within the window (i.e the scroll gets activated) I want to make the list slowly scroll to the bottom, Ive tried incrementing the scrollbar.value but this does not seem to work.

Any advise would be appreciated.

Cheers


Mick
How smooth do you need the scrolling? I've gotten two different ways working so far, but it isn't a silky smooth transition yet.
__________________

To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
Reply With Quote
  #11 (permalink)  
Old 10-30-2005, 04:07 AM
Registered User
 
Join Date: Dec 2003
Location: England
Posts: 377
Send a message via MSN to mickwall
Re: BeyondMedia SDK Documents

I was looking for smooth scrolling but if thats not possible then anything will be better than nothing!

Cheers


Mick
__________________

To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
Allows viewing/deleting of POP, IMAP and Hotmail based mail.

To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
Allows viewing status of all tuners in alll BTV servers from BM Main Menu
_______________
BTV Server (BM 1.0 + BTV 3.52 2 PVR 250 tuners)
Asus MB | XP Pro SP2 | P4 2.8 | FX5200 128Mb | 512 Mb PC3200 | RAID 5 4 x 250Gb SATA drives | CM Water cooled
Reply With Quote
  #12 (permalink)  
Old 10-30-2005, 09:49 AM
Administrator
 
Join Date: Dec 2004
Location: Houston, TX
Posts: 2,291
Send a message via AIM to Kilrsat
Re: BeyondMedia SDK Documents

Ok, vital code to all of this:

Need to declare this somewhere:

Code:
public delegate void ScrollDelegate( );
Now in the screen that has the text pane, add this variable:

Code:
private System.Timers.Timer		_scrollTimer;
In the constructor:

Code:
_scrollTimer = new System.Timers.Timer(500);
_scrollTimer.AutoReset = true;
_scrollTimer.Elapsed +=new System.Timers.ElapsedEventHandler(_scrollTimer_Elapsed);

At the very end of "AddText"

Code:
_scrollTimer.Start();

And now the part that actually does work:

Code:
private void _scrollTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e) {
			
	System.Windows.Forms.Form f = (System.Windows.Forms.Form)MainForm;
	ScrollDelegate sDel = null;
	sDel += new ScrollDelegate( ScrollUpdateWorker );
	f.BeginInvoke( sDel, null );
}

private void ScrollUpdateWorker() {
	//_synopsis.OnMouseWheel( this, new System.Windows.Forms.MouseEventArgs(System.Windows.Forms.MouseButtons.None, 0, 1, 1, -5) );
	long delta = Math.Min( 4, _synopsis.ScrollBar.Maximum - _synopsis.ScrollBar.Value );
	_synopsis.ScrollBar.Value += delta;
	if( _synopsis.ScrollBar.Value >= _synopsis.ScrollBar.Maximum ) {
		_scrollTimer.Stop();
	}
}
I've also attached a whole class that implements this, incase you want to look at some specifics. A cleaner implementation would have created a new ScrollingTextPane widget, but I didn't feel like doing that much work. This combination of 500ms timer and a scroll value of 4 seemed to be the smoothest scroll for me that also kept text moving at a reasonable pace. You can fiddle with these numbers if the current scroll rate isn't to your liking.
Attached Files
File Type: txt MovieDetailsScreen.txt (28.0 KB, 307 views)
__________________

To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
Reply With Quote
  #13 (permalink)  
Old 10-30-2005, 11:37 AM
Registered User
 
Join Date: Dec 2003
Location: England
Posts: 377
Send a message via MSN to mickwall
Re: BeyondMedia SDK Documents

Kirsat,

Absolutely wicked, many thanks, I'll get this in to my code ASAP and re-release it.

Regards


Mick
__________________

To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
Allows viewing/deleting of POP, IMAP and Hotmail based mail.

To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
Allows viewing status of all tuners in alll BTV servers from BM Main Menu
_______________
BTV Server (BM 1.0 + BTV 3.52 2 PVR 250 tuners)
Asus MB | XP Pro SP2 | P4 2.8 | FX5200 128Mb | 512 Mb PC3200 | RAID 5 4 x 250Gb SATA drives | CM Water cooled
Reply With Quote
  #14 (permalink)  
Old 11-15-2005, 10:43 PM
dzCepheus's Avatar
Registered User
 
Join Date: Oct 2005
Posts: 37
Re: BeyondMedia SDK Documents

Can I build plugins with .NET 2.0 and expect them to work properly?
Reply With Quote
  #15 (permalink)  
Old 04-22-2006, 06:00 PM
dzCepheus's Avatar
Registered User
 
Join Date: Oct 2005
Posts: 37
Re: BeyondMedia SDK Documents

Half a year later and no answer?
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
BeyondMedia translation Fidoboy Development Discussion 1 05-09-2006 09:34 AM
BTV and BeyondMedia merge? bullgates Beyond TV and Beyond TV Link 1 04-18-2006 08:39 PM
The documents... Brett Development Discussion 20 01-12-2005 12:31 PM
BeyondTV 3.5 SDK Documents Zack Development Discussion 4 11-06-2004 10:09 PM


All times are GMT -6. The time now is 01:49 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.0 RC1
©2004-2006 Snapstream Media
You Rated this Thread: