Skip to content

Commit

Permalink
MobileSDK 2.0.305
Browse files Browse the repository at this point in the history
CloudSDK
Version 2.0.305_20221127:
- updated versions of used SDK:
  PlayerSDK: 6.96.20221127
  EncoderSDK: 6.13.20221127
- addec clips API support
- improved APIs for timeline, activity, events, records, thumbnails
- added code snippets in the player example
- fixed a lot of bugs and typos

PlayerSDK
Version 6.96.20221127:
- updated license list

EncoderSDK
Version 6.13.20221127:
- updated license list

MobileSDK 2.0.304

CloudSDK
Version 2.0.304_20221118:
- updated versions of used SDK:
  PlayerSDK: 6.96.20221118
- added fixes for latest Cloud API changes
- fixed issues with playning records on the Android 13
- improved internal surface switching processing
- added access for new advanced PlayerSDK config settings

PlayerSDK
Version 6.96.20221118:
- added new advanced config settings:
  probesize, fpsprobesize, formatprobesize, max_probe_packets, live_start_index, rtmp_buffer, rtmp_live

EncoderSDK
Version 6.13.20220824:
  • Loading branch information
maxkutsanov committed Nov 27, 2022
1 parent 46c4a41 commit 85d5784
Show file tree
Hide file tree
Showing 29 changed files with 933 additions and 67 deletions.
39 changes: 39 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,44 @@
# VXG Mobile SDK Android

### MobileSDK 2.0.305

CloudSDK
Version 2.0.305_20221127:
- updated versions of used SDK:
PlayerSDK: 6.96.20221127
EncoderSDK: 6.13.20221127
- addec clips API support
- improved APIs for timeline, activity, events, records, thumbnails
- added code snippets in the player example
- fixed a lot of bugs and typos

PlayerSDK
Version 6.96.20221127:
- updated license list

EncoderSDK
Version 6.13.20221127:
- updated license list

### MobileSDK 2.0.304

CloudSDK
Version 2.0.304_20221118:
- updated versions of used SDK:
PlayerSDK: 6.96.20221118
- added fixes for latest Cloud API changes
- fixed issues with playning records on the Android 13
- improved internal surface switching processing
- added access for new advanced PlayerSDK config settings

PlayerSDK
Version 6.96.20221118:
- added new advanced config settings:
probesize, fpsprobesize, formatprobesize, max_probe_packets, live_start_index, rtmp_buffer, rtmp_live

EncoderSDK
Version 6.13.20220824:

### MobileSDK 2.0.303

CloudSDK
Expand Down
Binary file not shown.
4 changes: 2 additions & 2 deletions CloudSDK/src/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
ext {
cloudsdk_ver = project.hasProperty('cloudsdk_ver') ? project.getProperty('cloudsdk_ver') : "2.0.303"
playersdk_ver = project.hasProperty('playersdk_ver') ? project.getProperty('playersdk_ver') : "6.96.20220824"
cloudsdk_ver = project.hasProperty('cloudsdk_ver') ? project.getProperty('cloudsdk_ver') : "2.0.305"
playersdk_ver = project.hasProperty('playersdk_ver') ? project.getProperty('playersdk_ver') : "6.96.20221127"
}

buildscript {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import android.widget.TextView.OnEditorActionListener;
import android.widget.Toast;

import com.vxg.cloud.core.CloudCommon.CloudLiveUrlType;
import com.vxg.cloud.core.CloudHelpers;
import com.vxg.cloudsdk.CloudPlayerSDK;
import com.vxg.cloudsdk.CloudSDK;
Expand All @@ -45,18 +46,26 @@
import com.vxg.cloudsdk.Interfaces.ICloudObject;
import com.vxg.cloudsdk.Interfaces.ICloudPlayerCallback;
import com.vxg.cloudsdk.Objects.CloudPlayerConfig;
import com.vxg.cloudsdk.streamland_player.snippets.CloudClips;
import com.vxg.cloudsdk.streamland_player.snippets.CloudEvents;
import com.vxg.cloudsdk.streamland_player.snippets.CloudTimelineDays;
import com.vxg.cloudsdk.streamland_player.snippets.CloudTimelineSegments;
import com.vxg.cloudsdk.streamland_player.snippets.CloudTimelineThumbnails;
import com.vxg.cloudsdk.streamland_player.snippets.CloudTimelines;
import com.vxg.ui.CloudPlayerView;
import com.vxg.ui.TimeLineSet;

import java.io.File;
import java.util.List;
import java.util.concurrent.Executors;

public class MainActivity extends Activity implements OnClickListener, CloudPlayerView.OnCloudPlayerViewChange
{
public final String TAG = MainActivity.class.getSimpleName();

public static AutoCompleteTextView edtId;
private Button btnConnect;
private Button btnTestAPI;
private Button btnShowTimeline;

private Button btnRecord;
Expand Down Expand Up @@ -179,7 +188,7 @@ public void onDataLoaded(List<Pair<Long, Long>> data) {
}
});

btnShowTimeline =(Button) findViewById(R.id.but_show_timeline);
btnShowTimeline = (Button) findViewById(R.id.but_show_timeline);
btnShowTimeline.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
Expand All @@ -193,7 +202,15 @@ public void onClick(View v) {
}
});

btnRecord =(Button) findViewById(R.id.but_record);
btnTestAPI = (Button) findViewById(R.id.but_test_api);
btnTestAPI.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
testAPI();
}
});

btnRecord = (Button) findViewById(R.id.but_record);
btnRecord.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
Expand Down Expand Up @@ -286,7 +303,7 @@ public void onClick(View v)
return;
}
}

private String getRecordPath()
{
File mediaStorageDir = new File(Environment.getExternalStoragePublicDirectory(
Expand All @@ -301,6 +318,57 @@ private String getRecordPath()
return mediaStorageDir.getPath();
}

private void testAPI() {
// To check the snippets, please uncomment what you are interested in checking.
// The result is in the application logs
// For avoid run network code in main thread with methods *Sync, we use Executors.newSingleThreadExecutor for this test

// CloudPlayerSDK testSDK = new CloudPlayerSDK(null, null, null);
// testSDK.setSourceForAPIOnly(msAccessToken);
//
// CloudClips clips = new CloudClips(testSDK);
// Executors.newSingleThreadExecutor().submit(clips::printClipsSync);
// Executors.newSingleThreadExecutor().submit(clips::createClipCompleteSync);
// Executors.newSingleThreadExecutor().submit(clips::createClipSync);
// Executors.newSingleThreadExecutor().submit(clips::updateClipsSync);
// Executors.newSingleThreadExecutor().submit(clips::deleteClipsForClipIdSync);
// Executors.newSingleThreadExecutor().submit(clips::printClipsSync);
// Executors.newSingleThreadExecutor().submit(() -> clips.deleteClipsForCameraIdSync(-1));
// Executors.newSingleThreadExecutor().submit(clips::printClipsSync);
// clips.printClips();
// clips.createClip();
// clips.deleteClipsForCameraId(-1);
//
// CloudTimelines timelines = new CloudTimelines(testSDK);
// Executors.newSingleThreadExecutor().submit(timelines::printTimelineSync);
// Executors.newSingleThreadExecutor().submit(timelines::printTimelineWithLimitSync);
// timelines.printTimeline();
// timelines.printTimelineWithLimit();
//
// CloudTimelineDays days = new CloudTimelineDays(testSDK);
// Executors.newSingleThreadExecutor().submit(days::printTimelineDaysSync);
// Executors.newSingleThreadExecutor().submit(days::printTimelineDaysWithLimitSync);
// days.printTimelineDays();
// days.printTimelineDaysWithLimit();
//
// CloudEvents events = new CloudEvents(testSDK);
// Executors.newSingleThreadExecutor().submit(events::printEventsSync);
// Executors.newSingleThreadExecutor().submit(events::printEventsWithLimitSync);
// events.printEvents();
// events.printEventsWithLimit();
//
// CloudTimelineSegments segments = new CloudTimelineSegments(testSDK);
// Executors.newSingleThreadExecutor().submit(segments::printSegmentsSync);
// Executors.newSingleThreadExecutor().submit(segments::printSegmentsWithLimitSync);
// segments.printSegments();
// segments.printSegmentsWithLimit();
//
// CloudTimelineThumbnails thumbnails = new CloudTimelineThumbnails(testSDK);
// Executors.newSingleThreadExecutor().submit(thumbnails::printThumbnailsSync);
// Executors.newSingleThreadExecutor().submit(thumbnails::printThumbnailsWithLimitSync);
// thumbnails.printThumbnails();
// thumbnails.printThumbnailsWithLimit();
}
@Override
protected void onDestroy()
{
Expand Down
Loading

0 comments on commit 85d5784

Please sign in to comment.