Playback implementation with speed control

For playback implementation with speed control, which sample reference I can take for better results and its time handling functionality also

Thanks,

Karuna Prasad

The VideoViewer sample has playback and has speed control. If you push the play forward button twice it will play at 2x speed.

(Note: There is a Software Development Kit category on this community.)

The MediaPlaybackViewer is a good place start start from. It uses the Class VideoOS.Platform.SDK.SDKPlaybackController from where you can set the playback speed and many other options.

Hi Michael,

We are using VideoOS.Platform.SDK.SDKPlaybackController class and try to maintain speed using this class but we are unable to maintain speed.Please let us now if we are calling in another way.

Here is the code:

public override TRESULT FastForward(string playbackSpeed)

{

if (m_speed == 0.0)

m_speed = 1.0;

else

m_speed = 1.0;

m_nextCommand = MyPlayCommand.None;

m_mode = PlaybackPlayModeData.Forward;

m_sdkPlaybackController.PlaybackSpeed = 0.5;

EnvironmentManager.Instance.SendMessage(new VideoOS.Platform.Messaging.Message(

MessageId.SmartClient.PlaybackCommand,

new PlaybackCommandData() { Command = PlaybackData.PlayForward, Speed = 0.5 }), _playbackFQID);

return TRESULT.OK;

}

Thanks

Prasad

If I modify the MediaPlaybackViewer sample or the VideoViewer sample (- both uses this function)..

private void buttonForward_Click(object sender, EventArgs e)

    {

        if (\_speed == 0.0)

            \_speed = 0.25; //sample was 1.0

It will playback at quarter speed. (I have no understanding what you overide with the function you show.)

Could you try to compare what you have developed with the sample and see if you can solve it going back to the basics?..

If this answer does not lead you to a solution, please answer this; are you using the ImageViewerControl like in the VideoViewer sample or a JpegVideoSource (or BitmapVideoSource) like in the MediaPlaybackViewer sample?

Hi Bo,

Thanks for your reply,

We tried with different dimentions of speed parameters as you mentioned in the reply but it doesnt work for us .Yes we are using BitmapVideoSource.

Here is the code we tried:

if (m_speed == 0.0)

m_speed = 0.25;

m_nextCommand = MyPlayCommand.None;

m_mode = PlaybackPlayModeData.Forward;

EnvironmentManager.Instance.SendMessage(new VideoOS.Platform.Messaging.Message(

MessageId.SmartClient.PlaybackCommand,

new PlaybackCommandData() { Command = PlaybackData.PlayForward, Speed = m_speed }), _playbackFQID)

Thanks

Prasad

Does the MediaPlaybackViewer sample work for you?

Hi Bo,

Yes for us MediaPlaybackViewer sample working fine, But the issue is speed in not consistant for playback, forward and reverse operations, please frames per second milestone recorder supports. Urgtent please, your support is cruicial for project delivery.

Thanks,

Karuna Prasad

Not consistant? Please describe. There are perhaps performance considerations? Maybe this should be a Support case, analysing your setup.