Controller bar inoperative

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
erikhans08
Posts: 87
Joined: Wed Mar 25, 2015 2:01 am

Controller bar inoperative

Post by erikhans08 » Sun Oct 25, 2015 4:57 pm

LiveCode Dictionary:
Use the showController property to enable access to the player's controls, or hide the controller bar.
The showController of a player is true or false.
By default, the showController property of newly created players is set to true.
Comments:
A player's controller bar is used to start, pause, rewind, and fast-forward a movie or sound, and to select a portion of a movie or sound for playback.
Set a player's showController property to false if you are providing these capabilities in the stack already, or if you do not want the user to be able to control playback of the movie or sound.

The controller bar of my player does not work. These are checked:
visible
alwaysBuffer
showController
showBadge
TraversalOn
showSelection
playSelection

unchecked:
looping

playRate = 1

Not sure if all of this relates, but the video does play and stop the selected times.
No pause, rewind, and fast-forward so far.
Script of my button "Play video" on the same stack as the players:

on mouseUp
set the playSelection of player "001-008 Dancing Player" of stack "Players" to true
set the playrate of player "001-008 Dancing Player" of stack "Players" to 1
set the currentTime of player "001-008 Dancing Player" of stack "Players" to 3000

if (the label of me) = "Play" then
set the startTime of player "001-008 Dancing Player" of stack "Players" to 1000
set the endTime of player "001-008 Dancing Player" of stack "Players" to 20000
play player "001-008 Dancing Player" of stack "Players"
set the enabled of button "001-008 Teaching BiggerSmaller" of stack "Players" to false
set the enabled of button "001-008 Teaching PlayStop" of stack "Players" to false
set the label of me to "Stop"
else
stop player "001-008 Dancing Player" of stack "Players"
set the enabled of button "001-008 Teaching BiggerSmaller" of stack "Players" to true
set the enabled of button "001-008 Teaching PlayStop" of stack "Players" to true
set the label of me to "Play"
end if
choose pointer tool
choose browse tool
end mouseUp

Thanks

Erik Hansen

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Re: Controller bar inoperative

Post by bn » Sun Oct 25, 2015 8:53 pm

Hi Erik,

which version of LC are you using?

If it is an earlier version try to uncheck "alwaysBuffer".

In earlier versions this made the controller bar unresponsive.

In current versions I tested and alwaysBuffer on or off does not make a difference

From an earlier dictionary for alwaysBuffer
If a player's alwaysBuffer is true, it cannot be controlled with the controller bar and must be operated by script control.
Kind regards
Bernd

erikhans08
Posts: 87
Joined: Wed Mar 25, 2015 2:01 am

Re: Controller bar inoperative

Post by erikhans08 » Sun Mar 06, 2016 3:40 am

Thanks Bernd,
I have Community 7.1.2 now but it still doesn't work with alwaysbuffer unchecked.

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Controller bar inoperative

Post by Klaus » Sun Mar 06, 2016 10:14 am

Hi Erik,

what format is the video in?
MP4, Mov or XXX?
What is its size in pixels?
What is its duration?
What is its filesize?


Best

Klaus

erikhans08
Posts: 87
Joined: Wed Mar 25, 2015 2:01 am

Re: Controller bar inoperative

Post by erikhans08 » Sun Mar 20, 2016 12:16 pm

While I work on those issues are there quidelines respecting limits etc. published anywhere?

Post Reply