Changeset 347cc8cc494f02050c3c1685fa35825e257c5a5d
- Timestamp:
- 07/19/08 12:00:24
(1 month ago)
- Author:
- Filippo Carone <littlejohn@videolan.org>
- git-committer:
- Filippo Carone <littlejohn@videolan.org> 1216461624 +0200
- git-parent:
[a3b88389a26ac6f747f946ee36556d83d18bda71]
- git-author:
- Filippo Carone <littlejohn@videolan.org> 1216461624 +0200
- Message:
Extra info about compiler and revision name added binded from libvlc
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r84d0f81 |
r347cc8c |
|
| 294 | 294 | |
|---|
| 295 | 295 | void libvlc_release(LibVlcInstance libvlc_instance_t); |
|---|
| | 296 | |
|---|
| | 297 | String libvlc_get_version(); |
|---|
| | 298 | |
|---|
| | 299 | String libvlc_get_compiler(); |
|---|
| | 300 | |
|---|
| | 301 | String libvlc_get_changeset(); |
|---|
| 296 | 302 | |
|---|
| 297 | 303 | // video |
|---|
| re8eb613 |
r347cc8c |
|
| 27 | 27 | |
|---|
| 28 | 28 | import java.awt.Canvas; |
|---|
| 29 | | import java.awt.Component; |
|---|
| 30 | 29 | |
|---|
| 31 | 30 | import javax.swing.JFrame; |
|---|
| … | … | |
| 57 | 56 | |
|---|
| 58 | 57 | System.out.println("Starting vlc"); |
|---|
| | 58 | System.out.println("version: " + libVlc.libvlc_get_version()); |
|---|
| | 59 | System.out.println("changeset: " + libVlc.libvlc_get_changeset()); |
|---|
| | 60 | System.out.println("compiler: " + libVlc.libvlc_get_compiler()); |
|---|
| | 61 | |
|---|
| 59 | 62 | LibVlcInstance libvlc_instance_t = libVlc.libvlc_new(0, new String[] {"/usr/local/bin/vlc"}, exception); |
|---|
| 60 | 63 | |
|---|
| … | … | |
| 62 | 65 | .libvlc_media_new(libvlc_instance_t, "/home/carone/a.avi", exception); |
|---|
| 63 | 66 | |
|---|
| 64 | | LibVlcMediaInstance mediaInstance = libVlc.libvlc_media_player_new_from_media(mediaDescriptor, exception); |
|---|
| | 67 | LibVlcMediaInstance mediaPlayer = libVlc.libvlc_media_player_new_from_media(mediaDescriptor, exception); |
|---|
| 65 | 68 | |
|---|
| 66 | | LibVlcEventManager mediaInstanceEventManager = libVlc.libvlc_media_player_event_manager(mediaInstance, exception); |
|---|
| | 69 | LibVlcEventManager mediaInstanceEventManager = libVlc.libvlc_media_player_event_manager(mediaPlayer, exception); |
|---|
| 67 | 70 | |
|---|
| 68 | 71 | LibVlcCallback played = new LibVlcCallback() |
|---|
| … | … | |
| 116 | 119 | |
|---|
| 117 | 120 | long drawable = com.sun.jna.Native.getComponentID(canvas); |
|---|
| 118 | | |
|---|
| 119 | | libVlc.libvlc_video_set_parent(libvlc_instance_t, drawable, exception); |
|---|
| 120 | 121 | |
|---|
| 121 | | libVlc.libvlc_media_player_play(mediaInstance, exception); |
|---|
| | 122 | libVlc.libvlc_media_player_play(mediaPlayer, exception); |
|---|
| | 123 | |
|---|
| | 124 | libVlc.libvlc_media_player_set_drawable(mediaPlayer, drawable, exception); |
|---|
| 122 | 125 | } |
|---|
| 123 | 126 | } |
|---|