Controller bar inoperative
Posted: 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
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