| 
			
			 | 
		#31 | 
| 
			
			
			
			 Sigil Developer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,072 
				Karma: 6361556 
				Join Date: Nov 2009 
				
				
				
				Device: many 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Why would you need to manipulate the shadow DOM? What do you mean by "keys"?  If you want to add subtitles, that is already supported.  The epub3 test epub shows them being used.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#32 | |
| 
			
			
			
			 Connoisseur 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 58 
				Karma: 438844 
				Join Date: Aug 2019 
				
				
				
				Device: PC, Linux Mint, Tablet, and Telephone 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 ![]() As a non-native speaker and writer, there are times when I like to turn the subtitles on or off. There is indeed a button for that automatically appears in non-full screen mode if a valid subtitle file is present. But .... once you switch to full screen, that button for turning the subtitles on or off is unfortunately no longer displayed. To add those, and other buttons, you must have access to the shadow DOM.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#33 | 
| 
			
			
			
			 Connoisseur 
			
			![]() Posts: 95 
				Karma: 10 
				Join Date: Jan 2020 
				
				
				
				Device: kindle 
				
				
				 | 
	
	
	
		
		
			
			 
				
				embedding video
			 
			
			
			I have a working video embeded in sigil epub3 with this code 
		
	
		
		
		
		
		
		
		
		
		
		
	
	<div style="font-size: 16px;"><p style="padding-bottom: 3px; text-align: center; line-height: 1; margin: 0px;"><video src="../Video/class_sketch.mp4" width="432" height="292" poster="../Images/social-classes.jpg" controls=""></video></p> The video plays in an epub reader but the thumbnail image does not show on the reader, yet it displays in the sigil page I am using sigil 0.9  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#34 | |
| 
			
			
			
			 Bookmaker & Cat Slave 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503 
				Karma: 158448243 
				Join Date: Apr 2010 
				Location: Phoenix, AZ 
				
				
				Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Hitch  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#35 | 
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,891 
				Karma: 207182180 
				Join Date: Jan 2010 
				
				
				
				Device: Nexus 7, Kindle Fire HD 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I think the video is playing (in Sigil and in an epub reader), but it sounds like they're wishing that the thumbnail poster that Sigil's QtWebEngine renderer chooses to display would show up in the reader as well. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	I think if you want that sort of consistency across all devices/renderers, one would need to provide their own custom player controls in the epub, no?  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#36 | 
| 
			
			
			
			 Connoisseur 
			
			![]() Posts: 95 
				Karma: 10 
				Join Date: Jan 2020 
				
				
				
				Device: kindle 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			It is the video thumbnail it displays on the sigil page but when I open the reader it shows blank yet the video plays ok
		 
		
	
		
		
			Last edited by increase; 10-06-2022 at 01:02 PM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#37 | 
| 
			
			
			
			 Connoisseur 
			
			![]() Posts: 95 
				Karma: 10 
				Join Date: Jan 2020 
				
				
				
				Device: kindle 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			How about adding an external link to an image is that possible in Sigil 0.9x
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#38 | |
| 
			
			
			
			 Well trained by Cats 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,267 
				Karma: 61916422 
				Join Date: Aug 2009 
				Location: The Central Coast of California 
				
				
				Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 I don't believe Sigil (or others) will STOP you from doing a poor choice. (And why so OLD a version of Sigil? It has come a long way since then  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#39 | |
| 
			
			
			
			 Bookmaker & Cat Slave 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503 
				Karma: 158448243 
				Join Date: Apr 2010 
				Location: Phoenix, AZ 
				
				
				Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 If the image works in ADE, Azardi, Books (f/k/a iBooks), MoonReader (or whatever), then...why does the appearance in Sigil matter? Wouldn't it be less brain-damaging to just think of it that way and focus on the results that will actually be seen? ![]() Hitch  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#40 | 
| 
			
			
			
			 Sigil Developer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,072 
				Karma: 6361556 
				Join Date: Nov 2009 
				
				
				
				Device: many 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			That thumbnail is created by the reader by loading the first frame of the video that is linked.  Recent versions of Sigil are Chromium based and support lots of things that many older readers do not. Some videos types support embedded thumbnail images as well. 
		
	
		
		
		
		
		
		
		
		
		
		
		
			That said, there used to be a "poster" attribute for the video tag in html5 that forced an image placeholder. I have no idea if any ebook readers support it though, and I am not sure if even Sigil supports it as it is not a href, or src attribute but it does point to a relative image url. ps. checked the Sigil code and the "poster" attribute on the video tag will be properly updated by Sigil if the xhtml file is renamed or moved. But I have never seen that "poster" attribute on the video tag actually used. According to the spec, if it is not present, the first frame of the video will be used once available. So that is up to the ereader itself to handle and obviously some do not. Last edited by KevinH; 10-09-2022 at 07:39 PM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#41 | |
| 
			
			
			
			 Bookmaker & Cat Slave 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503 
				Karma: 158448243 
				Join Date: Apr 2010 
				Location: Phoenix, AZ 
				
				
				Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 I could SWEAR that we used that "poster" attribute for the old iBooks ePUBs with multimedia. Now...I can go forth, look it up, but...that was a while ago. I'm pretty sure that's gotta be...hell. 8 years? Maybe 10? It was definitely ePUB2, I believe, too. ??? (Maybe I'm just losing my mind. It's hanging out with youse guys.) Hitch  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#42 | 
| 
			
			
			
			 Sigil Developer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,072 
				Karma: 6361556 
				Join Date: Nov 2009 
				
				
				
				Device: many 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Could be. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	But technically, video tags are not allowed in epub2 according to the official spec. Both calibre and Sigil supported it under epub2 as extensions. I assume iBooks did the same. Full support for a limited set of video formats (and even using external video resources) was not added to the spec officially until epub3. So support under epub2 is very spotty at best by many e-readers. Most real epub3 readers should now support it.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#43 | |
| 
			
			
			
			 Bookmaker & Cat Slave 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503 
				Karma: 158448243 
				Join Date: Apr 2010 
				Location: Phoenix, AZ 
				
				
				Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Lemme see...yup. As far back as 2011, you had to use a "poster" image, for iBooks. The coding (this is copied verbatim from "iBookstoreAssetGuide.pdf" 4.7, Rev.4, p. 22, 2011-07-13) was: Code: 
	video src="video/H264-640x480.m4v" controls="controls" poster="images/posterimage.jpg" width="320" height="240"/> It worked. I have video of it working (ha!) on my website, I think. Dang, that was only what, 11 years ago? ![]() ![]() Hitch  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#44 | 
| 
			
			
			
			 Bookmaker & Cat Slave 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503 
				Karma: 158448243 
				Join Date: Apr 2010 
				Location: Phoenix, AZ 
				
				
				Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			P.S.: 
		
	
		
		
		
		
		
		
		
		
		
		
	
	I'm still trying to understand why the POSTER image matters inside Sigil. I am not...I'm not criticizing the poster's query. I'm simply trying to understand it better--perhaps there's a workaround. ??? Hitch  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#45 | 
| 
			
			
			
			 Bibliophagist 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 48,175 
				Karma: 174315444 
				Join Date: Jul 2010 
				Location: Vancouver 
				
				
				Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Perhaps using a newer version of Sigil with the BibiReader, EpubJSReader or ReadiumReader plugins to test video playing would make this discussion more worthwhile. Comparing displaying an ePub in Sigil's preview to displaying the same epub in an ereader (app, device, whatever) makes little sense to me.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
            
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Embedding metadata into epub files | steve1977 | Editor | 36 | 06-23-2021 06:48 PM | 
| Audio and video files support in Calibre | shijo | Calibre | 3 | 07-21-2017 01:19 PM | 
| Plugin for video, audio, and image files? | woodr2011 | Plugins | 0 | 09-24-2015 08:51 AM | 
| Audio or Video files into an eBook using calibre | Khadar | Calibre | 27 | 09-22-2014 03:43 AM |