Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

Commit

Permalink
fix camera screen issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tugrul committed May 20, 2021
1 parent 795e70e commit 68ff872
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions screens/CameraScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function SinglePlayerSection({type = 0, index = 0, onChange, onRemove, screenDev

if (device) {
return (<View style={{flex: 1}}>
<Player uri={rtspUrl + '/live/' + device.id} />
<Player key={'screen_device_' + device.id} uri={rtspUrl + '/live/' + device.id} />
<Menu style={{backgroundColor: '#333333', position: 'absolute', right: 10, top: 10, padding: 5, borderColor: '#777777', borderStyle: 'solid', borderWidth: 1}}>
<MenuTrigger>
<Icon name="tune" size={20} color="#ffffff" />
Expand Down Expand Up @@ -128,7 +128,7 @@ function PlayerScreen({navigation}) {
const selectedDeviceList = await setSelectedCamera(state.activeAccount.id, type, index,
null, state.selectedDeviceList);
dispatch({type: 'update_selected_device_list', payload: selectedDeviceList});
}, []);
}, [state.selectedDeviceList, state.activeAccount]);

const screens = [
['1', <SinglePlayerSection onChange={onAddCamera} onRemove={onRemoveCamera} screenDevices={screenDevices} rtspUrl={rtspUrl} />],
Expand Down

0 comments on commit 68ff872

Please sign in to comment.