mirror of
https://github.com/magicbug/Cloudlog
synced 2026-08-13 17:49:35 -04:00
Introduce an experimental browser-based remote audio feature: bump migration version to 270 and add a migration to add a remote_operation flag to the users table. Add server-side support to User and QSO controllers/models to read/save the remote_operation option (stored via user_options_model) and expose isRemoteOperationEnabled to views and session updates. Add UI: a Remote Operation card on the QSO page, a modal component for detailed settings, a toggle in the user edit page, and conditional loading of assets/js/remote-operation.js. Add a large client-side implementation (assets/js/remote-operation.js) implementing WebRTC signalling, device selection, level meters and diagnostics. Minor session/session-update and helper changes to keep UI state in sync.
25 lines
No EOL
543 B
PHP
25 lines
No EOL
543 B
PHP
<?php
|
|
defined('BASEPATH') or exit('No direct script access allowed');
|
|
|
|
class Migration_add_remote_operation_flag extends CI_Migration
|
|
{
|
|
public function up()
|
|
{
|
|
$fields = array(
|
|
'remote_operation' => array(
|
|
'type' => 'TINYINT',
|
|
'constraint' => 1,
|
|
'null' => false,
|
|
'default' => 0,
|
|
'after' => 'winkey_websocket',
|
|
),
|
|
);
|
|
|
|
$this->dbforge->add_column($this->config->item('auth_table'), $fields);
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
$this->dbforge->drop_column($this->config->item('auth_table'), 'remote_operation');
|
|
}
|
|
} |