com.aliyun.player

## Interface AliPlayerGlobalSettings.OnNetworkCallback

- Enclosing class:
    AliPlayerGlobalSettings

      public static interface AliPlayerGlobalSettings.OnNetworkCallback

  A chance for media data downloading from network and modified by app, now only mp4 is supported

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `onNetworkDataProcess(java.lang.String requestUrl, java.nio.ByteBuffer inData, long inOutSize, java.nio.ByteBuffer outData)` Network data process callback

- - ### Method Detail

    - #### onNetworkDataProcess

          boolean onNetworkDataProcess(java.lang.String requestUrl,
                                       java.nio.ByteBuffer inData,
                                       long inOutSize,
                                       java.nio.ByteBuffer outData)

      Network data process callback
      Parameters:
        `requestUrl` - data's url
        `inData` - input data buffer
        `inOutSize` - input/output data buffer size in byte
        `outData` - output data buffer, processed data can be written here and size must be equal to inOutSize, and the buffer is managed by sdk.
      Returns:
        whether processed. If processed, return true and sdk will use outData for later process, otherwise use original data and return false.