星期日, 5月 21, 2017

[Lavarel] 使用View::exists 判斷view blade是否存在

記錄一下為了做樣版切換機制需要用到的View:exists方法 http://stackoverflow.com/questions/32102272/how-to-include-a-blade-template-only-if-it-exists You can use View::exists() to check if a view exists or not. @if(View::exists('path.to.view')) @include('path.to.view') @endif Or you can extend blade and add new directive Blade::directive('includeIfExists', function($view) { });

星期三, 5月 10, 2017

[iQIYI愛奇藝] Objective-C 愛奇藝api串流

我的視頻頁查看上傳影片管理

目前發現一般用戶上傳後無此開發者頁面,
只能去自已的空間(http://www.iqiyi.com/paopao/u/用戶UID/upload/)查看

http://open.iqiyi.com/developer/file/index




上傳常見錯誤

"A00012": system error
"A00018":超过应用的最大配额


線上客服


如何提升上傳限制

帳戶一天只可上傳25個視頻
http://www.iqiyi.com/common/rz-info.html

星期四, 5月 04, 2017

[Objective-C] 快快樂樂用Twitter REST: Upload Media

一般上傳超過15mb
 errors =     (
                {
            code = 130;
            message = "Over capacity";
        }
    );
}

Chunk upload上傳

errors =     (
                {
            code = 324;
            message = "Not valid video";
        }
    );


 {
    error = "Large file can not be finalized synchronously.";
    request = "/1.1/media/upload.json";
}


{
  "media_id": 845498780979908608,
  "media_id_string": "845498780979908608",
  "size": 16440765,
  "expires_after_secs": 86400,
  "processing_info": {
    "state": "pending",
    "check_after_secs": 5
  }

}


{
    error = "Invalid media_id: Some((null)).";
    request = "/1.1/media/upload.json";

}


{
    error = "Segments do not add up to provided total file size.";
    request = "/1.1/media/upload.json";

}

其他你感興趣的文章

Related Posts with Thumbnails