Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/dictionary/command/mobileControlCreate.lcdoc
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ To read a property of a native control use: <mobileControlGet>

To control the behavior of a native control use: <mobileControlDo>

>*Note:* If a player is created with an invalid filename or if the file is
> missing, the video controller will display incorrectly. To check if a
> player is set up correctly, the following code could be used:

if mobileControlGet(sPlayerID, "duration") < 0 then
answer "Player is not initialised correctly"
end if

References: mobileControlDelete (command), mobileControlDo (command),
mobileControlSet (command),
mobileControlGet (function), mobileControlTarget (function),
Expand Down
8 changes: 8 additions & 0 deletions docs/dictionary/command/mobileControlSet.lcdoc
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,14 @@ directionalLockEnabled property). This is a boolean value.
- "filename": The filename of URL of the media to play. Setting the
filename of the player automatically 'prepares' the movie for playback.

>*Note:* If the filename set for a player is invalid or the file is missing,
> the video controller will display incorrectly. To check if a player is
> set up correctly, the following code could be used:

if mobileControlGet(sPlayerID, "duration") < 0 then
answer "Player is not initialised correctly"
end if

- "showController": Determines whether the controller is displayed over
the content. This is a boolean value.

Expand Down
1 change: 1 addition & 0 deletions docs/notes/bugfix-19631.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Added notes in mobile control documentation that the video controller only displays when its filename is correct.