efsyn.gr - missing video embeds

For support with specific websites

Moderator: trava90

Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
User avatar
back2themoon
Knows the dark side
Knows the dark side
Posts: 3022
Joined: 2012-08-19, 20:32

efsyn.gr - missing video embeds

Post by back2themoon » 2025-10-20, 11:21

This must be a recent change. Visit: (Cookie Reject is the middle option if you get the prompt)

https://www.efsyn.gr/ellada/koinonia/48 ... aio-binteo
efsyn.gr.png
Web Console:
efsyn.gr Web Console.png
On the other hand, this type of embed works fine:

https://www.efsyn.gr/kosmos/boreia-amer ... ada-binteo
You do not have the required permissions to view the files attached to this post.

User avatar
tellu-white
Lunatic
Lunatic
Posts: 270
Joined: 2022-03-08, 22:02

Re: efsyn.gr - missing video embeds

Post by tellu-white » 2025-10-21, 20:49

I ran some tests and found that it's not the video that's causing the problem. I got the actual URL of the video file with JavaScript code (running in a Custom Button) and replaced the "src" attribute in the "iframe" tag that loads that video. By doing so, the video loaded on page. It seems that the problem only occurs when the video is loaded via the "https://player.glomex.com/..." website. The video in the second link that you posted loads without problems (in a "iframe" tag) via the website "https://platform.twitter.com/...".

Javascript code (run with a Custom Button):

Code: Select all

// efsyn.gr - Restore Missing Videos

function efsyn_gr__restore_missing_videos(){
	var arr_obj_iframe_tags = [];

	var body_tag = content.document.getElementsByTagName("body")[0];
	var arr_iframe_efsyn = body_tag.getElementsByTagName("iframe");

	if(arr_iframe_efsyn){
		for(var i=0; i<arr_iframe_efsyn.length; i++){
			try{
				var iframe_tag = arr_iframe_efsyn[i];
				var iframe_efsyn_src = iframe_tag.src;
				
				if(iframe_efsyn_src){
					if(iframe_efsyn_src != ""){
						if(iframe_efsyn_src.includes("player.glomex.com")){
							arr_obj_iframe_tags.push(iframe_tag);
						}
					}
				}
				
			} catch(err){
				// alert(err.message);
			}
		}
	}

	if(arr_obj_iframe_tags.length > 0){
		var page_URL = window.content.document.location.href;
		
		for(var i=0; i<arr_obj_iframe_tags.length; i++){
			var iframe_tag = arr_obj_iframe_tags[i];		
			var iframe_efsyn_src = iframe_tag.src;
			
			var integrationId_value;
			var playlistId_value;
		
			var obj_iframe_src = new URL(iframe_efsyn_src);
			var params_keys = obj_iframe_src.searchParams.keys();
			
			for(var param_name of params_keys){
				if(param_name == "integrationId"){
					integrationId_value = obj_iframe_src.searchParams.get("integrationId");
				}
				
				if(param_name == "playlistId"){
					playlistId_value = obj_iframe_src.searchParams.get("playlistId");
				}
			}
			
			// https://integration-cloudfront-eu-west-1.mes.glomex.cloud/?integration_id=4059a11hkelc8h9r&playlist_id=v-ddn05daponbl&current_url=https://www.efsyn.gr/ellada/koinonia/488283_drapetsona-epibatis-plakothike-me-odigo-trolei-kai-prokalesan-trohaio-binteo

			if(integrationId_value && playlistId_value){
				var request_URL = "https://integration-cloudfront-eu-west-1.mes.glomex.cloud/?integration_id=" + integrationId_value + "&playlist_id=" + playlistId_value + "&current_url=" + page_URL;
			
				get_JSON_Page(page_URL, iframe_tag, request_URL);
			}
		}
	}
}

function get_JSON_Page(page_URL, iframe_tag, request_URL){
	var xhr = new XMLHttpRequest();

	xhr.onreadystatechange = function() {
		var obj_json;
		var json_keys_length = 0;
			
		if (this.readyState == 4) {
			var this_status = this.status;
			
			if(this_status == 200){
				var iterationCount = 0;
				
				try {
					(function asyncLoop(){
						setTimeout(function () {
							obj_json = xhr.response;
							
							if(obj_json){
								var json_keys = Object.keys(obj_json);
								
								if(json_keys){
									json_keys_length = json_keys.length;
								}
							}
							
							if(json_keys_length == 0){
								asyncLoop();
								
							} else{
								get_video_URL(iframe_tag, obj_json);
							}
							
							iterationCount = iterationCount + 1;
							
							if(iterationCount == 20){
								alert('No response from "' + page_URL + '"');
								
								return;
							}
							
						}, 100);
						
					})();
					
				} catch(err){
					// alert(err.message);
				}
			}
		}
	};
	
	xhr.open("GET", request_URL, true);
	xhr.responseType = "json";
	xhr.send();
}

function get_video_URL(iframe_tag, obj){
	for(let key in obj){
		if(typeof obj[key] == 'object'){
			if(Array.isArray(obj[key])){
				// loop through array
				
				for(let i = 0; i < obj[key].length; i++){
					get_video_URL(iframe_tag, obj[key][i]);
				}
				
			} else{
				if(obj[key]){
					var obj_key = obj[key];
					
					if(obj_key["progressive"]){
						var video_URL = obj_key["progressive"];
						
						insert_video_in_page(iframe_tag, video_URL);
					}
				}
				
				// call function recursively for object
				
				get_video_URL(iframe_tag, obj[key]);
			}
		}
	}
}

function insert_video_in_page(iframe_tag, video_URL){
	iframe_tag.src = video_URL;
}

efsyn_gr__restore_missing_videos();

Screenshots:
01.jpg
02.jpg
03.jpg
04.jpg
You do not have the required permissions to view the files attached to this post.

User avatar
back2themoon
Knows the dark side
Knows the dark side
Posts: 3022
Joined: 2012-08-19, 20:32

Re: efsyn.gr - missing video embeds

Post by back2themoon » 2025-10-21, 21:11

Many thanks for your efforts, tellu-white.

I think 33.9.1 fixes this, by reverting certain recent changes. From your screenshots, it seems you are not in 33.9.1 yet.

I have to wait for the SSE2 build to be 100% sure. On my laptop with 33.9.1 the issue is gone. Well, the video plays at least but the controls are not visible.

User avatar
tellu-white
Lunatic
Lunatic
Posts: 270
Joined: 2022-03-08, 22:02

Re: efsyn.gr - missing video embeds

Post by tellu-white » 2025-10-21, 21:34

back2themoon wrote:
2025-10-21, 21:11
Many thanks for your efforts, tellu-white.
I think 33.9.1 fixes this, by reverting certain recent changes. From your screenshots, it seems you are not in 33.9.1 yet.
You're welcome, back2themoon!
Yes, I did the previous tests on version 33.9.0.1 - I didn't know that version 33.9.1 has been released.
Now I've tested the page in version 33.9.1 (portable) and the video loaded without problems.

User avatar
back2themoon
Knows the dark side
Knows the dark side
Posts: 3022
Joined: 2012-08-19, 20:32

Re: efsyn.gr - missing video embeds

Post by back2themoon » 2025-10-23, 15:53

33.9.1 brings backs the video, so at least it's usable. But the video controls are indeed missing.

You can pause (single-click) and double-click to enter full-screen but if you exit full-screen the video is broken again i.e. gone.

Perhaps some aspect-ratio issue again, I don't know.