|
local function | src (url) |
|
local function | play () |
|
local function | pause () |
|
local function | resume () |
|
local function | stop () |
|
local function | resize (width, height) |
|
local function | position (pos_x, pos_y) |
|
streamming videos and music
- Precondition
- require
media.video
Video
- Example
std.media.video()
:
src(
'http://t.gamely.com.br/rick.mpg')
Stream
can play
hls and
dash, also can use
std.media.stream()
- Precondition
- in HTML5 cores need flag
--videojs
- Example
std.media.video()
:
src(
'https://dash.akamaized.net/dash264/TestCasesIOP33/adapatationSetSwitching/5/manifest.mpd')
Youtube
- Precondition
- only avaliable in HTML5 cores also can use
std.media.youtube()
- Example
std.media.video()
:
src(
'https://www.youtube.com/watch?v=dVYl5ImNjow&list=PL4Gr5tOAPttKUXrXjulSCYa-L4xIwDyTi')
◆ pause()
◆ play()
◆ position()
local function position |
( |
pos_x | , |
|
|
pos_y | ) |
◆ resize()
local function resize |
( |
width | , |
|
|
height | ) |
◆ resume()
local function resume |
( |
| ) |
|
◆ src()
local function src |
( |
url | | ) |
|
◆ stop()