Comments (5)
@yongju-jin Do you mean the progress that is calculated by current position / video duration ?
Because Kohii is still in alpha, I cannot tell much, though I will eventually put a demo for that use case.
Right now, you can show the progress in the same way PlayerView shows the PlayerControlView where there is current position and video position, see here.
The concept will be: get current timeline information (position, duration), setup a Handler and execute it every second in a while to update your View that will show that information.
from kohii.
thanks for the reply.
and.. I have more question.
- how to volume control? (mute/unmute)
asPlayable = kohii?.setUp(videoUri)?.asPlayable()
asPlayable?.setVolumeInfo(
kohii.media.VolumeInfo(
)
)
error occurred: Unresolved referenced: media
- can i play video from first when play is completed??
i try
asPlayable?.playbackInfo?.resumePosition = TIME_UNSET
asPlayable?.play()
i know Kohii is alpha, but just wanna know Kohii supported
thanks,
from kohii.
About the Volume, this is a WIP in my local at the moment. The code base is significantly updated since this alpha actually. Managing volume is quite complicated. Considering Facebook: you mute one Video, all other Videos will be muted. In my latest strategy, I introduce the concept of "change Volume by Scope", which allows client to change volume of a Playback that will also change Volume of others depends on the scope (scope may be everything in the same RecyclerView, or just that one Playback).
The logic works well. But the challenge is to keep that change across config change, which I'm dealing with right now.
About the second question, you can set RepeatMode to the Player instance. I think this alpha doesn't have the method to set the RepeatMode from Playback instance or Playable instance, so you can access to the Player instance from PlayerView instance. My current source code has the method to set this from Playback instance and it will be there in production release.
from kohii.
thanks for the reply.
Thanks to Kohii, I finished my work.
thanks for your work.
from kohii.
@yongju-jin glad it helps
from kohii.
Related Issues (20)
- 1.3.0.2011008-20210429.080049-18 is not found at Sonatype HOT 6
- Video player blinks in RecyclerView HOT 5
- Migration from jcenter() to mavenCentral() or google() HOT 2
- Playback.StateListener not return any value HOT 2
- How to stop video playback when the app goes to background HOT 2
- Is the library production ready? HOT 1
- Play Video In Nested Recyclerview
- Why does not you play music in the video? I mean in Recyclerview ... HOT 1
- java.lang.NoSuchMethodError: No static method getNetworkType HOT 2
- Project not building in current stable version of android studio bumblebee HOT 1
- Kohii crash when use exoplayer 2.13.3 NoClassDefFoundError TrackSelection HOT 2
- Kohii with fragment replace HOT 2
- Kohii vs Toro and development status HOT 3
- Caching Video
- is Kohii better than Toro ? HOT 2
- Black Screen while move next video in Recycleview HOT 16
- Can't replay and black screen while play video with same tag in Recycleview
- How to change SeekForwardIncrementMs and SeekBackIncrementMs
- Is there any way to play the video from starting every time in Recyclerview, currently it's playing from the same position when it left last time during the scroll HOT 2
- Getting black screen in recyclerview while scrolling video HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kohii.