oralodabas / google-cast-sdk

Automatically exported from code.google.com/p/google-cast-sdk
0 stars 0 forks source link

Audio track switching impossible with MPL 0.7.0 and smoothstream protocol #311

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. On mediaManager loadData, stream info (audio) is sent to sender.
2. Selected audio track index is sent back to receiver.
3. Receiver disables the existing audio stream and enables the new selected     
audio stream and reloads the player.

What is the expected output? What do you see instead?
Expected Output: Audion stream should be enabled on the protocol, and no 
duplicate of stream info should be present.

Current output: No new audio stream is enabled and duplicate stream info is 
present,and if you change the audio stream again on client and send it to 
receiver, now the stream info count is tripled.

What version of the product are you using? On what operating system?
Mac, MPL 0.7.0
Smooth streaming playready DRM.

Please provide any additional information below.

Also something very strange: My asset has swedish audio lang as default, but 
while fetching the audio stream info from smoothstreaming protocol, the first 
lang is selected by default (in this case it is finish), no matter what. Even 
if one tries to modify the protocol manually, MPL throws an exception as 
"Uncaught exception: cannot call method Ra of null"

And it always reamins the first lang of the protocol audio stream , no matter 
how many times the player is reloaded.

P.S. - There is no API document for smoothstream protocol, the one which is 
present in API refrences, slapped me with 404 error.

https://developers.google.com/cast/docs/reference/player/player.StreamingProtoco
l

Original issue reported on code.google.com by chromec...@accedo.tv on 2 Jul 2014 at 8:54

GoogleCodeExporter commented 9 years ago
Could you please try with media player library 0.8.0?

We'll look into fixing the docs.

Original comment by vadi...@google.com on 14 Jul 2014 at 4:15

GoogleCodeExporter commented 9 years ago
Until the docs are fixed, here is the streaming protocol interface description:

/**
 * @interface
 * Streaming protocol interface exposed to the application.
 */
player.StreamingProtocol = function() {};

/**
 * Gets the stream count for the media.
 * @return {number} Stream count.
 */
player.StreamingProtocol.prototype.getStreamCount = function() {};

/**
 * Gets stream information that includes codecs, mime type, and bitrates.
 * @param {number} streamIndex Stream index.
 * @return {!cast.player.api.StreamInfo} Stream information.
 */
player.StreamingProtocol.prototype.getStreamInfo = function(streamIndex) {};

/**
 * Sets the enabled state of the stream.
 * @param {number} streamIndex Stream index.
 * @param {boolean} enable Whether to enable or disable the stream.
 */
player.StreamingProtocol.prototype.enableStream = function(
    streamIndex, enable) {};

/**
 * Gets the enabled state of the stream.
 * @param {number} streamIndex Stream index.
 * @return {boolean} Whether the stream is enabled or disabled.
 */
player.StreamingProtocol.prototype.isStreamEnabled = function(streamIndex) {};

/**
 * Gets the quality level used to play the stream.
 * @param {number} streamIndex Stream index.
 * @return {number} Adaptive bitrate quality level.
 */
player.StreamingProtocol.prototype.getQualityLevel = function(streamIndex) {};

Original comment by vadi...@google.com on 14 Jul 2014 at 6:07

GoogleCodeExporter commented 9 years ago
I have the same problem with the 0.8.0 version too. 

I use PlayReady DRM protected movie, with two audio streams and can't change 
them. 

On other platform I had problem with the audio changing, and the problem was 
that the stream contains subtitle streams too, and the player couldn't handle 
that.

Original comment by vukmanda...@gmail.com on 18 Jul 2014 at 2:25

GoogleCodeExporter commented 9 years ago
vukmandavid: please open a separate issue and include your stream, the original 
issue has been addressed.

Original comment by anad...@google.com on 18 Jul 2014 at 5:09