SORU
14 Mayıs 2014, ÇARŞAMBA


Bir ile WebRTC bir VideoTrack oluştur "özel" libjingle ile Android Capturer

Nasıl bir "bir" VideoTrack oluşturmak ve çerçeve sağlamak için capturer video? özel kullanım için

Bir VideoTrack oluşturmak için klasik bir yöntemdir

1 - VideoCapturer bir örnek Olsun

VideoCapturer capturer = VideoCapturer.create(name);

2 - bir VideoSource Oluşturun

VideoSource videoSource = peerconnectionFactory.createVideoSource(capturer, videoConstraints);

3 - bir VideoTrack video kaynağı kullanarak Oluşturun

VideoTrack videoTrack = peerconnectionFactory.createVideoTrack("Label", videoSource);

4 - MediaStream için parça Eklemek


Eğer değiştirmek için bir yol olup olmadığını merak ediyordumbirinci adım. Yerel Capturer örneği kullanmak yerine, Android ve geri arama kullanma: VideoTrack için çerçeve sağlar

public void onPreviewFrame(byte[] data, Camera camera) {
   // provide the frames to the VideoTrack
}

Herhangi bir öneriniz var mı?

CEVAP
10 Mart 2013, Pazar


function isNumber(value){
    return !isNaN(parseFloat(value)) && 
        isFinite(value.toString().replace(/^-/, '')) && 
        typeof value !== 'object';

}

ya da :

function isNumber(value){
    return !Array.isArray(value) && !isNaN(parseFloat(value)) && 
        isFinite(value.toString().replace(/^-/, '')) && 
        Object.prototype.toString.call(value) !== '[object Object]';
}

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • huyked

    huyked

    28 Mart 2008
  • listedabive

    listedabive

    30 Ocak 2007
  • WOSU Public Media

    WOSU Public

    23 AĞUSTOS 2007