|
local function | add (src) |
|
local function | play () |
|
local function | pause () |
|
local function | resize (width, height) |
|
local function | postion (pos_x, pos_y) |
|
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')
Music
- Example
std.media.music()
:
add(
'http://t.gamely.com.br/rick.mp3')
◆ add()
local function add |
( |
src | | ) |
|
◆ pause()
◆ play()
◆ postion()
local function postion |
( |
pos_x | , |
|
|
pos_y | ) |
◆ resize()
local function resize |
( |
width | , |
|
|
height | ) |