#include <string.h>
#include "libavutil/intreadwrite.h"
#include "libavutil/avstring.h"
#include "libavutil/opt.h"
#include "internal.h"
#include "mms.h"
#include "asf.h"
#include "http.h"
#include "url.h"
Go to the source code of this file.
|  | 
| static int | mmsh_close (URLContext *h) | 
|  | 
| static ChunkType | get_chunk_header (MMSHContext *mmsh, int *len) | 
|  | 
| static int | read_data_packet (MMSHContext *mmsh, const int len) | 
|  | 
| static int | get_http_header_data (MMSHContext *mmsh) | 
|  | 
| static int | mmsh_open_internal (URLContext *h, const char *uri, int flags, int timestamp, int64_t pos) | 
|  | 
| static int | mmsh_open (URLContext *h, const char *uri, int flags) | 
|  | 
| static int | handle_chunk_type (MMSHContext *mmsh) | 
|  | 
| static int | mmsh_read (URLContext *h, uint8_t *buf, int size) | 
|  | 
| static int64_t | mmsh_read_seek (URLContext *h, int stream_index, int64_t timestamp, int flags) | 
|  | 
| static int64_t | mmsh_seek (URLContext *h, int64_t pos, int whence) | 
|  | 
◆ CHUNK_HEADER_LENGTH
      
        
          | #define CHUNK_HEADER_LENGTH   4 | 
      
 
 
◆ EXT_HEADER_LENGTH
      
        
          | #define EXT_HEADER_LENGTH   8 | 
      
 
 
◆ USERAGENT
      
        
          | #define USERAGENT   "User-Agent: NSPlayer/4.1.0.3856\r\n" | 
      
 
 
◆ CLIENTGUID
      
        
          | #define CLIENTGUID   "Pragma: xClientGUID={c77e7400-738a-11d2-9add-0020af0a3278}\r\n" | 
      
 
 
◆ ChunkType
| Enumerator | 
|---|
| DISPLAY_INFO |  | 
| TILE_DATA |  | 
| CURSOR_POS |  | 
| CURSOR_SHAPE |  | 
| CHUNK_CC |  | 
| CHUNK_CD |  | 
| CHUNK_TYPE_DATA |  | 
| CHUNK_TYPE_ASF_HEADER |  | 
| CHUNK_TYPE_END |  | 
| CHUNK_TYPE_STREAM_CHANGE |  | 
Definition at line 50 of file mmsh.c.
 
 
◆ mmsh_close()
◆ get_chunk_header()
◆ read_data_packet()
◆ get_http_header_data()
◆ mmsh_open_internal()
  
  | 
        
          | static int mmsh_open_internal | ( | URLContext * | h, |  
          |  |  | const char * | uri, |  
          |  |  | int | flags, |  
          |  |  | int | timestamp, |  
          |  |  | int64_t | pos |  
          |  | ) |  |  |  | static | 
 
 
◆ mmsh_open()
◆ handle_chunk_type()
◆ mmsh_read()
◆ mmsh_read_seek()
  
  | 
        
          | static int64_t mmsh_read_seek | ( | URLContext * | h, |  
          |  |  | int | stream_index, |  
          |  |  | int64_t | timestamp, |  
          |  |  | int | flags |  
          |  | ) |  |  |  | static | 
 
 
◆ mmsh_seek()
  
  | 
        
          | static int64_t mmsh_seek | ( | URLContext * | h, |  
          |  |  | int64_t | pos, |  
          |  |  | int | whence |  
          |  | ) |  |  |  | static | 
 
 
◆ ff_mmsh_protocol
Initial value:= {
    .name           = "mmsh",
    .default_whitelist = "http,tcp",
}
static int mmsh_open(URLContext *h, const char *uri, int flags)
#define URL_PROTOCOL_FLAG_NETWORK
static int64_t mmsh_seek(URLContext *h, int64_t pos, int whence)
static int64_t mmsh_read_seek(URLContext *h, int stream_index, int64_t timestamp, int flags)
static int mmsh_close(URLContext *h)
static int mmsh_read(URLContext *h, uint8_t *buf, int size)
Definition at line 412 of file mmsh.c.