video-streaming icon indicating copy to clipboard operation
video-streaming copied to clipboard

about using the jar in Windows

Open liuxthu opened this issue 6 years ago • 0 comments

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()  

liuxthu avatar Dec 26 '18 08:12 liuxthu