File tree Expand file tree Collapse file tree
src/chat/interface/mediaengine Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -227,14 +227,27 @@ function createEmbedURLMedia(url) {
227227
228228 var dom = elements . createElementsFromJSON ( [
229229 {
230- element : "embed " ,
230+ element : "iframe " ,
231231 className : "mediaEmbed" ,
232232 gid : "mEmbed" ,
233233 src : url ,
234234 GPWhenCreated : function ( elm ) {
235235 //this function is used to get the element as soon as its values and everything else is applied.
236236 embedMediaElement = elm ;
237- } ,
237+ elm . onload = function ( ) {
238+ var validationState = accountHelper . getCurrentValidationState ( ) ;
239+ var win = elm . contentWindow ;
240+ if ( validationState ) {
241+ win . postMessage ( {
242+ type : "RRUserInfo" ,
243+ username : validationState . username . trim ( ) ,
244+ displayName : validationState . displayName . trim ( ) ,
245+ color : validationState . color ,
246+ font : validationState . font
247+ } , elm . src ) ;
248+ }
249+ } ;
250+ }
238251 } ,
239252 getMediaPlayingMenuBar ( ) ,
240253 ] ) ;
Original file line number Diff line number Diff line change 1- {"timestamp" :" 1761739383297 " }
1+ {"timestamp" :" 1761744315473 " }
You can’t perform that action at this time.
0 commit comments