Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Tue Aug 21, 2018 1:34 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: MoviePlayer.HasStep
PostPosted: Mon Jan 14, 2013 3:17 am 
Offline

Joined: Fri Sep 30, 2005 1:53 pm
Posts: 914
Location: Philadelphia, PA
The RB docs say this concerning MoviePlayer.HasStep.
_____

BooleanValue = MoviePlayer.HasStep
If True, the controller has forward and reverse arrows to the right of the slider. The default is True.

Example
This example turns HasStep off. Since it is called prior to the assignment of a movie to the player, the arrows are not shown for this movie.

Dim f as FolderItem
f=GetopenFolderItem(FileTypes1.VideoMp4)
if f<>Nil then
MoviePlayer1.AutoPlay = True
MoviePlayer1.HasStep=False
MoviePlayer1.movie=f.OpenAsMovie
end if
_____

Here's what I don't understand.

First, whether the value is true or false, there is a fast-forward arrow to the right of the slider (as the RB docs correctly state), BUT the rewind arrow is to the left of the slider, not to the right.

Second (and this is more important), If HasStep is declared to be true (or left to the default setting) the arrows are shown (as the RB docs correctly state). BUT if MoviePlayer.HasStep is declared to be false, the arrows are still shown.

This is contrary to the RB docs. which say, "This example turns HasStep off. Since it is called prior to the assignment of a movie to the player, the arrows are NOT shown for this movie."

BUT the arrows ARE are shown on my computer for the code below. Am I missing something here?

Barry Traver

P.S. I'm using the Windows version of REALbasic. And here's my code:

Dim MovieTypes As New FileType
MovieTypes.Name = "Movie files"
MovieTypes.Extensions = ".mpeg; .mpg; .mp4; .wmv"
Dim File1 As FolderItem = GetOpenFolderItem(MovieTypes)
If File1 <> Nil Then
MoviePlayer1.HasStep=False
MoviePlayer1.AutoPlay = True
MoviePlayer1.Movie = File1.OpenAsMovie
End If


Top
 Profile  
Reply with quote  
 Post subject: Re: MoviePlayer.HasStep
PostPosted: Mon Jan 14, 2013 4:01 am 
Offline

Joined: Fri Jan 06, 2006 3:21 pm
Posts: 12388
Location: Portland, OR USA
Perhaps it is platform-specific functionality and the docs need to be updated. The description of both arrows being on the same side sounds a lot like Mac. I believe you're on Windows, and the control should look different.


Top
 Profile  
Reply with quote  
 Post subject: Re: MoviePlayer.HasStep
PostPosted: Mon Jan 14, 2013 9:07 am 
Offline

Joined: Fri Sep 30, 2005 1:53 pm
Posts: 914
Location: Philadelphia, PA
Tim,

Thanks for the reply. If the Mac has arrows on both sides, that is probably the explanation. I do wish I could turn off the arrows in Windows, because the result of moving them is NOT pleasant on the eyes (it looks klutzy) or ears (it sounds awful), but the ability to remove the arrows may be missing on the Windows Media Player, which is what I think REALbasic uses for Windows. (There may not even be a Windows API call I could use, because that feature just may be entirely missing from the software).

Barry


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group