GlyEngine 0.0.19
Create games and apps with lua
Loading...
Searching...
No Matches
Media

Functions

local function add (src)
 
local function play ()
 
local function pause ()
 
local function resize (width, height)
 
local function postion (pos_x, pos_y)
 

Detailed Description

streamming videos and music

Precondition
require media.video media.music
Note
You can also use mock.video and mock.music when the platform does not yet have support,
or you want the media to be optional and keep the api.
Todo
support as a playlist

Video

Example
std.media.video()
:add('http://t.gamely.com.br/rick.mpg')
:play()
local function play()
local function add(src)

Music

Example
std.media.music()
:add('http://t.gamely.com.br/rick.mp3')
:play()

Function Documentation

◆ add()

local function add ( src )

◆ pause()

local function pause ( )

◆ play()

local function play ( )

◆ postion()

local function postion ( pos_x ,
pos_y  )

◆ resize()

local function resize ( width ,
height  )