Changeset 97090ec35e65b1b3b3aa9b677367808fb1baefd6
- Timestamp:
- 03/09/08 12:42:59
(6 months ago)
- Author:
- Filippo Carone <littlejohn@videolan.org>
- git-committer:
- Filippo Carone <littlejohn@videolan.org> 1205062979 +0100
- git-parent:
[4add9fe38b3ef395be2deee5930bd0b6b0a7cd07]
- git-author:
- Filippo Carone <littlejohn@videolan.org> 1205062979 +0100
- Message:
Do not throw VLCException in Video class
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rdaa85a7 |
r97090ec |
|
| 60 | 60 | * @see org.videolan.jvlc.VideoIntf#getFullscreen() |
|---|
| 61 | 61 | */ |
|---|
| 62 | | public boolean getFullscreen(MediaInstance media) throws VLCException { |
|---|
| | 62 | public boolean getFullscreen(MediaInstance media) { |
|---|
| 63 | 63 | libvlc_exception_t exception = new libvlc_exception_t(); |
|---|
| 64 | 64 | return libvlc.libvlc_get_fullscreen(media.getInstance(), exception) == 1 ? true : false; |
|---|
| … | … | |
| 68 | 68 | * @see org.videolan.jvlc.VideoIntf#getSnapshot(java.lang.String) |
|---|
| 69 | 69 | */ |
|---|
| 70 | | public void getSnapshot(MediaInstance media, String filepath, int width, int height) throws VLCException { |
|---|
| | 70 | public void getSnapshot(MediaInstance media, String filepath, int width, int height) { |
|---|
| 71 | 71 | libvlc_exception_t exception = new libvlc_exception_t(); |
|---|
| 72 | 72 | libvlc.libvlc_video_take_snapshot(media.getInstance(), filepath, width, height, exception); |
|---|
| … | … | |
| 76 | 76 | * @see org.videolan.jvlc.VideoIntf#getVideoHeight() |
|---|
| 77 | 77 | */ |
|---|
| 78 | | public int getHeight(MediaInstance media) throws VLCException { |
|---|
| | 78 | public int getHeight(MediaInstance media) { |
|---|
| 79 | 79 | libvlc_exception_t exception = new libvlc_exception_t(); |
|---|
| 80 | 80 | return libvlc.libvlc_video_get_height(media.getInstance(), exception); |
|---|
| … | … | |
| 84 | 84 | * @see org.videolan.jvlc.VideoIntf#getVideoWidth() |
|---|
| 85 | 85 | */ |
|---|
| 86 | | public int getWidth(MediaInstance media) throws VLCException { |
|---|
| | 86 | public int getWidth(MediaInstance media) { |
|---|
| 87 | 87 | libvlc_exception_t exception = new libvlc_exception_t(); |
|---|
| 88 | 88 | return libvlc.libvlc_video_get_height(media.getInstance(), exception); |
|---|
| … | … | |
| 92 | 92 | * @see org.videolan.jvlc.VideoIntf#reparentVideo(java.awt.Component) |
|---|
| 93 | 93 | */ |
|---|
| 94 | | public void reparent(MediaInstance media, java.awt.Canvas canvas) throws VLCException { |
|---|
| | 94 | public void reparent(MediaInstance media, java.awt.Canvas canvas) { |
|---|
| 95 | 95 | libvlc_exception_t exception = new libvlc_exception_t(); |
|---|
| 96 | 96 | long drawable = com.sun.jna.Native.getComponentID(canvas); |
|---|
| … | … | |
| 101 | 101 | * @see org.videolan.jvlc.VideoIntf#resizeVideo(int, int) |
|---|
| 102 | 102 | */ |
|---|
| 103 | | public void setSize(int width, int height) throws VLCException { |
|---|
| | 103 | public void setSize(int width, int height) { |
|---|
| 104 | 104 | libvlc_exception_t exception = new libvlc_exception_t(); |
|---|
| 105 | 105 | libvlc.libvlc_video_set_size(libvlcInstance, width, height, exception); |
|---|
| … | … | |
| 109 | 109 | * @see org.videolan.jvlc.VideoIntf#setFullscreen(boolean) |
|---|
| 110 | 110 | */ |
|---|
| 111 | | public void setFullscreen(MediaInstance media, boolean fullscreen) throws VLCException { |
|---|
| | 111 | public void setFullscreen(MediaInstance media, boolean fullscreen) { |
|---|
| 112 | 112 | libvlc_exception_t exception = new libvlc_exception_t(); |
|---|
| 113 | 113 | libvlc.libvlc_set_fullscreen(media.getInstance(), fullscreen? 1 : 0, exception); |
|---|
| … | … | |
| 117 | 117 | * @see org.videolan.jvlc.VideoIntf#toggleFullscreen() |
|---|
| 118 | 118 | */ |
|---|
| 119 | | public void toggleFullscreen(MediaInstance media) throws VLCException { |
|---|
| | 119 | public void toggleFullscreen(MediaInstance media) { |
|---|
| 120 | 120 | libvlc_exception_t exception = new libvlc_exception_t(); |
|---|
| 121 | 121 | libvlc.libvlc_toggle_fullscreen(media.getInstance(), exception); |
|---|
| … | … | |
| 125 | 125 | * @see org.videolan.jvlc.VideoIntf#getSize() |
|---|
| 126 | 126 | */ |
|---|
| 127 | | public Dimension getSize(MediaInstance media) throws VLCException { |
|---|
| | 127 | public Dimension getSize(MediaInstance media) { |
|---|
| 128 | 128 | return new Dimension (getWidth(media), getHeight(media)); |
|---|
| 129 | 129 | } |
|---|
| … | … | |
| 132 | 132 | * @see org.videolan.jvlc.VideoIntf#setSize(java.awt.Dimension) |
|---|
| 133 | 133 | */ |
|---|
| 134 | | public void setSize(Dimension d) throws VLCException { |
|---|
| | 134 | public void setSize(Dimension d) { |
|---|
| 135 | 135 | setSize(d.width, d.height); |
|---|
| 136 | 136 | } |
|---|