ashqal / MD360Player4Android

It is a lite library to render 360 degree panorama video for Android. VR Player.
Apache License 2.0
1.08k stars 356 forks source link

HTTPS video not playing #56

Closed terenzeyuen closed 8 years ago

terenzeyuen commented 8 years ago

Can't seem to play HTTPS url..

ashqal commented 8 years ago

https://github.com/Bilibili/ijkplayer/issues/1269 As bbcallen said, You should build FFmpeg with OpenSSL support.

terenzeyuen commented 8 years ago

Is that the video encoding? So I can tell the video provider..

ashqal commented 8 years ago

No, the ijkplayer is using ffmpeg(in .so file). By default, the https scheme can't recognized by ffmepg without OpenSSL. So you should compile a new .so file which has https option.

RamIndani commented 8 years ago

Will it be fine with MediaPlayer or ExoPlayer with HTTPS url's. or m3u8 Edit: I was able to use it successfully with HTTPS m3u8 streaming using ExoPlayer

ashqal commented 8 years ago

@RamIndani I think the answer is YES. The ONLY one step you should do is setting the surface(created from MDVRLibrary#asVideo callback) to player.

player.blockingSendMessage(videoRenderer, MediaCodecVideoTrackRenderer.MSG_SET_SURFACE, surface);
RamIndani commented 8 years ago

@ashqal Thank you for confirming, I was able to run it successfully and I updated my question accordingly so that others will find it helpful and I simply used setSurface of ExoPlayer and it worked.

ashqal commented 8 years ago

@RamIndani nice!

debrajb commented 8 years ago

How to load video from phone internal memory?

sharmadev2506 commented 5 years ago

You need to replace HTTPS to HTTP, after that it will run successfully. Although this is just a way around for some time, it may help. Anyone with the real solution please post it here or it would be better to improve the library.