Skip to content

Commit

Permalink
ijkplayer-java: add httphookReconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondzheng committed Nov 6, 2017
1 parent 48d0877 commit d39734e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ public final class IjkMediaPlayer extends AbstractMediaPlayer {
public static final int FFP_PROP_INT64_BIT_RATE = 20100;
public static final int FFP_PROP_INT64_TCP_SPEED = 20200;
public static final int FFP_PROP_INT64_LATEST_SEEK_LOAD_DURATION = 20300;
public static final int FFP_PROP_INT64_IMMEDIATE_RECONNECT = 20211;
//----------------------------------------

@AccessedByNative
Expand Down Expand Up @@ -949,6 +950,10 @@ protected void finalize() throws Throwable {
native_finalize();
}

public void httphookReconnect() {
_setPropertyLong(FFP_PROP_INT64_IMMEDIATE_RECONNECT, 1);
}

public void setCacheShare(int share) {
_setPropertyLong(FFP_PROP_INT64_SHARE_CACHE_DATA, (long)share);
}
Expand Down

0 comments on commit d39734e

Please sign in to comment.