Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!

- [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95

Detailed guidelines: http://gpac.io/2013/07/16/how-to-file-a-bug-properly/


There is a similar issues[ here](https://github.com/gpac/gpac/issues/2084), but the code provided no longer works, the link provided in the answer also die.

I tried drop the top-left tile by returning -2, then in the later iterations, I want to turn on streaming for the top-left tile by returning 0. However, the streaming client hang without returning errors:
![image](https://user-images.githubusercontent.com/10344401/187929137-00052c3e-fafc-4434-826f-b81f02bc2209.png)

Is there any option to temporarily drop a tile, then later enable streaming for that tile? This drop tile approach is very popular in the research community.

Here is the code of the tile adaptation algorithm:

```
    def on_rate_adaptation(self, group, base_group, force_low_complexity, stats):
        if group.SRD.x == 0 and group.SRD.y == 0:
            print(f'We are adapting on globalid: {global_id}, group_idx:{group.idx},  active quality: {stats.active_quality_idx}')
            if stats.active_quality_idx != -2:
                return -2
            else:
                return 0
        return 0
```


Tile dropping with -2 option does not work when switching between -2 and other levels alternatively
This is a GitHub Issue
repo:gpac
owner:gpac
Title : Tile dropping with -2 option does not work when switching between -2 and other levels alternatively
Issue date:

--- start body ---
Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!

- [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95

Detailed guidelines: http://gpac.io/2013/07/16/how-to-file-a-bug-properly/


There is a similar issues[ here](https://github.com/gpac/gpac/issues/2084), but the code provided no longer works, the link provided in the answer also die.

I tried drop the top-left tile by returning -2, then in the later iterations, I want to turn on streaming for the top-left tile by returning 0. However, the streaming client hang without returning errors:
![image](https://user-images.githubusercontent.com/10344401/187929137-00052c3e-fafc-4434-826f-b81f02bc2209.png)

Is there any option to temporarily drop a tile, then later enable streaming for that tile? This drop tile approach is very popular in the research community.

Here is the code of the tile adaptation algorithm:

```
    def on_rate_adaptation(self, group, base_group, force_low_complexity, stats):
        if group.SRD.x == 0 and group.SRD.y == 0:
            print(f'We are adapting on globalid: {global_id}, group_idx:{group.idx},  active quality: {stats.active_quality_idx}')
            if stats.active_quality_idx != -2:
                return -2
            else:
                return 0
        return 0
```


--- end body ---
