V45.7b: fix TCP loading loop — _notifyStatus chi fire cb khi connected doi (poller queryStatus 400ms tung reset map + reload track -> LOAD skip vo han)
This commit is contained in:
@@ -17,8 +17,13 @@
|
|||||||
/** D10: UI subscribes to bridge connection changes. cb({connected}) or null to clear. */
|
/** D10: UI subscribes to bridge connection changes. cb({connected}) or null to clear. */
|
||||||
onStatusChange: function (cb) { this._statusCb = cb; },
|
onStatusChange: function (cb) { this._statusCb = cb; },
|
||||||
_notifyStatus: function (connected) {
|
_notifyStatus: function (connected) {
|
||||||
this.isBridgeConnected = !!connected;
|
connected = !!connected;
|
||||||
if (this._statusCb) this._statusCb({ connected: !!connected });
|
// Loop guard (V45.7): poller queryStatus moi 400ms tung goi cb du connected
|
||||||
|
// khong doi -> App reset map + reload toan bo track -> mark loading lai ->
|
||||||
|
// poller lai thay loading -> LOAD skip vo han. Chi fire khi TRANG THAI DOI.
|
||||||
|
if (this.isBridgeConnected === connected) return;
|
||||||
|
this.isBridgeConnected = connected;
|
||||||
|
if (this._statusCb) this._statusCb({ connected: connected });
|
||||||
},
|
},
|
||||||
|
|
||||||
/** Fix C: re-establish bridge routing once audio frames arrive again
|
/** Fix C: re-establish bridge routing once audio frames arrive again
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
<script src="/static/js/services/storage.js?v=202608290945"></script>
|
<script src="/static/js/services/storage.js?v=202608290945"></script>
|
||||||
<script src="/static/js/services/soundfontStorage.js?v=202608290945"></script>
|
<script src="/static/js/services/soundfontStorage.js?v=202608290945"></script>
|
||||||
<script src="/static/js/services/soundfontPlayer.js?v=202608290945"></script>
|
<script src="/static/js/services/soundfontPlayer.js?v=202608290945"></script>
|
||||||
<script src="/static/js/services/nativeBridgeService.js?v=202608290945"></script>
|
<script src="/static/js/services/nativeBridgeService.js?v=202608291510"></script>
|
||||||
<script src="/static/js/services/bridgeAudioNode.js?v=202608290945"></script>
|
<script src="/static/js/services/bridgeAudioNode.js?v=202608290945"></script>
|
||||||
<script src="/static/js/services/unifiedMidiRouter.js?v=202608290945"></script>
|
<script src="/static/js/services/unifiedMidiRouter.js?v=202608290945"></script>
|
||||||
<script src="/static/js/services/audioRoutingEngine.js?v=202608290945"></script>
|
<script src="/static/js/services/audioRoutingEngine.js?v=202608290945"></script>
|
||||||
|
|||||||
Reference in New Issue
Block a user