Changeset 2f6ad030e73614e9254e3441fbc738e24341c17d
- Timestamp:
- 02/07/06 22:08:32
(2 years ago)
- Author:
- Clément Stenac <zorglub@videolan.org>
- git-committer:
- Clément Stenac <zorglub@videolan.org> 1139346512 +0000
- git-parent:
[de11230fbf681606705e3876f3a6a0b9849ab9da]
- git-author:
- Clément Stenac <zorglub@videolan.org> 1139346512 +0000
- Message:
* get/set/toggle fullscreen
* Fix a bug in playlist_play
(Refs:#457)
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r8d995e6 |
r2f6ad03 |
|
| 477 | 477 | src/control/playlist.c \ |
|---|
| 478 | 478 | src/control/input.c \ |
|---|
| | 479 | src/control/video.c \ |
|---|
| 479 | 480 | src/control/mediacontrol_core.c \ |
|---|
| 480 | 481 | src/control/mediacontrol_util.c \ |
|---|
| r661a6c1 |
r2f6ad03 |
|
| 230 | 230 | float libvlc_input_get_position( libvlc_input_t *, libvlc_exception_t *); |
|---|
| 231 | 231 | |
|---|
| | 232 | |
|---|
| | 233 | void libvlc_toggle_fullscreen( libvlc_input_t *, libvlc_exception_t * ); |
|---|
| | 234 | |
|---|
| | 235 | |
|---|
| 232 | 236 | /** @} */ |
|---|
| 233 | 237 | |
|---|
| r661a6c1 |
r2f6ad03 |
|
| 38 | 38 | return; |
|---|
| 39 | 39 | } |
|---|
| 40 | | if( i_id >= 0 ) |
|---|
| | 40 | if( i_id > 0 ) |
|---|
| 41 | 41 | { |
|---|
| 42 | 42 | /* Always use the current view when using libvlc */ |
|---|
| r68aa3ca |
r2f6ad03 |
|
| 21 | 21 | } |
|---|
| 22 | 22 | |
|---|
| 23 | | libvlc_playlist_play( p_instance1, 0,NULL, NULL ); |
|---|
| | 23 | fprintf (stderr, "Playing\n"); |
|---|
| | 24 | libvlc_playlist_play( p_instance1, 0, 0,NULL, NULL ); |
|---|
| | 25 | fprintf (stderr, "Playback started\n"); |
|---|
| 24 | 26 | |
|---|
| 25 | 27 | while( 1 ) |
|---|
| … | … | |
| 40 | 42 | b_started = 1; |
|---|
| 41 | 43 | } |
|---|
| 42 | | |
|---|
| 43 | | fprintf( stderr, "Length %lli - Time %lli\n", |
|---|
| | 44 | |
|---|
| | 45 | libvlc_toggle_fullscreen( p_input, &exception ); |
|---|
| | 46 | if( libvlc_exception_raised( &exception ) ) |
|---|
| | 47 | { |
|---|
| | 48 | fprintf( stderr, "EX : %s\n", libvlc_exception_get_message( &exception ) ); |
|---|
| | 49 | } |
|---|
| | 50 | fprintf( stderr, "Length %lli - Time %lli - Full screen %i\n", |
|---|
| 44 | 51 | libvlc_input_get_length( p_input, NULL ), |
|---|
| 45 | | libvlc_input_get_time( p_input, NULL ) ); |
|---|
| | 52 | libvlc_input_get_time( p_input, NULL ), |
|---|
| | 53 | libvlc_get_fullscreen( p_input, NULL ) ); |
|---|
| 46 | 54 | libvlc_input_free( p_input ); |
|---|
| 47 | 55 | } |
|---|