Skip to content
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

about using the jar in Windows #3

Open
liuxthu opened this issue Dec 26, 2018 · 0 comments
Open

about using the jar in Windows #3

liuxthu opened this issue Dec 26, 2018 · 0 comments

Comments

@liuxthu
Copy link

liuxthu commented Dec 26, 2018

dear sir, i am very appreciate for you work, now i am trying use it for Windows.
i my python application, i use JPype to execute the .jar file you provide. the problem i met is how to give the parameters.
the code is like follows. so in order to use it , i may be need for information about the class name and its method used in the .jar. i mean, can i use it conveniently just as you use in shell?(pass accessKey, secretKey, region, video_stream_name, fileName and get the response)
can you give some help.
Best regards,
Andy from Beijing

from jpype import *  
startJVM("*****/jvm.dll","-ea", "-Djava.class.path=%s" % ('kinesisvideo-java-demo-1.0-SNAPSHOT.jar'))  

JDClass = JClass(<the class name for putmedia>)  
jd = JDClass()  
jd.<the name for putmedia and so on>(<the parameters>)
shutdownJVM()  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant