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

  • akalyne

    akalyne

    13 Mayıs 2009
  • Theodore Leaf

    Theodore Lea

    29 AĞUSTOS 2006
  • YouChewBu

    YouChewBu

    26 Ocak 2009