Difference between revisions of "Mediamanager:playVideo"

From GiderosMobile
(first attempt at creating methods for media plugin)
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2016.1<br/>
'''<translate>Available since</translate>:''' Gideros 2016.1<br/>
+
'''Class:''' [[Media]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Media|Media]]<br/>
 
  
=== <translate>Description</translate> ===
+
=== Description ===
 
Plays video file in given path.
 
Plays video file in given path.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
mediamanager:playVideo(path, force)
 
mediamanager:playVideo(path, force)
</source>
+
</syntaxhighlight>
  
=== <translate>Parameters</translate> ===
+
'''ANDROID SDK 29+ HAS SOME BREAKING CHANGES, THIS FUNCTION WILL NOT WORK AS EXPECTED :-('''
'''path''': (string) <translate>the path of the video to play</translate><br/>
 
'''force''': (bool) <translate>force to watch till the end, or quit playing on tap</translate>
 
  
<!-- {{Media}} -->
+
=== Parameters ===
 +
'''path''': (string) the path of the video to play<br/>
 +
'''force''': (bool) force to watch till the end, or quit playing on tap<br/>
 +
 
 +
{{Media}}

Latest revision as of 03:31, 21 December 2024