public class Player extends java.lang.Object implements IObject
IPlayerDelegate
interface, all methods in this interface get
called on the appropriate thread therefore calls back to the player are allowed.
The simplest way to get up and running with a 360 video is to call loadMedia(java.lang.String)
within
your implementation of IPlayerDelegate.onPlayerInitialized()
.Modifier and Type | Class and Description |
---|---|
static class |
Player.ViewMode |
Constructor and Description |
---|
Player(Context context) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
protected void |
finalize() |
PlayerConfig |
getConfig() |
long |
getNativeHandle() |
IPlayerDelegate |
getPlayerDelegate() |
Scene |
getScene() |
Player.ViewMode |
getViewMode() |
boolean |
handleKeyEvent(KeyEvent event) |
boolean |
handleTouchEvent(MotionEvent e) |
boolean |
loadMedia(IEntity entity) |
boolean |
loadMedia(java.lang.String url) |
boolean |
loadPackage(PackageEntity pkg) |
boolean |
loadSourceById(java.lang.Long sourceId) |
boolean |
loadVideo(VideoEntity vid) |
void |
pause() |
void |
render() |
void |
renderEye(int eye,
float[] jViewMatrix,
float[] jProjectionMatrix) |
void |
resize(int width,
int height) |
protected void |
restoreResoures() |
void |
resume() |
void |
setPlayerDelegate(IPlayerDelegate delegate) |
void |
setScene(Scene scene) |
void |
setViewMode(Player.ViewMode mode) |
boolean |
toFile(java.lang.String file) |
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public long getNativeHandle()
getNativeHandle
in interface IObject
public PlayerConfig getConfig()
public void setPlayerDelegate(IPlayerDelegate delegate)
public IPlayerDelegate getPlayerDelegate()
public void pause()
public void resume()
public void destroy()
public void setViewMode(Player.ViewMode mode)
public Player.ViewMode getViewMode()
public Scene getScene()
public void setScene(Scene scene)
public boolean loadMedia(java.lang.String url)
public boolean loadMedia(IEntity entity)
public boolean loadPackage(PackageEntity pkg)
public boolean loadVideo(VideoEntity vid)
public boolean loadSourceById(java.lang.Long sourceId)
public boolean handleKeyEvent(KeyEvent event)
public boolean handleTouchEvent(MotionEvent e)
public boolean toFile(java.lang.String file)
public void render()
public void renderEye(int eye, float[] jViewMatrix, float[] jProjectionMatrix)
public void resize(int width, int height)
protected void restoreResoures()