-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code Updates for using libvlc (2.1.1), fixes #33 #48
Conversation
I've tried this. The app builds fine but it crashes when trying to play movies. Here is the error for reference. |
Please Make a Clean Build and the error will be resolved. You are getting the error because previously in |
View.OnSystemUiVisibilityChangeListener | ||
{ | ||
@Inject | ||
ServerClient serverClient; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just for reference: here ^ is the instance injection that was removed. @megabitdragon
The clean build did the job. There are however some issues with it. Some might be vlc related and I'll take a look at those but there are others as well (e.g.: the controls don't show up when you tap screen, movie restarts when changing orientation). Good job so far. |
I will try to resolve the errors |
@megabitdragon I have tried to resolve some of the issues that you mentioned:
I have another solution for this, in my another pr #71 I have added a |
Looks like |
- fix: surface width and height becoming zero bug - feat: different surface video scaling types added - TODO added in code
- orientation change restarts video - controls not showing after fullscreen - app crashes in some cases
Good work on this. The movie restarting when changing orientation is fixed. I see what you mean about the toast and video controls. I will take a look at it as well. Meanwhile I merged PR #71 and rebased the vlc2 branch. This might create some issues with your commits since the references were changed. |
No issues I have rebased my vlc2 branch accordingly and now I can use that |
@megabitdragon the |
Bug #1446: |
Hi guys, i decided to try this and after a full cleanup, it works quite well on all file formats I tried it on. Great job! Should we merge it into master? |
This pr is in reference to issue #33 on github and issue #2014 on amahi issue tracker.
There have been a lot of changes in the libvlc library since it was last used in this project. I have tried to make all the necessary changes required to make it work.
The following changes have been made:
buildscript repositories
todependencies repositories
in build.gradlesetSurfaceSize
method previously given inlibvlc.IVideoPlayer
and implemented inVideoService
byonNewVideoLayout
given inIVLCVout.OnNewVideoLayoutListener
and implemented inServerFileVideoActivity
VideoService
and implemented inServerFileVideoActivity
as provided in newMediaPlayer.EventListener
interface