Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit c3d443e

Browse files
Merge pull request #7152 from livecodesam/bugfix_19631
[Bugfix-19631] Note in docs that mobile player controller requires correct filename to display
2 parents b78bc62 + 0477321 commit c3d443e

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

docs/dictionary/command/mobileControlCreate.lcdoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@ To read a property of a native control use: <mobileControlGet>
7171

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

74+
>*Note:* If a player is created with an invalid filename or if the file is
75+
> missing, the video controller will display incorrectly. To check if a
76+
> player is set up correctly, the following code could be used:
77+
78+
if mobileControlGet(sPlayerID, "duration") < 0 then
79+
answer "Player is not initialised correctly"
80+
end if
81+
7482
References: mobileControlDelete (command), mobileControlDo (command),
7583
mobileControlSet (command),
7684
mobileControlGet (function), mobileControlTarget (function),

docs/dictionary/command/mobileControlSet.lcdoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,14 @@ directionalLockEnabled property). This is a boolean value.
191191
- "filename": The filename of URL of the media to play. Setting the
192192
filename of the player automatically 'prepares' the movie for playback.
193193

194+
>*Note:* If the filename set for a player is invalid or the file is missing,
195+
> the video controller will display incorrectly. To check if a player is
196+
> set up correctly, the following code could be used:
197+
198+
if mobileControlGet(sPlayerID, "duration") < 0 then
199+
answer "Player is not initialised correctly"
200+
end if
201+
194202
- "showController": Determines whether the controller is displayed over
195203
the content. This is a boolean value.
196204

docs/notes/bugfix-19631.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Added notes in mobile control documentation that the video controller only displays when its filename is correct.

0 commit comments

Comments
 (0)