-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
Isn't there a clear interface to interact with the player ? #548
Comments
@moda20 I don't understand your meaning, any example ? |
@EragonJ I mean is there a global class or object that I can access to handle the play in the app from my own new js file or are all the controls linked to the the built in controls. function playFromURI(pathToFile){
} |
Yes, when you are using the But I don't think this will be precise enough because maybe for some special case, Kaku will not run (for example, if there is no track in your playlist) |
https://github.com/EragonJ/Kaku/blob/master/src/views/modules/Player.js#L463-L471 This is the main code that triggers player to play media. (the most correct one, so you can hook your js here) |
@moda20 Did my response answer your question :) ? If yes, I'll close this issue |
Feature
Idea
isn't there a JS class that lets you hook to the existing player and control it ? like play videos from other sources that the already existing (I implemented local video file playing) ?
What is your Kaku version?
2.0.2
What is your OS (with version number)?
Mac 10.14.1
The text was updated successfully, but these errors were encountered: