new Telll(config)
Implements the telll controler
Parameters:
Name | Type | Description |
---|---|---|
config |
Object | the configuration |
Methods
auth(trkm) → {null}
Parameters:
Name | Type | Description |
---|---|---|
trkm |
Returns:
- Type
- null
createMovie(data)
Parameters:
Name | Type | Description |
---|---|---|
data |
Returns:
bool
createPhotolink(data)
Parameters:
Name | Type | Description |
---|---|---|
data |
Returns:
bool
createTrackmotion(data)
Parameters:
Name | Type | Description |
---|---|---|
data |
Returns:
bool
createUser(userId)
Parameters:
Name | Type | Description |
---|---|---|
userId |
Returns:
bool
deleteMovie(data, cb)
Delete movie
Parameters:
Name | Type | Description |
---|---|---|
data |
SerializedArray from dashboard movie form | |
cb |
callback function |
Returns:
bool
deletePhotolink(id, cb)
Delete photolink
Parameters:
Name | Type | Description |
---|---|---|
id |
||
cb |
callback function |
Returns:
bool
deleteTrackmotion(id, cb)
Delete trackmotion
Parameters:
Name | Type | Description |
---|---|---|
id |
||
cb |
callback function |
Returns:
bool
deleteUser(data, cb)
Delete user
Parameters:
Name | Type | Description |
---|---|---|
data |
SerializedArray from dashboard movie form | |
cb |
callback function |
Returns:
bool
getCookie(cname) → {null}
Parameters:
Name | Type | Description |
---|---|---|
cname |
Returns:
- Type
- null
getDevice() → {null}
Retrieve the device.
If
Returns:
- Type
- null
getMovie(movieId, cb)
Load movieId in this.movie
forward the callback to Movie.read()
Parameters:
Name | Type | Description |
---|---|---|
movieId |
||
cb |
callback |
Returns:
bool
getPhotolink(cb) → {null}
Begin the websocket or long poling wait for photolinks
Parameters:
Name | Type | Description |
---|---|---|
cb |
function | callback |
Returns:
- Type
- null
getPhotolinksOfMovie(movieId, cb) → {Movie}
Parameters:
Name | Type | Description |
---|---|---|
movieId |
||
cb |
callback |
Returns:
- Type
- Movie
getPhotolinksOfUser(userId, from, cb)
Parameters:
Name | Type | Description |
---|---|---|
userId |
int | |
from |
date | |
cb |
function | callback |
Returns:
bool
getTrackmotion(trackmotionId, cb)
Load trackmotionId in this.trackmotion
forward the callback to Trackmotion.read()
Parameters:
Name | Type | Description |
---|---|---|
trackmotionId |
||
cb |
callback |
Returns:
bool
getTrackms(trkId) → {null}
Parameters:
Name | Type | Description |
---|---|---|
trkId |
Returns:
- Type
- null
getTracks(id, cb) → {null}
Parameters:
Name | Type | Description |
---|---|---|
id |
Integer | |
cb |
Callback |
Returns:
- Type
- null
getUser(userId)
Parameters:
Name | Type | Description |
---|---|---|
userId |
Returns:
bool
listMovies(data) → {null}
Parameters:
Name | Type | Description |
---|---|---|
data |
Returns:
- Type
- null
listPhotolinks(data) → {null}
Parameters:
Name | Type | Description |
---|---|---|
data |
Returns:
- Type
- null
loadWidgets()
Telll.loadWidgets()
Returns:
bool
login(data)
Telll.login()
Parameters:
Name | Type | Description |
---|---|---|
data |
Returns:
bool
Construct the login machine.
- login widget
- donut if still authorized
logout(data)
Telll.logout()
Parameters:
Name | Type | Description |
---|---|---|
data |
Returns:
bool
readMovie(data)
Parameters:
Name | Type | Description |
---|---|---|
data |
Returns:
bool
readPhotolink(data)
Parameters:
Name | Type | Description |
---|---|---|
data |
Returns:
bool
readTrackmotion(data)
Parameters:
Name | Type | Description |
---|---|---|
data |
Returns:
bool
saveMovie(data, cb)
Save movie data from form
Parameters:
Name | Type | Description |
---|---|---|
data |
SerializedArray from dashboard movie form | |
cb |
callback function |
Returns:
bool
savePhotolink(data, cb)
save photolink
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | the photolink data to be saved |
cb |
function | callback function |
Returns:
bool
saveTrackmotion(data, cb)
Save trackmotion data from form
Parameters:
Name | Type | Description |
---|---|---|
data |
SerializedArray from dashboard trackmotion form | |
cb |
callback function |
Returns:
bool
saveUser(data, cb)
Save user data from form
Parameters:
Name | Type | Description |
---|---|---|
data |
SerializedArray from dashboard movie form | |
cb |
callback function |
Returns:
bool
sendPhotolink(data) → {null}
Parameters:
Name | Type | Description |
---|---|---|
data |
Returns:
- Type
- null
setCookie(cname, cvalue, extime)
Parameters:
Name | Type | Description |
---|---|---|
cname |
||
cvalue |
||
extime |
Returns:
string
showClickbox(data)
Telll.showClickbox()
Parameters:
Name | Type | Description |
---|---|---|
data |
Returns:
bool
showDashboard(data, cb)
Telll.showDashboard()
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | Add-ons and fields to be included |
cb |
function | callback |
Returns:
bool
showMockPlayer() → {null}
Listens to Events:
- event:MockPlayer
Returns:
- Type
- null
showMoviePage(movie, cb) → {MoviePage}
MoviePage is a modal widget showing the movie details and the link to play
Parameters:
Name | Type | Description |
---|---|---|
movie |
Movie | the movie to load |
cb |
function | callback |
Returns:
the MoviePage object
- Type
- MoviePage
showMoviePlayer() → {null}
Returns:
- Type
- null
showMoviesList() → {null}
MoviesList is a modal widget showing a mosaic of movie thumbnails
with title and description.
When a movie is selected it is assigned to telll.movie and is sent to the callback
Returns:
- Type
- null
showPhotolinksList() → {iView}
Returns:
the PhotolinksList View
- Type
- iView
showTagPlayer(player) → {null}
Parameters:
Name | Type | Description |
---|---|---|
player |
iPlayer | The movie Player must be a iPlayer |
Returns:
- Type
- null
showTelllBtn(trkm) → {null}
Parameters:
Name | Type | Description |
---|---|---|
trkm |
Returns:
- Type
- null
showVimeoPlayer() → {null}
Returns:
- Type
- null
showYoutubePlayer() → {null}
Returns:
- Type
- null
start() → {null}
Returns:
- Type
- null
syncPlayer(tagPlayer, moviePlayer)
Telll.syncPlayer()
Parameters:
Name | Type | Description |
---|---|---|
tagPlayer |
||
moviePlayer |
Returns:
bool
updateMovie(data)
Parameters:
Name | Type | Description |
---|---|---|
data |
Returns:
bool
updatePhotolink(data)
Parameters:
Name | Type | Description |
---|---|---|
data |
Returns:
bool
updateTrackmotion(data)
Parameters:
Name | Type | Description |
---|---|---|
data |
Returns:
bool
updateUser(userId)
Parameters:
Name | Type | Description |
---|---|---|
userId |
Returns:
bool
wsAuth(data)
Telll.wsAuth()
Parameters:
Name | Type | Description |
---|---|---|
data |
Returns:
bool