Video conferencing using opentok - video-conferencing

How can i add clients to a video chat using their email id in opentok.I have tried opentok using javascript api,but i can only see my face in the browser.Is there any way to add clients using facebook account?

No. To see video streams from other people they would need to:
1. be connected to to same session Id as you are
2. be publishing to the session
TO add clients to a video chat, I would simply send them a link (via email or fb messages) to your site with a specific sessionId, and on page load the site will connect to the session, publish video, and subscribe to other video streams.
Here's an awesome quick tutorial to get you started

Go to Tokbox.com and under the widgets title, click the add to your site link.
Choose the Basic Embed option, enter a valid e-mail address and then click the Get code link.
Copy the code provided by Tokbox to your clipboard.
You can paste your code into any page or widget that accepts HTML code. From within Content Editing mode
Adding HTML To A Sidebar.
Once you've added your embed code, this is it how it will appear in the content editor.
After embedding your Tokbox code you may be prompted to enable access to your camera and microphone. If that occurs, click allow. You will then see the Tokbox video chat widget appearing within your site.
And that's it! You're ready to start a video chat. Once a video chat has been initiated, you can moderate your session by ticking the I'm a moderator prompt in your chat window and typing in the secret code you received from Tokbox in your e-mail when signing up.
More about OpenTok:
Mobile chat app development
Creating an iPhone video chat app using Parse and Opentok

Related

How to send a link in an SMS so that the preview is loaded automatically?

I am using twilio to send SMS messages to phone numbers. What I am having problems with is making sure that once a user gets the message the preview of what is at a certain link actually loads in the message the user sees on the phone.
What is the proper way to send a link that automatically shows the preview?
EDIT:
I tried the open graph api. Apple does have a tech note on that. But, then, why does this link provided a proper preview in messages when I send this link to another phone? It works, and it does not use open graph.
https://i1.wp.com/www.asphaltandrubber.com/wp-content/uploads/2017/11/2018-Ducati-Panigale-V4-29.jpg?ssl=1
a couple of things you can try
have the link at start of the message or end of the message
the link should be properly formatted with either http:// or https://
iOS uses The Open Graph protocol to support what image to show in the link . http://ogp.me/

Google Analytics for Email Tracking when using Universal Links on iOS

I would like to track button clicks in emails using Google Analytics. Let's say I would like the button to have a Universal Link, which when clicked, will open an iOS app directly with no browser redirect. (https://developer.apple.com/library/content/documentation/General/Conceptual/AppSearch/UniversalLinks.html)
However, if my URL is a Universal Link, i.e. www.xyzxyz.com/openApp?campaign=promo&source=email, and an email recipient clicks the link from their iPhone with the installed app, no call is made to the server, and therefore the click is not tracked.
Has anyone experienced a way of tracking Universal Link clicks?
Universal Links are handled on the frontend by the device without ever interacting with a server if the app is installed. The AASA file is stored on the device at install and allows the device to check whether the link can open the app before passing the link onto safari. If the app is not installed and the link is passed onto Safari then the Google analytics tags will be processed. The only way to accomplish this is to send the GA request from the app if you register that a Universal Link was clicked.
I recommend looking into a deep linking service like Branch. They have a Google analytics data integration that will handle all of this tracking for you.

Communicating with other apps and getting data from them

On the click of a button in my app I want to launch the youtube app and check if a user is signed in and retrieve his youtube channel address and save it somewhere in my app. At first I though I could have the button open safari and take the user to the youtube sign in page and once he signs in ill copy the url of his homepage, but I dont think this possible and if it is there will be a lot of problems that I have to take into account.
Anyone got any ideas on how this could be done?
Since iOS uses app sandboxing you can't retrieve information from other apps, unless they explicitly call your app back.
You may use Youtube API to achieve what you want. The user would log in Youtube within your app, then you get the user's channel info.

Need to open web page within telegram bot chat -- big picture

Building my first telegram bot and it's going to be quite complex.
Part of workflow needs to open a webview within telegram that will require user interaction, return to bot chat altering chat with data received from user.
Reading through the entire api, SO, github, I'm having trouble finding anything about the viewing webpages, much less if we can interact. Before I get deep into this project it would be awesome to have some starting direction.
Can you create web views (like you see for "instant view" articles, google maps, etc), and if so can you get data from user to use back at the chat bot?
Another option is possibly using a "game". In our case, it won't be a conventional game, but maybe we could use the html5 game to render what we need, and interact with the user. I know it can pull scores, names, etc to update message, maybe we could somehow make this work?
I'm currently working through the api. This is one of my first apps, and my first telegram bot. I really appreciate any assistance on how to get started here.
This is in Rails, using https://github.com/telegram-bot-rb/telegram_bot_app as a starter. Mostly needing to know if this concept it possible, but anything more specific would be great, too. Thanks!
You can't create web view with the bot API and you don't need to do that. You can simply link to a web page using simple links or inline buttons and the page will open in Telegram's inline browser (Depending on user's settings).
If you include the user ID in the URL you will know who is using the webpage. e.g example.com?uid=1234
Now that you know who is using the webpage, you can use the ID to send messages or anything else in Telegram chat while user is on the webpage.
At the end you can redirect the user back to your bot URL (telegram.me/botusername).
Update
You can now use Seamless Telegram Login to link to a web page and log in the user. This feature can also be used in groups
Try the new Telegram Web App API
It can open a web page on the bottom sheet, which you can expand almost to the full screen.
You can configure the web app open button by following these steps:
Open BotFather
Type /mybots, select your bot
Click Bot Settings > Menu Button
Set up a menu button that opens a certain URL

Google Analytics in iOS, How do I know if a page of my website was opened using an app?

I'm developing an iOS app that required me to track a clicked event on an advertising image.
When user clicked on the ads image the app will open a website in web view. My question is : how does the owner of that website know that the website has been opened from a link in my app ?
Ok you want to know whether the user clicked the add and the webview was opened, and the add was completely loaded? You could try adding Google Analytics via Javascript to the ad web page or you could use the webViewDidFinishLoad method in the webview to track whether the add was loaded completely or not.
I've found the solution. In case someone wants to do the same as mine, I've added this "?utm_campaign=August&utm_medium=referral&utm_source=MyApp" at the end of the link when clicked. So when the ads owner opens their google analytics console they will see in referral tab the traffic from MyApp. Here is the link for GA detail.

Resources