javascript – How can I get an array of youtube video names from an array of youtube video links?

I’m making a discord music bot (I’ve said this so many times in these questions) and I’m working specifically on the queue command, the only problem I’ve hit so far is getting an array of youtube names from the array of youtube links I already have from the music queue. The best I could’ve come up with to display something like a queue is like this

var server = servers[];

if(server === undefined || !server.queue[i]){"No songs in the queue");
for(let i = 0; i < server.queue.length; i++) {
    YTDL.getInfo(server.queue[i], function(err,info) {

The only problem with this is that it can be interrupted while sending the queue, and it just doesn’t look good. If any of you can help me out it would be greatly appreciated

لینک منبع

chromium – Puppeteer video automatically downloading instead of displaying player

Basically I have this piece of code below

;(async () => {
  const browser = await puppeteer.launch({
    args: ['--no-sandbox'],
    headless: false

  const page = await browser.newPage()

  await page.goto('', {waitUntil: 'load'})

and for some reason when I execute the script chromium just automatically starts downloading the video instead of showing the player.

Is there any way I could prevent this?

لینک منبع

javascript – Display video stream chunks on page (node.js)

I’m still new in Node.js and trying to figure out things so excuse me if I sound incoherent.

So I’ve read some beginner notes on streams and I’m testing it out at the moment.
I got these Seinfeld episodes (.mkv files) in my project files (public/images/videos/Seinfeld.S09E07.720p.WebRip.ReEnc-DeeJayAhmed.mkv) that I would like to show on a page. Now, the easy choice would be to just put it in the ‘src’ of the video tag in my ejs file.

However, I would like to stream the video parts so that it doesn’t have to wait for the whole file to be ready to display the episode. I thought I could use .createReadStream for this. However, I don’t know how I can transfer those little chunks of video data into my webpage to display them in my video player.

index.js server

var express = require('express');
var router = express.Router();
var fs = require('fs');

    /* GET home page. */
router.get('/', function(req, res, next) {
    var myReadStream = fs.createReadStream(__dirname + '/../images/videos/Seinfeld.S09E07.720p.WebRip.ReEnc-DeeJayAhmed.mkv');

    myReadStream.on('data', function (chunk) {
        // no idea what to do from here
    res.render('index', {
        title: 'Express'

module.exports = router;

EJS file

<!DOCTYPE html>
    <title><%= title %></title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
    <h1><%= title %></h1>
    <video src="" type="video/mkv" autoplay controls></video>
    <p>Welcome to <%= title %></p>

لینک منبع

Online video stars need to get paid—this startup thinks cryptocurrency is the answer

Facebook, Google, Amazon, and Twitter are dominating live-streaming video. With their platforms Facebook Live, YouTube, Twitch, and Periscope anyone can reach billions of people. So, why would people bother with anything else? 

The team behind YouNow thinks it has the answer: pay creators with cryptocurrency. Yes, really.

“This is asymmetric warfare,” said Adi Sideman, CEO of YouNow. “These entrenched players copy, and they don’t let you grow. This business model is the only business model to disrupt what is going on.”

YouNow’s live-streaming app Rize is set to go live later this year and operates using a decentralized cryptocurrency system known as Ethereum. Rize users earn a cryptocurrency called PROPS for their contributions to the app–which is anything from broadcasting and building to just watching. Broadcasters can earn PROPS by hosting a livestream. Developers can earn PROPS by building games for Rize. People can cash these out instantly for U.S. dollars if they so choose or let it appreciate, and YouNow only covers a transaction fee. 

For YouNow, offering a new currency on Ethereum is its way to compete against tech giants. YouNow launched in 2011, four years before Facebook Live, but has since struggled to keep viewership and engagement up as people drift to other platforms. Messaging app Kik made a similar leap earlier this year with its own cryptocurrency Kin. 

Instead of competing with Facebook and Google’s advertising duopoly, YouNow will make revenue by only opening up a portion of the currency. Rize will launch with 1 billion PROPS, where 50 percent will be set aside in a pool to eventually be distributed, 30 percent will go to the company, and 20 percent will available for purchase. 

Sideman presented the ecosystem at the ICO Summit last month and offered Mashable an exclusive demo of the new app Rize. Starting this week, creators can apply to participate in the first token distribution event. The first sale of $5 million worth of tokens is planned for later this fall when the app will also go live. 

“For me the ‘a-ha moment’ was, we’re building a foundation of users with wallets and an incentive system for developers,” said Yonatan Sela, YouNow’s SVP of business and development. “We are not here to build necessarily the next Facebook or YouTube. We’re aiming to build a new type of digital media ecosystem.”

“We’re aiming to build a new type of digital media ecosystem.”

The ecosystem is unlike any other live-streaming app. Facebook and YouTube share revenue from ads. Twitch and Periscope let viewers tip broadcasters with virtual goods—a function YouNow has and also will be a part of Rize. On Rize, broadcasters and viewers now have a clear stake in the financial well-being of the company, and that has creators excited. 

“I know myself and a lot of kind of broadcasters are daily grinders. They broadcast every day to build on that social following, but it’s not always tangible. It can slip,” said Emma McGann, a British singer-songwriter. “Putting their time and effort into an app like Rize is different. The more time you put in, the more tokens you can receive.”

YouNow didn’t just launch a new cryptocurrency. The company’s pivot over the last year has involved creating another live-streaming app. The old platform YouNow with its 40 million registered users isn’t getting pulled, yet. But now, there’s also Rize. The app is arguably the best live video experience available on mobile due to its limited delay and other functionalities. 

On Rize, every user is live if they want to be. Whoever launched the room can drag any viewer into the main screen for everyone else to see. The app also has integrations like karaoke and video viewing so everyone in the room can see and participate in something other than chatting. 

“The technology behind it is different than anything I’ve seen, and I’ve been approached by every live-streaming app out there,” said Brent Morgan, a musician who has broadcasted daily on YouNow for the last six years.

“When you’re broadcasting on an app, there’s always a lag. With Rize, as soon as I click your face, you are there talking to me. It’s like you’re in a room with your friends. It’s not like you’re broadcasting anymore. It’s like you’re there,” he continued. 

YouNow’s team wants to impress every broadcaster and every viewer with Rize so that there’s a reason to go there and not to one of the several other apps.

The idea of everyone being live and offering multiple templates like karaoke are two ways that YouNow is offering something different. According to the company and its top creators, the updates are something YouNow users said they wanted. 

“I had my first live experience on it two days ago. I said, ‘Ya’ll are messing with the future.’ This is the future of live-streaming,” said Rudan Custodio, an early YouNow creator. 

Building in the present for the future is exactly what Sideman and his team are hoping to do.He credits his company with being pioneers in not only live, interactive video like what’s now on Facebook Live but also in virtual tipping like what’s now on Twitch. 

Cryptocurrency is one place that Facebook and other tech giants may not go. 

Https%3a%2f%2fblueprint api uploaders%2fdistribution thumb%2fimage%2f81984%2faa47cd69 31ee 4e97 86cc f9d321f45e82

لینک منبع

Facebook is dropping $1 billion on video, and that’s pretty great news

For years now, media companies have hoped and prayed that Facebook would get serious about shelling out cash to partners.

Looks like that time has come.

Facebook is reportedly prepared to spend up to $1 billion on video as part of its big move into original content, exemplified by its recent launch of Watch (Mashable is a Watch partner). 

The news, reported by the Wall Street Journal, will come as sweet relief for many media companies that have found huge audiences on Facebook but little in the way of actual revenue. Facebook has slowly inched forward with some programs that shared ad revenue on things like Facebook Instant Articles, but had resisted cutting checks directly to media companies.

That started to change about a year ago when Facebook launched its Live video project with some media partners who were paid to produce content. Now, Facebook Watch features a variety of partners who are receiving payments for original video. 

Watch so far has been a relatively small experiment, but $1 billion is a decent chunk of cash, and follows on a similar report about Apple’s growing ambition to make original video. Apple, however, is reportedly looking for only a handful of major projects. 

It’s also a drop in the bucket compared to the budgets of companies like Netflix and Amazon, who are each laying out tens of billions of dollars in the pursuit. 

Those budgets, however, aren’t going to smaller publishers. Facebook’s, it would seem for now, is — at least for now. 91df c9ab%2fthumb%2f00001

لینک منبع

YouTube’s Robert Kyncl on vlogging and big tech jumping into high-end video

Robert Kyncl is YouTube's chief business officer.
Robert Kyncl is YouTube’s chief business officer.

Image: Alison Buck/Getty Images for TheWrap

YouTube isn’t just for cat videos. People have built empires by “vlogging,” sharing parts of their real lives or taking on different personalities in online videos. 

As YouTube’s chief business officer, Robert Kyncl is tasked with supporting these creators. He helps make sure they have the right tools to cater to their subscribers and earn revenue, and, hopefully do not abandon the platform for another tech giant.  

Kyncl just released a book with titled “Streampunks: YouTube and the Rebels Remaking Media,” cowritten with Maany Peyvan of Google, where he profiles some of these YouTube creators. He joined Mashable‘s Biz Please podcast this week to chat about the rise of these so-called YouTube stars. 

“In television, if you had a famous star, you never felt like they were your friend, but on YouTube, you kind of feel like they are because you’re there, you’re watching their evolution, they’re talking to you all the time, they’re responding to your comments,” Kyncl said. 

To subscribe, click the middle icon in the top right.

YouTube can take some credit of their rise. It’s arguably the biggest single provider of online video with 1.5 billion people coming to its service every month. In fact, when asked if there was vlogging before YouTube, Kyncl responded, “You know, I don’t think there was. Yeah, let’s take credit for it.”

Kyncl name dropped Michelle Phan, who created her beauty empire with makeup tutorials on YouTube. Makeup tutorials and other “How to” videos are some of the most popular genres, but Kyncl noted that pretty much everything is on YouTube. 

“It satisfies people who care and whatever it is that you care about,” Kyncl said. 

Video is important, and it’s everywhere. Just ask any publisher, advertiser, tech platform, and, we guess, average people on the internet too. 

Facebook is trying to build a competitor video empire. Last month, it released its new video platform called Watch. Should creators go to Facebook? 

“That’s if you don’t want to make money,” Kyncl said. “The fact is that we are the only ones who are paying.” 

For more Biz Please, subscribe to the podcast on iTunes and find us here on Stitcher. 

Https%3a%2f%2fblueprint api uploaders%2fdistribution thumb%2fimage%2f81555%2f9e4b5d81 1bd2 4a5e 883c 2073bc2c4fc6

لینک منبع

As mayor, it is my honor to announce that our quaint city will be pivoting to video immediately

Citizens of this city, council members, public servants, and members of the press: thank you all for coming to this meeting on such short notice. I, your elected mayor, am so thrilled and excited to announce that our great city will be pivoting to video, effective immediately.

Before we begin to celebrate with a big parade, or ceremony or something in my honor, I’m sure you’d all like to know how this will affect your lives and jobs. The answer is, of course, drastically.

First, let’s begin with the foundation of our great city: the children. As I’ve always said, the children are our future and video is also the future and so the children must all learn video. Therefore, the public school system will be completely restructured so that our children have the best opportunity to grow (through video).

The children are our future and video is also the future and so the children must all learn video.

Beginning with the start of the fall semester, we will replace the old standardized K-12 curriculum with a bold new video-centric curriculum optimized for looking hot as hell on Instagram. The school buses will be outfitted with Facebook live cams, the library is now a “vlog den,” and gym class is now “Boomerang training.” I’m also so thrilled to announce that the position formerly held by Mrs. Reese, a 40-year public servant and student council advisor who won the state’s teacher of the year award five separate times, is now held by a 22-year-old guy who was popular on Vine and “gets it.”

We are destined to succeed!

Healthcare professionals, listen up! The hospital is so great. It’s one of the city’s biggest employers and one of our greatest assets. Ask anyone, we love the hospital and we don’t want to change a thing about it! That being said, all of the doctors and nurses are fired, and instead of surgeries we are shifting focus to making videos of the sick and wounded and putting those videos onto the internet to make CASH. Before you get cynical, let’s see what happens! This is a new frontier and there WILL be bumps as well as criminal medical negligence along the road, but we’re all in it together!

Image: mashable composite; shutterstock

We are so bummed to have to say goodbye to our good friends at the Fire Department, but it is with the utmost respect for the work they did that we will continue their efforts with a smaller, nimbler team: one low-paid grad student named Devlin who will make compilation vids of big fires and explosions. We truly believe that Devlin’s skillset will allow us to fight fire with something even more powerful than high-pressured water: revenue.

Folks, when this scenic stretch of land was settled by a group of peaceful Greek expats in the early 1800s, they had one goal in mind: to make a better life for their families. Now, all these years later, we hope to do the exact same thing. Except by “a better life,” we mean “a video” and by “for their families” we mean “for whoever.”

If anyone’s feeling left out, don’t worry! Our citywide pivot to video won’t just change the lives of citizens employed here — the structural integrity of this city is being right-sized and optimized to fit a more modern world. In other words: the public park will be leveled so we can store a bunch of tripods in there, and all the street security cameras will be repurposed to shoot hidden-camera prank videos. 

The structural integrity of this city is being right-sized and optimized to fit a more modern world.

I can see that many of you have questions, and I really want to get to them, but I unfortunately have to call an early end to this meeting. I have an appointment to take a bunch of money from a big company and buy a big-ass camera with it. As you exit City Hall, you’ll notice that the monument to our city’s founder, Giorgos Tripoli, has been replaced with a monument for that guy who makes pancake art timelapse vids on YouTube. Glory be to the pancake man, the new face of our great metropolis (which has been renamed “Video City” to more accurately reflect our mission).

Oh, before I forget — the city council is hereby disbanded and the twelve vacant seats will now be filled with twelve DSLR cameras pointed at ME. I’m filming a webseries — it’s insanely expensive and NOBODY watches it.

Thank you to all who filmed this!

Thanks for reading Mashable Humor: original comedy every day. Or most days. We’re people, just like you, and we’re trying our best.

لینک منبع

jquery – Apply Grid-Overlay to Image and Video

        * {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
        .row {
            clear: both;
        .spalten-6 {
            width: 49.99992%;

        .spalten-12 {
            width: 100%;
        .spalten-6,  .spalten-12 
        { float:left;} 
        .img-box img {
            width: 100%;
        .img-box {
            border-left: 2px solid white;
            border-top: 2px solid white;

#video-container {
    position: relative;
#video-container {
    overflow: hidden;

video#bgVid {
    background: url('') no-repeat;
    background-size: cover;
    transition: 1s opacity;
video#bgVid.fillWidth {
    width: 100%;
<div id="video-container">
<video id="bgVid" loop class="fillWidth" autoplay>
<source src= type=video/mp4>
<div id="underneath">   
<p style="color:#000">content underneath</p>

   <div class="row">
   <div class="spalten-6">
      <div class="img-box">
     <img src="" alt="">
   <div class="spalten-6">
       <div class="img-box">
       <div class="overlay">
     <img src="Images/la-bomba-video-clip.jpg" alt="">

لینک منبع

‘Pivot to video’ is not the death of words

The “pivot to video” is not the death of words. 

It’s not the death of journalism or a sign that people are abandoning everything that is right and good in the world.

What it is, however, isn’t much better.

The “pivot to video” is the product of an internet that is run by Google, Facebook, and an advertising market with little regard for anything that isn’t video. They’re setting the rules, and media companies—especially startups—have to play the game.

News broke on Thursday that Mic laid off 25 staffers and will turn its resources to producing more video. This has become a common move in the past couple years as digital media startups have found that pageviews just don’t translate into very much money (Mashable made just such a move in April 2016). 

These events tend to elicit a certain collective smugness and schadenfreude from technorati and Media Twitter. “Pivot to video” is now used with snarkful glee as shorthand for failure. 

Perhaps that’s as it should be. There is a growing acceptance that the internet is simply bad at supporting the written word. “Upon further reflection, it’s clear that the broken system is ad-driven media on the internet,” wrote Ev Williams in January to announce that his writing-focused startup Medium would lay off 50 people. The company had raised $130 million in funding in an effort to build the next great print media platform.

The ad-driven media, as Williams put it, is dominated by two companies: Facebook and Google. They soak up the majority of digital ad spending and almost all of every new dollar that moves online. Both companies are important to digital media upstarts, and they’re both hungry for video that they can show ads against—and grab a chunk of the $70 billion spent on TV ads.

Consumers don’t necessarily want this video. Even millennials prefer reading their news, and websites trying to cram as much video as possible onto webpages has resulted in a terrible user experience—including the dreaded autoplay.

Backing up a few years, the reason for companies like Mic stems from a once-boundless optimism for new media companies. “I am more bullish about the future of the news industry over the next 20 years than almost anyone I know. You are going to see it grow 10X to 100X from where it is today,” wrote venture capitalist Marc Andreessen in a blog post.

He wasn’t alone. Millions of dollars poured into media startups that believed they could take advantage of people and ad dollars both moving to the internet. The smartphone explosion only made that seem even more of a gold rush. 

Legacy media companies like the New York Times and Washington Post suddenly seemed vulnerable. Plenty of other media giants, worried about getting left behind, followed venture capitalists and plowed money into a growing number of startups. Newsrooms were built up, with even big-name journalists moving to online-only outlets. The calculus seemed to figure that even with Facebook and Google having already emerged as gatekeepers of both content and ad dollars, the market would figure it out. 

Back to present day, the market didn’t figure it out. The Times and Post are flourishing not because they changed to become more like digital upstarts but because they have avoided the free-content assumption and convinced people that their content is worth paying for. Subscriptions still reign supreme—and those companies control those subscriptions without middlemen (though Facebook is working on a subscription product).

This is a good thing. The explosion of free stuff on the internet had led to a growing belief that everything on the internet would be free forever. It was not that long ago that both the Times and Post offered all of their work online for free. Words still have value that consumers are willing to pay for, especially when they carry serious weight.

Value for free words hasn’t translated. Display ads have not turned out to be lucrative enough to sustain these media upstarts, leaving no choice but to start feeding the video beast. This is what startups do when their initial thesis doesn’t work or the market changes—they adapt to the times.

The market didn’t figure it out

There’s plenty of skepticism about whether this strategy will work, but that’s not really the point. For now, Google and Facebook are pushing media startups in that direction. There is simply no option but to pivot to video for a company like Mic. 

In its wake, however, are still plenty of words. Mashable had its own “pivot to video” moment, but this is still a print article, as are a lot of the things that appears on this website. Mic will still have words too. 

“Pivot to video” isn’t the death of words, but is the end of venture capital-funded words that hoped to eventually find a supportive ad market. In its place, venture capital-funded video is the new hope. Whether the ad market (or maybe even subscription market) materializes is anyone’s guess.

And if it doesn’t, the words will still be around. There just might be a few less of them.

Https%3a%2f%2fblueprint api uploaders%2fdistribution thumb%2fimage%2f81207%2f1934c663 a4c3 466b bdf8 c2c90239c3ac

لینک منبع