Is it possible to replace iframes with video element in kaltura - kaltura

I need to get rid of the iframes in the website but I have some videos from kaltura which provides embed code kWidget.embed which in turns provide iframes.
Is there any way to replace the iframe with video element in kWidget.embed

Yes - with Kaltura new player version we dont use iframes any more.
https://developer.kaltura.com/player

Related

Video streaming with HTML5 video player

I'm trying to get into how the video streaming with HTML5 video player works and have some questions about that.
I have such a declaration at my HTML page
<video controls class="card-img-top">
<source src="/stream/video.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
The URL /stream/video.mp4 is handled by the Spring Boot controller which sends the data. All works fine but how I see it very inefficient.
Every time I move the slider on the video timeline to any point I see the requests with Range header like
Range: bytes=88375296-
Range: bytes=39354368-
Range: bytes=60915712-
That's mean at every video scroll I have to provide all the data from a specified point to the end of the video file. That looks really inefficient.
Is there some way to configure HTML5 player to work in more efficient way? Also, could you recommend something to read about video streaming implementation with Spring Boot?
That's mean at every video scroll I have to provide all the data from a specified point to the end of the video file.
The browsers requests all the data form the specified point to the end of the file, BUT, it can simply disconnect the TCP session to stop the downloading when a seek happens. Its is as efficient as it can be.
Is there some way to configure HTML5 player
No, When you tell the browser to play an MP4, you give ALL control to the browser. You there are no options to control how it works.
If you want more control, you can use Media Source Extensions. But then you will need to use more advanced file formats server side and implement all the details of how the player works. See HLS/DASH

How to use YouTube Data API (v3) to get more than 15 videos in an RSS reader (newsboat)?

I was wondering if you could pull more than 15 videos from a youtube channel's RSS feed (I'm using newsboat with a macro to open mpv to play the videos from the links but that's unlikely to make a difference, any RSS reader and media player that can use links should suffice for this). The default URL of https://www.youtube.com/feeds/videos.xml?channel_id=CHANNELID only gives the 15 more recent videos. I found this question: Fetching videos list from a Youtube playlist through RSS doesn't return more than 15 results and the user KENdi says to use the Google-Data-API (v3) and use the command "PlaylistItems: list" with documentation located here: https://developers.google.com/youtube/v3/docs/playlistItems/list to theoretically pull as many as 50 videos.
I have no idea what is meant by this. How do you actually apply this knowledge in practice? All I have access to is newsboats' ~/.newsboat/urls file to add links with tags to the menu so where would I actually add an implementation of some API call and would it normally give me the link so that I can play it in mpv straight from newsboat?

Brightcove: Adding preroll and postroll ads

I am trying to implement preroll AND postroll adverts via the Brightcove player.
There are 1000's of videos, so it's not as simple as adding cue points to the media - need to aplly this to all videos.
The documentation is not helping much.
Anyone now how i can do this?
I can also achieve this by calling an ad at 0 seconds (preroll) and the total duration of the video minus 1 second (postroll)
I have the a valid ad server URL which works fine.
Thanks in advance.
If you have a server URL, you will need access to the Brightcove Players Module. The 'Advertising' section lets you enter the Server URL, as well as specify when Ads are displayed, the technology (Html5 or Flash preferred) and other options.
All videos shown through that player should then display your ads (unless the specific videos have been set to not show ads).

Bootstrap Carousel to play mp4 with ajax

I'd like to stream and play videos from my django site, I've already converted them to mp4 and was thinking about using the carousel widget with bootstrap to play them. Of course I would like to only load the current video and lazy load the rest, as there could be serveral.
I've been scouring the net to find good examples with ajax functionality, not going well, thoughts?
Thanks in advance
You could use $.get() to load data from the server whenever the previous or back arrows are triggered.
api.jquery.com/jQuery.get

How to get youtube embed code with CodeIgniter?

I need to give the possibility to embed youtube videos in a website I'm developing. The admin shoud be able to insert a youtube link in a form; the url will be stored in the database and then I have to embed it in a page.
I was trying to use this library: http://codeigniter.com/wiki/YouTube_API_for_CodeIgniter/revision/12072/
But using the getVideoEntry function I get this, and I don't really know what to do with it:
tag:youtube.com,2008:video:zol2MJf6XNE2009-01-14T17:21:57.000Z2011-09-01T11:36:39.000ZSyndication of this video was restricted by its owner.DominoRecordshttp://gdata.youtube.com/feeds/api/users/dominorecordsMusicDominoRecordsA video for 'My Girls' from Animal Collective's new album Merriweather Post Pavilion. Out now on Domino. Produced by: Knowmore Productions Animated by: Jon Vermilyea Edited/VFX by: Chad Von Nauanimal collective, my girls, domino, avey tare, panda bear, geologistDEAnimal Collective - My Girls (2009)widescreen2009-01-14T17:21:57.000Zzol2MJf6XNE
And anyway, to use it, I need the youtube video id. Is there an easy way to get it, which covers all possible variations of youtube urls?
CodeIgniter seems like overkill for merely embedding videos. The YouTube functionality on the page you linked is mostly a wrapper for the YouTube Data API (which allows for extracting information about YT users, channels, videos, etc. and facilitates procedural uploading of videos). Embedding videos is as easy as dropping some HTML on your page with the correct video ID.
Here's the best answer I've seen for getting the video ID from URLs.

Resources