VLC 4.0.0-dev
Loading...
Searching...
No Matches
libvlc_media.h
Go to the documentation of this file.
1/*****************************************************************************
2 * libvlc_media.h: libvlc external API
3 *****************************************************************************
4 * Copyright (C) 1998-2009 VLC authors and VideoLAN
5 *
6 * Authors: Clément Stenac <zorglub@videolan.org>
7 * Jean-Paul Saman <jpsaman@videolan.org>
8 * Pierre d'Herbemont <pdherbemont@videolan.org>
9 *
10 * This program is free software; you can redistribute it and/or modify it
11 * under the terms of the GNU Lesser General Public License as published by
12 * the Free Software Foundation; either version 2.1 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public License
21 * along with this program; if not, write to the Free Software Foundation,
22 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23 *****************************************************************************/
24
25#ifndef VLC_LIBVLC_MEDIA_H
26#define VLC_LIBVLC_MEDIA_H 1
27
28#include <vlc/libvlc_picture.h>
30
31# ifdef __cplusplus
32extern "C" {
33# else
34# include <stdbool.h>
35# endif
36#include <stddef.h>
37
38/** \defgroup libvlc_media LibVLC media
39 * \ingroup libvlc
40 * @ref libvlc_media_t is an abstract representation of a playable media.
41 * It consists of a media location and various optional meta data.
42 * @{
43 * \file
44 * LibVLC media item/descriptor external API
45 */
46
48
49/** Meta data types */
79
80/**
81 * libvlc media or media_player state
82 */
93
94enum
95{
98};
99
101{
102 /* Input */
103 uint64_t i_read_bytes;
105
106 /* Demux */
111
112 /* Decoders */
115
116 /* Video Output */
120
121 /* Audio output */
125
126/**
127 * Media type
128 *
129 * \see libvlc_media_get_type
130 */
139
140/**
141 * Type of a media slave: subtitle or audio.
142 */
149
150/**
151 * A slave of a libvlc_media_t
152 * \see libvlc_media_slaves_get
153 */
160
161/**
162 * Type of stat that can be requested from libvlc_media_get_filestat()
163 */
164#define libvlc_media_filestat_mtime 0
165#define libvlc_media_filestat_size 1
166
167/**
168 * struct defining callbacks for libvlc_media_new_callbacks()
169 */
171{
172 /**
173 * Version of struct libvlc_media_open_cbs
174 */
175 uint32_t version;
176
177 /**
178 * Callback prototype to open a custom bitstream input media.
179 *
180 * The same media item can be opened multiple times. Each time, this callback
181 * is invoked. It should allocate and initialize any instance-specific
182 * resources, then store them in *datap. The instance resources can be freed
183 * in the @ref close callback.
184 *
185 * \param cbs_opaque private pointer as passed to libvlc_media_new_callbacks()
186 * \param datap storage space for a private data pointer [OUT]
187 * \param sizep byte length of the bitstream or UINT64_MAX if unknown [OUT]
188 *
189 * \note For convenience, *datap is initially NULL and *sizep is initially 0.
190 *
191 * \note Optional (can be NULL),
192 * available since version 0
193 *
194 * \note If NULL, the opaque pointer will be passed to read_cb,
195 * seek_cb and close_cb, and the stream size will be treated as unknown.
196 *
197 * \return 0 on success, non-zero on error. In case of failure, the other
198 * callbacks will not be invoked and any value stored in *datap and *sizep is
199 * discarded.
200 */
201 int (*open)(void *cbs_opaque, void **datap, uint64_t *sizep);
202
203 /**
204 * Callback prototype to read data from a custom bitstream input media.
205 *
206 * \param data private pointer as set by the @ref open callback
207 * \param buf start address of the buffer to read data into
208 * \param len bytes length of the buffer
209 *
210 * \note Mandatory (can't be NULL),
211 * available since version 0
212 *
213 * \return strictly positive number of bytes read, 0 on end-of-stream,
214 * or -1 on non-recoverable error
215 *
216 * \note If no data is immediately available, then the callback should sleep.
217 * \warning The application is responsible for avoiding deadlock situations.
218 */
219 ptrdiff_t (*read)(void *data, unsigned char *buf, size_t len);
220
221 /**
222 * Callback prototype to seek a custom bitstream input media.
223 *
224 * \note Optional (can be NULL if seeking is not supported),
225 * available since version 0
226 *
227 * \param data private pointer as set by the @ref open callback
228 * \param offset absolute byte offset to seek to
229 * \return 0 on success, -1 on error.
230 */
231 int (*seek)(void *data, uint64_t offset);
232
233 /**
234 * Callback prototype to close a custom bitstream input media.
235 *
236 * \note Optional (can be NULL),
237 * available since version 0
238 *
239 * \param data private pointer as set by the @ref open callback
240 */
241 void (*close)(void *data);
242};
243
244/**
245 * Create a media with a certain given media resource location,
246 * for instance a valid URL.
247 *
248 * \note To refer to a local file with this function,
249 * the file://... URI syntax <b>must</b> be used (see IETF RFC3986).
250 * We recommend using libvlc_media_new_path() instead when dealing with
251 * local files.
252 *
253 * \see libvlc_media_release
254 *
255 * \param psz_mrl the media location
256 * \return the newly created media or NULL on error
257 */
259
260/**
261 * Create a media for a certain file path.
262 *
263 * \see libvlc_media_release
264 *
265 * \param path local filesystem path
266 * \return the newly created media or NULL on error
267 */
269
270/**
271 * Create a media for an already open file descriptor.
272 * The file descriptor shall be open for reading (or reading and writing).
273 *
274 * Regular file descriptors, pipe read descriptors and character device
275 * descriptors (including TTYs) are supported on all platforms.
276 * Block device descriptors are supported where available.
277 * Directory descriptors are supported on systems that provide fdopendir().
278 * Sockets are supported on all platforms where they are file descriptors,
279 * i.e. all except Windows.
280 *
281 * \note This library will <b>not</b> automatically close the file descriptor
282 * under any circumstance. Nevertheless, a file descriptor can usually only be
283 * rendered once in a media player. To render it a second time, the file
284 * descriptor should probably be rewound to the beginning with lseek().
285 *
286 * \see libvlc_media_release
287 *
288 * \version LibVLC 1.1.5 and later.
289 *
290 * \param fd open file descriptor
291 * \return the newly created media or NULL on error
292 */
294
295/**
296 * Create a media with custom callbacks to read the data from.
297 *
298 * \param cbs callback to setup the media (can't be NULL). The pointed
299 * struct must be kept alive (and not modified) by the caller until all
300 * player instances that were supplied this media item are stopped.
301 * \param cbs_opaque opaque pointer for the open callback
302 *
303 * \return the newly created media or NULL on error
304 *
305 * \note The callbacks may be called asynchronously (from another thread).
306 * A single stream instance need not be reentrant. However the open_cb needs to
307 * be reentrant if the media is used by multiple player instances.
308 *
309 * \warning The callbacks may be used until all or any player instances
310 * that were supplied the media item are stopped.
311 *
312 * \warning The function prototype changed between LibVLC 3.0.0 and LibVLC 4.0.0
313 *
314 * \see libvlc_media_release
315 *
316 * \version LibVLC 3.0.0 and later
317 */
320 void *cbs_opaque);
321
322/**
323 * Create a media as an empty node with a given name.
324 *
325 * \see libvlc_media_release
326 *
327 * \param psz_name the name of the node
328 * \return the new empty media or NULL on error
329 */
331
332/**
333 * Add an option to the media.
334 *
335 * This option will be used to determine how the media_player will
336 * read the media. This allows to use VLC's advanced
337 * reading/streaming options on a per-media basis.
338 *
339 * \note The options are listed in 'vlc --longhelp' from the command line,
340 * e.g. "--sout-all". Keep in mind that available options and their semantics
341 * vary across LibVLC versions and builds.
342 * \warning Not all options affects libvlc_media_t objects:
343 * Specifically, due to architectural issues most audio and video options,
344 * such as text renderer options, have no effects on an individual media.
345 * These options must be set through libvlc_new() instead.
346 *
347 * \param p_md the media descriptor
348 * \param psz_options the options (as a string)
349 */
351 libvlc_media_t *p_md,
352 const char * psz_options );
353
354/**
355 * Add an option to the media with configurable flags.
356 *
357 * This option will be used to determine how the media_player will
358 * read the media. This allows to use VLC's advanced
359 * reading/streaming options on a per-media basis.
360 *
361 * The options are detailed in vlc --longhelp, for instance
362 * "--sout-all". Note that all options are not usable on medias:
363 * specifically, due to architectural issues, video-related options
364 * such as text renderer options cannot be set on a single media. They
365 * must be set on the whole libvlc instance instead.
366 *
367 * \param p_md the media descriptor
368 * \param psz_options the options (as a string)
369 * \param i_flags the flags for this option
370 */
372 libvlc_media_t *p_md,
373 const char * psz_options,
374 unsigned i_flags );
375
376
377/**
378 * Retain a reference to a media descriptor object (libvlc_media_t). Use
379 * libvlc_media_release() to decrement the reference count of a
380 * media descriptor object.
381 *
382 * \param p_md the media descriptor
383 * \return the same object
384 */
386
387/**
388 * Decrement the reference count of a media descriptor object. If the
389 * reference count is 0, then libvlc_media_release() will release the
390 * media descriptor object. If the media descriptor object has been released it
391 * should not be used again.
392 *
393 * \param p_md the media descriptor
394 */
396
397
398/**
399 * Get the media resource locator (mrl) from a media descriptor object
400 *
401 * \param p_md a media descriptor object
402 * \return string with mrl of media descriptor object
403 */
405
406/**
407 * Duplicate a media descriptor object.
408 *
409 * \warning the duplicated media won't share forthcoming updates from the
410 * original one.
411 *
412 * \param p_md a media descriptor object.
413 */
415
416/**
417 * Read the meta of the media.
418 *
419 * Note, you need to parse using libvlc_parser_queue() or play the media
420 * at least once before calling this function.
421 * If the media has not yet been parsed this will return NULL.
422 *
423 * \param p_md the media descriptor
424 * \param e_meta the meta to read
425 * \return the media's meta
426 */
428 libvlc_meta_t e_meta );
429
430/**
431 * Set the meta of the media (this function will not save the meta, call
432 * libvlc_media_save_meta in order to save the meta)
433 *
434 * \param p_md the media descriptor
435 * \param e_meta the meta to write
436 * \param psz_value the media's meta
437 */
439 libvlc_meta_t e_meta,
440 const char *psz_value );
441
442/**
443 * Read the meta extra of the media.
444 *
445 * If the media has not yet been parsed this will return NULL.
446 *
447 * \see libvlc_parser
448 *
449 * \param p_md the media descriptor
450 * \param psz_name the meta extra to read (nonnullable)
451 * \return the media's meta extra or NULL
452 */
454 const char *psz_name );
455
456/**
457 * Set the meta of the media (this function will not save the meta, call
458 * libvlc_media_save_meta in order to save the meta)
459 *
460 * \param p_md the media descriptor
461 * \param psz_name the meta extra to write (nonnullable)
462 * \param psz_value the media's meta extra (nullable)
463 * Removed from meta extra if set to NULL
464 */
466 const char *psz_name,
467 const char *psz_value );
468
469/**
470 * Read the meta extra names of the media.
471 *
472 * \param p_md the media descriptor
473 * \param pppsz_names the media's meta extra name array
474 * you can access the elements using the return value (count)
475 * must be released with libvlc_media_meta_extra_names_release()
476 * \return the meta extra count
477 */
479 char ***pppsz_names );
480
481/**
482 * Release a media meta extra names
483 *
484 * \param ppsz_names meta extra names array to release
485 * \param i_count number of elements in the array
486 */
488 unsigned i_count );
489
490/**
491 * Save the meta previously set
492 *
493 * \param inst LibVLC instance
494 * \param p_md the media descriptor
495 * \return true if the write operation was successful
496 */
498 libvlc_media_t *p_md );
499
500/**
501 * Get the current statistics about the media
502 * \param p_md media descriptor object
503 * \param p_stats structure that contain the statistics about the media
504 * (this structure must be allocated by the caller)
505 * \retval true statistics are available
506 * \retval false otherwise
507 */
509 libvlc_media_stats_t *p_stats);
510
511/* The following method uses libvlc_media_list_t, however, media_list usage is optional
512 * and this is here for convenience */
513#define VLC_FORWARD_DECLARE_OBJECT(a) struct a
514
515/**
516 * Get subitems of media descriptor object. This will increment
517 * the reference count of supplied media descriptor object. Use
518 * libvlc_media_list_release() to decrement the reference counting.
519 *
520 * \param p_md media descriptor object
521 * \return list of media descriptor subitems or NULL
522 */
525
526/**
527 * Get duration (in us) of media descriptor object item.
528 *
529 * Note, you need to parse using libvlc_parser_queue() or play the media
530 * at least once before calling this function.
531 * Not doing this will result in an undefined result.
532 *
533 * \param p_md media descriptor object
534 * \return duration of media item or -1 on error
535 */
538
539/**
540 * Get a 'stat' value of media descriptor object item.
541 *
542 * \note 'stat' values are currently only parsed by directory accesses. This
543 * mean that only sub medias of a directory media, parsed with
544 * libvlc_parser_queue() can have valid 'stat' properties.
545 * \version LibVLC 4.0.0 and later.
546 *
547 * \param p_md media descriptor object
548 * \param type a valid libvlc_media_stat_ define
549 * \param out field in which the value will be stored
550 * \return 1 on success, 0 if not found, -1 on error.
551 */
552LIBVLC_API int
553 libvlc_media_get_filestat( libvlc_media_t *p_md, unsigned type, uint64_t *out );
554
555/**
556 * Whether the media has been parsed.
557 *
558 * \param p_md media descriptor object
559 * \return true if the media has been parsed, false otherwise
560 * \version LibVLC 4.0.0 or later
561 */
563
564/**
565 * Sets media descriptor's user_data. user_data is specialized data
566 * accessed by the host application, VLC.framework uses it as a pointer to
567 * an native object that references a libvlc_media_t pointer
568 *
569 * \param p_md media descriptor object
570 * \param p_new_user_data pointer to user data
571 */
572LIBVLC_API void
573 libvlc_media_set_user_data( libvlc_media_t *p_md, void *p_new_user_data );
574
575/**
576 * Get media descriptor's user_data. user_data is specialized data
577 * accessed by the host application, VLC.framework uses it as a pointer to
578 * an native object that references a libvlc_media_t pointer
579 *
580 * \see libvlc_media_set_user_data
581 *
582 * \param p_md media descriptor object
583 */
585
586/**
587 * Get the track list for one type
588 *
589 * \version LibVLC 4.0.0 and later.
590 *
591 * \note You need to parse using libvlc_parser_queue() or play the media
592 * at least once before calling this function. Not doing this will result in
593 * an empty list.
594 *
595 * \see libvlc_media_tracklist_count
596 * \see libvlc_media_tracklist_at
597 *
598 * \param p_md media descriptor object
599 * \param type type of the track list to request
600 *
601 * \return a valid libvlc_media_tracklist_t or NULL in case of error, if there
602 * is no track for a category, the returned list will have a size of 0, delete
603 * with libvlc_media_tracklist_delete()
604 */
607
608/**
609 * Get codec description from media elementary stream
610 *
611 * Note, you need to parse using libvlc_parser_queue() or play the media
612 * at least once before calling this function.
613 *
614 * \version LibVLC 3.0.0 and later.
615 *
616 * \see libvlc_media_track_t
617 *
618 * \param i_type i_type from libvlc_media_track_t
619 * \param i_codec i_codec or i_original_fourcc from libvlc_media_track_t
620 *
621 * \return codec description
622 */
625 uint32_t i_codec );
626
627/**
628 * Get the media type of the media descriptor object
629 *
630 * \version LibVLC 3.0.0 and later.
631 *
632 * \see libvlc_media_type_t
633 *
634 * \param p_md media descriptor object
635 *
636 * \return media type
637 */
640
641/**
642 * Add a slave to the current media.
643 *
644 * A slave is an external input source that may contains an additional subtitle
645 * track (like a .srt) or an additional audio track (like a .ac3).
646 *
647 * \note This function must be called before the media is parsed (via
648 * libvlc_parser_queue()) or before the media is played (via
649 * libvlc_media_player_play())
650 *
651 * \version LibVLC 3.0.0 and later.
652 *
653 * \param p_md media descriptor object
654 * \param i_type subtitle or audio
655 * \param i_priority from 0 (low priority) to 4 (high priority)
656 * \param psz_uri Uri of the slave (should contain a valid scheme).
657 *
658 * \return 0 on success, -1 on error.
659 */
663 unsigned int i_priority,
664 const char *psz_uri );
665
666/**
667 * Clear all slaves previously added by libvlc_media_slaves_add() or
668 * internally.
669 *
670 * \version LibVLC 3.0.0 and later.
671 *
672 * \param p_md media descriptor object
673 */
676
677/**
678 * Get a media descriptor's slave list
679 *
680 * The list will contain slaves parsed by VLC or previously added by
681 * libvlc_media_slaves_add(). The typical use case of this function is to save
682 * a list of slave in a database for a later use.
683 *
684 * \version LibVLC 3.0.0 and later.
685 *
686 * \see libvlc_media_slaves_add
687 *
688 * \param p_md media descriptor object
689 * \param ppp_slaves address to store an allocated array of slaves (must be
690 * freed with libvlc_media_slaves_release()) [OUT]
691 *
692 * \return the number of slaves (zero on error)
693 */
696 libvlc_media_slave_t ***ppp_slaves );
697
698/**
699 * Release a media descriptor's slave list
700 *
701 * \version LibVLC 3.0.0 and later.
702 *
703 * \param pp_slaves slave array to release
704 * \param i_count number of elements in the array
705 */
708 unsigned int i_count );
709
710/** @}*/
711
712# ifdef __cplusplus
713}
714# endif
715
716#include <vlc/libvlc_parser.h>
717
718#endif /* VLC_LIBVLC_MEDIA_H */
struct libvlc_instance_t libvlc_instance_t
This structure is opaque.
Definition libvlc.h:76
int64_t libvlc_time_t
Represents a time value in microseconds.
Definition libvlc.h:79
struct libvlc_media_list_t libvlc_media_list_t
Definition libvlc_media_list.h:40
libvlc_track_type_t
Definition libvlc_media_track.h:45
struct libvlc_media_tracklist_t libvlc_media_tracklist_t
Opaque struct containing a list of tracks.
Definition libvlc_media_player.h:43
LIBVLC_API struct libvlc_media_list_t * libvlc_media_subitems(libvlc_media_t *p_md)
Get subitems of media descriptor object.
LIBVLC_API void libvlc_media_slaves_clear(libvlc_media_t *p_md)
Clear all slaves previously added by libvlc_media_slaves_add() or internally.
LIBVLC_API void libvlc_media_meta_extra_names_release(char **ppsz_names, unsigned i_count)
Release a media meta extra names.
LIBVLC_API libvlc_media_t * libvlc_media_new_fd(int fd)
Create a media for an already open file descriptor.
LIBVLC_API libvlc_media_t * libvlc_media_new_path(const char *path)
Create a media for a certain file path.
LIBVLC_API void libvlc_media_set_meta_extra(libvlc_media_t *p_md, const char *psz_name, const char *psz_value)
Set the meta of the media (this function will not save the meta, call libvlc_media_save_meta in order...
LIBVLC_API libvlc_media_t * libvlc_media_new_as_node(const char *psz_name)
Create a media as an empty node with a given name.
LIBVLC_API libvlc_media_t * libvlc_media_new_callbacks(const struct libvlc_media_open_cbs *cbs, void *cbs_opaque)
Create a media with custom callbacks to read the data from.
LIBVLC_API void libvlc_media_add_option(libvlc_media_t *p_md, const char *psz_options)
Add an option to the media.
LIBVLC_API const char * libvlc_media_get_codec_description(libvlc_track_type_t i_type, uint32_t i_codec)
Get codec description from media elementary stream.
libvlc_media_type_t
Media type.
Definition libvlc_media.h:131
#define VLC_FORWARD_DECLARE_OBJECT(a)
Definition libvlc_media.h:513
LIBVLC_API unsigned libvlc_media_get_meta_extra_names(libvlc_media_t *p_md, char ***pppsz_names)
Read the meta extra names of the media.
LIBVLC_API void libvlc_media_set_user_data(libvlc_media_t *p_md, void *p_new_user_data)
Sets media descriptor's user_data.
LIBVLC_API char * libvlc_media_get_meta(libvlc_media_t *p_md, libvlc_meta_t e_meta)
Read the meta of the media.
LIBVLC_API libvlc_media_t * libvlc_media_retain(libvlc_media_t *p_md)
Retain a reference to a media descriptor object (libvlc_media_t).
LIBVLC_API unsigned int libvlc_media_slaves_get(libvlc_media_t *p_md, libvlc_media_slave_t ***ppp_slaves)
Get a media descriptor's slave list.
LIBVLC_API libvlc_media_t * libvlc_media_duplicate(libvlc_media_t *p_md)
Duplicate a media descriptor object.
LIBVLC_API libvlc_media_tracklist_t * libvlc_media_get_tracklist(libvlc_media_t *p_md, libvlc_track_type_t type)
Get the track list for one type.
LIBVLC_API bool libvlc_media_get_stats(libvlc_media_t *p_md, libvlc_media_stats_t *p_stats)
Get the current statistics about the media.
libvlc_meta_t
Meta data types.
Definition libvlc_media.h:50
LIBVLC_API int libvlc_media_get_filestat(libvlc_media_t *p_md, unsigned type, uint64_t *out)
Get a 'stat' value of media descriptor object item.
LIBVLC_API void libvlc_media_add_option_flag(libvlc_media_t *p_md, const char *psz_options, unsigned i_flags)
Add an option to the media with configurable flags.
LIBVLC_API bool libvlc_media_is_parsed(libvlc_media_t *p_md)
Whether the media has been parsed.
libvlc_media_slave_type_t
Type of a media slave: subtitle or audio.
Definition libvlc_media.h:144
LIBVLC_API int libvlc_media_slaves_add(libvlc_media_t *p_md, libvlc_media_slave_type_t i_type, unsigned int i_priority, const char *psz_uri)
Add a slave to the current media.
LIBVLC_API char * libvlc_media_get_meta_extra(libvlc_media_t *p_md, const char *psz_name)
Read the meta extra of the media.
LIBVLC_API libvlc_media_type_t libvlc_media_get_type(libvlc_media_t *p_md)
Get the media type of the media descriptor object.
LIBVLC_API void libvlc_media_slaves_release(libvlc_media_slave_t **pp_slaves, unsigned int i_count)
Release a media descriptor's slave list.
libvlc_state_t
libvlc media or media_player state
Definition libvlc_media.h:84
LIBVLC_API void * libvlc_media_get_user_data(libvlc_media_t *p_md)
Get media descriptor's user_data.
LIBVLC_API int libvlc_media_save_meta(libvlc_instance_t *inst, libvlc_media_t *p_md)
Save the meta previously set.
LIBVLC_API libvlc_time_t libvlc_media_get_duration(libvlc_media_t *p_md)
Get duration (in us) of media descriptor object item.
LIBVLC_API void libvlc_media_set_meta(libvlc_media_t *p_md, libvlc_meta_t e_meta, const char *psz_value)
Set the meta of the media (this function will not save the meta, call libvlc_media_save_meta in order...
LIBVLC_API libvlc_media_t * libvlc_media_new_location(const char *psz_mrl)
Create a media with a certain given media resource location, for instance a valid URL.
LIBVLC_API char * libvlc_media_get_mrl(libvlc_media_t *p_md)
Get the media resource locator (mrl) from a media descriptor object.
struct libvlc_media_t libvlc_media_t
Definition libvlc_media.h:47
LIBVLC_API void libvlc_media_release(libvlc_media_t *p_md)
Decrement the reference count of a media descriptor object.
@ libvlc_media_type_directory
Definition libvlc_media.h:134
@ libvlc_media_type_file
Definition libvlc_media.h:133
@ libvlc_media_type_stream
Definition libvlc_media.h:136
@ libvlc_media_type_playlist
Definition libvlc_media.h:137
@ libvlc_media_type_disc
Definition libvlc_media.h:135
@ libvlc_media_type_unknown
Definition libvlc_media.h:132
@ libvlc_meta_DiscTotal
Definition libvlc_media.h:76
@ libvlc_meta_Setting
Definition libvlc_media.h:60
@ libvlc_meta_Genre
Definition libvlc_media.h:53
@ libvlc_meta_Season
Definition libvlc_media.h:70
@ libvlc_meta_Title
Definition libvlc_media.h:51
@ libvlc_meta_DiscNumber
Definition libvlc_media.h:75
@ libvlc_meta_Artist
Definition libvlc_media.h:52
@ libvlc_meta_TrackTotal
Definition libvlc_media.h:68
@ libvlc_meta_Rating
Definition libvlc_media.h:58
@ libvlc_meta_TrackNumber
Definition libvlc_media.h:56
@ libvlc_meta_EncodedBy
Definition libvlc_media.h:65
@ libvlc_meta_ArtworkURL
Definition libvlc_media.h:66
@ libvlc_meta_URL
Definition libvlc_media.h:61
@ libvlc_meta_Episode
Definition libvlc_media.h:71
@ libvlc_meta_ShowName
Definition libvlc_media.h:72
@ libvlc_meta_Album
Definition libvlc_media.h:55
@ libvlc_meta_Director
Definition libvlc_media.h:69
@ libvlc_meta_TrackID
Definition libvlc_media.h:67
@ libvlc_meta_Actors
Definition libvlc_media.h:73
@ libvlc_meta_Copyright
Definition libvlc_media.h:54
@ libvlc_meta_Publisher
Definition libvlc_media.h:64
@ libvlc_meta_AlbumArtist
Definition libvlc_media.h:74
@ libvlc_meta_Language
Definition libvlc_media.h:62
@ libvlc_meta_Description
Definition libvlc_media.h:57
@ libvlc_meta_Date
Definition libvlc_media.h:59
@ libvlc_meta_NowPlaying
Definition libvlc_media.h:63
@ libvlc_media_slave_type_audio
Definition libvlc_media.h:147
@ libvlc_media_slave_type_generic
Definition libvlc_media.h:146
@ libvlc_media_slave_type_subtitle
Definition libvlc_media.h:145
@ libvlc_media_option_trusted
Definition libvlc_media.h:96
@ libvlc_media_option_unique
Definition libvlc_media.h:97
@ libvlc_Error
Definition libvlc_media.h:91
@ libvlc_Stopped
Definition libvlc_media.h:89
@ libvlc_NothingSpecial
Definition libvlc_media.h:85
@ libvlc_Stopping
Definition libvlc_media.h:90
@ libvlc_Paused
Definition libvlc_media.h:88
@ libvlc_Opening
Definition libvlc_media.h:86
@ libvlc_Playing
Definition libvlc_media.h:87
#define LIBVLC_API
Definition libvlc.h:42
int i_type
Definition httpd.c:1299
vlc_fourcc_t i_codec
Definition image.c:573
LibVLC media track.
LibVLC parser API.
struct defining callbacks for libvlc_media_new_callbacks()
Definition libvlc_media.h:171
void(* close)(void *data)
Callback prototype to close a custom bitstream input media.
Definition libvlc_media.h:241
uint32_t version
Version of struct libvlc_media_open_cbs.
Definition libvlc_media.h:175
int(* seek)(void *data, uint64_t offset)
Callback prototype to seek a custom bitstream input media.
Definition libvlc_media.h:231
int(* open)(void *cbs_opaque, void **datap, uint64_t *sizep)
Callback prototype to open a custom bitstream input media.
Definition libvlc_media.h:201
ptrdiff_t(* read)(void *data, unsigned char *buf, size_t len)
Callback prototype to read data from a custom bitstream input media.
Definition libvlc_media.h:219
A slave of a libvlc_media_t.
Definition libvlc_media.h:155
unsigned int i_priority
Definition libvlc_media.h:158
libvlc_media_slave_type_t i_type
Definition libvlc_media.h:157
char * psz_uri
Definition libvlc_media.h:156
Definition libvlc_media.h:101
uint64_t i_demux_read_bytes
Definition libvlc_media.h:107
uint64_t i_read_bytes
Definition libvlc_media.h:103
uint64_t i_late_pictures
Definition libvlc_media.h:118
uint64_t i_decoded_audio
Definition libvlc_media.h:114
float f_input_bitrate
Definition libvlc_media.h:104
uint64_t i_lost_abuffers
Definition libvlc_media.h:123
uint64_t i_played_abuffers
Definition libvlc_media.h:122
uint64_t i_demux_discontinuity
Definition libvlc_media.h:110
uint64_t i_demux_corrupted
Definition libvlc_media.h:109
uint64_t i_decoded_video
Definition libvlc_media.h:113
float f_demux_bitrate
Definition libvlc_media.h:108
uint64_t i_displayed_pictures
Definition libvlc_media.h:117
uint64_t i_lost_pictures
Definition libvlc_media.h:119
const char * psz_name
Definition text_style.c:33
char psz_value[8]
Definition vout_intf.c:110