Combining audio and video in Xamarin - xamarin.forms

How do you combine a custom audio in a video using Xamarin.Forms or in Xamarin.IOS? I don't have any clues how to do this in Xamarin.iOS
The custom audio will be coming from a video stream which I need to parse. This is another problem actually and the parsed audio will then be combined into a video recording from iOS.
The result would be like the musical.ly application.

Related

How to customize embedded YouTube video players?

When you embed a YouTube video using its provided <iframe> code: you're not able to hide title and a couple other "features".
Some of these features could be disabled using parameters, back in a day. As of now: they're deprecated.
So, now I'm left with a client that needs to embed YouTube videos without all of that junk we see when hovering over the video: title, related videos, channel logo, etc.
From what I've researched, it's not possible to disable title and a some other features: be it using URL parameters or CSS+JS.
Although, I've come with a solution that has a lot of potential: not only for user's privacy, but also for UX. This solution is:
figuring out a way to extract YouTube videos source URL;
using extracted URL in <video> or <iframe>;
replicate YouTube player styles.
For the first part, I've used Invidious API. But I think you can also create an API that uses youtube-dl to extract videos URL (?).
In my tests, I didn't even had to install my own isntance of Invidious: I've used public API endpoints:
https://yewtu.be/latest_version?id=dasdsa312&itag=84
Where:
id: video ID;
itag: video stream format code.
Then, I made JavaScript code to:
dynamically get all available Invidious public instances;
generate a video element with sources to many different video quality and available instances.
These sources are generated depending on the query parameters available in my website URL:
https://riservato-xyz.frama.io/watch/?v=gprAWYQ47uY
With that in mind, whenever I need a customized YouTube player, I can use my own website to embed YouTube videos.
I understand the testing website (former url) is slow, indeed. Although, this is because I'm not using my own Invidious instance and rely on public instance. BUT IT WORKS!
<iframe width="560"
height="315"
src="https://riservato-xyz.frama.io/watch/?v=W_xIBfrdxQU" frameborder="0"></iframe>

Play mp4 video and mp3 audio in firefox using html5 audio video tag?

I am using html5 audio video tag to play audio and video in asp page, I have got audio and video data in the form of data uri from server using ajax call and passing thid data uri to src of audio and video tag but its not working in firefox.
Probably your audio format is not supported. Have a look at this page. For firefox you might need to add an ogg file. http://www.w3schools.com/tags/tag_audio.asp

Identify restrictions in embeddable Youtube videos

I'm having problems identifying playback restrictions of embedded YouTube videos when using YouTube Data API v3.
Example: YouTube ID k85mRPqvMbE and 3n4dXiagrZc seem to share same restrictions when it comes to embedded playback (in my case on an iPhone). The parameters I have looked at are "embeddable" in Video API and videoSyndicated/videoEmbeddable in Search API.
All the "obvious" parameters give the same results for both videos, but while I can play "3n4dXiagrZc" on my device without any problems, "k85mRPqvMbE" refuses to play due to content owner blocking me from watching it (playback through YouTube app or YouTube web works fine though). Please note that I have check the country restrictions as well and my country is not blocked for any of the two.
Any ideas on how to identify videos via the YouTube Data API v3 that are blocked for the reason stated above?
If you do a JSON query, http://gdata.youtube.com/feeds/api/videos?v=2&alt=jsonc&q=videoid you will get the video info. Here look for "embed:allowed", if present the video is embeddable.. Hope this helps! :)

How to play a wmv file in my asp.net webpage?

Is there a way to play a wmv file in my asp.net webpage? Thanks!
Will an end use need install some control when he access the webpage?
I'll suggest you to convert your videos to Flash Video (FLV) and use an embedded Flash video player (this is YouTube's approach), or use a Silverlight counterpart that may play WMV natively (you don't need to convert to Flash Video, but Silverlight isn't available in all browsers and/or platforms).
Check this page: http://flowplayer.org/
already discussed on SO: WMV file in an ASP.NET page
This guy seems to have all the answers for embedding WMV
http://www.jakeludington.com/project_studio/20050914_embedding_windows_media_player_wmv.html
Videos can be played "inline" or by a "helper", depending on the HTML element you use.
Inline Videos
When a video is included in a web page it is called inline video.
If you plan to use inline videos in your web applications, be aware that many people find inline videos annoying. Also note that some users might have turned off the inline video option in their browser.
Our best advice is to include inline videos only in web pages where the user expects to see a video. An example of this is a page which opens after the user has clicked on a link to see the video.
Using A Helper (Plug-In)
A helper application is a program that can be launched by the browser to "help" playing a video. Helper applications are also called Plug-Ins.
Helper applications can be launched using the or the tag.
One great advantage of using a helper application is that you can let some (or all) of the player settings be controlled by the user.
Most helper applications allow manual (or programmed) control over the volume settings and play functions like rewind, pause, stop and play.
Using The 'embed' Tag
The purpose of the tag is to embed multimedia elements in web page.
The following code fragment displays an AVI file embedded in a web page:
Example:
<embed src="video.avi" />
Note: The embed tag is deprecated. The World Wide Web Consortium (W3C) recommend using the object tag instead.
Using The 'object' Tag
The purpose of the tag is to embed multimedia elements in web page.
The following code fragment displays an AVI file embedded in a web page:
Example
<object data="video.avi" type="video/avi" />
Using A Hyperlink
If a web page includes a hyperlink to a media file, most browsers will use a "helper application" to play the file.
The following code fragment displays a link to an AVI file. If a user clicks on the link, the browser will launch a helper application, like Windows Media Player to play the AVI file:
Example:-
Play a video file

Is it possible to send custom animation as a video stream in flash?

I'm using NetStream class to create p2p video conferension. Is it possible to add overlay pictures or animation into video captured from webcam and send reencoded stream to other user?
I'm afraid it isn't. you could however send the data along parallely and compose it on the other end. don't know how well synched this will turn out to be in the end.
Check out the HTML AD Plugin
UPDATE The site wouldn't let me add the link to the plugin. Google HTML Ad Plugin and it comes up at playerDIY.

Resources