java - Google Media Framework (GMF) addListener to work with playStateChanged -


i using google media framework play video files.

as mentioned in above link gmf built on top of exoplayer.

my question

how can addlistener(...) work playerstatechanged(...)

mainactivity.java code

activity_main.xml

to play videos using framelayout:

<framelayout         android:id="@+id/video_frame"         android:layout_width="match_parent"         android:layout_height="0dp"         android:layout_weight="1"         android:background="@android:color/background_dark"/> 

i found this link work exoplayer's playerstatechanged(...) not getting how can use same solution in existing code.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -