Total Pageviews

Tuesday, June 3, 2014

នេះជា Type Video របស់ Corona SDK

នេះជា Type Video របស់ Corona SDK
វាជា Video object ដែលជា native display object។ អាច move it, rotate it or even add a physics body
ចំណាំះ នៅលើ IOS វាមានដែនកំនត់នៃលេខ simultaneous video objects ដែលអាចលែងបាន

Properties
(Inherits properties from NativeDisplayObject)
object.currentTime
វាជា Current time position នៃ video នៅក្នុង seconds (read-only) ប្រើវាជា conjunction ជាមួយនឹង native.newVideo()

object.isMuted    
ប្រើសំរាប់គ្រប់គ្រង់ Video’s audio channel is muted។ ប្រើវាជាមួយនឹង conjunction ជាមួយនឹង native.newVideo()

object.totalTime
វាជាប្រវែងនៃ currently loaded video ជាវិនាទី។​ វាត្រូវបានហៅបន្ទាប់ពី Video គឺត្រូវបានរៀបចំលេង ឬក៏ inaccurate value ដែលអាចត្រលប់
Methods
(Inherits methods from NativeDisplayObject)

object:load()
ប្រើសំរាប់ Loads a specified video។ ប្រើជាមួយនឹង conjunction with native.viewVideo()
Syntax: object:load (path)
Object:load (path, baseSource)
Path(តំរូវការ) វាជា String, ដែលជា local filename or remote URL សំរាប់ Video
baseSource (ជំរើស) វាជា constant, ដែលគ្រប់គ្រង់លើ Path is interpreted។ វាអាចជា one of the system defined directory constants or media.RemoteSource(use this to access video on a remote server)

object:pause()
ប្រើសំរាប់ Pauses នៅ currently loaded video, ប្រើជាមួយនឹង conjunction native.newVideo()
Syntax: object:pause()


object:play()               
ប្រើសំរាប់លេងជាមួយនឹង currently loaded video, ប្រើជាមួយនឹង conjunction ជាមួយនឹង native.newVideo()
Syntax: object:play()

object:seek()
ប្រើសំរាប់ស្វែងរក & Jumps នៅពេលណាមួយនៅក្នុង currently loaded video, ប្រើជាមួយនឹង conjunction native.newVideo()
Syntax: object:seet (timeInSeconds)
timeInSeconds (តំរូវការ) វាជាចំនួនលេខដែល jumps នៅ specified time នៅក្នុង currently loaded videoensure that this is not greater than the object.totalTime property


No comments:

Post a Comment