# Using still image for a media stream track

**URL:** <https://react-native-webrtc.discourse.group/t/using-still-image-for-a-media-stream-track/1841>\
**Category:** General040642add70aa006ef56b5af5b5acae3\
**Created:** [September 1, 2023, 11:09am UTC](https://react-native-webrtc.discourse.group/t/using-still-image-for-a-media-stream-track/1841 "2023-09-01T11:09:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomyates](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/tomyates/32/675_2.png) [@tomyates](https://react-native-webrtc.discourse.group/u/tomyates)\
**Post date:** [September 1, 2023, 11:09am UTC](https://react-native-webrtc.discourse.group/t/using-still-image-for-a-media-stream-track/1841/1 "2023-09-01T11:09:01Z")

</div>

I’d like to transmit a users avatar (png image) as the video track if they have turned-off their camera.  
I can’t work out how to do it - in theory, I need to create a new MediaStream Track and add the image data as the source but I’ve not found a way of doing this.

Has anyone got any ideas?  
Thanks

---

<div class="post-metadata">

**Author:** ![8BallBomBom](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/8ballbombom/32/710_2.png) [@8BallBomBom](https://react-native-webrtc.discourse.group/u/8BallBomBom)\
**Post date:** [September 1, 2023, 9:06pm UTC](https://react-native-webrtc.discourse.group/t/using-still-image-for-a-media-stream-track/1841/2 "2023-09-01T21:06:16Z")

</div>

Without alterations to the module or without something like insertable streams being implemented, don’t think it would be possible currently 🤔

Would be easier to just implement an image view which you give a url.  
If the user avatars aren’t stored online then you could transfer the data via data channels.

---

<div class="post-metadata">

**Author:** ![tomyates](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/tomyates/32/675_2.png) [@tomyates](https://react-native-webrtc.discourse.group/u/tomyates)\
**Post date:** [September 4, 2023, 9:10am UTC](https://react-native-webrtc.discourse.group/t/using-still-image-for-a-media-stream-track/1841/3 "2023-09-04T09:10:50Z")

</div>

Thanks @8BallBomBom. No problem at all - I’ll investigate other solutions using the data channel.
