fbsamples / 360-video-player-for-android

Sample code for creating a 360 video player on Android. Creates an OpenGL ES scene that renders a sphere textured with video frames from MediaPlayer playback. Does not use the NDK. This is a simple example of the core elements of 360 video rendering and is not intended to be production quality code. The code may be unstable. This is won't be maintained.
Other
616 stars 166 forks source link

Does not play video in Samsung note 4, SM-N900,v4.4.2 #2

Closed Qamar4P closed 8 years ago

Qamar4P commented 8 years ago

I have build this. 360 video player in Android Studio v2.1 beta3. gradle:2.1.0-beta3 Can't play video placed in asset folder. Toast saying "Prepairing video..." Log: 04-20 17:00:47.436: V/MediaPlayer(7065): prepareAsync 04-20 17:00:47.441: V/MediaPlayer(7065): message received msg=300, ext1=0, ext2=0 04-20 17:00:47.441: V/MediaPlayer(7065): Received SEC_MM_PLAYER_CONTEXT_AWARE 04-20 17:00:47.441: V/MediaPlayer(7065): callback application 04-20 17:00:47.441: V/MediaPlayer(7065): back from callback 04-20 17:00:47.441: V/MediaPlayer(7065): message received msg=100, ext1=1, ext2=-2147483648 04-20 17:00:47.441: E/MediaPlayer(7065): error (1, -2147483648) 04-20 17:00:47.441: V/MediaPlayer(7065): callback application 04-20 17:00:47.441: V/MediaPlayer(7065): back from callback 04-20 17:00:47.481: I/MediaPlayer(7065): send context aware event 04-20 17:00:47.486: I/MediaPlayer(7065): sendBroadcast CONTEXT_AWARE_MUSIC_INFO - type(error) - id (29) 04-20 17:00:47.486: E/MediaPlayer(7065): Error (1,-2147483648)

03lafaye commented 8 years ago

I have it working on a Galaxy Note 4 model SM-N910H running 5.0.1. You can replace this 4k 30fps video with any other equirectangular video that you can load properly on your device.